Class CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty>
- Enclosing interface:
CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty
@Stability(Stable)
public static final class CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroups(List<String> securityGroups)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnets
@Stability(Stable) public CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.Builder subnets(List<String> subnets) - Parameters:
subnets- The list of subnet IDs where Amazon ECS can launch Amazon ECS Managed Instances. This parameter is required. Instances are distributed across the specified subnets for high availability. All subnets must be in the same VPC.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.getSecurityGroups()- Parameters:
securityGroups- The list of security group IDs to apply to Amazon ECS Managed Instances. These security groups control the network traffic allowed to and from the instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty>- Returns:
- a new instance of
CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-