Interface CfnService.IAwsVpcConfigurationProperty
An object representing the networking details for a task or service.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IAwsVpcConfigurationProperty
Syntax (vb)
Public Interface IAwsVpcConfigurationProperty
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 awsVpcConfigurationProperty = new AwsVpcConfigurationProperty {
Subnets = new [] { "subnets" },
// the properties below are optional
AssignPublicIp = "assignPublicIp",
SecurityGroups = new [] { "securityGroups" }
};
Synopsis
Properties
AssignPublicIp | Whether the task's elastic network interface receives a public IP address. |
SecurityGroups | The IDs of the security groups associated with the task or service. |
Subnets | The IDs of the subnets associated with the task or service. |
Properties
AssignPublicIp
Whether the task's elastic network interface receives a public IP address.
virtual string AssignPublicIp { get; }
Property Value
System.String
Remarks
SecurityGroups
The IDs of the security groups associated with the task or service.
virtual string[] SecurityGroups { get; }
Property Value
System.String[]
Remarks
If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified per AwsVpcConfiguration
.
All specified security groups must be from the same VPC.
Subnets
The IDs of the subnets associated with the task or service.
string[] Subnets { get; }
Property Value
System.String[]
Remarks
There's a limit of 16 subnets that can be specified per AwsVpcConfiguration
.
All specified subnets must be from the same VPC.