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: - eitherrotationLambda
orhostedRotation
must be specifiedrotation_lambda (
Optional
[IFunction
]) – A Lambda function that can rotate the secret. Default: - eitherrotationLambda
orhostedRotation
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
orhostedRotation
must be specified
- Return type
Optional
[HostedRotation
]