awsutil

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: AGPL-3.0 Imports: 10 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

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

CreateSession creates a new AWS session using the provided config

Types

type SessionConfig

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

Some AWS destinations are using SecretAccessKey instead of accessKey

func NewSimpleSessionConfig

func NewSimpleSessionConfig(config map[string]interface{}, serviceName string) (*SessionConfig, error)

NewSimpleSessionConfig creates a new session config using the provided config map

Jump to

Keyboard shortcuts

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