aws

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS interface {
	CreateCNAME(dnsName string, dnsEndpoints []string, logger log.FieldLogger) error
	DeleteCNAME(dnsName string, logger log.FieldLogger) error
	TagResource(resourceID, key, value string, logger log.FieldLogger) error
	UntagResource(resourceID, key, value string, logger log.FieldLogger) error
}

AWS interface for use by other packages.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client for interacting with AWS resources.

func New

func New(hostedZoneID string) *Client

New returns a new AWS client.

func (*Client) CreateCNAME

func (a *Client) CreateCNAME(dnsName string, dnsEndpoints []string, logger log.FieldLogger) error

CreateCNAME creates an AWS route53 CNAME record.

func (*Client) DeleteCNAME

func (a *Client) DeleteCNAME(dnsName string, logger log.FieldLogger) error

DeleteCNAME deletes an AWS route53 CNAME record.

func (*Client) TagResource

func (a *Client) TagResource(resourceID, key, value string, logger log.FieldLogger) error

TagResource tags an AWS EC2 resource.

func (*Client) UntagResource

func (a *Client) UntagResource(resourceID, key, value string, logger log.FieldLogger) error

UntagResource deletes tags from an AWS EC2 resource.

Jump to

Keyboard shortcuts

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