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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.299Z")
@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))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRotationScheduleOptionsstatic final classAn implementation forRotationScheduleOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default DurationSpecifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.default HostedRotationHosted rotation.default IFunctionA 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.A value of zero will disable automatic rotation -
Duration.days(0).Default: Duration.days(30)
-
getHostedRotation
Hosted rotation.Default: - either `rotationLambda` or `hostedRotation` must be specified
-
getRotationLambda
A Lambda function that can rotate the secret.Default: - either `rotationLambda` or `hostedRotation` must be specified
-
builder
- Returns:
- a
RotationScheduleOptions.BuilderofRotationScheduleOptions
-