Versions in this module Expand all Collapse all v1 v1.50.8 Feb 1, 2024 Changes in this version type Config + DisableRequestCompression bool + RequestMinCompressSizeBytes int64 v1.0.1 Nov 1, 2023 Changes in this version + const SDKName + const SDKVersion + func Bool(v bool) *bool + func BoolMap(vs map[string]bool) map[string]*bool + func BoolSlice(vs []bool) []*bool + func Byte(v byte) *byte + func ByteMap(vs map[string]byte) map[string]*byte + func ByteSlice(vs []byte) []*byte + func Duration(v time.Duration) *time.Duration + func DurationMap(vs map[string]time.Duration) map[string]*time.Duration + func DurationSlice(vs []time.Duration) []*time.Duration + func Float32(v float32) *float32 + func Float32Map(vs map[string]float32) map[string]*float32 + func Float32Slice(vs []float32) []*float32 + func Float64(v float64) *float64 + func Float64Map(vs map[string]float64) map[string]*float64 + func Float64Slice(vs []float64) []*float64 + func GetDisableHTTPS(options ...interface{}) (value bool, found bool) + func GetResolvedRegion(options ...interface{}) (value string, found bool) + func Int(v int) *int + func Int16(v int16) *int16 + func Int16Map(vs map[string]int16) map[string]*int16 + func Int16Slice(vs []int16) []*int16 + func Int32(v int32) *int32 + func Int32Map(vs map[string]int32) map[string]*int32 + func Int32Slice(vs []int32) []*int32 + func Int64(v int64) *int64 + func Int64Map(vs map[string]int64) map[string]*int64 + func Int64Slice(vs []int64) []*int64 + func Int8(v int8) *int8 + func Int8Map(vs map[string]int8) map[string]*int8 + func Int8Slice(vs []int8) []*int8 + func IntMap(vs map[string]int) map[string]*int + func IntSlice(vs []int) []*int + func IsCredentialsProvider(provider, target CredentialsProvider) bool + func String(v string) *string + func StringMap(vs map[string]string) map[string]*string + func StringSlice(vs []string) []*string + func Time(v time.Time) *time.Time + func TimeMap(vs map[string]time.Time) map[string]*time.Time + func TimeSlice(vs []time.Time) []*time.Time + func ToBool(p *bool) (v bool) + func ToBoolMap(vs map[string]*bool) map[string]bool + func ToBoolSlice(vs []*bool) []bool + func ToByte(p *byte) (v byte) + func ToByteMap(vs map[string]*byte) map[string]byte + func ToByteSlice(vs []*byte) []byte + func ToDuration(p *time.Duration) (v time.Duration) + func ToDurationMap(vs map[string]*time.Duration) map[string]time.Duration + func ToDurationSlice(vs []*time.Duration) []time.Duration + func ToFloat32(p *float32) (v float32) + func ToFloat32Map(vs map[string]*float32) map[string]float32 + func ToFloat32Slice(vs []*float32) []float32 + func ToFloat64(p *float64) (v float64) + func ToFloat64Map(vs map[string]*float64) map[string]float64 + func ToFloat64Slice(vs []*float64) []float64 + func ToInt(p *int) (v int) + func ToInt16(p *int16) (v int16) + func ToInt16Map(vs map[string]*int16) map[string]int16 + func ToInt16Slice(vs []*int16) []int16 + func ToInt32(p *int32) (v int32) + func ToInt32Map(vs map[string]*int32) map[string]int32 + func ToInt32Slice(vs []*int32) []int32 + func ToInt64(p *int64) (v int64) + func ToInt64Map(vs map[string]*int64) map[string]int64 + func ToInt64Slice(vs []*int64) []int64 + func ToInt8(p *int8) (v int8) + func ToInt8Map(vs map[string]*int8) map[string]int8 + func ToInt8Slice(vs []*int8) []int8 + func ToIntMap(vs map[string]*int) map[string]int + func ToIntSlice(vs []*int) []int + func ToString(p *string) (v string) + func ToStringMap(vs map[string]*string) map[string]string + func ToStringSlice(vs []*string) []string + func ToTime(p *time.Time) (v time.Time) + func ToTimeMap(vs map[string]*time.Time) map[string]time.Time + func ToTimeSlice(vs []*time.Time) []time.Time + func ToUint(p *uint) (v uint) + func ToUint16(p *uint16) (v uint16) + func ToUint16Map(vs map[string]*uint16) map[string]uint16 + func ToUint16Slice(vs []*uint16) []uint16 + func ToUint32(p *uint32) (v uint32) + func ToUint32Map(vs map[string]*uint32) map[string]uint32 + func ToUint32Slice(vs []*uint32) []uint32 + func ToUint64(p *uint64) (v uint64) + func ToUint64Map(vs map[string]*uint64) map[string]uint64 + func ToUint64Slice(vs []*uint64) []uint64 + func ToUint8(p *uint8) (v uint8) + func ToUint8Map(vs map[string]*uint8) map[string]uint8 + func ToUint8Slice(vs []*uint8) []uint8 + func ToUintMap(vs map[string]*uint) map[string]uint + func ToUintSlice(vs []*uint) []uint + func Uint(v uint) *uint + func Uint16(v uint16) *uint16 + func Uint16Map(vs map[string]uint16) map[string]*uint16 + func Uint16Slice(vs []uint16) []*uint16 + func Uint32(v uint32) *uint32 + func Uint32Map(vs map[string]uint32) map[string]*uint32 + func Uint32Slice(vs []uint32) []*uint32 + func Uint64(v uint64) *uint64 + func Uint64Map(vs map[string]uint64) map[string]*uint64 + func Uint64Slice(vs []uint64) []*uint64 + func Uint8(v uint8) *uint8 + func Uint8Map(vs map[string]uint8) map[string]*uint8 + func Uint8Slice(vs []uint8) []*uint8 + func UintMap(vs map[string]uint) map[string]*uint + func UintSlice(vs []uint) []*uint + type AdjustExpiresByCredentialsCacheStrategy interface + AdjustExpiresBy func(Credentials, time.Duration) (Credentials, error) + type AnonymousCredentials struct + func (AnonymousCredentials) Retrieve(context.Context) (Credentials, error) + type ClientLogMode uint64 + const LogDeprecatedUsage + const LogRequest + const LogRequestEventMessage + const LogRequestWithBody + const LogResponse + const LogResponseEventMessage + const LogResponseWithBody + const LogRetries + const LogSigning + func (m *ClientLogMode) ClearDeprecatedUsage() + func (m *ClientLogMode) ClearRequest() + func (m *ClientLogMode) ClearRequestEventMessage() + func (m *ClientLogMode) ClearRequestWithBody() + func (m *ClientLogMode) ClearResponse() + func (m *ClientLogMode) ClearResponseEventMessage() + func (m *ClientLogMode) ClearResponseWithBody() + func (m *ClientLogMode) ClearRetries() + func (m *ClientLogMode) ClearSigning() + func (m ClientLogMode) IsDeprecatedUsage() bool + func (m ClientLogMode) IsRequest() bool + func (m ClientLogMode) IsRequestEventMessage() bool + func (m ClientLogMode) IsRequestWithBody() bool + func (m ClientLogMode) IsResponse() bool + func (m ClientLogMode) IsResponseEventMessage() bool + func (m ClientLogMode) IsResponseWithBody() bool + func (m ClientLogMode) IsRetries() bool + func (m ClientLogMode) IsSigning() bool + type Config struct + APIOptions []func(*middleware.Stack) error + AppID string + BaseEndpoint *string + BearerAuthTokenProvider smithybearer.TokenProvider + ClientLogMode ClientLogMode + ConfigSources []interface{} + Credentials CredentialsProvider + DefaultsMode DefaultsMode + EndpointResolver EndpointResolver + EndpointResolverWithOptions EndpointResolverWithOptions + HTTPClient HTTPClient + Logger logging.Logger + Region string + RetryMaxAttempts int + RetryMode RetryMode + Retryer func() Retryer + RuntimeEnvironment RuntimeEnvironment + func NewConfig() *Config + func (c Config) Copy() Config + type Credentials struct + AccessKeyID string + CanExpire bool + Expires time.Time + SecretAccessKey string + SessionToken string + Source string + func (v Credentials) Expired() bool + func (v Credentials) HasKeys() bool + type CredentialsCache struct + func NewCredentialsCache(provider CredentialsProvider, optFns ...func(options *CredentialsCacheOptions)) *CredentialsCache + func (p *CredentialsCache) Invalidate() + func (p *CredentialsCache) IsCredentialsProvider(target CredentialsProvider) bool + func (p *CredentialsCache) Retrieve(ctx context.Context) (Credentials, error) + type CredentialsCacheOptions struct + ExpiryWindow time.Duration + ExpiryWindowJitterFrac float64 + type CredentialsProvider interface + Retrieve func(ctx context.Context) (Credentials, error) + type CredentialsProviderFunc func(context.Context) (Credentials, error) + func (fn CredentialsProviderFunc) Retrieve(ctx context.Context) (Credentials, error) + type DefaultsMode string + const DefaultsModeAuto + const DefaultsModeCrossRegion + const DefaultsModeInRegion + const DefaultsModeLegacy + const DefaultsModeMobile + const DefaultsModeStandard + func (d *DefaultsMode) SetFromString(v string) (ok bool) + type DualStackEndpointState uint + const DualStackEndpointStateDisabled + const DualStackEndpointStateEnabled + const DualStackEndpointStateUnset + func GetUseDualStackEndpoint(options ...interface{}) (value DualStackEndpointState, found bool) + type Endpoint struct + HostnameImmutable bool + PartitionID string + SigningMethod string + SigningName string + SigningRegion string + Source EndpointSource + URL string + type EndpointDiscoveryEnableState uint + const EndpointDiscoveryAuto + const EndpointDiscoveryDisabled + const EndpointDiscoveryEnabled + const EndpointDiscoveryUnset + type EndpointNotFoundError struct + Err error + func (e *EndpointNotFoundError) Error() string + func (e *EndpointNotFoundError) Unwrap() error + type EndpointResolver interface + ResolveEndpoint func(service, region string) (Endpoint, error) + type EndpointResolverFunc func(service, region string) (Endpoint, error) + func (e EndpointResolverFunc) ResolveEndpoint(service, region string) (Endpoint, error) + type EndpointResolverWithOptions interface + ResolveEndpoint func(service, region string, options ...interface{}) (Endpoint, error) + type EndpointResolverWithOptionsFunc func(service, region string, options ...interface{}) (Endpoint, error) + func (e EndpointResolverWithOptionsFunc) ResolveEndpoint(service, region string, options ...interface{}) (Endpoint, error) + type EndpointSource int + const EndpointSourceCustom + const EndpointSourceServiceMetadata + type ExecutionEnvironmentID string + type FIPSEndpointState uint + const FIPSEndpointStateDisabled + const FIPSEndpointStateEnabled + const FIPSEndpointStateUnset + func GetUseFIPSEndpoint(options ...interface{}) (value FIPSEndpointState, found bool) + type HTTPClient interface + Do func(*http.Request) (*http.Response, error) + type HandleFailRefreshCredentialsCacheStrategy interface + HandleFailToRefresh func(context.Context, Credentials, error) (Credentials, error) + type MissingRegionError struct + func (*MissingRegionError) Error() string + type NopRetryer struct + func (NopRetryer) GetAttemptToken(context.Context) (func(error) error, error) + func (NopRetryer) GetInitialToken() func(error) error + func (NopRetryer) GetRetryToken(context.Context, error) (func(error) error, error) + func (NopRetryer) IsErrorRetryable(error) bool + func (NopRetryer) MaxAttempts() int + func (NopRetryer) RetryDelay(int, error) (time.Duration, error) + type RequestCanceledError struct + Err error + func (*RequestCanceledError) CanceledError() bool + func (e *RequestCanceledError) Error() string + func (e *RequestCanceledError) Unwrap() error + type RetryMode string + const RetryModeAdaptive + const RetryModeStandard + func ParseRetryMode(v string) (mode RetryMode, err error) + func (m RetryMode) String() string + type Retryer interface + GetInitialToken func() (releaseToken func(error) error) + GetRetryToken func(ctx context.Context, opErr error) (releaseToken func(error) error, err error) + IsErrorRetryable func(error) bool + MaxAttempts func() int + RetryDelay func(attempt int, opErr error) (time.Duration, error) + type RetryerV2 interface + GetAttemptToken func(context.Context) (func(error) error, error) + GetInitialToken func() (releaseToken func(error) error) + type RuntimeEnvironment struct + EC2InstanceMetadataRegion string + EnvironmentIdentifier ExecutionEnvironmentID + Region string + type Ternary int + const FalseTernary + const TrueTernary + const UnknownTernary + func BoolTernary(v bool) Ternary + func (t Ternary) Bool() bool + func (t Ternary) String() string