Class CfnTaskSet.AwsVpcConfigurationProperty
An object representing the networking details for a task or service.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AwsVpcConfigurationProperty : Object, CfnTaskSet.IAwsVpcConfigurationProperty
Syntax (vb)
Public Class AwsVpcConfigurationProperty
Inherits Object
Implements CfnTaskSet.IAwsVpcConfigurationProperty
Remarks
For example awsvpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}
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
Constructors
AwsVpcConfigurationProperty() |
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. |
Constructors
AwsVpcConfigurationProperty()
public AwsVpcConfigurationProperty()
Properties
AssignPublicIp
Whether the task's elastic network interface receives a public IP address.
public string AssignPublicIp { get; set; }
Property Value
System.String
Remarks
SecurityGroups
The IDs of the security groups associated with the task or service.
public string[] SecurityGroups { get; set; }
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.
public string[] Subnets { get; set; }
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.