config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultConfig

func NewDefaultConfig() *aws.Config

NewDefaultConfig will return default AWS Configs that are meant to be merged in. Luckily both the deprecated session.New() and session.NewSession() take `cfgs ...*aws.Config` then merge them in.

This means we can change our sessions to be `session.New(<whatver>, session.NewDefaultConfig()) If we need to override it we can swap order (last config's value wins)

func NewDefaultConfigWithRegion

func NewDefaultConfigWithRegion(region string) *aws.Config

NewDefaultConfigWithRegion returns the same config as NewDefaultConfig, but allows a user to specify a region as well

Types

This section is empty.

Jump to

Keyboard shortcuts

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