Interface CfnService.AwsVpcConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.AwsVpcConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.AwsVpcConfigurationProperty extends software.amazon.jsii.JsiiSerializable
An object representing the networking details for a task or service.

For example awsvpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}

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.*;
 AwsVpcConfigurationProperty awsVpcConfigurationProperty = AwsVpcConfigurationProperty.builder()
         .assignPublicIp("assignPublicIp")
         .securityGroups(List.of("securityGroups"))
         .subnets(List.of("subnets"))
         .build();
 

See Also: