public static final class CfnVpcConnector.Builder
extends java.lang.Object
CfnVpcConnector
.Modifier and Type | Method and Description |
---|---|
CfnVpcConnector |
build() |
static CfnVpcConnector.Builder |
create(Construct scope,
java.lang.String id) |
CfnVpcConnector.Builder |
securityGroups(java.util.List<java.lang.String> securityGroups)
A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.
|
CfnVpcConnector.Builder |
subnets(java.util.List<java.lang.String> subnets)
A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.
|
CfnVpcConnector.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of metadata items that you can associate with your VPC connector resource.
|
CfnVpcConnector.Builder |
vpcConnectorName(java.lang.String vpcConnectorName)
A name for the VPC connector.
|
public static CfnVpcConnector.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnVpcConnector.Builder
.public CfnVpcConnector.Builder subnets(java.util.List<java.lang.String> subnets)
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.
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.this
public CfnVpcConnector.Builder securityGroups(java.util.List<java.lang.String> securityGroups)
If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
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.this
public CfnVpcConnector.Builder tags(java.util.List<? extends CfnTag> tags)
A tag is a key-value pair.
tags
- A list of metadata items that you can associate with your VPC connector resource. This parameter is required.this
public CfnVpcConnector.Builder vpcConnectorName(java.lang.String vpcConnectorName)
If you don't specify a name, AWS CloudFormation generates a name for your VPC connector.
vpcConnectorName
- A name for the VPC connector. This parameter is required.this
public CfnVpcConnector build()