public static final class CfnRotationScheduleProps.Builder
extends java.lang.Object
CfnRotationScheduleProps
Constructor and Description |
---|
Builder() |
public CfnRotationScheduleProps.Builder secretId(java.lang.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
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.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .this
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.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .this
public CfnRotationScheduleProps.Builder rotateImmediatelyOnUpdate(java.lang.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.
Rotation is an asynchronous process. For more information, see How rotation works .
this
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.
Rotation is an asynchronous process. For more information, see How rotation works .
this
public CfnRotationScheduleProps.Builder rotationLambdaArn(java.lang.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.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
To create a new rotation function based on one of the Secrets Manager rotation function templates , specify HostedRotationLambda
instead.
this
public CfnRotationScheduleProps.Builder rotationRules(IResolvable rotationRules)
CfnRotationScheduleProps.getRotationRules()
rotationRules
- A structure that defines the rotation configuration for this secret.this
public CfnRotationScheduleProps.Builder rotationRules(CfnRotationSchedule.RotationRulesProperty rotationRules)
CfnRotationScheduleProps.getRotationRules()
rotationRules
- A structure that defines the rotation configuration for this secret.this
public CfnRotationScheduleProps build()
CfnRotationScheduleProps
java.lang.NullPointerException
- if any required attribute was not provided