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 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()
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.build();
- See Also:
-
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.
Returns union: either
IResolvableorCfnService.AwsVpcConfigurationProperty- See Also:
-
builder
-