RotationScheduleOptions

class aws_cdk.aws_secretsmanager.RotationScheduleOptions(*, automatically_after=None, hosted_rotation=None, rotation_lambda=None)

Bases: object

Options to add a rotation schedule to a secret.

Parameters
  • 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)

  • hosted_rotation (Optional[HostedRotation]) – Hosted rotation. Default: - either rotationLambda or hostedRotation must be specified

  • rotation_lambda (Optional[IFunction]) – A Lambda function that can rotate the secret. Default: - either rotationLambda or hostedRotation must be specified

Attributes

automatically_after

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

Default

Duration.days(30)

Return type

Optional[Duration]

hosted_rotation

Hosted rotation.

Default
  • either rotationLambda or hostedRotation must be specified

Return type

Optional[HostedRotation]

rotation_lambda

A Lambda function that can rotate the secret.

Default
  • either rotationLambda or hostedRotation must be specified

Return type

Optional[IFunction]