Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvVarAWSRegion is an environment variable. EnvVarAWSRegion = "AWS_REGION_NAME" // DefaultRegion a default. DefaultRegion = "us-east-1" )
Variables ¶
This section is empty.
Functions ¶
func MustNewSession ¶
MustNewSession returns a new session and panics on error.
Types ¶
type Config ¶
type Config struct { Region string `json:"region,omitempty" yaml:"region,omitempty" env:"AWS_REGION_NAME"` 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"` Token string `json:"token,omitempty" yaml:"token,omitempty" env:"AWS_SECURITY_TOKEN"` }
Config is a config object.
func (Config) RegionOrDefault ¶
RegionOrDefault gets a property or a default.
Click to show internal directories.
Click to hide internal directories.