Interface IRotationScheduleOptions
- Namespace
- Amazon.CDK.AWS.SecretsManager
- Assembly
- Amazon.CDK.AWS.SecretsManager.dll
Options to add a rotation schedule to a secret.
public interface IRotationScheduleOptions
Examples
using Amazon.CDK.AWS.Lambda;
Function fn;
var secret = new Secret(this, "Secret");
secret.AddRotationSchedule("RotationSchedule", new RotationScheduleOptions {
RotationLambda = fn,
AutomaticallyAfter = Duration.Days(15)
});
Remarks
ExampleMetadata: infused
Properties
AutomaticallyAfter
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
Duration? AutomaticallyAfter { get; }
Property Value
- Duration
Remarks
A value of zero will disable automatic rotation - Duration.days(0)
.
Default: Duration.days(30)
HostedRotation
Hosted rotation.
HostedRotation? HostedRotation { get; }
Property Value
Remarks
Default: - either rotationLambda
or hostedRotation
must be specified
RotationLambda
A Lambda function that can rotate the secret.
IFunction? RotationLambda { get; }
Property Value
- IFunction
Remarks
Default: - either rotationLambda
or hostedRotation
must be specified