@Stability(value=Stable) public static final class CfnRule.AwsVpcConfigurationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnRule.AwsVpcConfigurationProperty>
CfnRule.AwsVpcConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRule.AwsVpcConfigurationProperty.Builder |
assignPublicIp(String assignPublicIp)
Sets the value of
CfnRule.AwsVpcConfigurationProperty.getAssignPublicIp() |
CfnRule.AwsVpcConfigurationProperty |
build()
Builds the configured instance.
|
CfnRule.AwsVpcConfigurationProperty.Builder |
securityGroups(List<String> securityGroups)
Sets the value of
CfnRule.AwsVpcConfigurationProperty.getSecurityGroups() |
CfnRule.AwsVpcConfigurationProperty.Builder |
subnets(List<String> subnets)
Sets the value of
CfnRule.AwsVpcConfigurationProperty.getSubnets() |
@Stability(value=Stable) public CfnRule.AwsVpcConfigurationProperty.Builder subnets(List<String> subnets)
CfnRule.AwsVpcConfigurationProperty.getSubnets()
subnets
- Specifies the subnets associated with the task. This parameter is required.
These subnets must all be in the same VPC. You can specify as many as 16 subnets.this
@Stability(value=Stable) public CfnRule.AwsVpcConfigurationProperty.Builder assignPublicIp(String assignPublicIp)
CfnRule.AwsVpcConfigurationProperty.getAssignPublicIp()
assignPublicIp
- Specifies whether the task's elastic network interface receives a public IP address.
You can specify ENABLED
only when LaunchType
in EcsParameters
is set to FARGATE
.this
@Stability(value=Stable) public CfnRule.AwsVpcConfigurationProperty.Builder securityGroups(List<String> securityGroups)
CfnRule.AwsVpcConfigurationProperty.getSecurityGroups()
securityGroups
- Specifies the security groups associated with the task.
These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.this
@Stability(value=Stable) public CfnRule.AwsVpcConfigurationProperty build()
build
in interface software.amazon.jsii.Builder<CfnRule.AwsVpcConfigurationProperty>
CfnRule.AwsVpcConfigurationProperty
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.