route53

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route53

type Route53 struct {
	// custom http2 client options
	HttpOptions *awshttp2.HttpClientSettings
	// contains filtered or unexported fields
}

Route53 struct encapsulates the AWS Route53 partial functionality

func (*Route53) Connect

func (r *Route53) Connect(parentSegment ...*xray.XRayParentSegment) (err error)

Connect will establish a connection to the Route53 service

func (*Route53) CreateUpdateResourceRecordset

func (r *Route53) CreateUpdateResourceRecordset(hostedZoneID string, url string, ip string, ttl uint, recordType string) (err error)

CreateUpdateResourceRecordset will create or update a dns recordset to route53

hostedZoneID = root domain hosted zone id (from aws route 53) url = fully qualified domain name url, such as abc.example.com ip = recordset IPv4 address ttl = 15 - 300 (defaults to 60 if ttl is 0) recordType = A (currently only A is supported via this function)

func (*Route53) DeleteResourceRecordset

func (r *Route53) DeleteResourceRecordset(hostedZoneID string, url string, ip string, ttl uint, recordType string) (err error)

DeleteResourceRecordset will delete a dns recordset from route53

hostedZoneID = root domain hosted zone id (from aws route 53) url = fully qualified domain name url, such as abc.example.com ip = recordset IPv4 address ttl = 15 - 300 (defaults to 60 if ttl is 0) recordType = A (currently only A is supported via this function)

func (*Route53) Disconnect

func (r *Route53) Disconnect()

Disconnect will disjoin from aws session by clearing it

func (*Route53) UpdateParentSegment

func (r *Route53) UpdateParentSegment(parentSegment *xray.XRayParentSegment)

UpdateParentSegment updates this struct's xray parent segment, if no parent segment, set nil

Jump to

Keyboard shortcuts

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