VpcContextQuery

class aws_cdk.cloud_assembly_schema.VpcContextQuery(*, account, filter, region, return_asymmetric_subnets=None, subnet_group_name_tag=None)

Bases: object

Query input for looking up a VPC.

Parameters
  • account (str) – Query account.

  • filter (Mapping[str, str]) – Filters to apply to the VPC. Filter parameters are the same as passed to DescribeVpcs.

  • region (str) – Query region.

  • return_asymmetric_subnets (Optional[bool]) – Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups. Default: false

  • subnet_group_name_tag (Optional[str]) – 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’

Attributes

account

Query account.

Return type

str

filter

Filters to apply to the VPC.

Filter parameters are the same as passed to DescribeVpcs.

See

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html

Return type

Mapping[str, str]

region

Query region.

Return type

str

return_asymmetric_subnets

Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups.

Default

false

Return type

Optional[bool]

subnet_group_name_tag

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’

Return type

Optional[str]