aws

package
v1.3000030.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 {
	credentials.Expiry

	// Retrival frequency, if the value is 15 minutes, the credentials will be retrieved every 15 minutes.
	ExpiryWindow time.Duration
	// contains filtered or unexported fields
}

func (*Refreshable_shared_credentials_provider) Retrieve

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

type SDKLogger added in v1.247350.0

type SDKLogger struct {
}

SDKLogger implements the aws.Logger interface.

func (SDKLogger) Log added in v1.247350.0

func (SDKLogger) Log(args ...interface{})

Log is the only method in the aws.Logger interface.

Jump to

Keyboard shortcuts

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