interface ManagedInstancesNetworkConfigurationProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.ECS.CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnCapacityProvider_ManagedInstancesNetworkConfigurationProperty | 
|  Java | software.amazon.awscdk.services.ecs.CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty | 
|  Python | aws_cdk.aws_ecs.CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty | 
|  TypeScript | aws-cdk-lib»aws_ecs»CfnCapacityProvider»ManagedInstancesNetworkConfigurationProperty | 
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 { aws_ecs as ecs } from 'aws-cdk-lib';
const managedInstancesNetworkConfigurationProperty: ecs.CfnCapacityProvider.ManagedInstancesNetworkConfigurationProperty = {
  subnets: ['subnets'],
  // the properties below are optional
  securityGroups: ['securityGroups'],
};
Properties
| Name | Type | Description | 
|---|---|---|
| subnets | string[] | The list of subnet IDs where Amazon ECS can launch Amazon ECS Managed Instances. | 
| security | string[] | The list of security group IDs to apply to Amazon ECS Managed Instances. | 
subnets
Type:
string[]
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.
securityGroups?
Type:
string[]
(optional)
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.
