@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.024Z") @Stability(value=Stable) public interface CfnRotationScheduleProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.secretsmanager.*;
CfnRotationScheduleProps cfnRotationScheduleProps = CfnRotationScheduleProps.builder()
.secretId("secretId")
// the properties below are optional
.hostedRotationLambda(HostedRotationLambdaProperty.builder()
.rotationType("rotationType")
// the properties below are optional
.excludeCharacters("excludeCharacters")
.kmsKeyArn("kmsKeyArn")
.masterSecretArn("masterSecretArn")
.masterSecretKmsKeyArn("masterSecretKmsKeyArn")
.rotationLambdaName("rotationLambdaName")
.superuserSecretArn("superuserSecretArn")
.superuserSecretKmsKeyArn("superuserSecretKmsKeyArn")
.vpcSecurityGroupIds("vpcSecurityGroupIds")
.vpcSubnetIds("vpcSubnetIds")
.build())
.rotateImmediatelyOnUpdate(false)
.rotationLambdaArn("rotationLambdaArn")
.rotationRules(RotationRulesProperty.builder()
.automaticallyAfterDays(123)
.duration("duration")
.scheduleExpression("scheduleExpression")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRotationScheduleProps.Builder
A builder for
CfnRotationScheduleProps |
static class |
CfnRotationScheduleProps.Jsii$Proxy
An implementation for
CfnRotationScheduleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnRotationScheduleProps.Builder |
builder() |
default Object |
getHostedRotationLambda()
Creates a new Lambda rotation function based on one of the [Secrets Manager rotation function templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) .
|
default Object |
getRotateImmediatelyOnUpdate()
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
|
default String |
getRotationLambdaArn()
The ARN of an existing Lambda rotation function.
|
default Object |
getRotationRules()
A structure that defines the rotation configuration for this secret.
|
String |
getSecretId()
The ARN or name of the secret to rotate.
|
@Stability(value=Stable) @NotNull String getSecretId()
To reference a secret also created in this template, use the Ref function with the secret's logical ID.
@Stability(value=Stable) @Nullable default Object getHostedRotationLambda()
@Stability(value=Stable) @Nullable default Object getRotateImmediatelyOnUpdate()
The rotation schedule is defined in RotationRules .
If you don't immediately rotate the secret, Secrets Manager tests the rotation configuration by running the testSecret step of the Lambda rotation function. The test creates an AWSPENDING version of the secret and then removes it.
If you don't specify this value, then by default, Secrets Manager rotates the secret immediately.
@Stability(value=Stable) @Nullable default String getRotationLambdaArn()
To specify a rotation function that is also defined in this template, use the Ref function.
To create a new rotation function based on one of the Secrets Manager rotation function templates , specify HostedRotationLambda instead.
@Stability(value=Stable) @Nullable default Object getRotationRules()
@Stability(value=Stable) static CfnRotationScheduleProps.Builder builder()
CfnRotationScheduleProps.Builder of CfnRotationSchedulePropsCopyright © 2022. All rights reserved.