Package software.amazon.awscdk.cxapi
Interface VpcSubnetGroup
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcSubnetGroup.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:40.943Z")
@Stability(Stable)
public interface VpcSubnetGroup
extends software.amazon.jsii.JsiiSerializable
A group of subnets returned by the VPC provider.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVpcSubnetGroup
static final class
An implementation forVpcSubnetGroup
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpcSubnetGroup.Builder
builder()
getName()
The name of the subnet group, determined by looking at the tags of of the subnets that belong to it.The subnets that are part of this group.getType()
The type of the subnet group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the subnet group, determined by looking at the tags of of the subnets that belong to it. -
getSubnets
The subnets that are part of this group.There is no condition that the subnets have to be symmetric in the group.
-
getType
The type of the subnet group. -
builder
- Returns:
- a
VpcSubnetGroup.Builder
ofVpcSubnetGroup
-