Class CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroups(List<String> securityGroups)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroups
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnCapacityProviderPropsMixin.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
-
subnets
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty.Builder subnets(List<String> subnets) Sets the value ofCfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty.getSubnets()- Parameters:
subnets- The list of subnet IDs where Amazon ECS can launch Amazon ECS Managed Instances. Instances are distributed across the specified subnets for high availability. All subnets must be in the same VPC.- Returns:
this
-
build
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-