aws

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: NCSA Imports: 15 Imported by: 0

README

aws Build Status

Config File Example

aws:
  access_key_id: default
  secret_access_key: default
  region: us-east-1

Documentation

Index

Constants

View Source
const (
	// AWSRegionUSEast1 is a helper constant for AWS configs.
	AWSRegionUSEast1 = "us-east-1"
	// AWSRegionUSWest is a helper constant for AWS configs.
	AWSRegionUSWest = "us-west-1"
)

AWSRegionUSEast1 ...

Variables

View Source
var (
	Config = &awsConfig{
		done: make(chan struct{}),
	}
)

Config ...

Functions

func NewConfig

func NewConfig(opts ...SessionOption) (*aws.Config, error)

NewConfig ...

func NewSession

func NewSession(opts ...SessionOption) (*session.Session, error)

NewSession ...

Types

type SessionOption

type SessionOption func(*SessionOptions)

SessionOption ...

func AccessKey

func AccessKey(s string) SessionOption

AccessKey ...

func Region

func Region(s string) SessionOption

Region ...

func STSRoleDurationSeconds

func STSRoleDurationSeconds(t time.Duration) SessionOption

STSRoleDurationSeconds ...

func SecretKey

func SecretKey(s string) SessionOption

SecretKey ...

func Sts

func Sts(data ...string) SessionOption

Sts ...

type SessionOptions

type SessionOptions struct {
	AccessKey    string
	SecretKey    string
	SessionToken string
	Region       string
	// contains filtered or unexported fields
}

SessionOptions ...

Jump to

Keyboard shortcuts

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