Class CfnVpcConnectorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apprunner.CfnVpcConnectorMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcConnectorMixinProps>
- Enclosing interface:
CfnVpcConnectorMixinProps
@Stability(Stable)
public static final class CfnVpcConnectorMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcConnectorMixinProps>
A builder for
CfnVpcConnectorMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnVpcConnectorMixinProps.getSecurityGroups()Sets the value ofCfnVpcConnectorMixinProps.getSubnets()Sets the value ofCfnVpcConnectorMixinProps.getTags()vpcConnectorName(String vpcConnectorName) Sets the value ofCfnVpcConnectorMixinProps.getVpcConnectorName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroups
@Stability(Stable) public CfnVpcConnectorMixinProps.Builder securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnVpcConnectorMixinProps.getSecurityGroups()- Parameters:
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.- Returns:
this
-
subnets
Sets the value ofCfnVpcConnectorMixinProps.getSubnets()- Parameters:
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 only supports subnets of IP address type IPv4 and dual stack (IPv4 and IPv6).
- Returns:
this
-
tags
Sets the value ofCfnVpcConnectorMixinProps.getTags()- Parameters:
tags- A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.A
VpcConnectoris immutable, so you cannot update its tags. To change the tags, replace the resource. To replace aVpcConnector, you must provide a new combination of security groups.- Returns:
this
-
vpcConnectorName
@Stability(Stable) public CfnVpcConnectorMixinProps.Builder vpcConnectorName(String vpcConnectorName) Sets the value ofCfnVpcConnectorMixinProps.getVpcConnectorName()- Parameters:
vpcConnectorName- A name for the VPC connector. If you don't specify a name, CloudFormation generates a name for your VPC connector.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVpcConnectorMixinProps>- Returns:
- a new instance of
CfnVpcConnectorMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-