Class SingleUserHostedRotationOptions.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.SingleUserHostedRotationOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SingleUserHostedRotationOptions>
- Enclosing interface:
SingleUserHostedRotationOptions
@Stability(Stable)
public static final class SingleUserHostedRotationOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SingleUserHostedRotationOptions>
A builder for
SingleUserHostedRotationOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludeCharacters(String excludeCharacters) Sets the value ofSingleUserHostedRotationOptions.getExcludeCharacters()functionName(String functionName) Sets the value ofSingleUserHostedRotationOptions.getFunctionName()securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofSingleUserHostedRotationOptions.getSecurityGroups()Sets the value ofSingleUserHostedRotationOptions.getVpc()vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofSingleUserHostedRotationOptions.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludeCharacters
@Stability(Stable) public SingleUserHostedRotationOptions.Builder excludeCharacters(String excludeCharacters) Sets the value ofSingleUserHostedRotationOptions.getExcludeCharacters()- Parameters:
excludeCharacters- A string of the characters that you don't want in the password.- Returns:
this
-
functionName
Sets the value ofSingleUserHostedRotationOptions.getFunctionName()- Parameters:
functionName- A name for the Lambda created to rotate the secret.- Returns:
this
-
securityGroups
@Stability(Stable) public SingleUserHostedRotationOptions.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofSingleUserHostedRotationOptions.getSecurityGroups()- Parameters:
securityGroups- A list of security groups for the Lambda created to rotate the secret.- Returns:
this
-
vpc
Sets the value ofSingleUserHostedRotationOptions.getVpc()- Parameters:
vpc- The VPC where the Lambda rotation function will run.- Returns:
this
-
vpcSubnets
@Stability(Stable) public SingleUserHostedRotationOptions.Builder vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofSingleUserHostedRotationOptions.getVpcSubnets()- Parameters:
vpcSubnets- The type of subnets in the VPC where the Lambda rotation function will run.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SingleUserHostedRotationOptions>- Returns:
- a new instance of
SingleUserHostedRotationOptions - Throws:
NullPointerException- if any required attribute was not provided
-