Class CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty
The network configuration for Amazon ECS Managed Instances.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty : CfnCapacityProviderPropsMixin.IManagedInstancesNetworkConfigurationProperty
Syntax (vb)
Public Class CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty Implements CfnCapacityProviderPropsMixin.IManagedInstancesNetworkConfigurationProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins;
var managedInstancesNetworkConfigurationProperty = new ManagedInstancesNetworkConfigurationProperty {
SecurityGroups = new [] { "securityGroups" },
Subnets = new [] { "subnets" }
};
Synopsis
Constructors
| ManagedInstancesNetworkConfigurationProperty() | The network configuration for Amazon ECS Managed Instances. |
Properties
| SecurityGroups | The list of security group IDs to apply to Amazon ECS Managed Instances. |
| Subnets | The list of subnet IDs where Amazon ECS can launch Amazon ECS Managed Instances. |
Constructors
ManagedInstancesNetworkConfigurationProperty()
The network configuration for Amazon ECS Managed Instances.
public ManagedInstancesNetworkConfigurationProperty()
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins;
var managedInstancesNetworkConfigurationProperty = new ManagedInstancesNetworkConfigurationProperty {
SecurityGroups = new [] { "securityGroups" },
Subnets = new [] { "subnets" }
};
Properties
SecurityGroups
The list of security group IDs to apply to Amazon ECS Managed Instances.
public string[]? SecurityGroups { get; set; }
Property Value
string[]
Remarks
These security groups control the network traffic allowed to and from the instances.
Subnets
The list of subnet IDs where Amazon ECS can launch Amazon ECS Managed Instances.
public string[]? Subnets { get; set; }
Property Value
string[]
Remarks
Instances are distributed across the specified subnets for high availability. All subnets must be in the same VPC.