@Stability(value=Stable) public static final class CfnRotationScheduleProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRotationScheduleProps>
CfnRotationScheduleProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnRotationScheduleProps.Builder secretId(String secretId)
CfnRotationScheduleProps.getSecretId()secretId - The ARN or name of the secret to rotate. This parameter is required.
To reference a secret also created in this template, use the Ref function with the secret's logical ID.this@Stability(value=Stable) public CfnRotationScheduleProps.Builder hostedRotationLambda(CfnRotationSchedule.HostedRotationLambdaProperty hostedRotationLambda)
CfnRotationScheduleProps.getHostedRotationLambda()hostedRotationLambda - 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) . To use a rotation function that already exists, specify `RotationLambdaARN` instead.this@Stability(value=Stable) public CfnRotationScheduleProps.Builder hostedRotationLambda(IResolvable hostedRotationLambda)
CfnRotationScheduleProps.getHostedRotationLambda()hostedRotationLambda - 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) . To use a rotation function that already exists, specify `RotationLambdaARN` instead.this@Stability(value=Stable) public CfnRotationScheduleProps.Builder rotateImmediatelyOnUpdate(Boolean rotateImmediatelyOnUpdate)
CfnRotationScheduleProps.getRotateImmediatelyOnUpdate()rotateImmediatelyOnUpdate - Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
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.
this@Stability(value=Stable) public CfnRotationScheduleProps.Builder rotateImmediatelyOnUpdate(IResolvable rotateImmediatelyOnUpdate)
CfnRotationScheduleProps.getRotateImmediatelyOnUpdate()rotateImmediatelyOnUpdate - Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
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.
this@Stability(value=Stable) public CfnRotationScheduleProps.Builder rotationLambdaArn(String rotationLambdaArn)
CfnRotationScheduleProps.getRotationLambdaArn()rotationLambdaArn - The ARN of an existing Lambda rotation function.
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.
this@Stability(value=Stable) public CfnRotationScheduleProps.Builder rotationRules(CfnRotationSchedule.RotationRulesProperty rotationRules)
CfnRotationScheduleProps.getRotationRules()rotationRules - A structure that defines the rotation configuration for this secret.this@Stability(value=Stable) public CfnRotationScheduleProps.Builder rotationRules(IResolvable rotationRules)
CfnRotationScheduleProps.getRotationRules()rotationRules - A structure that defines the rotation configuration for this secret.this@Stability(value=Stable) public CfnRotationScheduleProps build()
build in interface software.amazon.jsii.Builder<CfnRotationScheduleProps>CfnRotationSchedulePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.