API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type ListResourceRecordSetsInput struct { HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` StartRecordIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"` StartRecordName *string `location:"querystring" locationName:"name" type:"string"` StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"` }

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


Type: *string

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

HostedZoneId is a required field


Type: *string

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


Type: *string

Weighted resource record sets only: 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.


Type: *string

The first name in the lexicographic ordering of resource record sets that you want to list.


Type: *string

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:

  • CloudFront distribution: A or AAAA

  • Elastic Beanstalk environment that has a regionalized subdomain: A

  • ELB load balancer: A | AAAA

  • Amazon S3 bucket: 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.



func (s ListResourceRecordSetsInput) GoString() string

GoString returns the string representation


func (s *ListResourceRecordSetsInput) SetHostedZoneId(v string) *ListResourceRecordSetsInput

SetHostedZoneId sets the HostedZoneId field's value.


func (s *ListResourceRecordSetsInput) SetMaxItems(v string) *ListResourceRecordSetsInput

SetMaxItems sets the MaxItems field's value.


func (s *ListResourceRecordSetsInput) SetStartRecordIdentifier(v string) *ListResourceRecordSetsInput

SetStartRecordIdentifier sets the StartRecordIdentifier field's value.


func (s *ListResourceRecordSetsInput) SetStartRecordName(v string) *ListResourceRecordSetsInput

SetStartRecordName sets the StartRecordName field's value.


func (s *ListResourceRecordSetsInput) SetStartRecordType(v string) *ListResourceRecordSetsInput

SetStartRecordType sets the StartRecordType field's value.


func (s ListResourceRecordSetsInput) String() string

String returns the string representation


func (s *ListResourceRecordSetsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: