Class MultiUserHostedRotationOptions.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.MultiUserHostedRotationOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MultiUserHostedRotationOptions>
- Enclosing interface:
- MultiUserHostedRotationOptions
@Stability(Stable)
public static final class MultiUserHostedRotationOptions.Builder
extends Object
implements software.amazon.jsii.Builder<MultiUserHostedRotationOptions>
A builder for
MultiUserHostedRotationOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.functionName(String functionName) Sets the value ofSingleUserHostedRotationOptions.getFunctionName()masterSecret(ISecret masterSecret) Sets the value ofMultiUserHostedRotationOptions.getMasterSecret()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
-
masterSecret
Sets the value ofMultiUserHostedRotationOptions.getMasterSecret()- Parameters:
masterSecret- The master secret for a multi user rotation scheme. This parameter is required.- 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 MultiUserHostedRotationOptions.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 MultiUserHostedRotationOptions.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<MultiUserHostedRotationOptions>- Returns:
- a new instance of
MultiUserHostedRotationOptions - Throws:
NullPointerException- if any required attribute was not provided
-