Interface RotationScheduleOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
RotationScheduleProps
- All Known Implementing Classes:
RotationScheduleOptions.Jsii$Proxy
,RotationScheduleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)",
date="2024-02-23T02:06:39.881Z")
@Stability(Stable)
public interface RotationScheduleOptions
extends software.amazon.jsii.JsiiSerializable
Options to add a rotation schedule to a secret.
Example:
import software.amazon.awscdk.services.lambda.*; Function fn; Secret secret = new Secret(this, "Secret"); secret.addRotationSchedule("RotationSchedule", RotationScheduleOptions.builder() .rotationLambda(fn) .automaticallyAfter(Duration.days(15)) .rotateImmediatelyOnUpdate(false) .build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forRotationScheduleOptions
static final class
An implementation forRotationScheduleOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Duration
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.default HostedRotation
Hosted rotation.default Boolean
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.default IFunction
A Lambda function that can rotate the secret.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutomaticallyAfter
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.The minimum value is 4 hours. The maximum value is 1000 days.
A value of zero (
Duration.days(0)
) will not create RotationRules.Default: Duration.days(30)
-
getHostedRotation
Hosted rotation.Default: - either `rotationLambda` or `hostedRotation` must be specified
-
getRotateImmediatelyOnUpdate
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.Default: true
-
getRotationLambda
A Lambda function that can rotate the secret.Default: - either `rotationLambda` or `hostedRotation` must be specified
-
builder
- Returns:
- a
RotationScheduleOptions.Builder
ofRotationScheduleOptions
-