aws.route53.list_hosted_zones_by_vpc
Example SQL Queries
SELECT * FROMaws.route53.list_hosted_zones_by_vpcWHERE"vpc_id" = 'VALUE'AND "vpc_region" = 'VALUE';Description
Lists all the private hosted zones that a specified VPC is associated with, regardless of which Amazon Web Services account or Amazon Web Services service owns the hosted zones. The HostedZoneOwner structure in the response contains one of the following values:
An OwningAccount element, which contains the account number of either the current Amazon Web Services account or another Amazon Web Services account. Some services, such as Cloud Map, create hosted zones using the current account.
An OwningService element, which identifies the Amazon Web Services service that created and owns the hosted zone. For example, if a hosted zone was created by Amazon Elastic File System (Amazon EFS), the value of Owner is efs.amazonaws.com.
When listing private hosted zones, the hosted zone and the Amazon VPC must belong to the same partition where the hosted zones were created. A partition is a group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one partition.
The following are the supported partitions:
aws - Amazon Web Services Regions
aws-cn - China Regions
aws-us-gov - Amazon Web Services GovCloud (US) Region
For more information, see Access Management in the Amazon Web Services General Reference.
Table Definition
| Column Name | Column Data Type |
|---|---|
| vpc_id Required Input Column The ID of the Amazon VPC that you want to list hosted zones for. | VARCHAR |
| vpc_region Required Input Column For the Amazon VPC that you specified for VPCId, the Amazon Web Services Region that you created the VPC in. | VARCHAR |
| max_items Input Column The value that you specified for MaxItems in the most recent ListHostedZonesByVPC request. | VARCHAR |
| next_token Input Column The value that you will use for NextToken in the next ListHostedZonesByVPC request. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| hosted_zone_summaries A list that contains one HostedZoneSummary element for each hosted zone that the specified Amazon VPC is associated with. Each HostedZoneSummary element contains the hosted zone name and ID, and information about who owns the hosted zone. | STRUCT( |
Show child fields
| |