Interface CfnRule.INetworkConfigurationProperty
This structure specifies the network configuration for an ECS task.
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.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.Events;
var networkConfigurationProperty = new NetworkConfigurationProperty {
AwsVpcConfiguration = new AwsVpcConfigurationProperty {
Subnets = new [] { "subnets" },
// the properties below are optional
AssignPublicIp = "assignPublicIp",
SecurityGroups = new [] { "securityGroups" }
}
};
Synopsis
Properties
AwsVpcConfiguration | Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. |
Properties
AwsVpcConfiguration
Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used.
virtual object AwsVpcConfiguration { get; }
Property Value
System.Object
Remarks
This structure is relevant only for ECS tasks that use the awsvpc
network mode.