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")) .ownerAccountId("ownerAccountId") .privateSubnetIds(List.of("privateSubnetIds")) .privateSubnetNames(List.of("privateSubnetNames")) .privateSubnetRouteTableIds(List.of("privateSubnetRouteTableIds")) .publicSubnetIds(List.of("publicSubnetIds")) .publicSubnetNames(List.of("publicSubnetNames")) .publicSubnetRouteTableIds(List.of("publicSubnetRouteTableIds")) .region("region") .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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVpcContextResponse
static final class
An implementation forVpcContextResponse
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpcContextResponse.Builder
builder()
AZs.IDs of all isolated subnets.Name of isolated subnet groups.Route Table IDs of isolated subnet groups.default String
The ID of the AWS account that owns the VPC.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 String
The region in which the VPC is in.default List<VpcSubnetGroup>
The subnet groups discovered for the given VPC.default String
VPC cidr.getVpcId()
VPC id.default String
The 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)
-
getOwnerAccountId
The ID of the AWS account that owns the VPC.Default: the account id of the parent stack
-
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)
-
getRegion
The region in which the VPC is in.Default: - Region of the parent stack
-
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.returnAsymmetricSubnets
is true.Default: - no subnet groups will be returned unless `VpcContextQuery.returnAsymmetricSubnets` is true
-
getVpcCidrBlock
VPC cidr.Default: - CIDR information not available
-
getVpnGatewayId
The VPN gateway ID. -
builder
- Returns:
- a
VpcContextResponse.Builder
ofVpcContextResponse
-