libZSservicesZSamazonka-route53ZSamazonka-route53
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 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.
Synopsis

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

  • nextToken :: Maybe Text

    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.

  • maxItems :: Maybe Text

    (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.

  • vPCId :: Text

    The ID of the Amazon VPC that you want to list hosted zones for.

  • vPCRegion :: VPCRegion

    For the Amazon VPC that you specified for VPCId, the Amazon Web Services Region that you created the VPC in.

Instances

Instances details
Eq ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Read ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Show ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Generic ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Associated Types

type Rep ListHostedZonesByVPC :: Type -> Type #

NFData ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Methods

rnf :: ListHostedZonesByVPC -> () #

Hashable ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

AWSRequest ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Associated Types

type AWSResponse ListHostedZonesByVPC #

ToHeaders ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

ToPath ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

ToQuery ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

type Rep ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

type Rep ListHostedZonesByVPC = D1 ('MetaData "ListHostedZonesByVPC" "Amazonka.Route53.ListHostedZonesByVPC" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "ListHostedZonesByVPC'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "vPCId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vPCRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VPCRegion))))
type AWSResponse ListHostedZonesByVPC Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

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:

$sel:nextToken: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.

$sel:maxItems: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.

$sel:vPCId:ListHostedZonesByVPC', listHostedZonesByVPC_vPCId - The ID of the Amazon VPC that you want to list hosted zones for.

$sel:vPCRegion: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_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_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_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

  • nextToken :: Maybe Text

    The value that you will use for NextToken in the next ListHostedZonesByVPC request.

  • httpStatus :: Int

    The response's http status code.

  • hostedZoneSummaries :: [HostedZoneSummary]

    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.

  • maxItems :: Text

    The value that you specified for MaxItems in the most recent ListHostedZonesByVPC request.

Instances

Instances details
Eq ListHostedZonesByVPCResponse Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Read ListHostedZonesByVPCResponse Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Show ListHostedZonesByVPCResponse Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Generic ListHostedZonesByVPCResponse Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

Associated Types

type Rep ListHostedZonesByVPCResponse :: Type -> Type #

NFData ListHostedZonesByVPCResponse Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

type Rep ListHostedZonesByVPCResponse Source # 
Instance details

Defined in Amazonka.Route53.ListHostedZonesByVPC

type Rep ListHostedZonesByVPCResponse = D1 ('MetaData "ListHostedZonesByVPCResponse" "Amazonka.Route53.ListHostedZonesByVPC" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "ListHostedZonesByVPCResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "hostedZoneSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HostedZoneSummary]) :*: S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListHostedZonesByVPCResponse Source #

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:

$sel:nextToken: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.

$sel:maxItems: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_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.