aws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package aws handles Amazon Web Services actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Region to connect to for api calls.
	Region string
	// RoleARN is the arn of the role to be assumed.
	// If empty, we won't assume a role and will use the normal
	// AWS authentication methods
	RoleARN string
}

Config configures our aws clients.

func (*Config) CreateSession

func (c *Config) CreateSession(sessionName string) (*session.Session, error)

CreateSession creates a new valid AWS session to be used by AWS clients. If RoleARN is not empty, we will assume a role and name that role whatever is passed in as sessionName. Otherwise we'll create a session using the AWS SDK's normal mechanism.

Jump to

Keyboard shortcuts

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