Interface CfnService.NetworkConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnService.NetworkConfigurationProperty.Jsii$Proxy
- Enclosing class:
- CfnService
@Stability(Stable)
public static interface CfnService.NetworkConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The
NetworkConfiguration property specifies an object representing the network configuration for a task or service.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
NetworkConfigurationProperty networkConfigurationProperty = NetworkConfigurationProperty.builder()
.awsvpcConfiguration(AwsVpcConfigurationProperty.builder()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnService.NetworkConfigurationPropertystatic final classAn implementation forCfnService.NetworkConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAwsvpcConfiguration
The VPC subnets and security groups that are associated with a task.All specified subnets and security groups must be from the same VPC.
-
builder
-