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()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. A value of zero will disable automatic rotation -Duration.days(0).- Returns:
this
-
hostedRotation
@Stability(Stable) public RotationScheduleOptions.Builder hostedRotation(HostedRotation hostedRotation) Sets the value ofRotationScheduleOptions.getHostedRotation()- Parameters:
hostedRotation- Hosted rotation.- 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
-