Class VpcConnectorProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.VpcConnectorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcConnectorProps>
- Enclosing interface:
VpcConnectorProps
@Stability(Experimental)
public static final class VpcConnectorProps.Builder
extends Object
implements software.amazon.jsii.Builder<VpcConnectorProps>
A builder for
VpcConnectorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcConnectorProps.getSecurityGroups()Sets the value ofVpcConnectorProps.getVpc()vpcConnectorName(String vpcConnectorName) Sets the value ofVpcConnectorProps.getVpcConnectorName()vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofVpcConnectorProps.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofVpcConnectorProps.getVpc()- Parameters:
vpc- The VPC for the VPC Connector. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Experimental) public VpcConnectorProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcConnectorProps.getSecurityGroups()- Parameters:
securityGroups- A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.- Returns:
this
-
vpcConnectorName
Sets the value ofVpcConnectorProps.getVpcConnectorName()- Parameters:
vpcConnectorName- The name for the VpcConnector.- Returns:
this
-
vpcSubnets
Sets the value ofVpcConnectorProps.getVpcSubnets()- Parameters:
vpcSubnets- Where to place the VPC Connector within the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcConnectorProps>- Returns:
- a new instance of
VpcConnectorProps - Throws:
NullPointerException- if any required attribute was not provided
-