Interface VpcContextQuery
- All Superinterfaces:
ContextLookupRoleOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcContextQuery.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:16.231Z")
@Stability(Stable)
public interface VpcContextQuery
extends software.amazon.jsii.JsiiSerializable, ContextLookupRoleOptions
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.cloud_assembly_schema.*;
Object assumeRoleAdditionalOptions;
VpcContextQuery vpcContextQuery = VpcContextQuery.builder()
.account("account")
.filter(Map.of(
"filterKey", "filter"))
.region("region")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.lookupRoleArn("lookupRoleArn")
.lookupRoleExternalId("lookupRoleExternalId")
.returnAsymmetricSubnets(false)
.returnVpnGateways(false)
.subnetGroupNameTag("subnetGroupNameTag")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpcContextQuerystatic final classAn implementation forVpcContextQuery -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcContextQuery.Builderbuilder()Filters to apply to the VPC.default BooleanWhether to populate the subnetGroups field of theVpcContextResponse, which contains potentially asymmetric subnet groups.default BooleanWhether to populate thevpnGatewayIdfield of theVpcContextResponse, which contains the VPN Gateway ID, if one exists.default StringOptional tag for subnet group name.Methods inherited from interface software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions
getAccount, getAssumeRoleAdditionalOptions, getLookupRoleArn, getLookupRoleExternalId, getRegionMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFilter
Filters to apply to the VPC.Filter parameters are the same as passed to DescribeVpcs.
- See Also:
-
getReturnAsymmetricSubnets
Whether to populate the subnetGroups field of theVpcContextResponse, which contains potentially asymmetric subnet groups.Default: false
-
getReturnVpnGateways
Whether to populate thevpnGatewayIdfield of theVpcContextResponse, 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
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
- Returns:
- a
VpcContextQuery.BuilderofVpcContextQuery
-