@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.903Z") @Stability(value=Stable) public interface VpcSubnetGroup extends software.amazon.jsii.JsiiSerializable
The included subnets do NOT have to be symmetric!
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cxapi.*;
VpcSubnetGroup vpcSubnetGroup = VpcSubnetGroup.builder()
.name("name")
.subnets(List.of(VpcSubnet.builder()
.availabilityZone("availabilityZone")
.routeTableId("routeTableId")
.subnetId("subnetId")
// the properties below are optional
.cidr("cidr")
.build()))
.type(VpcSubnetGroupType.PUBLIC)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
VpcSubnetGroup.Builder
A builder for
VpcSubnetGroup |
static class |
VpcSubnetGroup.Jsii$Proxy
An implementation for
VpcSubnetGroup |
| Modifier and Type | Method and Description |
|---|---|
static VpcSubnetGroup.Builder |
builder() |
String |
getName()
The name of the subnet group, determined by looking at the tags of of the subnets that belong to it.
|
List<VpcSubnet> |
getSubnets()
The subnets that are part of this group.
|
VpcSubnetGroupType |
getType()
The type of the subnet group.
|
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @NotNull List<VpcSubnet> getSubnets()
There is no condition that the subnets have to be symmetric in the group.
@Stability(value=Stable) @NotNull VpcSubnetGroupType getType()
@Stability(value=Stable) static VpcSubnetGroup.Builder builder()
VpcSubnetGroup.Builder of VpcSubnetGroupCopyright © 2022. All rights reserved.