aws

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(ctx context.Context, authOptions auth.Options, opts ...ConfigOption) (aws.Config, error)

func WithCredentialProvider

func WithCredentialProvider(provider aws.CredentialsProvider) func(*ConfigOptions)

WithCredentialProvider allows for passing a custom credential provider, this is not cached - wrap the credential provider with a NewCredentialCache if you wish.

func WithHTTPClient

func WithHTTPClient(client *http.Client) func(*ConfigOptions)

Types

type ConfigLoadOptions

type ConfigLoadOptions []func(*config.LoadOptions) error

type ConfigOption

type ConfigOption func(*ConfigOptions)

type ConfigOptions

type ConfigOptions struct {
	CredentialProvider aws.CredentialsProvider
	HTTPClient         *http.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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