awsutils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(config *SessionConfig) (*session.Session, error)

Types

type SessionConfig

type SessionConfig struct {
	Region           string        `mapstructure:"region"`
	AccessKeyID      string        `mapstructure:"accessKeyID"`
	AccessKey        string        `mapstructure:"accessKey"`
	SecretAccessKey  string        `mapstructure:"secretAccessKey"`
	IAMRoleARN       string        `mapstructure:"iamRoleARN"`
	ExternalID       string        `mapstructure:"externalID"`
	Endpoint         *string       `mapstructure:"endpoint"`
	S3ForcePathStyle *bool         `mapstructure:"s3ForcePathStyle"`
	DisableSSL       *bool         `mapstructure:"disableSSL"`
	Service          string        `mapstructure:"service"`
	Timeout          time.Duration `mapstructure:"timeout"`
}

Some AWS destinations are using SecretAccessKey instead of accessKey

func NewSessionConfig

func NewSessionConfig(destinationConfig map[string]interface{}, timeout time.Duration, serviceName string) (*SessionConfig, error)

Jump to

Keyboard shortcuts

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