@Stability(value=Stable) public static final class CfnService.AwsVpcConfigurationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnService.AwsVpcConfigurationProperty>
CfnService.AwsVpcConfigurationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnService.AwsVpcConfigurationProperty.Builder |
assignPublicIp(String assignPublicIp)
Sets the value of
CfnService.AwsVpcConfigurationProperty.getAssignPublicIp() |
CfnService.AwsVpcConfigurationProperty |
build()
Builds the configured instance.
|
CfnService.AwsVpcConfigurationProperty.Builder |
securityGroups(List<String> securityGroups)
Sets the value of
CfnService.AwsVpcConfigurationProperty.getSecurityGroups() |
CfnService.AwsVpcConfigurationProperty.Builder |
subnets(List<String> subnets)
Sets the value of
CfnService.AwsVpcConfigurationProperty.getSubnets() |
@Stability(value=Stable) public CfnService.AwsVpcConfigurationProperty.Builder subnets(List<String> subnets)
CfnService.AwsVpcConfigurationProperty.getSubnets()subnets - The IDs of the subnets associated with the task or service. This parameter is required.
There's a limit of 16 subnets that can be specified per AwsVpcConfiguration .
All specified subnets must be from the same VPC.
this@Stability(value=Stable) public CfnService.AwsVpcConfigurationProperty.Builder assignPublicIp(String assignPublicIp)
CfnService.AwsVpcConfigurationProperty.getAssignPublicIp()assignPublicIp - Whether the task's elastic network interface receives a public IP address.
The default value is DISABLED .this@Stability(value=Stable) public CfnService.AwsVpcConfigurationProperty.Builder securityGroups(List<String> securityGroups)
CfnService.AwsVpcConfigurationProperty.getSecurityGroups()securityGroups - The IDs of the security groups associated with the task or service.
If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified per AwsVpcConfiguration .
All specified security groups must be from the same VPC.
this@Stability(value=Stable) public CfnService.AwsVpcConfigurationProperty build()
build in interface software.amazon.jsii.Builder<CfnService.AwsVpcConfigurationProperty>CfnService.AwsVpcConfigurationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.