aws

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package aws holds the shared AWS SDK configuration (credentials, region, endpoint) used by the aws sub-packages such as s3 and sqs.

Index

Constants

View Source
const (
	ErrCodeAwsLoadDefConfig = "AWS-001"
)

Variables

View Source
var (
	ErrAwsLoadDefConfig = func(ctx context.Context, cause error) error {
		return jet.NewAppErrBuilder(ErrCodeAwsLoadDefConfig, "load aws config").C(ctx).Wrap(cause).Err()
	}
)

Functions

func GetAwsConfig

func GetAwsConfig(ctx context.Context, configuration *Config) (*aws.Config, error)

Types

type Config

type Config struct {
	Region              string `mapstructure:"region"`
	AccessKeyId         string `mapstructure:"access_key_id"`
	SecretAccessKey     string `mapstructure:"secret_access_key"`
	SharedConfigProfile string `mapstructure:"shared_config_profile"`
}

Directories

Path Synopsis
Package s3 provides a client for Amazon S3 (and S3-compatible) object storage.
Package s3 provides a client for Amazon S3 (and S3-compatible) object storage.
Package sqs provides a client and a message subscriber for Amazon SQS queues.
Package sqs provides a client and a message subscriber for Amazon SQS queues.

Jump to

Keyboard shortcuts

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