RotationScheduleProps

class aws_cdk.aws_secretsmanager.RotationScheduleProps(*, rotation_lambda, automatically_after=None, secret)

Bases: aws_cdk.aws_secretsmanager.RotationScheduleOptions

Construction properties for a RotationSchedule.

Parameters
  • rotation_lambda (IFunction) – The Lambda function that can rotate the secret.

  • automatically_after (Optional[Duration]) – Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. Default: Duration.days(30)

  • secret (ISecret) – The secret to rotate.

Attributes

automatically_after

Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.

default :default: Duration.days(30)

Return type

Optional[Duration]

rotation_lambda

The Lambda function that can rotate the secret.

Return type

IFunction

secret

The secret to rotate.

Return type

ISecret