Skip to content

HostedZoneContextQuery

Query to hosted zone context provider.

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkassemblyschema"
&alicloudroscdkassemblyschema.HostedZoneContextQuery {
    Account: *string,
    DomainName: *string,
    Region: *string,
    PrivateZone: *bool,
    VpcId: *string,
}

Properties

Name Type Description
Account *string Query account.
DomainName *string The domain name e.g. example.com to lookup.
Region *string Query region.
PrivateZone *bool True if the zone you want to find is a private hosted zone.
VpcId *string The VPC ID to that the private zone must be associated with.

AccountRequired

Account *string
  • Type: *string

Query account.


DomainNameRequired

DomainName *string
  • Type: *string

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


RegionRequired

Region *string
  • Type: *string

Query region.


PrivateZoneOptional

PrivateZone *bool
  • Type: *bool
  • Default: false

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


VpcIdOptional

VpcId *string
  • Type: *string
  • 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.