Documentation
¶
Overview ¶
Package aws contains helpers for working with the aws api, namely configuration and session management. It also includes sub packages for working with common apis like ses and s3.
Index ¶
Constants ¶
View Source
const (
// DefaultAWSRegion is a default.
DefaultAWSRegion = "us-east-1"
)
Variables ¶
This section is empty.
Functions ¶
func MustNewSession ¶
MustNewSession creates a new aws session from a config and panics on error.
Types ¶
type Config ¶
type Config struct { Region string `json:"region,omitempty" yaml:"region,omitempty" env:"AWS_REGION"` AccessKeyID string `json:"accessKeyID,omitempty" yaml:"accessKeyID,omitempty" env:"AWS_ACCESS_KEY_ID"` SecretAccessKey string `json:"secretAccessKey,omitempty" yaml:"secretAccessKey,omitempty" env:"AWS_SECRET_ACCESS_KEY"` SecurityToken string `json:"securityToken,omitempty" yaml:"securityToken,omitempty" env:"AWS_SECURITY_TOKEN"` }
Config is a config object.
func MustNewConfigFromEnv ¶
func MustNewConfigFromEnv() *Config
MustNewConfigFromEnv returns a new config from the environment and panics on error.
func NewConfigFromEnv ¶
NewConfigFromEnv returns a new aws config from the environment.
func (Config) GetAccessKeyID ¶
GetAccessKeyID gets a property or a default.
func (Config) GetSecretAccessKey ¶
GetSecretAccessKey gets a property or a default.
Click to show internal directories.
Click to hide internal directories.