Versions in this module Expand all Collapse all v1 v1.35.5 Feb 21, 2023 Changes in this version + const DefaultSharedConfigProfile + const EnvProviderName + const ErrCodeSharedConfig + var ErrSharedConfigECSContainerEnvVarEmpty = awserr.New(ErrCodeSharedConfig, ...) + var ErrSharedConfigInvalidCredSource = awserr.New(ErrCodeSharedConfig, ...) + var ErrSharedConfigSourceCollision = awserr.New(ErrCodeSharedConfig, ...) + var WebIdentityEmptyRoleARNErr = awserr.New(stscreds.ErrCodeWebIdentity, "role ARN is not set", nil) + var WebIdentityEmptyTokenFilePathErr = awserr.New(stscreds.ErrCodeWebIdentity, "token file path is not set", nil) + type AssumeRoleTokenProviderNotSetError struct + func (e AssumeRoleTokenProviderNotSetError) Code() string + func (e AssumeRoleTokenProviderNotSetError) Error() string + func (e AssumeRoleTokenProviderNotSetError) Message() string + func (e AssumeRoleTokenProviderNotSetError) OrigErr() error + type CredentialRequiresARNError struct + Profile string + Type string + func (e CredentialRequiresARNError) Code() string + func (e CredentialRequiresARNError) Error() string + func (e CredentialRequiresARNError) Message() string + func (e CredentialRequiresARNError) OrigErr() error + type Options struct + AssumeRoleDuration time.Duration + AssumeRoleTokenProvider func() (string, error) + Config aws.Config + CustomCABundle io.Reader + EC2IMDSEndpoint string + Handlers request.Handlers + Profile string + SharedConfigFiles []string + SharedConfigState SharedConfigState + type Session struct + Config *aws.Config + Handlers request.Handlers + func Must(sess *Session, err error) *Session + func New(cfgs ...*aws.Config) *Session + func NewSession(cfgs ...*aws.Config) (*Session, error) + func NewSessionWithOptions(opts Options) (*Session, error) + func (s *Session) ClientConfig(service string, cfgs ...*aws.Config) client.Config + func (s *Session) ClientConfigNoResolveEndpoint(cfgs ...*aws.Config) client.Config + func (s *Session) Copy(cfgs ...*aws.Config) *Session + type SharedConfigAssumeRoleError struct + RoleARN string + SourceProfile string + func (e SharedConfigAssumeRoleError) Code() string + func (e SharedConfigAssumeRoleError) Error() string + func (e SharedConfigAssumeRoleError) Message() string + func (e SharedConfigAssumeRoleError) OrigErr() error + type SharedConfigLoadError struct + Err error + Filename string + func (e SharedConfigLoadError) Code() string + func (e SharedConfigLoadError) Error() string + func (e SharedConfigLoadError) Message() string + func (e SharedConfigLoadError) OrigErr() error + type SharedConfigProfileNotExistsError struct + Err error + Profile string + func (e SharedConfigProfileNotExistsError) Code() string + func (e SharedConfigProfileNotExistsError) Error() string + func (e SharedConfigProfileNotExistsError) Message() string + func (e SharedConfigProfileNotExistsError) OrigErr() error + type SharedConfigState int + const SharedConfigDisable + const SharedConfigEnable + const SharedConfigStateFromEnv