Documentation
¶
Index ¶
- Constants
- type Change
- type ChangeBatch
- type ChangeResourceRecordSetsRequest
- type Client
- func (client *Client) ChangeResourceRecordSets(hostedZone string, changes []*Change) error
- func (client *Client) GetHostedZone(id string) (zone *HostedZone, e error)
- func (client *Client) ListHostedZones() (zones []*HostedZone, e error)
- func (client *Client) ListResourceRecordSets(id string) (rrs []*ResourceRecordSet, e error)
- type GetHostedZoneResponse
- type HostedZone
- type HttpResponse
- type ListHostedZonesResponse
- type ListResourceRecordSetsResponse
- type ResourceRecord
- type ResourceRecordSet
Constants ¶
View Source
const API_VERSION = "2012-12-12"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { Action string // CREATE or DELETE ResourceRecordSet *ResourceRecordSet }
type ChangeBatch ¶
type ChangeResourceRecordSetsRequest ¶
type ChangeResourceRecordSetsRequest struct { XMLName xml.Name `xml:"ChangeResourceRecordSetsRequest"` Xmlns string `xml:"xmlns,attr"` ChangeBatch *ChangeBatch `xml:"ChangeBatch"` }
func NewChangeResourceRecordSets ¶
func NewChangeResourceRecordSets(batch *ChangeBatch) *ChangeResourceRecordSetsRequest
type Client ¶
http://docs.aws.amazon.com/Route53/latest/APIReference/Welcome.html
func NewFromEnv ¶
func NewFromEnv() *Client
func (*Client) ChangeResourceRecordSets ¶
func (*Client) GetHostedZone ¶
func (client *Client) GetHostedZone(id string) (zone *HostedZone, e error)
func (*Client) ListHostedZones ¶
func (client *Client) ListHostedZones() (zones []*HostedZone, e error)
func (*Client) ListResourceRecordSets ¶
func (client *Client) ListResourceRecordSets(id string) (rrs []*ResourceRecordSet, e error)
type GetHostedZoneResponse ¶
type GetHostedZoneResponse struct { XMLName xml.Name `xml:"GetHostedZoneResponse"` HostedZone HostedZone `xml:"HostedZone"` NameServers []string `xml:"DelegationSet>NameServers>NameServer"` }
type HostedZone ¶
type HostedZone struct { Id string `xml:"Id"` Name string `xml:"Name"` CallerReference string `xml:"CallerReference"` ResourceRecordSetCount int `xml:"ResourceRecordSetCount"` }
func (*HostedZone) Code ¶
func (zone *HostedZone) Code() string
type HttpResponse ¶
type ListHostedZonesResponse ¶
type ListHostedZonesResponse struct { XMLName xml.Name `xml:"ListHostedZonesResponse"` IsTruncated bool `xml:"IsTruncated"` MaxItems int `xml:"MaxItems"` HostedZones []*HostedZone `xml:"HostedZones>HostedZone"` }
type ListResourceRecordSetsResponse ¶
type ListResourceRecordSetsResponse struct { XMLName xml.Name `xml:"ListResourceRecordSetsResponse"` ResourceRecordSets []*ResourceRecordSet `xml:"ResourceRecordSets>ResourceRecordSet"` }
type ResourceRecord ¶
type ResourceRecord struct {
Value string `xml:"Value"`
}
type ResourceRecordSet ¶
type ResourceRecordSet struct { Name string `xml:"Name"` Type string `xml:"Type"` TTL int `xml:"TTL"` HealthCheckId string `xml:"HealthCheckId,omitempty"` SetIdentifier string `xml:"SetIdentifier,omitempty"` Weight int `xml:"Weight,omitempty"` ResourceRecords []*ResourceRecord `xml:"ResourceRecords>ResourceRecord"` }
Click to show internal directories.
Click to hide internal directories.