Interface CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnCapacityProvider
@Stability(Stable)
public static interface CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The network configuration for Amazon ECS Managed Instances.
This specifies the VPC subnets and security groups that instances use for network connectivity. Amazon ECS Managed Instances support multiple network modes including awsvpc
(instances receive ENIs for task isolation), host
(instances share network namespace with tasks), and none
(no external network connectivity), ensuring backward compatibility for migrating workloads from Fargate or Amazon EC2.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ecs.*; ManagedInstancesNetworkConfigurationProperty managedInstancesNetworkConfigurationProperty = ManagedInstancesNetworkConfigurationProperty.builder() .subnets(List.of("subnets")) // the properties below are optional .securityGroups(List.of("securityGroups")) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The list of security group IDs to apply to Amazon ECS Managed Instances.The list of subnet IDs where Amazon ECS can launch Amazon ECS Managed Instances.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnets
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.
- See Also:
-
getSecurityGroups
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.
- See Also:
-
builder
@Stability(Stable) static CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty.Builder builder()
-