Skip to content
v2.275.0

NetworkConfigurationProperty Struct ​

The network configuration for a task or service.

Example ​

ts
// 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 networkConfigurationProperty: ecs.CfnTaskSet.NetworkConfigurationProperty = {
  awsVpcConfiguration: {
    subnets: ['subnets'],

    // the properties below are optional
    assignPublicIp: 'assignPublicIp',
    securityGroups: ['securityGroups'],
  },
};

Properties ​

awsVpcConfigurationoptionalIResolvable | CfnTaskSet.AwsVpcConfigurationPropertyaws_vpc_configurationoptionaltyping.Union[IResolvable, AwsVpcConfigurationProperty]awsVpcConfigurationoptionalIResolvableAwsVpcConfigurationoptionalIResolvableAwsVpcConfigurationoptionalinterface{}#
The VPC subnets and security groups that are associated with a task.

All specified subnets and security groups must be from the same VPC.