config

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvDynamoDBEndpoint

func EnvDynamoDBEndpoint() string

EnvDynamoDBEndpoint get DynamoDB endpoint from env params

func EnvEndpoint

func EnvEndpoint() string

EnvEndpoint get endpoint from env params

func EnvRegion

func EnvRegion() string

EnvRegion get region from env params

func EnvS3Endpoint

func EnvS3Endpoint() string

EnvS3Endpoint get S3 endpoint from env params

func EnvSNSEndpoint

func EnvSNSEndpoint() string

EnvSNSEndpoint get SNS endpoint from env params

func EnvSQSEndpoint

func EnvSQSEndpoint() string

EnvSQSEndpoint get SQS endpoint from env params

Types

type Config

type Config struct {
	AccessKey string
	SecretKey string
	Region    string
	Endpoint  string

	// Filename and Profile are used for file credentials
	Filename string
	Profile  string

	// DefaultPrefix is used for service resource prefix
	// e.g.) DynamoDB table, S3 bucket, SQS Queue
	DefaultPrefix string

	// Specific sevice's options
	S3ForcePathStyle bool
}

Config has AWS settings.

func (Config) AWSConfig

func (c Config) AWSConfig() *aws.Config

AWSConfig creates *aws.Config object from the fields.

func (Config) Session

func (c Config) Session() (*session.Session, error)

Session creates AWS session from the Config values.

Jump to

Keyboard shortcuts

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