Skip to content

HostedZoneContextQuery

Query to hosted zone context provider.

Initializer

import ros_cdk_assembly_schema
ros_cdk_assembly_schema.HostedZoneContextQuery(
  account: str,
  domain_name: str,
  region: str,
  private_zone: bool = None,
  vpc_id: str = None
)

Properties

Name Type Description
account str Query account.
domain_name str The domain name e.g. example.com to lookup.
region str Query region.
private_zone bool True if the zone you want to find is a private hosted zone.
vpc_id str The VPC ID to that the private zone must be associated with.

accountRequired

account: str
  • Type: str

Query account.


domain_nameRequired

domain_name: str
  • Type: str

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


regionRequired

region: str
  • Type: str

Query region.


private_zoneOptional

private_zone: bool
  • Type: bool
  • Default: false

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


vpc_idOptional

vpc_id: str
  • Type: str
  • Default: Required if privateZone=true

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.