Class RotationScheduleOptions.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.RotationScheduleOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RotationScheduleOptions>
- Enclosing interface:
RotationScheduleOptions
@Stability(Stable)
public static final class RotationScheduleOptions.Builder
extends Object
implements software.amazon.jsii.Builder<RotationScheduleOptions>
A builder for
RotationScheduleOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautomaticallyAfter(Duration automaticallyAfter) Sets the value ofRotationScheduleOptions.getAutomaticallyAfter()build()Builds the configured instance.hostedRotation(HostedRotation hostedRotation) Sets the value ofRotationScheduleOptions.getHostedRotation()rotateImmediatelyOnUpdate(Boolean rotateImmediatelyOnUpdate) Sets the value ofRotationScheduleOptions.getRotateImmediatelyOnUpdate()rotationLambda(IFunction rotationLambda) Sets the value ofRotationScheduleOptions.getRotationLambda()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
automaticallyAfter
@Stability(Stable) public RotationScheduleOptions.Builder automaticallyAfter(Duration automaticallyAfter) Sets the value ofRotationScheduleOptions.getAutomaticallyAfter()- Parameters:
automaticallyAfter- Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. The minimum value is 4 hours. The maximum value is 1000 days.A value of zero (
Duration.days(0)) will not create RotationRules.- Returns:
this
-
hostedRotation
@Stability(Stable) public RotationScheduleOptions.Builder hostedRotation(HostedRotation hostedRotation) Sets the value ofRotationScheduleOptions.getHostedRotation()- Parameters:
hostedRotation- Hosted rotation.- Returns:
this
-
rotateImmediatelyOnUpdate
@Stability(Stable) public RotationScheduleOptions.Builder rotateImmediatelyOnUpdate(Boolean rotateImmediatelyOnUpdate) Sets the value ofRotationScheduleOptions.getRotateImmediatelyOnUpdate()- Parameters:
rotateImmediatelyOnUpdate- Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.- Returns:
this
-
rotationLambda
Sets the value ofRotationScheduleOptions.getRotationLambda()- Parameters:
rotationLambda- A Lambda function that can rotate the secret.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RotationScheduleOptions>- Returns:
- a new instance of
RotationScheduleOptions - Throws:
NullPointerException- if any required attribute was not provided
-