Class RotationSingleUserOptions.Builder
java.lang.Object
software.amazon.awscdk.services.rds.RotationSingleUserOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RotationSingleUserOptions>
- Enclosing interface:
- RotationSingleUserOptions
@Stability(Stable)
public static final class RotationSingleUserOptions.Builder
extends Object
implements software.amazon.jsii.Builder<RotationSingleUserOptions>
A builder for
RotationSingleUserOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautomaticallyAfter
(Duration automaticallyAfter) Sets the value ofCommonRotationUserOptions.getAutomaticallyAfter()
build()
Builds the configured instance.endpoint
(IInterfaceVpcEndpoint endpoint) Sets the value ofCommonRotationUserOptions.getEndpoint()
excludeCharacters
(String excludeCharacters) Sets the value ofCommonRotationUserOptions.getExcludeCharacters()
vpcSubnets
(SubnetSelection vpcSubnets) Sets the value ofCommonRotationUserOptions.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
automaticallyAfter
@Stability(Stable) public RotationSingleUserOptions.Builder automaticallyAfter(Duration automaticallyAfter) Sets the value ofCommonRotationUserOptions.getAutomaticallyAfter()
- Parameters:
automaticallyAfter
- Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.- Returns:
this
-
endpoint
@Stability(Stable) public RotationSingleUserOptions.Builder endpoint(IInterfaceVpcEndpoint endpoint) Sets the value ofCommonRotationUserOptions.getEndpoint()
- Parameters:
endpoint
- The VPC interface endpoint to use for the Secrets Manager API. If you enable private DNS hostnames for your VPC private endpoint (the default), you don't need to specify an endpoint. The standard Secrets Manager DNS hostname the Secrets Manager CLI and SDKs use by default (https://secretsmanager..amazonaws.com) automatically resolves to your VPC endpoint. - Returns:
this
-
excludeCharacters
@Stability(Stable) public RotationSingleUserOptions.Builder excludeCharacters(String excludeCharacters) Sets the value ofCommonRotationUserOptions.getExcludeCharacters()
- Parameters:
excludeCharacters
- Specifies characters to not include in generated passwords.- Returns:
this
-
vpcSubnets
Sets the value ofCommonRotationUserOptions.getVpcSubnets()
- Parameters:
vpcSubnets
- Where to place the rotation Lambda function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RotationSingleUserOptions>
- Returns:
- a new instance of
RotationSingleUserOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-