package
1.14.23
Repository: https://github.com/luopengift/aws-sdk-go.git
Documentation: pkg.go.dev

# Functions

Must is a helper function to ensure the Session is valid and there was no error when calling a NewSession function.
New creates a new instance of the handlers merging in the provided configs on top of the SDK's default configurations.
NewSession returns a new Session created from SDK defaults, config files, environment, and user provided config files.
NewSessionWithOptions returns a new Session created from SDK defaults, config files, environment, and user provided config files.

# Constants

DefaultSharedConfigProfile is the default profile to be used when loading configuration from the config files if another profile name is not provided.
EnvProviderName provides a name of the provider when config is loaded from environment.
SharedConfigDisable overrides the AWS_SDK_LOAD_CONFIG env var value and disables the shared config functionality.
SharedConfigEnable overrides the AWS_SDK_LOAD_CONFIG env var value and enables the shared config functionality.
SharedConfigStateFromEnv does not override any state of the AWS_SDK_LOAD_CONFIG env var.

# Structs

AssumeRoleTokenProviderNotSetError is an error returned when creating a session when the MFAToken option is not set when shared config is configured load assume a role with an MFA token.
Options provides the means to control how a Session is created and what configuration values will be loaded.
A Session provides a central location to create service clients from and store configurations and request handlers for those services.
SharedConfigAssumeRoleError is an error for the shared config when the profile contains assume role information, but that information is invalid or not complete.
SharedConfigLoadError is an error for the shared config file failed to load.
SharedConfigProfileNotExistsError is an error for the shared config when the profile was not find in the config file.

# Type aliases

SharedConfigState provides the ability to optionally override the state of the session's creation based on the shared config being enabled or disabled.