session

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package session provides functions that return AWS sessions to use in the AWS SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider added in v0.0.5

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

Provider provides methods to create sessions. Once a session is created, it's cached locally so that the same session is not re-created.

func NewProvider added in v0.0.5

func NewProvider() *Provider

NewProvider initializes a new session Provider with empty caches.

func (*Provider) Default added in v0.0.5

func (p *Provider) Default() (*session.Session, error)

Default returns a session configured against the "default" AWS profile.

func (*Provider) DefaultWithRegion added in v0.0.5

func (p *Provider) DefaultWithRegion(region string) (*session.Session, error)

DefaultWithRegion returns a session configured against the "default" AWS profile and the input region.

func (*Provider) FromProfile added in v0.0.5

func (p *Provider) FromProfile(name string) (*session.Session, error)

FromProfile returns a session configured against the input profile name.

func (*Provider) FromRole added in v0.0.5

func (p *Provider) FromRole(roleARN string, region string) (*session.Session, error)

FromRole returns a session configured against the input role and region.

Jump to

Keyboard shortcuts

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