Class CfnVpcConnector.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnVpcConnector.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcConnector>
- Enclosing class:
- CfnVpcConnector
@Stability(Stable)
public static final class CfnVpcConnector.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcConnector>
A fluent builder for
CfnVpcConnector
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnVpcConnector.Builder
securityGroups
(List<String> securityGroups) A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.A list of metadata items that you can associate with your VPC connector resource.vpcConnectorName
(String vpcConnectorName) A name for the VPC connector.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnVpcConnector.Builder
.
-
subnets
A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify.
App Runner currently only provides support for IPv4.
- Parameters:
subnets
- A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. This parameter is required.- Returns:
this
-
securityGroups
A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
- 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
-
tags
A list of metadata items that you can associate with your VPC connector resource.A tag is a key-value pair.
- Parameters:
tags
- A list of metadata items that you can associate with your VPC connector resource. This parameter is required.- Returns:
this
-
vpcConnectorName
A name for the VPC connector.If you don't specify a name, AWS CloudFormation generates a name for your VPC connector.
- Parameters:
vpcConnectorName
- A name for the VPC connector. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVpcConnector>
- Returns:
- a newly built instance of
CfnVpcConnector
.
-