list_hosted_zones_by_vpc — Boto3 Docs 1.26.93 documentation
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:
Note
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 Regionsaws-cn- China Regionsaws-us-gov- Amazon Web Services GovCloud (US) Region
For more information, see Access Management in the Amazon Web Services General Reference .