interface NetworkConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.CfnService.NetworkConfigurationProperty |
Java | software.amazon.awscdk.services.ecs.CfnService.NetworkConfigurationProperty |
Python | aws_cdk.aws_ecs.CfnService.NetworkConfigurationProperty |
TypeScript | @aws-cdk/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 * as ecs from '@aws-cdk/aws-ecs';
const networkConfigurationProperty: ecs.CfnService.NetworkConfigurationProperty = {
awsvpcConfiguration: {
subnets: ['subnets'],
// the properties below are optional
assignPublicIp: 'assignPublicIp',
securityGroups: ['securityGroups'],
},
};
Properties
Name | Type | Description |
---|---|---|
awsvpc | IResolvable | Aws | The VPC subnets and security groups that are associated with a task. |
awsvpcConfiguration?
Type:
IResolvable
|
Aws
(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.