Class VpcConnector.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.VpcConnector.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcConnector>
- Enclosing class:
VpcConnector
@Stability(Experimental)
public static final class VpcConnector.Builder
extends Object
implements software.amazon.jsii.Builder<VpcConnector>
(experimental) A fluent builder for
VpcConnector
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static VpcConnector.Builder
securityGroups
(List<? extends ISecurityGroup> securityGroups) (experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.(experimental) The VPC for the VPC Connector.vpcConnectorName
(String vpcConnectorName) (experimental) The name for the VpcConnector.vpcSubnets
(SubnetSelection vpcSubnets) (experimental) Where to place the VPC Connector within the VPC.
-
Method Details
-
create
@Stability(Experimental) public static VpcConnector.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
VpcConnector.Builder
.
-
vpc
(experimental) The VPC for the VPC Connector.- Parameters:
vpc
- The VPC for the VPC Connector. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Experimental) public VpcConnector.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) (experimental) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.Default: - a new security group will be created in the specified VPC
- Parameters:
securityGroups
- A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. This parameter is required.- Returns:
this
-
vpcConnectorName
(experimental) The name for the VpcConnector.Default: - a name generated by CloudFormation
- Parameters:
vpcConnectorName
- The name for the VpcConnector. This parameter is required.- Returns:
this
-
vpcSubnets
(experimental) Where to place the VPC Connector within the VPC.Default: - Private subnets.
- Parameters:
vpcSubnets
- Where to place the VPC Connector within the VPC. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpcConnector>
- Returns:
- a newly built instance of
VpcConnector
.
-