# 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.
ErrCodeSharedConfig represents an error that occurs in the shared configuration logic.
SharedConfigDisable overrides the byteplus_SDK_LOAD_CONFIG env var value and disables the shared config functionality.
SharedConfigEnable overrides the byteplus_SDK_LOAD_CONFIG env var value and enables the shared config functionality.
SharedConfigStateFromEnv does not override any state of the byteplus_SDK_LOAD_CONFIG env var.
# Variables
No description provided by the author
ErrSharedConfigECSContainerEnvVarEmpty will be returned if the environment variables are empty and Environment was set as the credential source.
ErrSharedConfigInvalidCredSource will be returned if an invalid credential source was provided.
ErrSharedConfigSourceCollision will be returned if a section contains both source_profile and credential_source.
# Structs
CredentialRequiresARNError provides the error for shared config credentials that are incorrectly configured in the shared config or credentials file.
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.