Documentation ¶
Index ¶
Constants ¶
const (
// XMLNs XML NS of Route53.
XMLNs = "https://route53.amazonaws.com/doc/2012-12-12/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { Action string `xml:"Action"` ResourceRecordSet ResourceRecordSet `xml:"ResourceRecordSet"` }
Change is the information for each resource record set that you want to change.
type ChangeBatch ¶
ChangeBatch is the information for a change request.
type ChangeInfo ¶
type ChangeInfo struct { ID string `xml:"Id"` Status string `xml:"Status"` SubmittedAt string `xml:"SubmittedAt"` }
ChangeInfo is A complex type that describes change information about changes made to your hosted zone.
type ChangeResourceRecordSetsRequest ¶
type ChangeResourceRecordSetsRequest struct { XMLNs string `xml:"xmlns,attr"` ChangeBatch ChangeBatch `xml:"ChangeBatch"` }
ChangeResourceRecordSetsRequest is a complex type that contains change information for the resource record set.
type ChangeResourceRecordSetsResponse ¶
type ChangeResourceRecordSetsResponse struct {
ChangeInfo ChangeInfo `xml:"ChangeInfo"`
}
ChangeResourceRecordSetsResponse is a complex type containing the response for the request.
type Client ¶
type Client struct { BaseURL *url.URL HTTPClient *http.Client // contains filtered or unexported fields }
Client the API client for NIFCLOUD DNS.
func (*Client) ChangeResourceRecordSets ¶
func (c *Client) ChangeResourceRecordSets(ctx context.Context, hostedZoneID string, input ChangeResourceRecordSetsRequest) (*ChangeResourceRecordSetsResponse, error)
ChangeResourceRecordSets Call ChangeResourceRecordSets API and return response.
type Error ¶ added in v1.0.6
type ErrorResponse ¶
ErrorResponse is the information for any errors.
type GetChangeResponse ¶
type GetChangeResponse struct {
ChangeInfo ChangeInfo `xml:"ChangeInfo"`
}
GetChangeResponse is a complex type that contains the ChangeInfo element.
type ResourceRecord ¶
type ResourceRecord struct {
Value string `xml:"Value"`
}
ResourceRecord is the information specific to the resource record.
type ResourceRecordSet ¶
type ResourceRecordSet struct { Name string `xml:"Name"` Type string `xml:"Type"` TTL int `xml:"TTL"` ResourceRecords ResourceRecords `xml:"ResourceRecords"` }
ResourceRecordSet is the information about the resource record set to create or delete.
type ResourceRecords ¶
type ResourceRecords struct {
ResourceRecord []ResourceRecord `xml:"ResourceRecord"`
}
ResourceRecords is array of ResourceRecord.