Interface VpcContextQuery

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:26.108Z") @Stability(Stable) public interface VpcContextQuery extends software.amazon.jsii.JsiiSerializable
Query input for looking up a 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.cloudassembly.schema.*;
 VpcContextQuery vpcContextQuery = VpcContextQuery.builder()
         .account("account")
         .filter(Map.of(
                 "filterKey", "filter"))
         .region("region")
         // the properties below are optional
         .lookupRoleArn("lookupRoleArn")
         .returnAsymmetricSubnets(false)
         .returnVpnGateways(false)
         .subnetGroupNameTag("subnetGroupNameTag")
         .build();
 
  • Method Details

    • getAccount

      @Stability(Stable) @NotNull String getAccount()
      Query account.
    • getFilter

      @Stability(Stable) @NotNull Map<String,String> getFilter()
      Filters to apply to the VPC.

      Filter parameters are the same as passed to DescribeVpcs.

      See Also:
    • getRegion

      @Stability(Stable) @NotNull String getRegion()
      Query region.
    • getLookupRoleArn

      @Stability(Stable) @Nullable default String getLookupRoleArn()
      The ARN of the role that should be used to look up the missing values.

      Default: - None

    • getReturnAsymmetricSubnets

      @Stability(Stable) @Nullable default Boolean getReturnAsymmetricSubnets()
      Whether to populate the subnetGroups field of the VpcContextResponse, which contains potentially asymmetric subnet groups.

      Default: false

    • getReturnVpnGateways

      @Stability(Stable) @Nullable default Boolean getReturnVpnGateways()
      Whether to populate the vpnGatewayId field of the VpcContextResponse, which contains the VPN Gateway ID, if one exists.

      You can explicitly disable this in order to avoid the lookup if you know the VPC does not have a VPN Gatway attached.

      Default: true

    • getSubnetGroupNameTag

      @Stability(Stable) @Nullable default String getSubnetGroupNameTag()
      Optional tag for subnet group name.

      If not provided, we'll look at the aws-cdk:subnet-name tag. If the subnet does not have the specified tag, we'll use its type as the name.

      Default: 'aws-cdk:subnet-name'

    • builder

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