Documentation ¶
Overview ¶
The route53 package provides types and functions for interaction with the AWS Route53 service
Index ¶
- Constants
- func CleanChangeID(ID string) string
- func CleanZoneID(ID string) string
- func FQDN(name string) string
- type AliasTarget
- type Change
- type ChangeInfo
- type ChangeResourceRecordSetsRequest
- type ChangeResourceRecordSetsResponse
- type CreateHostedZoneRequest
- type CreateHostedZoneResponse
- type DelegationSet
- type DeleteHostedZoneResponse
- type GetChangeResponse
- type GetHostedZoneResponse
- type HostedZone
- type ListHostedZonesResponse
- type ListOpts
- type ListResourceRecordSetsResponse
- type ResourceRecordSet
- type Route53
- func (r *Route53) ChangeResourceRecordSets(zone string, req *ChangeResourceRecordSetsRequest) (*ChangeResourceRecordSetsResponse, error)
- func (r *Route53) CreateHostedZone(req *CreateHostedZoneRequest) (*CreateHostedZoneResponse, error)
- func (r *Route53) DeleteHostedZone(ID string) (*DeleteHostedZoneResponse, error)
- func (r *Route53) GetChange(ID string) (string, error)
- func (r *Route53) GetHostedZone(ID string) (*GetHostedZoneResponse, error)
- func (r *Route53) ListHostedZones(marker string, maxItems int) (*ListHostedZonesResponse, error)
- func (r *Route53) ListResourceRecordSets(zone string, lopts *ListOpts) (*ListResourceRecordSetsResponse, error)
Constants ¶
View Source
const APIVersion = "2013-04-01"
Variables ¶
This section is empty.
Functions ¶
func CleanChangeID ¶
CleanChangeID is used to remove the leading /change/
func CleanZoneID ¶
CleanZoneID is used to remove the leading /hostedzone/
Types ¶
type AliasTarget ¶
type Change ¶
type Change struct { Action string `xml:"Action"` Record ResourceRecordSet `xml:"ResourceRecordSet"` }
type ChangeInfo ¶
type ChangeResourceRecordSetsResponse ¶
type ChangeResourceRecordSetsResponse struct {
ChangeInfo ChangeInfo `xml:"ChangeInfo"`
}
type CreateHostedZoneRequest ¶
type CreateHostedZoneResponse ¶
type CreateHostedZoneResponse struct { HostedZone HostedZone `xml:"HostedZone"` ChangeInfo ChangeInfo `xml:"ChangeInfo"` DelegationSet DelegationSet `xml:"DelegationSet"` }
type DelegationSet ¶
type DelegationSet struct {
NameServers []string `xml:"NameServers>NameServer"`
}
type DeleteHostedZoneResponse ¶
type DeleteHostedZoneResponse struct {
ChangeInfo ChangeInfo `xml:"ChangeInfo"`
}
type GetChangeResponse ¶
type GetChangeResponse struct {
ChangeInfo ChangeInfo `xml:"ChangeInfo"`
}
type GetHostedZoneResponse ¶
type GetHostedZoneResponse struct { HostedZone HostedZone `xml:"HostedZone"` DelegationSet DelegationSet `xml:"DelegationSet"` }
type HostedZone ¶
type ListHostedZonesResponse ¶
type ListHostedZonesResponse struct { HostedZones []HostedZone `xml:"HostedZones>HostedZone"` Marker string `xml:"Marker"` IsTruncated bool `xml:"IsTruncated"` NextMarker string `xml:"NextMarker"` MaxItems int `xml:"MaxItems"` }
type ListResourceRecordSetsResponse ¶
type ListResourceRecordSetsResponse struct { Records []ResourceRecordSet `xml:"ResourceRecordSets>ResourceRecordSet"` IsTruncated bool `xml:"IsTruncated"` MaxItems int `xml:"MaxItems"` NextRecordName string `xml:"NextRecordName"` NextRecordType string `xml:"NextRecordType"` NextRecordIdentifier string `xml:"NextRecordIdentifier"` }
type ResourceRecordSet ¶
type ResourceRecordSet struct { Name string `xml:"Name"` Type string `xml:"Type"` TTL int `xml:"TTL"` Records []string `xml:"ResourceRecords>ResourceRecord>Value,omitempty"` SetIdentifier string `xml:"SetIdentifier,omitempty"` Weight int `xml:"Weight,omitempty"` HealthCheckId string `xml:"HealthCheckId,omitempty"` Region string `xml:"Region,omitempty"` Failover string `xml:"Failover,omitempty"` AliasTarget *AliasTarget `xml:"AliasTarget,omitempty"` RecordsXML string `xml:",innerxml"` }
type Route53 ¶
The Route53 type encapsulates operations operations with the route53 endpoint.
func NewWithClient ¶
func (*Route53) ChangeResourceRecordSets ¶
func (r *Route53) ChangeResourceRecordSets(zone string, req *ChangeResourceRecordSetsRequest) (*ChangeResourceRecordSetsResponse, error)
func (*Route53) CreateHostedZone ¶
func (r *Route53) CreateHostedZone(req *CreateHostedZoneRequest) (*CreateHostedZoneResponse, error)
CreateHostedZone is used to create a new hosted zone
func (*Route53) DeleteHostedZone ¶
func (r *Route53) DeleteHostedZone(ID string) (*DeleteHostedZoneResponse, error)
func (*Route53) GetHostedZone ¶
func (r *Route53) GetHostedZone(ID string) (*GetHostedZoneResponse, error)
func (*Route53) ListHostedZones ¶
func (r *Route53) ListHostedZones(marker string, maxItems int) (*ListHostedZonesResponse, error)
func (*Route53) ListResourceRecordSets ¶
func (r *Route53) ListResourceRecordSets(zone string, lopts *ListOpts) (*ListResourceRecordSetsResponse, error)
Click to show internal directories.
Click to hide internal directories.