Interface VpcContextQuery
-
- All Superinterfaces:
ContextLookupRoleOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcContextQuery.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)", date="2025-11-06T20:25:05.802Z") @Stability(Stable) public interface VpcContextQuery extends software.amazon.jsii.JsiiSerializable, ContextLookupRoleOptions
Query input for looking up a VPC.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classVpcContextQuery.BuilderA builder forVpcContextQuerystatic classVpcContextQuery.Jsii$ProxyAn implementation forVpcContextQuery
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static VpcContextQuery.Builderbuilder()Map<String,String>getFilter()Filters to apply to the VPC.default BooleangetReturnAsymmetricSubnets()Whether to populate the subnetGroups field of theVpcContextResponse, which contains potentially asymmetric subnet groups.default BooleangetReturnVpnGateways()Whether to populate thevpnGatewayIdfield of theVpcContextResponse, which contains the VPN Gateway ID, if one exists.default StringgetSubnetGroupNameTag()Optional tag for subnet group name.-
Methods inherited from interface software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions
getAccount, getAssumeRoleAdditionalOptions, getLookupRoleArn, getLookupRoleExternalId, getRegion
-
-
-
-
Method Detail
-
getFilter
@Stability(Stable) @NotNull Map<String,String> getFilter()
Filters to apply to the VPC.Filter parameters are the same as passed to DescribeVpcs.
-
getReturnAsymmetricSubnets
@Stability(Stable) @Nullable default Boolean getReturnAsymmetricSubnets()
Whether to populate the subnetGroups field of theVpcContextResponse, which contains potentially asymmetric subnet groups.Default: false
-
getReturnVpnGateways
@Stability(Stable) @Nullable default Boolean 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
@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.BuilderofVpcContextQuery
-
-