| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Route53.ListHostedZonesByVPC
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
OwningAccountelement, 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
OwningServiceelement, 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 ofOwnerisefs.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 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.
Synopsis
- data ListHostedZonesByVPC = ListHostedZonesByVPC' {}
- newListHostedZonesByVPC :: Text -> VPCRegion -> ListHostedZonesByVPC
- listHostedZonesByVPC_maxItems :: Lens' ListHostedZonesByVPC (Maybe Text)
- listHostedZonesByVPC_nextToken :: Lens' ListHostedZonesByVPC (Maybe Text)
- listHostedZonesByVPC_vPCId :: Lens' ListHostedZonesByVPC Text
- listHostedZonesByVPC_vPCRegion :: Lens' ListHostedZonesByVPC VPCRegion
- data ListHostedZonesByVPCResponse = ListHostedZonesByVPCResponse' {}
- newListHostedZonesByVPCResponse :: Int -> Text -> ListHostedZonesByVPCResponse
- listHostedZonesByVPCResponse_nextToken :: Lens' ListHostedZonesByVPCResponse (Maybe Text)
- listHostedZonesByVPCResponse_httpStatus :: Lens' ListHostedZonesByVPCResponse Int
- listHostedZonesByVPCResponse_hostedZoneSummaries :: Lens' ListHostedZonesByVPCResponse [HostedZoneSummary]
- listHostedZonesByVPCResponse_maxItems :: Lens' ListHostedZonesByVPCResponse Text
Creating a Request
data ListHostedZonesByVPC Source #
Lists all the private hosted zones that a specified VPC is associated with, regardless of which Amazon Web Services account created the hosted zones.
See: newListHostedZonesByVPC smart constructor.
Constructors
| ListHostedZonesByVPC' | |
Fields
| |
Instances
newListHostedZonesByVPC Source #
Create a value of ListHostedZonesByVPC with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListHostedZonesByVPC, listHostedZonesByVPC_maxItems - (Optional) The maximum number of hosted zones that you want Amazon Route
53 to return. If the specified VPC is associated with more than
MaxItems hosted zones, the response includes a NextToken element.
NextToken contains an encrypted token that identifies the first hosted
zone that Route 53 will return if you submit another request.
ListHostedZonesByVPC, listHostedZonesByVPC_nextToken - If the previous response included a NextToken element, the specified
VPC is associated with more hosted zones. To get more hosted zones,
submit another ListHostedZonesByVPC request.
For the value of NextToken, specify the value of NextToken from the
previous response.
If the previous response didn't include a NextToken element, there
are no more hosted zones to get.
ListHostedZonesByVPC, listHostedZonesByVPC_vPCId - The ID of the Amazon VPC that you want to list hosted zones for.
ListHostedZonesByVPC, listHostedZonesByVPC_vPCRegion - For the Amazon VPC that you specified for VPCId, the Amazon Web
Services Region that you created the VPC in.
Request Lenses
listHostedZonesByVPC_maxItems :: Lens' ListHostedZonesByVPC (Maybe Text) Source #
(Optional) The maximum number of hosted zones that you want Amazon Route
53 to return. If the specified VPC is associated with more than
MaxItems hosted zones, the response includes a NextToken element.
NextToken contains an encrypted token that identifies the first hosted
zone that Route 53 will return if you submit another request.
listHostedZonesByVPC_nextToken :: Lens' ListHostedZonesByVPC (Maybe Text) Source #
If the previous response included a NextToken element, the specified
VPC is associated with more hosted zones. To get more hosted zones,
submit another ListHostedZonesByVPC request.
For the value of NextToken, specify the value of NextToken from the
previous response.
If the previous response didn't include a NextToken element, there
are no more hosted zones to get.
listHostedZonesByVPC_vPCId :: Lens' ListHostedZonesByVPC Text Source #
The ID of the Amazon VPC that you want to list hosted zones for.
listHostedZonesByVPC_vPCRegion :: Lens' ListHostedZonesByVPC VPCRegion Source #
For the Amazon VPC that you specified for VPCId, the Amazon Web
Services Region that you created the VPC in.
Destructuring the Response
data ListHostedZonesByVPCResponse Source #
See: newListHostedZonesByVPCResponse smart constructor.
Constructors
| ListHostedZonesByVPCResponse' | |
Fields
| |
Instances
newListHostedZonesByVPCResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> ListHostedZonesByVPCResponse |
Create a value of ListHostedZonesByVPCResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListHostedZonesByVPC, listHostedZonesByVPCResponse_nextToken - The value that you will use for NextToken in the next
ListHostedZonesByVPC request.
$sel:httpStatus:ListHostedZonesByVPCResponse', listHostedZonesByVPCResponse_httpStatus - The response's http status code.
$sel:hostedZoneSummaries:ListHostedZonesByVPCResponse', listHostedZonesByVPCResponse_hostedZoneSummaries - 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.
ListHostedZonesByVPC, listHostedZonesByVPCResponse_maxItems - The value that you specified for MaxItems in the most recent
ListHostedZonesByVPC request.
Response Lenses
listHostedZonesByVPCResponse_nextToken :: Lens' ListHostedZonesByVPCResponse (Maybe Text) Source #
The value that you will use for NextToken in the next
ListHostedZonesByVPC request.
listHostedZonesByVPCResponse_httpStatus :: Lens' ListHostedZonesByVPCResponse Int Source #
The response's http status code.
listHostedZonesByVPCResponse_hostedZoneSummaries :: Lens' ListHostedZonesByVPCResponse [HostedZoneSummary] Source #
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.
listHostedZonesByVPCResponse_maxItems :: Lens' ListHostedZonesByVPCResponse Text Source #
The value that you specified for MaxItems in the most recent
ListHostedZonesByVPC request.