Documentation
¶
Index ¶
Constants ¶
View Source
const ( SourceArnHeaderKey = "x-amz-source-arn" SourceAccountHeaderKey = "x-amz-source-account" )
Variables ¶
This section is empty.
Functions ¶
func OverwriteCredentialsChain ¶
func OverwriteCredentialsChain(providers ...RootCredentialsProvider)
func SDKLogLevel ¶ added in v1.247350.0
func SDKLogLevel() *aws.LogLevelType
SDKLogLevel returns the single global value so it can be used in all AWS SDK calls scattered throughout the Agent.
func SetSDKLogLevel ¶ added in v1.247350.0
func SetSDKLogLevel(sdkLogLevelString string)
SetSDKLogLevel sets the global log level which will be used in all AWS SDK calls. The levels are a bit field that is OR'd together. So the user can specify multiple levels and we OR them together. Example: "aws_sdk_log_level": "LogDebugWithSigning | LogDebugWithRequestErrors". JSON string value must contain the levels seperated by "|" and optionally whitespace.
Types ¶
type CredentialConfig ¶
type CredentialConfig struct {
Region string
AccessKey string
SecretKey string
RoleARN string
Profile string
Filename string
Token string
}
func (*CredentialConfig) Credentials ¶
func (c *CredentialConfig) Credentials() client.ConfigProvider
type Refreshable_shared_credentials_provider ¶
type Refreshable_shared_credentials_provider struct {
ExpiryWindow time.Duration
// contains filtered or unexported fields
}
func (*Refreshable_shared_credentials_provider) Retrieve ¶
func (p *Refreshable_shared_credentials_provider) Retrieve() (credentials.Value, error)
Retrieve reads and extracts the shared credentials from the current users home directory.
type RootCredentialsProvider ¶
type RootCredentialsProvider struct {
Name func() string
Credentials func(*CredentialConfig) *credentials.Credentials
}
func GetDefaultCredentialsChain ¶
func GetDefaultCredentialsChain() []RootCredentialsProvider
Click to show internal directories.
Click to hide internal directories.