Class CfnServicePropsMixin.NetworkConfigurationProperty
The network configuration for a task or service.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnServicePropsMixin.NetworkConfigurationProperty : CfnServicePropsMixin.INetworkConfigurationProperty
Syntax (vb)
Public Class CfnServicePropsMixin.NetworkConfigurationProperty Implements CfnServicePropsMixin.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.Mixins.Preview.AWS.ECS.Mixins;
var networkConfigurationProperty = new NetworkConfigurationProperty {
AwsvpcConfiguration = new AwsVpcConfigurationProperty {
AssignPublicIp = "assignPublicIp",
SecurityGroups = new [] { "securityGroups" },
Subnets = new [] { "subnets" }
}
};
Synopsis
Constructors
| NetworkConfigurationProperty() | The network configuration for a task or service. |
Properties
| AwsvpcConfiguration | The VPC subnets and security groups that are associated with a task. |
Constructors
NetworkConfigurationProperty()
The network configuration for a task or service.
public NetworkConfigurationProperty()
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.Mixins.Preview.AWS.ECS.Mixins;
var networkConfigurationProperty = new NetworkConfigurationProperty {
AwsvpcConfiguration = new AwsVpcConfigurationProperty {
AssignPublicIp = "assignPublicIp",
SecurityGroups = new [] { "securityGroups" },
Subnets = new [] { "subnets" }
}
};
Properties
AwsvpcConfiguration
The VPC subnets and security groups that are associated with a task.
public object? AwsvpcConfiguration { get; set; }
Property Value
Remarks
All specified subnets and security groups must be from the same VPC.
Type union: either IResolvable or CfnServicePropsMixin.IAwsVpcConfigurationProperty