HostedZoneContextQuery

class aws_cdk.cloud_assembly_schema.HostedZoneContextQuery(*, account, domain_name, region, private_zone=None, vpc_id=None)

Bases: object

Query to hosted zone context provider.

Parameters
  • account (str) – Query account.

  • domain_name (str) – The domain name e.g. example.com to lookup.

  • region (str) – Query region.

  • private_zone (Optional[bool]) – True if the zone you want to find is a private hosted zone. Default: false

  • vpc_id (Optional[str]) – The VPC ID to that the private zone must be associated with. If you provide VPC ID and privateZone is false, this will return no results and raise an error. Default: - Required if privateZone=true

Attributes

account

Query account.

Return type

str

domain_name

The domain name e.g. example.com to lookup.

Return type

str

private_zone

True if the zone you want to find is a private hosted zone.

Default

false

Return type

Optional[bool]

region

Query region.

Return type

str

vpc_id

The VPC ID to that the private zone must be associated with.

If you provide VPC ID and privateZone is false, this will return no results and raise an error.

Default
  • Required if privateZone=true

Return type

Optional[str]