Documentation
¶
Index ¶
- type AliasTarget
- type AssociateVPCWithHostedZoneRequest
- type AssociateVPCWithHostedZoneResponse
- type Change
- type ChangeInfo
- type ChangeResourceRecordSetsRequest
- type ChangeResourceRecordSetsResponse
- type Config
- type CreateHostedZoneRequest
- type CreateHostedZoneResponse
- type DelegationSet
- type DeleteHostedZoneResponse
- type DisassociateVPCWithHostedZoneRequest
- type DisassociateVPCWithHostedZoneResponse
- type GetHostedZoneResponse
- type HostedZone
- type HostedZoneConfig
- type HostedZoneVPC
- type ListHostedZonesResponse
- type ListResourceRecordSetsResponse
- type NameServers
- type ResourceRecord
- type ResourceRecordSet
- type ResourceRecordSets
- type ResourceRecordValue
- type ResourceRecords
- type Route53
- func (r *Route53) AssociateVPCWithHostedZone(zoneid string, req *AssociateVPCWithHostedZoneRequest) (result *AssociateVPCWithHostedZoneResponse, err error)
- 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) DisassociateVPCWithHostedZone(zoneid string, req *DisassociateVPCWithHostedZoneRequest) (result *DisassociateVPCWithHostedZoneResponse, err error)
- func (r *Route53) GetHostedZone(id string) (result *GetHostedZoneResponse, err error)
- func (r *Route53) ListHostedZones(marker string, maxItems int) (result *ListHostedZonesResponse, err error)
- func (r *Route53) ListResourceRecordSets(hostedZone string, name string, _type string, identifier string, maxitems int) (result *ListResourceRecordSetsResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasTarget ¶
type AssociateVPCWithHostedZoneRequest ¶
type AssociateVPCWithHostedZoneRequest struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ AssociateVPCWithHostedZoneRequest"`
VPC HostedZoneVPC
Comment string
}
type AssociateVPCWithHostedZoneResponse ¶
type AssociateVPCWithHostedZoneResponse struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ AssociateVPCWithHostedZoneResponse"`
ChangeInfo ChangeInfo
}
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"`
AliasTarget *AliasTarget `xml:"ResourceRecordSet>AliasTarget,omitempty"`
Values []ResourceRecordValue `xml:"ResourceRecordSet>ResourceRecords,omitempty"`
}
type ChangeInfo ¶
type CreateHostedZoneRequest ¶
type CreateHostedZoneRequest struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ CreateHostedZoneRequest"`
Name string
CallerReference string
VPC HostedZoneVPC
HostedZoneConfig HostedZoneConfig
}
Structs for Creating a New Host
type CreateHostedZoneResponse ¶
type CreateHostedZoneResponse struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ 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:"https://route53.amazonaws.com/doc/2013-04-01/ DeleteHostedZoneResponse"`
ChangeInfo ChangeInfo
}
type DisassociateVPCWithHostedZoneRequest ¶
type DisassociateVPCWithHostedZoneRequest struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ DisassociateVPCWithHostedZoneRequest"`
VPC HostedZoneVPC
Comment string
}
type DisassociateVPCWithHostedZoneResponse ¶
type DisassociateVPCWithHostedZoneResponse struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ DisassociateVPCWithHostedZoneResponse"`
ChangeInfo ChangeInfo
}
type GetHostedZoneResponse ¶
type GetHostedZoneResponse struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ GetHostedZoneResponse"`
HostedZone HostedZone
DelegationSet DelegationSet
VPCs []HostedZoneVPC `xml:"VPCs>VPC"`
}
type HostedZone ¶
type HostedZone struct {
XMLName xml.Name `xml:"HostedZone"`
Id string
Name string
VPC HostedZoneVPC `xml:"VPC,omitempty"` // used on CreateHostedZone
CallerReference string
Config Config
ResourceRecordSetCount int
}
General Structs used in all types of requests
type HostedZoneConfig ¶
type HostedZoneVPC ¶
type ListHostedZonesResponse ¶
type ListHostedZonesResponse struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ ListHostedZonesResponse"`
HostedZones []HostedZone `xml:"HostedZones>HostedZone"`
Marker string
IsTruncated bool
NextMarker string
MaxItems int
}
Structs for getting the existing Hosted Zones
type ListResourceRecordSetsResponse ¶
type ListResourceRecordSetsResponse struct {
XMLName xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ ListResourceRecordSetsResponse"`
ResourceRecordSets []ResourceRecordSets
IsTruncated bool
MaxItems int
NextRecordName string
NextRecordType string
NextRecordIdentifier string
}
func (*ListResourceRecordSetsResponse) GetResourceRecordSets ¶
func (response *ListResourceRecordSetsResponse) GetResourceRecordSets() []ResourceRecordSet
type NameServers ¶
type ResourceRecord ¶
type ResourceRecordSet ¶
type ResourceRecordSet struct {
XMLName xml.Name `xml:"ResourceRecordSet"`
Name string
Type string
TTL int
ResourceRecords []ResourceRecords
HealthCheckId string
Region string
Failover string
AliasTarget AliasTarget
}
func (*ResourceRecordSet) GetValues ¶
func (recordset *ResourceRecordSet) GetValues() []string
type ResourceRecordSets ¶
type ResourceRecordSets struct {
XMLName xml.Name `xml:"ResourceRecordSets"`
ResourceRecordSet []ResourceRecordSet
}
type ResourceRecordValue ¶
type ResourceRecordValue struct {
Value string `xml:"ResourceRecord>Value"`
}
type ResourceRecords ¶
type ResourceRecords struct {
XMLName xml.Name `xml:"ResourceRecords"`
ResourceRecord []ResourceRecord
}
type Route53 ¶
type Route53 struct {
Auth aws.Auth
Endpoint string
Signer *aws.Route53Signer
Service *aws.Service
}
func (*Route53) AssociateVPCWithHostedZone ¶
func (r *Route53) AssociateVPCWithHostedZone(zoneid string, req *AssociateVPCWithHostedZoneRequest) (result *AssociateVPCWithHostedZoneResponse, err error)
AssociateVPCWithHostedZone associates a VPC with specified private hosted zone
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) DisassociateVPCWithHostedZone ¶
func (r *Route53) DisassociateVPCWithHostedZone(zoneid string, req *DisassociateVPCWithHostedZoneRequest) (result *DisassociateVPCWithHostedZoneResponse, err error)
DisassociateVPCWithHostedZone disassociates a VPC from specified private hosted zone
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
func (*Route53) ListResourceRecordSets ¶
func (r *Route53) ListResourceRecordSets(hostedZone string, name string, _type string, identifier string, maxitems int) (result *ListResourceRecordSetsResponse, err error)
ListResourceRecordSets fetches a collection of ResourceRecordSets through the AWS Route53 API