@Stability(value=Stable)
public static interface CfnService.AwsVpcConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnService.AwsVpcConfigurationProperty.Builder
A builder for
CfnService.AwsVpcConfigurationProperty |
static class |
CfnService.AwsVpcConfigurationProperty.Jsii$Proxy
An implementation for
CfnService.AwsVpcConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnService.AwsVpcConfigurationProperty.Builder |
builder() |
default String |
getAssignPublicIp()
Whether the task's elastic network interface receives a public IP address.
|
default List<String> |
getSecurityGroups()
The IDs of the security groups associated with the task or service.
|
List<String> |
getSubnets()
The IDs of the subnets associated with the task or service.
|
@Stability(value=Stable) @NotNull List<String> getSubnets()
There's a limit of 16 subnets that can be specified per AwsVpcConfiguration .
All specified subnets must be from the same VPC.
@Stability(value=Stable) @Nullable default String getAssignPublicIp()
The default value is DISABLED .
@Stability(value=Stable) @Nullable default List<String> getSecurityGroups()
If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified per AwsVpcConfiguration .
All specified security groups must be from the same VPC.
@Stability(value=Stable) static CfnService.AwsVpcConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.