Interface VpcContextResponse

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
VpcContextResponse.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:54.730Z") @Stability(Stable) public interface VpcContextResponse extends software.amazon.jsii.JsiiSerializable
Properties of a discovered VPC.

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();
 
  • Method Details

    • getAvailabilityZones

      @Stability(Stable) @NotNull List<String> getAvailabilityZones()
      AZs.
    • getVpcId

      @Stability(Stable) @NotNull String getVpcId()
      VPC id.
    • getIsolatedSubnetIds

      @Stability(Stable) @Nullable default List<String> getIsolatedSubnetIds()
      IDs of all isolated subnets.

      Element count: #(availabilityZones) · #(isolatedGroups)

    • getIsolatedSubnetNames

      @Stability(Stable) @Nullable default List<String> getIsolatedSubnetNames()
      Name of isolated subnet groups.

      Element count: #(isolatedGroups)

    • getIsolatedSubnetRouteTableIds

      @Stability(Stable) @Nullable default List<String> getIsolatedSubnetRouteTableIds()
      Route Table IDs of isolated subnet groups.

      Element count: #(availabilityZones) · #(isolatedGroups)

    • getPrivateSubnetIds

      @Stability(Stable) @Nullable default List<String> getPrivateSubnetIds()
      IDs of all private subnets.

      Element count: #(availabilityZones) · #(privateGroups)

    • getPrivateSubnetNames

      @Stability(Stable) @Nullable default List<String> getPrivateSubnetNames()
      Name of private subnet groups.

      Element count: #(privateGroups)

    • getPrivateSubnetRouteTableIds

      @Stability(Stable) @Nullable default List<String> getPrivateSubnetRouteTableIds()
      Route Table IDs of private subnet groups.

      Element count: #(availabilityZones) · #(privateGroups)

    • getPublicSubnetIds

      @Stability(Stable) @Nullable default List<String> getPublicSubnetIds()
      IDs of all public subnets.

      Element count: #(availabilityZones) · #(publicGroups)

    • getPublicSubnetNames

      @Stability(Stable) @Nullable default List<String> getPublicSubnetNames()
      Name of public subnet groups.

      Element count: #(publicGroups)

    • getPublicSubnetRouteTableIds

      @Stability(Stable) @Nullable default List<String> getPublicSubnetRouteTableIds()
      Route Table IDs of public subnet groups.

      Element count: #(availabilityZones) · #(publicGroups)

    • getSubnetGroups

      @Stability(Stable) @Nullable default List<VpcSubnetGroup> 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

      invalid @link
      VpcContextQuery.returnAsymmetricSubnets
      is true.

      Default: - no subnet groups will be returned unless

      invalid @link
      VpcContextQuery.returnAsymmetricSubnets
      is true
    • getVpcCidrBlock

      @Stability(Stable) @Nullable default String getVpcCidrBlock()
      VPC cidr.

      Default: - CIDR information not available

    • getVpnGatewayId

      @Stability(Stable) @Nullable default String getVpnGatewayId()
      The VPN gateway ID.
    • builder

      @Stability(Stable) static VpcContextResponse.Builder builder()
      Returns:
      a VpcContextResponse.Builder of VpcContextResponse