config

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 5 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvDynamoDBEndpoint added in v1.0.0

func EnvDynamoDBEndpoint() string

EnvDynamoDBEndpoint get DynamoDB endpoint from env params

func EnvEndpoint added in v1.0.0

func EnvEndpoint() string

EnvEndpoint get endpoint from env params

func EnvRegion added in v1.0.0

func EnvRegion() string

EnvRegion get region from env params

func EnvS3Endpoint added in v1.0.0

func EnvS3Endpoint() string

EnvS3Endpoint get S3 endpoint from env params

func EnvSNSEndpoint added in v1.0.0

func EnvSNSEndpoint() string

EnvSNSEndpoint get SNS endpoint from env params

func EnvSQSEndpoint added in v1.0.0

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

	// optional
	CredentialsChainVerboseErrors     bool
	DisableComputeChecksums           bool
	DisableEndpointHostPrefix         bool
	DisableParamValidation            bool
	DisableRestProtocolURICleaning    bool
	DisableSSL                        bool
	EC2MetadataDisableTimeoutOverride bool
	EnableEndpointDiscovery           bool
	EnforceShouldRetryCheck           bool
	LowerCaseHeaderMaps               bool
	S3Disable100Continue              bool
	S3UseAccelerate                   bool
	S3DisableContentMD5Validation     bool
	S3UseARNRegion                    bool
	UseDualStack                      bool

	UseMaxRetries bool
	MaxRetries    int
}

Config has AWS settings.

func (Config) AWSConfig added in v1.0.0

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

AWSConfig creates *aws.Config object from the fields.

func (Config) Session added in v1.0.0

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