awsx

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAWSConfig

func SetupAWSConfig(ctx context.Context, conf *Config) (*aws.Config, error)

Types

type Config

type Config struct {
	// Region specifies the AWS region
	Region string `confx:"region" usage:"AWS region (e.g., ap-northeast-1)"`

	// AccessKeyID specifies the AWS access key ID
	AccessKeyID string `confx:"accessKeyID" usage:"AWS access key ID"`

	// SecretAccessKey specifies the AWS secret access key
	SecretAccessKey string `confx:"secretAccessKey" usage:"AWS secret access key"`

	// SessionToken specifies the AWS session token for temporary credentials
	SessionToken string `confx:"sessionToken" usage:"AWS session token for temporary credentials"`
}

Config defines AWS configuration that supports both confx and environment variables

Jump to

Keyboard shortcuts

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