interface NetworkConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.CfnService.NetworkConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnService_NetworkConfigurationProperty |
![]() | software.amazon.awscdk.services.ecs.CfnService.NetworkConfigurationProperty |
![]() | aws_cdk.aws_ecs.CfnService.NetworkConfigurationProperty |
![]() | aws-cdk-lib » aws_ecs » CfnService » NetworkConfigurationProperty |
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: {
assignPublicIp: 'assignPublicIp',
securityGroups: ['securityGroups'],
subnets: ['subnets'],
},
};
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.