Class CfnRotationScheduleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRotationScheduleProps>
- Enclosing interface:
CfnRotationScheduleProps
CfnRotationScheduleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.hostedRotationLambda
(IResolvable hostedRotationLambda) Sets the value ofCfnRotationScheduleProps.getHostedRotationLambda()
hostedRotationLambda
(CfnRotationSchedule.HostedRotationLambdaProperty hostedRotationLambda) Sets the value ofCfnRotationScheduleProps.getHostedRotationLambda()
rotateImmediatelyOnUpdate
(Boolean rotateImmediatelyOnUpdate) Sets the value ofCfnRotationScheduleProps.getRotateImmediatelyOnUpdate()
rotateImmediatelyOnUpdate
(IResolvable rotateImmediatelyOnUpdate) Sets the value ofCfnRotationScheduleProps.getRotateImmediatelyOnUpdate()
rotationLambdaArn
(String rotationLambdaArn) Sets the value ofCfnRotationScheduleProps.getRotationLambdaArn()
rotationRules
(IResolvable rotationRules) Sets the value ofCfnRotationScheduleProps.getRotationRules()
rotationRules
(CfnRotationSchedule.RotationRulesProperty rotationRules) Sets the value ofCfnRotationScheduleProps.getRotationRules()
Sets the value ofCfnRotationScheduleProps.getSecretId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secretId
Sets the value ofCfnRotationScheduleProps.getSecretId()
- Parameters:
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.- Returns:
this
-
hostedRotationLambda
@Stability(Stable) public CfnRotationScheduleProps.Builder hostedRotationLambda(CfnRotationSchedule.HostedRotationLambdaProperty hostedRotationLambda) Sets the value ofCfnRotationScheduleProps.getHostedRotationLambda()
- Parameters:
hostedRotationLambda
- Creates a new Lambda rotation function based on one of the Secrets Manager rotation function templates . To use a rotation function that already exists, specifyRotationLambdaARN
instead. For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .- Returns:
this
-
hostedRotationLambda
@Stability(Stable) public CfnRotationScheduleProps.Builder hostedRotationLambda(IResolvable hostedRotationLambda) Sets the value ofCfnRotationScheduleProps.getHostedRotationLambda()
- Parameters:
hostedRotationLambda
- Creates a new Lambda rotation function based on one of the Secrets Manager rotation function templates . To use a rotation function that already exists, specifyRotationLambdaARN
instead. For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .- Returns:
this
-
rotateImmediatelyOnUpdate
@Stability(Stable) public CfnRotationScheduleProps.Builder rotateImmediatelyOnUpdate(Boolean rotateImmediatelyOnUpdate) Sets the value ofCfnRotationScheduleProps.getRotateImmediatelyOnUpdate()
- Parameters:
rotateImmediatelyOnUpdate
- Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. The rotation schedule is defined inRotationRules
.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 anAWSPENDING
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 .
- Returns:
this
-
rotateImmediatelyOnUpdate
@Stability(Stable) public CfnRotationScheduleProps.Builder rotateImmediatelyOnUpdate(IResolvable rotateImmediatelyOnUpdate) Sets the value ofCfnRotationScheduleProps.getRotateImmediatelyOnUpdate()
- Parameters:
rotateImmediatelyOnUpdate
- Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. The rotation schedule is defined inRotationRules
.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 anAWSPENDING
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 .
- Returns:
this
-
rotationLambdaArn
@Stability(Stable) public CfnRotationScheduleProps.Builder rotationLambdaArn(String rotationLambdaArn) Sets the value ofCfnRotationScheduleProps.getRotationLambdaArn()
- Parameters:
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.- Returns:
this
-
rotationRules
Sets the value ofCfnRotationScheduleProps.getRotationRules()
- Parameters:
rotationRules
- A structure that defines the rotation configuration for this secret.- Returns:
this
-
rotationRules
@Stability(Stable) public CfnRotationScheduleProps.Builder rotationRules(CfnRotationSchedule.RotationRulesProperty rotationRules) Sets the value ofCfnRotationScheduleProps.getRotationRules()
- Parameters:
rotationRules
- A structure that defines the rotation configuration for this secret.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRotationScheduleProps>
- Returns:
- a new instance of
CfnRotationScheduleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-