Interface CfnService.INetworkConfigurationProperty
The NetworkConfiguration
property specifies an object representing the network configuration for a task or service.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface INetworkConfigurationProperty
Syntax (vb)
Public Interface INetworkConfigurationProperty
Remarks
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.AWS.ECS;
var networkConfigurationProperty = new NetworkConfigurationProperty {
AwsvpcConfiguration = new AwsVpcConfigurationProperty {
Subnets = new [] { "subnets" },
// the properties below are optional
AssignPublicIp = "assignPublicIp",
SecurityGroups = new [] { "securityGroups" }
}
};
Synopsis
Properties
AwsvpcConfiguration | The VPC subnets and security groups that are associated with a task. |
Properties
AwsvpcConfiguration
The VPC subnets and security groups that are associated with a task.
virtual object AwsvpcConfiguration { get; }
Property Value
System.Object
Remarks
All specified subnets and security groups must be from the same VPC.