Documentation ¶
Index ¶
- type AliasResourceRecordSet
- type AliasTarget
- type BasicResourceRecordSet
- type Change
- type ChangeInfo
- type ChangeResourceRecordSetsRequest
- type ChangeResourceRecordSetsResponse
- type Config
- type CreateHostedZoneRequest
- type CreateHostedZoneResponse
- type DelegationSet
- type DeleteHostedZoneResponse
- type GetHostedZoneResponse
- type HostedZone
- type HostedZoneConfig
- type ListHostedZonesResponse
- type NameServers
- type ResourceRecordSet
- type ResourceRecordValue
- type Route53
- func (r *Route53) ChangeResourceRecordSet(req *ChangeResourceRecordSetsRequest, zoneId string) (*ChangeResourceRecordSetsResponse, error)
- func (r *Route53) CreateHostedZone(hostedZoneReq *CreateHostedZoneRequest) (*CreateHostedZoneResponse, error)
- func (r *Route53) DeleteHostedZone(id string) (result *DeleteHostedZoneResponse, err error)
- func (r *Route53) GetHostedZone(id string) (result *GetHostedZoneResponse, err error)
- func (r *Route53) ListHostedZones(marker string, maxItems int) (result *ListHostedZonesResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasResourceRecordSet ¶
type AliasResourceRecordSet struct { Action string `xml:"Action"` Name string `xml:"ResourceRecordSet>Name"` Type string `xml:"ResourceRecordSet>Type"` AliasTarget AliasTarget `xml:"ResourceRecordSet>AliasTarget"` HealthCheckId string `xml:"ResourceRecordSet>HealthCheckId,omitempty"` }
Alias Resource Record Set
type AliasTarget ¶
type BasicResourceRecordSet ¶
type BasicResourceRecordSet struct { Action string `xml:"Action"` Name string `xml:"ResourceRecordSet>Name"` Type string `xml:"ResourceRecordSet>Type"` TTL int `xml:"ResourceRecordSet>TTL,omitempty"` Values []ResourceRecordValue `xml:"ResourceRecordSet>ResourceRecords>ResourceRecord"` HealthCheckId string `xml:"ResourceRecordSet>HealthCheckId,omitempty"` }
Basic Resource Recod Set
type Change ¶
type Change struct { Action string `xml:"Action"` Name string `xml:"ResourceRecordSet>Name"` Type string `xml:"ResourceRecordSet>Type"` TTL int `xml:"ResourceRecordSet>TTL,omitempty"` Values []ResourceRecordValue `xml:"ResourceRecordSet>ResourceRecords>ResourceRecord"` HealthCheckId string `xml:"ResourceRecordSet>HealthCheckId,omitempty"` }
Basic Change
type ChangeInfo ¶
type ChangeResourceRecordSetsRequest ¶
type ChangeResourceRecordSetsRequest struct { XMLName xml.Name `xml:"ChangeResourceRecordSetsRequest"` Xmlns string `xml:"xmlns,attr"` Changes []ResourceRecordSet `xml:"ChangeBatch>Changes>Change"` }
type CreateHostedZoneRequest ¶
type CreateHostedZoneRequest struct { XMLName xml.Name `xml:"CreateHostedZoneRequest"` Xmlns string `xml:"xmlns,attr"` Name string CallerReference string HostedZoneConfig HostedZoneConfig }
Structs for Creating a New Host
type CreateHostedZoneResponse ¶
type CreateHostedZoneResponse struct { XMLName xml.Name `xml:"CreateHostedZoneResponse"` HostedZone HostedZone ChangeInfo ChangeInfo DelegationSet DelegationSet }
type DelegationSet ¶
type DelegationSet struct { XMLName xml.Name `xml:"DelegationSet` NameServers NameServers }
type DeleteHostedZoneResponse ¶
type DeleteHostedZoneResponse struct { XMLName xml.Name `xml:"DeleteHostedZoneResponse"` Xmlns string `xml:"xmlns,attr"` ChangeInfo ChangeInfo }
type GetHostedZoneResponse ¶
type GetHostedZoneResponse struct { XMLName xml.Name `xml:"GetHostedZoneResponse"` HostedZone HostedZone DelegationSet DelegationSet }
type HostedZone ¶
type HostedZone struct { XMLName xml.Name `xml:"HostedZone"` Id string Name string CallerReference string Config Config ResourceRecordSetCount int }
General Structs used in all types of requests
type HostedZoneConfig ¶
type ListHostedZonesResponse ¶
type ListHostedZonesResponse struct { XMLName xml.Name `xml:"ListHostedZonesResponse"` HostedZones []HostedZone `xml:"HostedZones>HostedZone"` Marker string IsTruncated bool NextMarker string MaxItems int }
Structs for getting the existing Hosted Zones
type NameServers ¶
type ResourceRecordSet ¶
type ResourceRecordSet interface{}
Wrapper for all the different resource record sets
type ResourceRecordValue ¶
type ResourceRecordValue struct {
Value string `xml:"Value"`
}
type Route53 ¶
type Route53 struct { Auth *aws.Auth Endpoint string Signer *aws.Route53Signer Service *aws.Service }
func (*Route53) ChangeResourceRecordSet ¶
func (r *Route53) ChangeResourceRecordSet(req *ChangeResourceRecordSetsRequest, zoneId string) (*ChangeResourceRecordSetsResponse, error)
ChangeResourceRecordSet send a change resource record request to the AWS Route53 API
func (*Route53) CreateHostedZone ¶
func (r *Route53) CreateHostedZone(hostedZoneReq *CreateHostedZoneRequest) (*CreateHostedZoneResponse, error)
CreateHostedZone send a creation request to the AWS Route53 API
func (*Route53) DeleteHostedZone ¶
func (r *Route53) DeleteHostedZone(id string) (result *DeleteHostedZoneResponse, err error)
DeleteHostedZone deletes the hosted zone with the given id
func (*Route53) GetHostedZone ¶
func (r *Route53) GetHostedZone(id string) (result *GetHostedZoneResponse, err error)
GetHostedZone fetches a particular hostedzones DelegationSet by id
func (*Route53) ListHostedZones ¶
func (r *Route53) ListHostedZones(marker string, maxItems int) (result *ListHostedZonesResponse, err error)
ListedHostedZones fetches a collection of HostedZones through the AWS Route53 API
Click to show internal directories.
Click to hide internal directories.