aws

package
v0.0.0-...-44ba42e Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	STS *sts.STS
}

Client is a struct containing several clients for the different AWS services it needs to interact with. * STS is the standard client for the STS service.

func (*Client) GetAccountID

func (c *Client) GetAccountID() (string, error)

GetAccountID returns the ID of the AWS account the Client is interacting with.

type ClientInterface

type ClientInterface interface {
	GetAccountID() (string, error)
}

ClientInterface is an interface which must be implemented by AWS clients.

func NewClient

func NewClient(accessKeyID, secretAccessKey, region string) ClientInterface

NewClient creates a new Client for the given AWS credentials <accessKeyID>, <secretAccessKey>, and the AWS region <region>. It initializes the clients for the various services like EC2, ELB, etc.

Jump to

Keyboard shortcuts

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