@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:14.748Z") @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
.kmsKeyArn("kmsKeyArn")
.masterSecretArn("masterSecretArn")
.masterSecretKmsKeyArn("masterSecretKmsKeyArn")
.rotationLambdaName("rotationLambdaName")
.superuserSecretArn("superuserSecretArn")
.superuserSecretKmsKeyArn("superuserSecretKmsKeyArn")
.vpcSecurityGroupIds("vpcSecurityGroupIds")
.vpcSubnetIds("vpcSubnetIds")
.build())
.rotationLambdaArn("rotationLambdaArn")
.rotationRules(RotationRulesProperty.builder()
.automaticallyAfterDays(123)
.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()
To use these values, you must specify `Transform: AWS::SecretsManager-2020-07-23` at the beginning of the CloudFormation template.
|
default String |
getRotationLambdaArn()
The ARN of the Lambda function that can rotate the secret.
|
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()
When you enter valid values for RotationSchedule.HostedRotationLambda , Secrets Manager launches a Lambda that performs rotation on the secret specified in the secret-id property. The template creates a Lambda as part of a nested stack within the current stack.
@Stability(value=Stable) @Nullable default String getRotationLambdaArn()
If you don't specify this parameter, then the secret must already have the ARN of a Lambda function configured.
To reference a Lambda function also created in this template, use the Ref function with the function's logical ID.
@Stability(value=Stable) @Nullable default Object getRotationRules()
@Stability(value=Stable) static CfnRotationScheduleProps.Builder builder()
CfnRotationScheduleProps.Builder of CfnRotationSchedulePropsCopyright © 2022. All rights reserved.