Interface VpcContextResponse
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcContextResponse.Jsii$Proxy
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.*;
VpcContextResponse vpcContextResponse = VpcContextResponse.builder()
.availabilityZones(List.of("availabilityZones"))
.vpcId("vpcId")
// the properties below are optional
.isolatedSubnetIds(List.of("isolatedSubnetIds"))
.isolatedSubnetNames(List.of("isolatedSubnetNames"))
.isolatedSubnetRouteTableIds(List.of("isolatedSubnetRouteTableIds"))
.privateSubnetIds(List.of("privateSubnetIds"))
.privateSubnetNames(List.of("privateSubnetNames"))
.privateSubnetRouteTableIds(List.of("privateSubnetRouteTableIds"))
.publicSubnetIds(List.of("publicSubnetIds"))
.publicSubnetNames(List.of("publicSubnetNames"))
.publicSubnetRouteTableIds(List.of("publicSubnetRouteTableIds"))
.subnetGroups(List.of(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()))
.vpcCidrBlock("vpcCidrBlock")
.vpnGatewayId("vpnGatewayId")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpcContextResponsestatic final classAn implementation forVpcContextResponse -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcContextResponse.Builderbuilder()AZs.IDs of all isolated subnets.Name of isolated subnet groups.Route Table IDs of isolated subnet groups.IDs of all private subnets.Name of private subnet groups.Route Table IDs of private subnet groups.IDs of all public subnets.Name of public subnet groups.Route Table IDs of public subnet groups.default List<VpcSubnetGroup>The subnet groups discovered for the given VPC.default StringVPC cidr.getVpcId()VPC id.default StringThe VPN gateway ID.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZones
AZs. -
getVpcId
VPC id. -
getIsolatedSubnetIds
IDs of all isolated subnets.Element count: #(availabilityZones) · #(isolatedGroups)
-
getIsolatedSubnetNames
Name of isolated subnet groups.Element count: #(isolatedGroups)
-
getIsolatedSubnetRouteTableIds
Route Table IDs of isolated subnet groups.Element count: #(availabilityZones) · #(isolatedGroups)
-
getPrivateSubnetIds
IDs of all private subnets.Element count: #(availabilityZones) · #(privateGroups)
-
getPrivateSubnetNames
Name of private subnet groups.Element count: #(privateGroups)
-
getPrivateSubnetRouteTableIds
Route Table IDs of private subnet groups.Element count: #(availabilityZones) · #(privateGroups)
-
getPublicSubnetIds
IDs of all public subnets.Element count: #(availabilityZones) · #(publicGroups)
-
getPublicSubnetNames
Name of public subnet groups.Element count: #(publicGroups)
-
getPublicSubnetRouteTableIds
Route Table IDs of public subnet groups.Element count: #(availabilityZones) · #(publicGroups)
-
getSubnetGroups
The subnet groups discovered for the given VPC.Unlike the above properties, this will include asymmetric subnets, if the VPC has any. This property will only be populated if
VpcContextQuery.returnAsymmetricSubnetsis true.Default: - no subnet groups will be returned unless
VpcContextQuery.returnAsymmetricSubnetsis true -
getVpcCidrBlock
VPC cidr.Default: - CIDR information not available
-
getVpnGatewayId
The VPN gateway ID. -
builder
- Returns:
- a
VpcContextResponse.BuilderofVpcContextResponse
-