route53

package
v0.0.0-...-78d7708 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2014 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasTarget

type AliasTarget struct {
	HostedZoneId         string
	DNSName              string
	EvaluateTargetHealth bool
}

type ChangeBatch

type ChangeBatch struct {
	Changes ChangeBatchChanges
}

type ChangeBatchChanges

type ChangeBatchChanges struct {
	Change []ResourceRecordSetChange
}

type ChangeInfo

type ChangeInfo struct {
	Id          string
	Status      string
	SubmittedAt string
}

type ChangeResourceRecordSetsReq

type ChangeResourceRecordSetsReq struct {
	XMLName xml.Name    `xml:"https://route53.amazonaws.com/doc/2013-04-01/ ChangeResourceRecordSetsRequest"`
	Batch   ChangeBatch `xml:"ChangeBatch"`
}

type CreateHostedZoneRequest

type CreateHostedZoneRequest struct {
	XMLName         xml.Name `xml:"https://route53.amazonaws.com/doc/2013-04-01/ CreateHostedZoneRequest"`
	Name            string
	CallerReference string
	Comment         string `xml:"HostedZoneConfig>Comment,omitempty"`
}

type CreateHostedZoneResponse

type CreateHostedZoneResponse struct {
	HostedZone  HostedZone
	ChangeInfo  ChangeInfo
	NameServers []string `xml:"DelegationSet>NameServers>NameServer"`
}

type DeleteHostedZoneResponse

type DeleteHostedZoneResponse struct {
	ChangeInfo ChangeInfo
}

type Error

type Error struct {
	StatusCode int
	Type       string `xml:"Error>Type"`
	Code       string `xml:"Error>Code"`
	Message    string `xml:"Error>Message"`
	RequestId  string
}

func (*Error) Error

func (err *Error) Error() string

type GetHostedZoneResponse

type GetHostedZoneResponse struct {
	HostedZone  HostedZone
	NameServers []string `xml:"DelegationSet>NameServers>NameServer"`
}

type HealthCheck

type HealthCheck struct {
	XMLName          xml.Name
	Id               string `xml:",omitempty"`
	CallerReference  string
	IPAddress        string `xml:"HealthCheckConfig>IPAddress"`
	Port             int    `xml:"HealthCheckConfig>Port,omitempty"`
	Type             string `xml:"HealthCheckConfig>Type"`
	ResourcePath     string `xml:"HealthCheckConfig>ResourcePath,omitempty"`
	FQDN             string `xml:"HealthCheckConfig>FullyQualifiedDomainName,omitempty"`
	SearchString     string `xml:"HealthCheckConfig>SearchString,omitempty"`
	RequestInterval  int    `xml:"HealthCheckConfig>RequestInterval,omitempty"`
	FailureThreshold int    `xml:"HealthCheckConfig>FailureThreshold,omitempty"`
}

type HostedZone

type HostedZone struct {
	Id                     string
	Name                   string
	CallerReference        string
	Comment                string `xml:"Config>Comment"`
	ResourceRecordSetCount int
}

type HostedZones

type HostedZones struct {
	HostedZone []HostedZone
}

type ListHostedZonesResponse

type ListHostedZonesResponse struct {
	HostedZones []HostedZones
	Marker      string
	IsTruncated bool
	NextMarker  string
	MaxItems    int
}

type ListResourceRecordSetsResponse

type ListResourceRecordSetsResponse struct {
	ResourceRecordSets   []ResourceRecordSet `xml:"ResourceRecordSets>ResourceRecordSet"`
	IsTruncated          bool
	MaxItems             int
	NextRecordName       string
	NextRecordType       string
	NextRecordIdentifier string
}

type ResourceRecord

type ResourceRecord struct {
	Value string
}

type ResourceRecordSet

type ResourceRecordSet struct {
	Name          string
	Type          string
	SetId         string           `xml:"SetIdentifier,omitempty"`
	Weight        int              `xml:",omitempty"`
	Region        string           `xml:",omitempty"`
	Failover      string           `xml:",omitempty"`
	TTL           int              `xml:",omitempty"`
	Records       []ResourceRecord `xml:"ResourceRecords>ResourceRecord"`
	HealthCheckId string           `xml:",omitempty"`
	AliasTarget   *AliasTarget     `xml:",omitempty"`
}

type ResourceRecordSetChange

type ResourceRecordSetChange struct {
	Action            string
	ResourceRecordSet ResourceRecordSet
}

type Route53

type Route53 struct {
	Auth    aws.Auth
	BaseURL string
}

func New

func New(auth aws.Auth) *Route53

func (*Route53) ChangeResourceRecordSets

func (r *Route53) ChangeResourceRecordSets(zoneId string, changes []ResourceRecordSetChange) (*ChangeInfo, error)

func (*Route53) CreateHealthCheck

func (r *Route53) CreateHealthCheck(check *HealthCheck) (*HealthCheck, error)

func (*Route53) CreateHostedZone

func (r *Route53) CreateHostedZone(name, callerRef, comment string) (*CreateHostedZoneResponse, error)

func (*Route53) DeleteHealthCheck

func (r *Route53) DeleteHealthCheck(id string) error

func (*Route53) DeleteHostedZone

func (r *Route53) DeleteHostedZone(id string) (*DeleteHostedZoneResponse, error)

func (*Route53) GetChange

func (r *Route53) GetChange(id string) (*ChangeInfo, error)

func (*Route53) GetHealthCheck

func (r *Route53) GetHealthCheck(id string) (*HealthCheck, 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(zoneId string) (*ListResourceRecordSetsResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL