HostedZoneContextQuery
Query to hosted zone context provider.
Initializer
using AlibabaCloud.SDK.ROS.CDK.Assembly.Schema;
new HostedZoneContextQuery {
string Account,
string DomainName,
string Region,
bool PrivateZone = null,
string VpcId = null
};
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
public string Account { get; set; }
- Type: string
Query account.
DomainNameRequired
public string DomainName { get; set; }
- Type: string
The domain name e.g. example.com to lookup.
RegionRequired
public string Region { get; set; }
- Type: string
Query region.
PrivateZoneOptional
public bool PrivateZone { get; set; }
- Type: bool
- Default: false
True if the zone you want to find is a private hosted zone.
VpcIdOptional
public string VpcId { get; set; }
- 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.