Interface IRotationScheduleOptions
Options to add a rotation schedule to a secret.
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.AWS.SecretsManager.dll
Syntax (csharp)
public interface IRotationScheduleOptions
Syntax (vb)
Public Interface IRotationScheduleOptions
Remarks
ExampleMetadata: infused
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)
});
Synopsis
Properties
AutomaticallyAfter | Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. |
HostedRotation | Hosted rotation. |
RotationLambda | A Lambda function that can rotate the secret. |
Properties
AutomaticallyAfter
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
virtual Duration AutomaticallyAfter { get; }
Property Value
Remarks
A value of zero will disable automatic rotation - Duration.days(0)
.
Default: Duration.days(30)
HostedRotation
Hosted rotation.
virtual HostedRotation HostedRotation { get; }
Property Value
Remarks
Default: - either rotationLambda
or hostedRotation
must be specified
RotationLambda
A Lambda function that can rotate the secret.
virtual IFunction RotationLambda { get; }
Property Value
Remarks
Default: - either rotationLambda
or hostedRotation
must be specified