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

Description

Lists the resource record sets in a specified hosted zone.

ListResourceRecordSets returns up to 300 resource record sets at a time in ASCII order, beginning at a position specified by the name and type elements.

Sort order

ListResourceRecordSets sorts results first by DNS name with the labels reversed, for example:

com.example.www.

Note the trailing dot, which can change the sort order when the record name contains characters that appear before . (decimal 46) in the ASCII table. These characters include the following: ! " # $ % & ' ( ) * + , -

When multiple records have the same DNS name, ListResourceRecordSets sorts results by the record type.

Specifying where to start listing records

You can use the name and type elements to specify the resource record set that the list begins with:

If you do not specify Name or Type
The results begin with the first resource record set that the hosted zone contains.
If you specify Name but not Type
The results begin with the first resource record set in the list whose name is greater than or equal to Name.
If you specify Type but not Name
Amazon Route 53 returns the InvalidInput error.
If you specify both Name and Type
The results begin with the first resource record set in the list whose name is greater than or equal to Name, and whose type is greater than or equal to Type.

Resource record sets that are PENDING

This action returns the most current version of the records. This includes records that are PENDING, and that are not yet available on all Route 53 DNS servers.

Changing resource record sets

To ensure that you get an accurate listing of the resource record sets for a hosted zone at a point in time, do not submit a ChangeResourceRecordSets request while you're paging through the results of a ListResourceRecordSets request. If you do, some pages may display results without the latest changes while other pages display results with the latest changes.

Displaying the next page of results

If a ListResourceRecordSets command returns more than one page of results, the value of IsTruncated is true. To display the next page of results, get the values of NextRecordName, NextRecordType, and NextRecordIdentifier (if any) from the response. Then submit another ListResourceRecordSets request, and specify those values for StartRecordName, StartRecordType, and StartRecordIdentifier.

This operation returns paginated results.

Synopsis

Creating a Request

data ListResourceRecordSets Source #

A request for the resource record sets that are associated with a specified hosted zone.

See: newListResourceRecordSets smart constructor.

Constructors

ListResourceRecordSets' 

Fields

  • startRecordName :: Maybe Text

    The first name in the lexicographic ordering of resource record sets that you want to list. If the specified record name doesn't exist, the results begin with the first resource record set that has a name greater than the value of name.

  • startRecordType :: Maybe RRType

    The type of resource record set to begin the record listing from.

    Valid values for basic resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

    Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT

    Values for alias resource record sets:

    • API Gateway custom regional API or edge-optimized API: A
    • CloudFront distribution: A or AAAA
    • Elastic Beanstalk environment that has a regionalized subdomain: A
    • Elastic Load Balancing load balancer: A | AAAA
    • S3 bucket: A
    • VPC interface VPC endpoint: A
    • Another resource record set in this hosted zone: The type of the resource record set that the alias references.

    Constraint: Specifying type without specifying name returns an InvalidInput error.

  • startRecordIdentifier :: Maybe Text

    Resource record sets that have a routing policy other than simple: If results were truncated for a given DNS name and type, specify the value of NextRecordIdentifier from the previous response to get the next resource record set that has the current DNS name and type.

  • maxItems :: Maybe Text

    (Optional) The maximum number of resource records sets to include in the response body for this request. If the response includes more than maxitems resource record sets, the value of the IsTruncated element in the response is true, and the values of the NextRecordName and NextRecordType elements in the response identify the first resource record set in the next group of maxitems resource record sets.

  • hostedZoneId :: ResourceId

    The ID of the hosted zone that contains the resource record sets that you want to list.

Instances

Instances details
Eq ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Read ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Show ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Generic ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Associated Types

type Rep ListResourceRecordSets :: Type -> Type #

NFData ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Methods

rnf :: ListResourceRecordSets -> () #

Hashable ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

AWSPager ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

AWSRequest ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Associated Types

type AWSResponse ListResourceRecordSets #

ToHeaders ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

ToPath ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

ToQuery ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

type Rep ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

type Rep ListResourceRecordSets = D1 ('MetaData "ListResourceRecordSets" "Amazonka.Route53.ListResourceRecordSets" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "ListResourceRecordSets'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "startRecordName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "startRecordType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RRType))) :*: (S1 ('MetaSel ('Just "startRecordIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "hostedZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceId)))))
type AWSResponse ListResourceRecordSets Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

newListResourceRecordSets Source #

Create a value of ListResourceRecordSets 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:startRecordName:ListResourceRecordSets', listResourceRecordSets_startRecordName - The first name in the lexicographic ordering of resource record sets that you want to list. If the specified record name doesn't exist, the results begin with the first resource record set that has a name greater than the value of name.

$sel:startRecordType:ListResourceRecordSets', listResourceRecordSets_startRecordType - The type of resource record set to begin the record listing from.

Valid values for basic resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT

Values for alias resource record sets:

  • API Gateway custom regional API or edge-optimized API: A
  • CloudFront distribution: A or AAAA
  • Elastic Beanstalk environment that has a regionalized subdomain: A
  • Elastic Load Balancing load balancer: A | AAAA
  • S3 bucket: A
  • VPC interface VPC endpoint: A
  • Another resource record set in this hosted zone: The type of the resource record set that the alias references.

Constraint: Specifying type without specifying name returns an InvalidInput error.

$sel:startRecordIdentifier:ListResourceRecordSets', listResourceRecordSets_startRecordIdentifier - Resource record sets that have a routing policy other than simple: If results were truncated for a given DNS name and type, specify the value of NextRecordIdentifier from the previous response to get the next resource record set that has the current DNS name and type.

$sel:maxItems:ListResourceRecordSets', listResourceRecordSets_maxItems - (Optional) The maximum number of resource records sets to include in the response body for this request. If the response includes more than maxitems resource record sets, the value of the IsTruncated element in the response is true, and the values of the NextRecordName and NextRecordType elements in the response identify the first resource record set in the next group of maxitems resource record sets.

$sel:hostedZoneId:ListResourceRecordSets', listResourceRecordSets_hostedZoneId - The ID of the hosted zone that contains the resource record sets that you want to list.

Request Lenses

listResourceRecordSets_startRecordName :: Lens' ListResourceRecordSets (Maybe Text) Source #

The first name in the lexicographic ordering of resource record sets that you want to list. If the specified record name doesn't exist, the results begin with the first resource record set that has a name greater than the value of name.

listResourceRecordSets_startRecordType :: Lens' ListResourceRecordSets (Maybe RRType) Source #

The type of resource record set to begin the record listing from.

Valid values for basic resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT

Values for alias resource record sets:

  • API Gateway custom regional API or edge-optimized API: A
  • CloudFront distribution: A or AAAA
  • Elastic Beanstalk environment that has a regionalized subdomain: A
  • Elastic Load Balancing load balancer: A | AAAA
  • S3 bucket: A
  • VPC interface VPC endpoint: A
  • Another resource record set in this hosted zone: The type of the resource record set that the alias references.

Constraint: Specifying type without specifying name returns an InvalidInput error.

listResourceRecordSets_startRecordIdentifier :: Lens' ListResourceRecordSets (Maybe Text) Source #

Resource record sets that have a routing policy other than simple: If results were truncated for a given DNS name and type, specify the value of NextRecordIdentifier from the previous response to get the next resource record set that has the current DNS name and type.

listResourceRecordSets_maxItems :: Lens' ListResourceRecordSets (Maybe Text) Source #

(Optional) The maximum number of resource records sets to include in the response body for this request. If the response includes more than maxitems resource record sets, the value of the IsTruncated element in the response is true, and the values of the NextRecordName and NextRecordType elements in the response identify the first resource record set in the next group of maxitems resource record sets.

listResourceRecordSets_hostedZoneId :: Lens' ListResourceRecordSets ResourceId Source #

The ID of the hosted zone that contains the resource record sets that you want to list.

Destructuring the Response

data ListResourceRecordSetsResponse Source #

A complex type that contains list information for the resource record set.

See: newListResourceRecordSetsResponse smart constructor.

Constructors

ListResourceRecordSetsResponse' 

Fields

  • nextRecordType :: Maybe RRType

    If the results were truncated, the type of the next record in the list.

    This element is present only if IsTruncated is true.

  • nextRecordName :: Maybe Text

    If the results were truncated, the name of the next record in the list.

    This element is present only if IsTruncated is true.

  • nextRecordIdentifier :: Maybe Text

    Resource record sets that have a routing policy other than simple: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

    For information about routing policies, see Choosing a Routing Policy in the Amazon Route 53 Developer Guide.

  • httpStatus :: Int

    The response's http status code.

  • resourceRecordSets :: [ResourceRecordSet]

    Information about multiple resource record sets.

  • isTruncated :: Bool

    A flag that indicates whether more resource record sets remain to be listed. If your results were truncated, you can make a follow-up pagination request by using the NextRecordName element.

  • maxItems :: Text

    The maximum number of records you requested.

Instances

Instances details
Eq ListResourceRecordSetsResponse Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Read ListResourceRecordSetsResponse Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Show ListResourceRecordSetsResponse Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Generic ListResourceRecordSetsResponse Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

Associated Types

type Rep ListResourceRecordSetsResponse :: Type -> Type #

NFData ListResourceRecordSetsResponse Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

type Rep ListResourceRecordSetsResponse Source # 
Instance details

Defined in Amazonka.Route53.ListResourceRecordSets

type Rep ListResourceRecordSetsResponse = D1 ('MetaData "ListResourceRecordSetsResponse" "Amazonka.Route53.ListResourceRecordSets" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "ListResourceRecordSetsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextRecordType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RRType)) :*: (S1 ('MetaSel ('Just "nextRecordName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextRecordIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "resourceRecordSets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ResourceRecordSet])) :*: (S1 ('MetaSel ('Just "isTruncated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newListResourceRecordSetsResponse Source #

Create a value of ListResourceRecordSetsResponse 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:nextRecordType:ListResourceRecordSetsResponse', listResourceRecordSetsResponse_nextRecordType - If the results were truncated, the type of the next record in the list.

This element is present only if IsTruncated is true.

$sel:nextRecordName:ListResourceRecordSetsResponse', listResourceRecordSetsResponse_nextRecordName - If the results were truncated, the name of the next record in the list.

This element is present only if IsTruncated is true.

$sel:nextRecordIdentifier:ListResourceRecordSetsResponse', listResourceRecordSetsResponse_nextRecordIdentifier - Resource record sets that have a routing policy other than simple: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

For information about routing policies, see Choosing a Routing Policy in the Amazon Route 53 Developer Guide.

$sel:httpStatus:ListResourceRecordSetsResponse', listResourceRecordSetsResponse_httpStatus - The response's http status code.

$sel:resourceRecordSets:ListResourceRecordSetsResponse', listResourceRecordSetsResponse_resourceRecordSets - Information about multiple resource record sets.

$sel:isTruncated:ListResourceRecordSetsResponse', listResourceRecordSetsResponse_isTruncated - A flag that indicates whether more resource record sets remain to be listed. If your results were truncated, you can make a follow-up pagination request by using the NextRecordName element.

$sel:maxItems:ListResourceRecordSets', listResourceRecordSetsResponse_maxItems - The maximum number of records you requested.

Response Lenses

listResourceRecordSetsResponse_nextRecordType :: Lens' ListResourceRecordSetsResponse (Maybe RRType) Source #

If the results were truncated, the type of the next record in the list.

This element is present only if IsTruncated is true.

listResourceRecordSetsResponse_nextRecordName :: Lens' ListResourceRecordSetsResponse (Maybe Text) Source #

If the results were truncated, the name of the next record in the list.

This element is present only if IsTruncated is true.

listResourceRecordSetsResponse_nextRecordIdentifier :: Lens' ListResourceRecordSetsResponse (Maybe Text) Source #

Resource record sets that have a routing policy other than simple: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

For information about routing policies, see Choosing a Routing Policy in the Amazon Route 53 Developer Guide.

listResourceRecordSetsResponse_isTruncated :: Lens' ListResourceRecordSetsResponse Bool Source #

A flag that indicates whether more resource record sets remain to be listed. If your results were truncated, you can make a follow-up pagination request by using the NextRecordName element.