@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.902Z") @Stability(value=Stable) public interface VpcContextResponse 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.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"))
.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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
VpcContextResponse.Builder
A builder for
VpcContextResponse |
static class |
VpcContextResponse.Jsii$Proxy
An implementation for
VpcContextResponse |
| Modifier and Type | Method and Description |
|---|---|
static VpcContextResponse.Builder |
builder() |
List<String> |
getAvailabilityZones()
AZs.
|
default List<String> |
getIsolatedSubnetIds()
IDs of all isolated subnets.
|
default List<String> |
getIsolatedSubnetNames()
Name of isolated subnet groups.
|
default List<String> |
getIsolatedSubnetRouteTableIds()
Route Table IDs of isolated subnet groups.
|
default List<String> |
getPrivateSubnetIds()
IDs of all private subnets.
|
default List<String> |
getPrivateSubnetNames()
Name of private subnet groups.
|
default List<String> |
getPrivateSubnetRouteTableIds()
Route Table IDs of private subnet groups.
|
default List<String> |
getPublicSubnetIds()
IDs of all public subnets.
|
default List<String> |
getPublicSubnetNames()
Name of public subnet groups.
|
default List<String> |
getPublicSubnetRouteTableIds()
Route Table IDs of public subnet groups.
|
default String |
getRegion()
The region in which the VPC is in.
|
default List<VpcSubnetGroup> |
getSubnetGroups()
The subnet groups discovered for the given VPC.
|
default String |
getVpcCidrBlock()
VPC cidr.
|
String |
getVpcId()
VPC id.
|
default String |
getVpnGatewayId()
The VPN gateway ID.
|
@Stability(value=Stable) @NotNull String getVpcId()
@Stability(value=Stable) @Nullable default List<String> getIsolatedSubnetIds()
Element count: #(availabilityZones) · #(isolatedGroups)
@Stability(value=Stable) @Nullable default List<String> getIsolatedSubnetNames()
Element count: #(isolatedGroups)
@Stability(value=Stable) @Nullable default List<String> getIsolatedSubnetRouteTableIds()
Element count: #(availabilityZones) · #(isolatedGroups)
@Stability(value=Stable) @Nullable default List<String> getPrivateSubnetIds()
Element count: #(availabilityZones) · #(privateGroups)
@Stability(value=Stable) @Nullable default List<String> getPrivateSubnetNames()
Element count: #(privateGroups)
@Stability(value=Stable) @Nullable default List<String> getPrivateSubnetRouteTableIds()
Element count: #(availabilityZones) · #(privateGroups)
@Stability(value=Stable) @Nullable default List<String> getPublicSubnetIds()
Element count: #(availabilityZones) · #(publicGroups)
@Stability(value=Stable) @Nullable default List<String> getPublicSubnetNames()
Element count: #(publicGroups)
@Stability(value=Stable) @Nullable default List<String> getPublicSubnetRouteTableIds()
Element count: #(availabilityZones) · #(publicGroups)
@Stability(value=Stable) @Nullable default String getRegion()
Default: - Region of the parent stack
@Stability(value=Stable) @Nullable default List<VpcSubnetGroup> getSubnetGroups()
Unlike the above properties, this will include asymmetric subnets, if the VPC has any. This property will only be populated if {@link VpcContextQuery.returnAsymmetricSubnets} is true.
Default: - no subnet groups will be returned unless VpcContextQuery.returnAsymmetricSubnets is true
@Stability(value=Stable) @Nullable default String getVpcCidrBlock()
Default: - CIDR information not available
@Stability(value=Stable) @Nullable default String getVpnGatewayId()
@Stability(value=Stable) static VpcContextResponse.Builder builder()
VpcContextResponse.Builder of VpcContextResponseCopyright © 2022. All rights reserved.