@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.051Z") @Stability(value=Stable) public interface RotationScheduleOptions extends software.amazon.jsii.JsiiSerializable
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
RotationScheduleOptions.Builder
A builder for
RotationScheduleOptions |
static class |
RotationScheduleOptions.Jsii$Proxy
An implementation for
RotationScheduleOptions |
| Modifier and Type | Method and Description |
|---|---|
static RotationScheduleOptions.Builder |
builder() |
default Duration |
getAutomaticallyAfter()
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
|
default HostedRotation |
getHostedRotation()
Hosted rotation.
|
default IFunction |
getRotationLambda()
A Lambda function that can rotate the secret.
|
@Stability(value=Stable) @Nullable default Duration getAutomaticallyAfter()
A value of zero will disable automatic rotation - Duration.days(0).
Default: Duration.days(30)
@Stability(value=Stable) @Nullable default HostedRotation getHostedRotation()
Default: - either `rotationLambda` or `hostedRotation` must be specified
@Stability(value=Stable) @Nullable default IFunction getRotationLambda()
Default: - either `rotationLambda` or `hostedRotation` must be specified
@Stability(value=Stable) static RotationScheduleOptions.Builder builder()
RotationScheduleOptions.Builder of RotationScheduleOptionsCopyright © 2022. All rights reserved.