aws-cdk-lib.aws_ecs.CfnService.NetworkConfigurationProperty

interface NetworkConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnService.NetworkConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnService_NetworkConfigurationProperty
Javasoftware.amazon.awscdk.services.ecs.CfnService.NetworkConfigurationProperty
Pythonaws_cdk.aws_ecs.CfnService.NetworkConfigurationProperty
TypeScript aws-cdk-lib » aws_ecs » CfnService » NetworkConfigurationProperty

The NetworkConfiguration property specifies an object representing the network configuration for a task or service.

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 networkConfigurationProperty: ecs.CfnService.NetworkConfigurationProperty = {
  awsvpcConfiguration: {
    subnets: ['subnets'],

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

Properties

NameTypeDescription
awsvpcConfiguration?IResolvable | AwsVpcConfigurationPropertyThe VPC subnets and security groups that are associated with a task.

awsvpcConfiguration?

Type: IResolvable | AwsVpcConfigurationProperty (optional)

The VPC subnets and security groups that are associated with a task.

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