Package: aws
Overview
Package aws provides core functionality for making requests to AWS services.
Constants
-
const UnknownTernary Ternary = readonly
-
Value:
iota -
const EndpointDiscoveryUnset EndpointDiscoveryEnableState = readonly
EndpointDiscoveryUnset represents EndpointDiscoveryEnableState is unset. Users do not need to use this value explicitly. The behavior for unset is the same as for EndpointDiscoveryAuto.
-
Value:
iota -
const LogSigning ClientLogMode = readonly
-
Value:
1 << (64 - 1 - iota) -
const RetryModeStandard RetryMode = readonly
RetryModeStandard model provides rate limited retry attempts with exponential backoff delay.
-
Value:
"standard" -
const RetryModeAdaptive RetryMode = readonly
RetryModeAdaptive model provides attempt send rate limiting on throttle responses in addition to standard mode’s retry rate limiting.
Adaptive retry mode is experimental and is subject to change in the future.
-
Value:
"adaptive" -
const SDKName = readonly
SDKName is the name of this AWS SDK
-
Value:
"ibm-cos-sdk-go-v2" -
const SDKVersion = readonly
SDKVersion is the version of this SDK
-
Value:
goModuleVersion -
const RequestChecksumCalculationUnset RequestChecksumCalculation = readonly
RequestChecksumCalculationUnset is the unset value for RequestChecksumCalculation
-
Value:
iota -
const ResponseChecksumValidationUnset ResponseChecksumValidation = readonly
ResponseChecksumValidationUnset is the unset value for ResponseChecksumValidation
-
Value:
iota -
const DualStackEndpointStateUnset DualStackEndpointState = readonly
DualStackEndpointStateUnset is the default value behavior for dual-stack endpoint resolution.
-
Value:
iota -
const FIPSEndpointStateUnset FIPSEndpointState = readonly
FIPSEndpointStateUnset is the default value behavior for FIPS endpoint resolution.
-
Value:
iota -
const EndpointSourceServiceMetadata EndpointSource = readonly
EndpointSourceServiceMetadata denotes service modeled endpoint metadata is used as Endpoint Source.
-
Value:
iota -
const CredentialSourceUndefined CredentialSource = readonly
CredentialSourceUndefined is the sentinel zero value
-
Value:
iota -
const DefaultsModeAuto DefaultsMode = readonly
DefaultsModeAuto is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.
Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query EC2 Instance Metadata service (docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html), which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application
-
Value:
"auto" -
const DefaultsModeCrossRegion DefaultsMode = readonly
DefaultsModeCrossRegion builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region
Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK
-
Value:
"cross-region" -
const DefaultsModeInRegion DefaultsMode = readonly
DefaultsModeInRegion builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region
Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK
-
Value:
"in-region" -
const DefaultsModeLegacy DefaultsMode = readonly
DefaultsModeLegacy provides default settings that vary per SDK and were used prior to establishment of defaults_mode
-
Value:
"legacy" -
const DefaultsModeMobile DefaultsMode = readonly
DefaultsModeMobile builds on the standard mode and includes optimization tailored for mobile applications
Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK
-
Value:
"mobile" -
const DefaultsModeStandard DefaultsMode = readonly
DefaultsModeStandard provides the latest recommended default values that should be safe to run in most scenarios
Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK
-
Value:
"standard" -
const {{- range = readonly
-
Value:
.ModeBits }} {{ (symbolName $field) }}{{- if (eq 0 $index) }} ClientLogMode = 1 << (64 - 1 - iota){{- end }} {{- end }} -
const AccountIDEndpointModeUnset AccountIDEndpointMode = readonly
AccountIDEndpointModeUnset indicates the AWS account ID will not be used for endpoint routing
-
Value:
"" -
const AccountIDEndpointModePreferred = readonly
AccountIDEndpointModePreferred indicates the AWS account ID will be used for endpoint routing if present
-
Value:
"preferred" -
const AccountIDEndpointModeRequired = readonly
AccountIDEndpointModeRequired indicates an error will be returned if the AWS account ID is not resolved from identity
-
Value:
"required" -
const AccountIDEndpointModeDisabled = readonly
AccountIDEndpointModeDisabled indicates the AWS account ID will be ignored during endpoint routing
-
Value:
"disabled"
Type Summary collapse
-
ClientLogMode
struct
IsSigning returns whether the Signing logging mode bit is set.
-
Config
struct
A Config provides service configuration for service clients.
-
Credentials
struct
A Credentials is the AWS credentials value for individual credential fields.
-
CredentialsCache
struct
CredentialsCache provides caching and concurrency safe credentials retrieval via the provider’s retrieve method.
-
CredentialsCacheOptions
struct
CredentialsCacheOptions are the options.
-
CredentialsProviderFunc
struct
Retrieve delegates to the function value the CredentialsProviderFunc wraps.
-
DefaultsMode
struct
SetFromString sets the DefaultsMode value to one of the pre-defined constants that matches the provided string when compared using EqualFold.
-
Endpoint
struct
Endpoint represents the endpoint a service client should make API operation calls to.
-
EndpointNotFoundError
struct
EndpointNotFoundError is a sentinel error to indicate that the EndpointResolver implementation was unable to resolve an endpoint for the given service and region.
-
EndpointResolverFunc
struct
ResolveEndpoint calls the wrapped function and returns the results.
-
EndpointResolverWithOptionsFunc
struct
ResolveEndpoint calls the wrapped function and returns the results.
-
RequestCanceledError
struct
RequestCanceledError is the error that will be returned by an API request that was canceled.
- RetryMode struct
-
RuntimeEnvironment
struct
RuntimeEnvironment is a collection of values that are determined at runtime based on the environment that the SDK is executing in.
- Ternary struct
Interface Summary collapse
-
AdjustExpiresByCredentialsCacheStrategy
interface
AdjustExpiresByCredentialsCacheStrategy is an interface for CredentialCache to allow CredentialsProvider to intercept adjustments to Credentials expiry based on expectations and use cases of CredentialsProvider.
-
CredentialProviderSource
interface
CredentialProviderSource allows any credential provider to track all providers where a credential provider were sourced.
-
CredentialsProvider
interface
A CredentialsProvider is the interface for any component which will provide credentials Credentials.
-
EndpointResolver
interface
EndpointResolver is an endpoint resolver that can be used to provide or override an endpoint for the given service and region.
-
EndpointResolverWithOptions
interface
EndpointResolverWithOptions is an endpoint resolver that can be used to provide or override an endpoint for the given service, region, and the service client’s EndpointOptions.
-
HTTPClient
interface
HTTPClient provides the interface to provide custom HTTPClients.
-
HandleFailRefreshCredentialsCacheStrategy
interface
HandleFailRefreshCredentialsCacheStrategy is an interface for CredentialsCache to allow CredentialsProvider how failed to refresh credentials is handled.
-
RetryerV2
interface
RetryerV2 is an interface to determine if a given error from an attempt should be retried, and if so what backoff delay to apply.
Function Summary collapse
-
func Bool(v bool) *bool
Bool returns a pointer value for the bool value passed in.
-
func BoolMap(vs map[string]bool) map[string]*bool
BoolMap returns a map of bool pointers from the values passed in.
-
func BoolSlice(vs []bool) []*bool
BoolSlice returns a slice of bool pointers from the values passed in.
-
func BoolTernary(v bool) Ternary
BoolTernary returns a true or false Ternary value for the bool provided.
-
func Byte(v byte) *byte
Byte returns a pointer value for the byte value passed in.
-
func ByteMap(vs map[string]byte) map[string]*byte
ByteMap returns a map of byte pointers from the values passed in.
-
func ByteSlice(vs []byte) []*byte
ByteSlice returns a slice of byte pointers from the values passed in.
-
func Duration(v time.Duration) *time.Duration
Duration returns a pointer value for the time.Duration value passed in.
-
func DurationMap(vs map[string]time.Duration) map[string]*time.Duration
DurationMap returns a map of time.Duration pointers from the values passed in.
-
func DurationSlice(vs []time.Duration) []*time.Duration
DurationSlice returns a slice of time.Duration pointers from the values passed in.
-
func Float32(v float32) *float32
Float32 returns a pointer value for the float32 value passed in.
-
func Float32Map(vs map[string]float32) map[string]*float32
Float32Map returns a map of float32 pointers from the values passed in.
-
func Float32Slice(vs []float32) []*float32
Float32Slice returns a slice of float32 pointers from the values passed in.
-
func Float64(v float64) *float64
Float64 returns a pointer value for the float64 value passed in.
-
func Float64Map(vs map[string]float64) map[string]*float64
Float64Map returns a map of float64 pointers from the values passed in.
-
func Float64Slice(vs []float64) []*float64
Float64Slice returns a slice of float64 pointers from the values passed in.
-
func GetDisableHTTPS(options ...interface{}) (value bool, found bool)
GetDisableHTTPS takes a service’s EndpointResolverOptions and returns the DisableHTTPS value.
-
func GetResolvedRegion(options ...interface{}) (value string, found bool)
GetResolvedRegion takes a service’s EndpointResolverOptions and returns the ResolvedRegion value.
-
func GetUseDualStackEndpoint(options ...interface{}) (value DualStackEndpointState, found bool)
GetUseDualStackEndpoint takes a service’s EndpointResolverOptions and returns the UseDualStackEndpoint value.
-
func GetUseFIPSEndpoint(options ...interface{}) (value FIPSEndpointState, found bool)
GetUseFIPSEndpoint takes a service’s EndpointResolverOptions and returns the UseDualStackEndpoint value.
-
func Int(v int) *int
Int returns a pointer value for the int value passed in.
-
func Int16(v int16) *int16
Int16 returns a pointer value for the int16 value passed in.
-
func Int16Map(vs map[string]int16) map[string]*int16
Int16Map returns a map of int16 pointers from the values passed in.
-
func Int16Slice(vs []int16) []*int16
Int16Slice returns a slice of int16 pointers from the values passed in.
-
func Int32(v int32) *int32
Int32 returns a pointer value for the int32 value passed in.
-
func Int32Map(vs map[string]int32) map[string]*int32
Int32Map returns a map of int32 pointers from the values passed in.
-
func Int32Slice(vs []int32) []*int32
Int32Slice returns a slice of int32 pointers from the values passed in.
-
func Int64(v int64) *int64
Int64 returns a pointer value for the int64 value passed in.
-
func Int64Map(vs map[string]int64) map[string]*int64
Int64Map returns a map of int64 pointers from the values passed in.
-
func Int64Slice(vs []int64) []*int64
Int64Slice returns a slice of int64 pointers from the values passed in.
-
func Int8(v int8) *int8
Int8 returns a pointer value for the int8 value passed in.
-
func Int8Map(vs map[string]int8) map[string]*int8
Int8Map returns a map of int8 pointers from the values passed in.
-
func Int8Slice(vs []int8) []*int8
Int8Slice returns a slice of int8 pointers from the values passed in.
-
func IntMap(vs map[string]int) map[string]*int
IntMap returns a map of int pointers from the values passed in.
-
func IntSlice(vs []int) []*int
IntSlice returns a slice of int pointers from the values passed in.
-
func IsCredentialsProvider(provider, target CredentialsProvider) bool
IsCredentialsProvider returns whether the target CredentialProvider is the same type as provider when comparing the implementation type.
-
func NewCredentialsCache(provider CredentialsProvider, optFns ...func(options *CredentialsCacheOptions)) *CredentialsCache
NewCredentialsCache returns a CredentialsCache that wraps provider.
-
func ParseRetryMode(v string) (mode RetryMode, err error)
ParseRetryMode attempts to parse a RetryMode from the given string.
-
func String(v string) *string
String returns a pointer value for the string value passed in.
-
func StringMap(vs map[string]string) map[string]*string
StringMap returns a map of string pointers from the values passed in.
-
func StringSlice(vs []string) []*string
StringSlice returns a slice of string pointers from the values passed in.
-
func Time(v time.Time) *time.Time
Time returns a pointer value for the time.Time value passed in.
-
func TimeMap(vs map[string]time.Time) map[string]*time.Time
TimeMap returns a map of time.Time pointers from the values passed in.
-
func TimeSlice(vs []time.Time) []*time.Time
TimeSlice returns a slice of time.Time pointers from the values passed in.
-
func ToBool(p *bool) (v bool)
ToBool returns bool value dereferenced if the passed in pointer was not nil.
-
func ToBoolMap(vs map[string]*bool) map[string]bool
ToBoolMap returns a map of bool values, that are dereferenced if the passed in pointer was not nil.
-
func ToBoolSlice(vs []*bool) []bool
ToBoolSlice returns a slice of bool values, that are dereferenced if the passed in pointer was not nil.
-
func ToByte(p *byte) (v byte)
ToByte returns byte value dereferenced if the passed in pointer was not nil.
-
func ToByteMap(vs map[string]*byte) map[string]byte
ToByteMap returns a map of byte values, that are dereferenced if the passed in pointer was not nil.
-
func ToByteSlice(vs []*byte) []byte
ToByteSlice returns a slice of byte values, that are dereferenced if the passed in pointer was not nil.
-
func ToDuration(p *time.Duration) (v time.Duration)
ToDuration returns time.Duration value dereferenced if the passed in pointer was not nil.
-
func ToDurationMap(vs map[string]*time.Duration) map[string]time.Duration
ToDurationMap returns a map of time.Duration values, that are dereferenced if the passed in pointer was not nil.
-
func ToDurationSlice(vs []*time.Duration) []time.Duration
ToDurationSlice returns a slice of time.Duration values, that are dereferenced if the passed in pointer was not nil.
-
func ToFloat32(p *float32) (v float32)
ToFloat32 returns float32 value dereferenced if the passed in pointer was not nil.
-
func ToFloat32Map(vs map[string]*float32) map[string]float32
ToFloat32Map returns a map of float32 values, that are dereferenced if the passed in pointer was not nil.
-
func ToFloat32Slice(vs []*float32) []float32
ToFloat32Slice returns a slice of float32 values, that are dereferenced if the passed in pointer was not nil.
-
func ToFloat64(p *float64) (v float64)
ToFloat64 returns float64 value dereferenced if the passed in pointer was not nil.
-
func ToFloat64Map(vs map[string]*float64) map[string]float64
ToFloat64Map returns a map of float64 values, that are dereferenced if the passed in pointer was not nil.
-
func ToFloat64Slice(vs []*float64) []float64
ToFloat64Slice returns a slice of float64 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt(p *int) (v int)
ToInt returns int value dereferenced if the passed in pointer was not nil.
-
func ToInt16(p *int16) (v int16)
ToInt16 returns int16 value dereferenced if the passed in pointer was not nil.
-
func ToInt16Map(vs map[string]*int16) map[string]int16
ToInt16Map returns a map of int16 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt16Slice(vs []*int16) []int16
ToInt16Slice returns a slice of int16 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt32(p *int32) (v int32)
ToInt32 returns int32 value dereferenced if the passed in pointer was not nil.
-
func ToInt32Map(vs map[string]*int32) map[string]int32
ToInt32Map returns a map of int32 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt32Slice(vs []*int32) []int32
ToInt32Slice returns a slice of int32 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt64(p *int64) (v int64)
ToInt64 returns int64 value dereferenced if the passed in pointer was not nil.
-
func ToInt64Map(vs map[string]*int64) map[string]int64
ToInt64Map returns a map of int64 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt64Slice(vs []*int64) []int64
ToInt64Slice returns a slice of int64 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt8(p *int8) (v int8)
ToInt8 returns int8 value dereferenced if the passed in pointer was not nil.
-
func ToInt8Map(vs map[string]*int8) map[string]int8
ToInt8Map returns a map of int8 values, that are dereferenced if the passed in pointer was not nil.
-
func ToInt8Slice(vs []*int8) []int8
ToInt8Slice returns a slice of int8 values, that are dereferenced if the passed in pointer was not nil.
-
func ToIntMap(vs map[string]*int) map[string]int
ToIntMap returns a map of int values, that are dereferenced if the passed in pointer was not nil.
-
func ToIntSlice(vs []*int) []int
ToIntSlice returns a slice of int values, that are dereferenced if the passed in pointer was not nil.
-
func ToString(p *string) (v string)
ToString returns string value dereferenced if the passed in pointer was not nil.
-
func ToStringMap(vs map[string]*string) map[string]string
ToStringMap returns a map of string values, that are dereferenced if the passed in pointer was not nil.
-
func ToStringSlice(vs []*string) []string
ToStringSlice returns a slice of string values, that are dereferenced if the passed in pointer was not nil.
-
func ToTime(p *time.Time) (v time.Time)
ToTime returns time.Time value dereferenced if the passed in pointer was not nil.
-
func ToTimeMap(vs map[string]*time.Time) map[string]time.Time
ToTimeMap returns a map of time.Time values, that are dereferenced if the passed in pointer was not nil.
-
func ToTimeSlice(vs []*time.Time) []time.Time
ToTimeSlice returns a slice of time.Time values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint(p *uint) (v uint)
ToUint returns uint value dereferenced if the passed in pointer was not nil.
-
func ToUint16(p *uint16) (v uint16)
ToUint16 returns uint16 value dereferenced if the passed in pointer was not nil.
-
func ToUint16Map(vs map[string]*uint16) map[string]uint16
ToUint16Map returns a map of uint16 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint16Slice(vs []*uint16) []uint16
ToUint16Slice returns a slice of uint16 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint32(p *uint32) (v uint32)
ToUint32 returns uint32 value dereferenced if the passed in pointer was not nil.
-
func ToUint32Map(vs map[string]*uint32) map[string]uint32
ToUint32Map returns a map of uint32 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint32Slice(vs []*uint32) []uint32
ToUint32Slice returns a slice of uint32 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint64(p *uint64) (v uint64)
ToUint64 returns uint64 value dereferenced if the passed in pointer was not nil.
-
func ToUint64Map(vs map[string]*uint64) map[string]uint64
ToUint64Map returns a map of uint64 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint64Slice(vs []*uint64) []uint64
ToUint64Slice returns a slice of uint64 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint8(p *uint8) (v uint8)
ToUint8 returns uint8 value dereferenced if the passed in pointer was not nil.
-
func ToUint8Map(vs map[string]*uint8) map[string]uint8
ToUint8Map returns a map of uint8 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUint8Slice(vs []*uint8) []uint8
ToUint8Slice returns a slice of uint8 values, that are dereferenced if the passed in pointer was not nil.
-
func ToUintMap(vs map[string]*uint) map[string]uint
ToUintMap returns a map of uint values, that are dereferenced if the passed in pointer was not nil.
-
func ToUintSlice(vs []*uint) []uint
ToUintSlice returns a slice of uint values, that are dereferenced if the passed in pointer was not nil.
-
func Uint(v uint) *uint
Uint returns a pointer value for the uint value passed in.
-
func Uint16(v uint16) *uint16
Uint16 returns a pointer value for the uint16 value passed in.
-
func Uint16Map(vs map[string]uint16) map[string]*uint16
Uint16Map returns a map of uint16 pointers from the values passed in.
-
func Uint16Slice(vs []uint16) []*uint16
Uint16Slice returns a slice of uint16 pointers from the values passed in.
-
func Uint32(v uint32) *uint32
Uint32 returns a pointer value for the uint32 value passed in.
-
func Uint32Map(vs map[string]uint32) map[string]*uint32
Uint32Map returns a map of uint32 pointers from the values passed in.
-
func Uint32Slice(vs []uint32) []*uint32
Uint32Slice returns a slice of uint32 pointers from the values passed in.
-
func Uint64(v uint64) *uint64
Uint64 returns a pointer value for the uint64 value passed in.
-
func Uint64Map(vs map[string]uint64) map[string]*uint64
Uint64Map returns a map of uint64 pointers from the values passed in.
-
func Uint64Slice(vs []uint64) []*uint64
Uint64Slice returns a slice of uint64 pointers from the values passed in.
-
func Uint8(v uint8) *uint8
Uint8 returns a pointer value for the uint8 value passed in.
-
func Uint8Map(vs map[string]uint8) map[string]*uint8
Uint8Map returns a map of uint8 pointers from the values passed in.
-
func Uint8Slice(vs []uint8) []*uint8
Uint8Slice returns a slice of uint8 pointers from the values passed in.
-
func UintMap(vs map[string]uint) map[string]*uint
UintMap returns a map of uint pointers from the values passed in.
-
func UintSlice(vs []uint) []*uint
UintSlice returns a slice of uint pointers from the values passed in.
Type Details
CredentialsCacheOptions struct
CredentialsCacheOptions are the options
Endpoint struct
Endpoint represents the endpoint a service client should make API operation calls to.
The SDK will automatically resolve these endpoints per API client using an internal endpoint resolvers. If you’d like to provide custom endpoint resolving behavior you can implement the EndpointResolver interface.
Deprecated: This structure was used with the global [EndpointResolver] interface, which has been deprecated in favor of service-specific endpoint resolution. See the deprecation docs on that interface for more information.
RetryMode struct
RuntimeEnvironment struct
RuntimeEnvironment is a collection of values that are determined at runtime based on the environment that the SDK is executing in. Some of these values may or may not be present based on the executing environment and certain SDK configuration properties that drive whether these values are populated..
Function Details
func Bool(v bool) *bool
Bool returns a pointer value for the bool value passed in.
10 11 12 |
// File 'aws/to_ptr.go', line 10
|
func BoolMap(vs map[string]bool) map[string]*bool
BoolMap returns a map of bool pointers from the values passed in.
22 23 24 |
// File 'aws/to_ptr.go', line 22
|
func BoolSlice(vs []bool) []*bool
BoolSlice returns a slice of bool pointers from the values passed in.
16 17 18 |
// File 'aws/to_ptr.go', line 16
|
func BoolTernary(v bool) Ternary
BoolTernary returns a true or false Ternary value for the bool provided.
36 37 38 39 40 41 |
// File 'aws/types.go', line 36
|
func Byte(v byte) *byte
Byte returns a pointer value for the byte value passed in.
27 28 29 |
// File 'aws/to_ptr.go', line 27
|
func ByteMap(vs map[string]byte) map[string]*byte
ByteMap returns a map of byte pointers from the values passed in.
39 40 41 |
// File 'aws/to_ptr.go', line 39
|
func ByteSlice(vs []byte) []*byte
ByteSlice returns a slice of byte pointers from the values passed in.
33 34 35 |
// File 'aws/to_ptr.go', line 33
|
func Duration(v time.Duration) *time.Duration
Duration returns a pointer value for the time.Duration value passed in.
282 283 284 |
// File 'aws/to_ptr.go', line 282
|
func DurationMap(vs map[string]time.Duration) map[string]*time.Duration
DurationMap returns a map of time.Duration pointers from the values passed in.
294 295 296 |
// File 'aws/to_ptr.go', line 294
|
func DurationSlice(vs []time.Duration) []*time.Duration
DurationSlice returns a slice of time.Duration pointers from the values passed in.
288 289 290 |
// File 'aws/to_ptr.go', line 288
|
func Float32(v float32) *float32
Float32 returns a pointer value for the float32 value passed in.
231 232 233 |
// File 'aws/to_ptr.go', line 231
|
func Float32Map(vs map[string]float32) map[string]*float32
Float32Map returns a map of float32 pointers from the values passed in.
243 244 245 |
// File 'aws/to_ptr.go', line 243
|
func Float32Slice(vs []float32) []*float32
Float32Slice returns a slice of float32 pointers from the values passed in.
237 238 239 |
// File 'aws/to_ptr.go', line 237
|
func Float64(v float64) *float64
Float64 returns a pointer value for the float64 value passed in.
248 249 250 |
// File 'aws/to_ptr.go', line 248
|
func Float64Map(vs map[string]float64) map[string]*float64
Float64Map returns a map of float64 pointers from the values passed in.
260 261 262 |
// File 'aws/to_ptr.go', line 260
|
func Float64Slice(vs []float64) []*float64
Float64Slice returns a slice of float64 pointers from the values passed in.
254 255 256 |
// File 'aws/to_ptr.go', line 254
|
func GetDisableHTTPS(options ...interface{}) (value bool, found bool)
GetDisableHTTPS takes a service’s EndpointResolverOptions and returns the DisableHTTPS value. Returns boolean false if the provided options does not have a method to retrieve the DisableHTTPS.
218 219 220 221 222 223 224 225 226 227 228 229 230 |
// File 'aws/endpoints.go', line 218
|
func GetResolvedRegion(options ...interface{}) (value string, found bool)
GetResolvedRegion takes a service’s EndpointResolverOptions and returns the ResolvedRegion value. Returns boolean false if the provided options does not have a method to retrieve the ResolvedRegion.
234 235 236 237 238 239 240 241 242 243 244 245 246 |
// File 'aws/endpoints.go', line 234
|
func GetUseDualStackEndpoint(options ...interface{}) (value DualStackEndpointState, found bool)
GetUseDualStackEndpoint takes a service’s EndpointResolverOptions and returns the UseDualStackEndpoint value. Returns boolean false if the provided options does not have a method to retrieve the DualStackEndpointState.
22 23 24 25 26 27 28 29 30 31 32 33 34 |
// File 'aws/endpoints.go', line 22
|
func GetUseFIPSEndpoint(options ...interface{}) (value FIPSEndpointState, found bool)
GetUseFIPSEndpoint takes a service’s EndpointResolverOptions and returns the UseDualStackEndpoint value. Returns boolean false if the provided options does not have a method to retrieve the DualStackEndpointState.
52 53 54 55 56 57 58 59 60 61 62 63 64 |
// File 'aws/endpoints.go', line 52
|
func Int(v int) *int
Int returns a pointer value for the int value passed in.
61 62 63 |
// File 'aws/to_ptr.go', line 61
|
func Int16(v int16) *int16
Int16 returns a pointer value for the int16 value passed in.
95 96 97 |
// File 'aws/to_ptr.go', line 95
|
func Int16Map(vs map[string]int16) map[string]*int16
Int16Map returns a map of int16 pointers from the values passed in.
107 108 109 |
// File 'aws/to_ptr.go', line 107
|
func Int16Slice(vs []int16) []*int16
Int16Slice returns a slice of int16 pointers from the values passed in.
101 102 103 |
// File 'aws/to_ptr.go', line 101
|
func Int32(v int32) *int32
Int32 returns a pointer value for the int32 value passed in.
112 113 114 |
// File 'aws/to_ptr.go', line 112
|
func Int32Map(vs map[string]int32) map[string]*int32
Int32Map returns a map of int32 pointers from the values passed in.
124 125 126 |
// File 'aws/to_ptr.go', line 124
|
func Int32Slice(vs []int32) []*int32
Int32Slice returns a slice of int32 pointers from the values passed in.
118 119 120 |
// File 'aws/to_ptr.go', line 118
|
func Int64(v int64) *int64
Int64 returns a pointer value for the int64 value passed in.
129 130 131 |
// File 'aws/to_ptr.go', line 129
|
func Int64Map(vs map[string]int64) map[string]*int64
Int64Map returns a map of int64 pointers from the values passed in.
141 142 143 |
// File 'aws/to_ptr.go', line 141
|
func Int64Slice(vs []int64) []*int64
Int64Slice returns a slice of int64 pointers from the values passed in.
135 136 137 |
// File 'aws/to_ptr.go', line 135
|
func Int8(v int8) *int8
Int8 returns a pointer value for the int8 value passed in.
78 79 80 |
// File 'aws/to_ptr.go', line 78
|
func Int8Map(vs map[string]int8) map[string]*int8
Int8Map returns a map of int8 pointers from the values passed in.
90 91 92 |
// File 'aws/to_ptr.go', line 90
|
func Int8Slice(vs []int8) []*int8
Int8Slice returns a slice of int8 pointers from the values passed in.
84 85 86 |
// File 'aws/to_ptr.go', line 84
|
func IntMap(vs map[string]int) map[string]*int
IntMap returns a map of int pointers from the values passed in.
73 74 75 |
// File 'aws/to_ptr.go', line 73
|
func IntSlice(vs []int) []*int
IntSlice returns a slice of int pointers from the values passed in.
67 68 69 |
// File 'aws/to_ptr.go', line 67
|
func IsCredentialsProvider(provider, target CredentialsProvider) bool
IsCredentialsProvider returns whether the target CredentialProvider is the same type as provider when comparing the implementation type.
If provider has a method IsCredentialsProvider(CredentialsProvider) bool it will be responsible for validating whether target matches the credential provider type.
When comparing the CredentialProvider implementations provider and target for equality, the following rules are used:
If provider is of type T and target is of type V, true if type *T is the same as type *V, otherwise false
If provider is of type *T and target is of type V, true if type *T is the same as type *V, otherwise false
If provider is of type T and target is of type *V, true if type *T is the same as type *V, otherwise false
If provider is of type *T and target is of type *V,true if type *T is the same as type *V, otherwise false
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
// File 'aws/credentials.go', line 219
|
func NewCredentialsCache(provider CredentialsProvider, optFns ...func(options *CredentialsCacheOptions)) *CredentialsCache
NewCredentialsCache returns a CredentialsCache that wraps provider. Provider is expected to not be nil. A variadic list of one or more functions can be provided to modify the CredentialsCache configuration. This allows for configuration of credential expiry window and jitter.
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
// File 'aws/credential_cache.go', line 68
|
func ParseRetryMode(v string) (mode RetryMode, err error)
ParseRetryMode attempts to parse a RetryMode from the given string. Returning error if the value is not a known RetryMode.
27 28 29 30 31 32 33 34 35 36 |
// File 'aws/retryer.go', line 27
|
func String(v string) *string
String returns a pointer value for the string value passed in.
44 45 46 |
// File 'aws/to_ptr.go', line 44
|
func StringMap(vs map[string]string) map[string]*string
StringMap returns a map of string pointers from the values passed in.
56 57 58 |
// File 'aws/to_ptr.go', line 56
|
func StringSlice(vs []string) []*string
StringSlice returns a slice of string pointers from the values passed in.
50 51 52 |
// File 'aws/to_ptr.go', line 50
|
func Time(v time.Time) *time.Time
Time returns a pointer value for the time.Time value passed in.
265 266 267 |
// File 'aws/to_ptr.go', line 265
|
func TimeMap(vs map[string]time.Time) map[string]*time.Time
TimeMap returns a map of time.Time pointers from the values passed in.
277 278 279 |
// File 'aws/to_ptr.go', line 277
|
func TimeSlice(vs []time.Time) []*time.Time
TimeSlice returns a slice of time.Time pointers from the values passed in.
271 272 273 |
// File 'aws/to_ptr.go', line 271
|
func ToBool(p *bool) (v bool)
ToBool returns bool value dereferenced if the passed in pointer was not nil. Returns a bool zero value if the pointer was nil.
12 13 14 |
// File 'aws/from_ptr.go', line 12
|
func ToBoolMap(vs map[string]*bool) map[string]bool
ToBoolMap returns a map of bool values, that are dereferenced if the passed in pointer was not nil. The bool zero value is used if the pointer was nil.
26 27 28 |
// File 'aws/from_ptr.go', line 26
|
func ToBoolSlice(vs []*bool) []bool
ToBoolSlice returns a slice of bool values, that are dereferenced if the passed in pointer was not nil. Returns a bool zero value if the pointer was nil.
19 20 21 |
// File 'aws/from_ptr.go', line 19
|
func ToByte(p *byte) (v byte)
ToByte returns byte value dereferenced if the passed in pointer was not nil. Returns a byte zero value if the pointer was nil.
33 34 35 |
// File 'aws/from_ptr.go', line 33
|
func ToByteMap(vs map[string]*byte) map[string]byte
ToByteMap returns a map of byte values, that are dereferenced if the passed in pointer was not nil. The byte zero value is used if the pointer was nil.
47 48 49 |
// File 'aws/from_ptr.go', line 47
|
func ToByteSlice(vs []*byte) []byte
ToByteSlice returns a slice of byte values, that are dereferenced if the passed in pointer was not nil. Returns a byte zero value if the pointer was nil.
40 41 42 |
// File 'aws/from_ptr.go', line 40
|
func ToDuration(p *time.Duration) (v time.Duration)
ToDuration returns time.Duration value dereferenced if the passed in pointer was not nil. Returns a time.Duration zero value if the pointer was nil.
348 349 350 |
// File 'aws/from_ptr.go', line 348
|
func ToDurationMap(vs map[string]*time.Duration) map[string]time.Duration
ToDurationMap returns a map of time.Duration values, that are dereferenced if the passed in pointer was not nil. The time.Duration zero value is used if the pointer was nil.
362 363 364 |
// File 'aws/from_ptr.go', line 362
|
func ToDurationSlice(vs []*time.Duration) []time.Duration
ToDurationSlice returns a slice of time.Duration values, that are dereferenced if the passed in pointer was not nil. Returns a time.Duration zero value if the pointer was nil.
355 356 357 |
// File 'aws/from_ptr.go', line 355
|
func ToFloat32(p *float32) (v float32)
ToFloat32 returns float32 value dereferenced if the passed in pointer was not nil. Returns a float32 zero value if the pointer was nil.
285 286 287 |
// File 'aws/from_ptr.go', line 285
|
func ToFloat32Map(vs map[string]*float32) map[string]float32
ToFloat32Map returns a map of float32 values, that are dereferenced if the passed in pointer was not nil. The float32 zero value is used if the pointer was nil.
299 300 301 |
// File 'aws/from_ptr.go', line 299
|
func ToFloat32Slice(vs []*float32) []float32
ToFloat32Slice returns a slice of float32 values, that are dereferenced if the passed in pointer was not nil. Returns a float32 zero value if the pointer was nil.
292 293 294 |
// File 'aws/from_ptr.go', line 292
|
func ToFloat64(p *float64) (v float64)
ToFloat64 returns float64 value dereferenced if the passed in pointer was not nil. Returns a float64 zero value if the pointer was nil.
306 307 308 |
// File 'aws/from_ptr.go', line 306
|
func ToFloat64Map(vs map[string]*float64) map[string]float64
ToFloat64Map returns a map of float64 values, that are dereferenced if the passed in pointer was not nil. The float64 zero value is used if the pointer was nil.
320 321 322 |
// File 'aws/from_ptr.go', line 320
|
func ToFloat64Slice(vs []*float64) []float64
ToFloat64Slice returns a slice of float64 values, that are dereferenced if the passed in pointer was not nil. Returns a float64 zero value if the pointer was nil.
313 314 315 |
// File 'aws/from_ptr.go', line 313
|
func ToInt(p *int) (v int)
ToInt returns int value dereferenced if the passed in pointer was not nil. Returns a int zero value if the pointer was nil.
75 76 77 |
// File 'aws/from_ptr.go', line 75
|
func ToInt16(p *int16) (v int16)
ToInt16 returns int16 value dereferenced if the passed in pointer was not nil. Returns a int16 zero value if the pointer was nil.
117 118 119 |
// File 'aws/from_ptr.go', line 117
|
func ToInt16Map(vs map[string]*int16) map[string]int16
ToInt16Map returns a map of int16 values, that are dereferenced if the passed in pointer was not nil. The int16 zero value is used if the pointer was nil.
131 132 133 |
// File 'aws/from_ptr.go', line 131
|
func ToInt16Slice(vs []*int16) []int16
ToInt16Slice returns a slice of int16 values, that are dereferenced if the passed in pointer was not nil. Returns a int16 zero value if the pointer was nil.
124 125 126 |
// File 'aws/from_ptr.go', line 124
|
func ToInt32(p *int32) (v int32)
ToInt32 returns int32 value dereferenced if the passed in pointer was not nil. Returns a int32 zero value if the pointer was nil.
138 139 140 |
// File 'aws/from_ptr.go', line 138
|
func ToInt32Map(vs map[string]*int32) map[string]int32
ToInt32Map returns a map of int32 values, that are dereferenced if the passed in pointer was not nil. The int32 zero value is used if the pointer was nil.
152 153 154 |
// File 'aws/from_ptr.go', line 152
|
func ToInt32Slice(vs []*int32) []int32
ToInt32Slice returns a slice of int32 values, that are dereferenced if the passed in pointer was not nil. Returns a int32 zero value if the pointer was nil.
145 146 147 |
// File 'aws/from_ptr.go', line 145
|
func ToInt64(p *int64) (v int64)
ToInt64 returns int64 value dereferenced if the passed in pointer was not nil. Returns a int64 zero value if the pointer was nil.
159 160 161 |
// File 'aws/from_ptr.go', line 159
|
func ToInt64Map(vs map[string]*int64) map[string]int64
ToInt64Map returns a map of int64 values, that are dereferenced if the passed in pointer was not nil. The int64 zero value is used if the pointer was nil.
173 174 175 |
// File 'aws/from_ptr.go', line 173
|
func ToInt64Slice(vs []*int64) []int64
ToInt64Slice returns a slice of int64 values, that are dereferenced if the passed in pointer was not nil. Returns a int64 zero value if the pointer was nil.
166 167 168 |
// File 'aws/from_ptr.go', line 166
|
func ToInt8(p *int8) (v int8)
ToInt8 returns int8 value dereferenced if the passed in pointer was not nil. Returns a int8 zero value if the pointer was nil.
96 97 98 |
// File 'aws/from_ptr.go', line 96
|
func ToInt8Map(vs map[string]*int8) map[string]int8
ToInt8Map returns a map of int8 values, that are dereferenced if the passed in pointer was not nil. The int8 zero value is used if the pointer was nil.
110 111 112 |
// File 'aws/from_ptr.go', line 110
|
func ToInt8Slice(vs []*int8) []int8
ToInt8Slice returns a slice of int8 values, that are dereferenced if the passed in pointer was not nil. Returns a int8 zero value if the pointer was nil.
103 104 105 |
// File 'aws/from_ptr.go', line 103
|
func ToIntMap(vs map[string]*int) map[string]int
ToIntMap returns a map of int values, that are dereferenced if the passed in pointer was not nil. The int zero value is used if the pointer was nil.
89 90 91 |
// File 'aws/from_ptr.go', line 89
|
func ToIntSlice(vs []*int) []int
ToIntSlice returns a slice of int values, that are dereferenced if the passed in pointer was not nil. Returns a int zero value if the pointer was nil.
82 83 84 |
// File 'aws/from_ptr.go', line 82
|
func ToString(p *string) (v string)
ToString returns string value dereferenced if the passed in pointer was not nil. Returns a string zero value if the pointer was nil.
54 55 56 |
// File 'aws/from_ptr.go', line 54
|
func ToStringMap(vs map[string]*string) map[string]string
ToStringMap returns a map of string values, that are dereferenced if the passed in pointer was not nil. The string zero value is used if the pointer was nil.
68 69 70 |
// File 'aws/from_ptr.go', line 68
|
func ToStringSlice(vs []*string) []string
ToStringSlice returns a slice of string values, that are dereferenced if the passed in pointer was not nil. Returns a string zero value if the pointer was nil.
61 62 63 |
// File 'aws/from_ptr.go', line 61
|
func ToTime(p *time.Time) (v time.Time)
ToTime returns time.Time value dereferenced if the passed in pointer was not nil. Returns a time.Time zero value if the pointer was nil.
327 328 329 |
// File 'aws/from_ptr.go', line 327
|
func ToTimeMap(vs map[string]*time.Time) map[string]time.Time
ToTimeMap returns a map of time.Time values, that are dereferenced if the passed in pointer was not nil. The time.Time zero value is used if the pointer was nil.
341 342 343 |
// File 'aws/from_ptr.go', line 341
|
func ToTimeSlice(vs []*time.Time) []time.Time
ToTimeSlice returns a slice of time.Time values, that are dereferenced if the passed in pointer was not nil. Returns a time.Time zero value if the pointer was nil.
334 335 336 |
// File 'aws/from_ptr.go', line 334
|
func ToUint(p *uint) (v uint)
ToUint returns uint value dereferenced if the passed in pointer was not nil. Returns a uint zero value if the pointer was nil.
180 181 182 |
// File 'aws/from_ptr.go', line 180
|
func ToUint16(p *uint16) (v uint16)
ToUint16 returns uint16 value dereferenced if the passed in pointer was not nil. Returns a uint16 zero value if the pointer was nil.
222 223 224 |
// File 'aws/from_ptr.go', line 222
|
func ToUint16Map(vs map[string]*uint16) map[string]uint16
ToUint16Map returns a map of uint16 values, that are dereferenced if the passed in pointer was not nil. The uint16 zero value is used if the pointer was nil.
236 237 238 |
// File 'aws/from_ptr.go', line 236
|
func ToUint16Slice(vs []*uint16) []uint16
ToUint16Slice returns a slice of uint16 values, that are dereferenced if the passed in pointer was not nil. Returns a uint16 zero value if the pointer was nil.
229 230 231 |
// File 'aws/from_ptr.go', line 229
|
func ToUint32(p *uint32) (v uint32)
ToUint32 returns uint32 value dereferenced if the passed in pointer was not nil. Returns a uint32 zero value if the pointer was nil.
243 244 245 |
// File 'aws/from_ptr.go', line 243
|
func ToUint32Map(vs map[string]*uint32) map[string]uint32
ToUint32Map returns a map of uint32 values, that are dereferenced if the passed in pointer was not nil. The uint32 zero value is used if the pointer was nil.
257 258 259 |
// File 'aws/from_ptr.go', line 257
|
func ToUint32Slice(vs []*uint32) []uint32
ToUint32Slice returns a slice of uint32 values, that are dereferenced if the passed in pointer was not nil. Returns a uint32 zero value if the pointer was nil.
250 251 252 |
// File 'aws/from_ptr.go', line 250
|
func ToUint64(p *uint64) (v uint64)
ToUint64 returns uint64 value dereferenced if the passed in pointer was not nil. Returns a uint64 zero value if the pointer was nil.
264 265 266 |
// File 'aws/from_ptr.go', line 264
|
func ToUint64Map(vs map[string]*uint64) map[string]uint64
ToUint64Map returns a map of uint64 values, that are dereferenced if the passed in pointer was not nil. The uint64 zero value is used if the pointer was nil.
278 279 280 |
// File 'aws/from_ptr.go', line 278
|
func ToUint64Slice(vs []*uint64) []uint64
ToUint64Slice returns a slice of uint64 values, that are dereferenced if the passed in pointer was not nil. Returns a uint64 zero value if the pointer was nil.
271 272 273 |
// File 'aws/from_ptr.go', line 271
|
func ToUint8(p *uint8) (v uint8)
ToUint8 returns uint8 value dereferenced if the passed in pointer was not nil. Returns a uint8 zero value if the pointer was nil.
201 202 203 |
// File 'aws/from_ptr.go', line 201
|
func ToUint8Map(vs map[string]*uint8) map[string]uint8
ToUint8Map returns a map of uint8 values, that are dereferenced if the passed in pointer was not nil. The uint8 zero value is used if the pointer was nil.
215 216 217 |
// File 'aws/from_ptr.go', line 215
|
func ToUint8Slice(vs []*uint8) []uint8
ToUint8Slice returns a slice of uint8 values, that are dereferenced if the passed in pointer was not nil. Returns a uint8 zero value if the pointer was nil.
208 209 210 |
// File 'aws/from_ptr.go', line 208
|
func ToUintMap(vs map[string]*uint) map[string]uint
ToUintMap returns a map of uint values, that are dereferenced if the passed in pointer was not nil. The uint zero value is used if the pointer was nil.
194 195 196 |
// File 'aws/from_ptr.go', line 194
|
func ToUintSlice(vs []*uint) []uint
ToUintSlice returns a slice of uint values, that are dereferenced if the passed in pointer was not nil. Returns a uint zero value if the pointer was nil.
187 188 189 |
// File 'aws/from_ptr.go', line 187
|
func Uint(v uint) *uint
Uint returns a pointer value for the uint value passed in.
146 147 148 |
// File 'aws/to_ptr.go', line 146
|
func Uint16(v uint16) *uint16
Uint16 returns a pointer value for the uint16 value passed in.
180 181 182 |
// File 'aws/to_ptr.go', line 180
|
func Uint16Map(vs map[string]uint16) map[string]*uint16
Uint16Map returns a map of uint16 pointers from the values passed in.
192 193 194 |
// File 'aws/to_ptr.go', line 192
|
func Uint16Slice(vs []uint16) []*uint16
Uint16Slice returns a slice of uint16 pointers from the values passed in.
186 187 188 |
// File 'aws/to_ptr.go', line 186
|
func Uint32(v uint32) *uint32
Uint32 returns a pointer value for the uint32 value passed in.
197 198 199 |
// File 'aws/to_ptr.go', line 197
|
func Uint32Map(vs map[string]uint32) map[string]*uint32
Uint32Map returns a map of uint32 pointers from the values passed in.
209 210 211 |
// File 'aws/to_ptr.go', line 209
|
func Uint32Slice(vs []uint32) []*uint32
Uint32Slice returns a slice of uint32 pointers from the values passed in.
203 204 205 |
// File 'aws/to_ptr.go', line 203
|
func Uint64(v uint64) *uint64
Uint64 returns a pointer value for the uint64 value passed in.
214 215 216 |
// File 'aws/to_ptr.go', line 214
|
func Uint64Map(vs map[string]uint64) map[string]*uint64
Uint64Map returns a map of uint64 pointers from the values passed in.
226 227 228 |
// File 'aws/to_ptr.go', line 226
|
func Uint64Slice(vs []uint64) []*uint64
Uint64Slice returns a slice of uint64 pointers from the values passed in.
220 221 222 |
// File 'aws/to_ptr.go', line 220
|
func Uint8(v uint8) *uint8
Uint8 returns a pointer value for the uint8 value passed in.
163 164 165 |
// File 'aws/to_ptr.go', line 163
|
func Uint8Map(vs map[string]uint8) map[string]*uint8
Uint8Map returns a map of uint8 pointers from the values passed in.
175 176 177 |
// File 'aws/to_ptr.go', line 175
|
func Uint8Slice(vs []uint8) []*uint8
Uint8Slice returns a slice of uint8 pointers from the values passed in.
169 170 171 |
// File 'aws/to_ptr.go', line 169
|
func UintMap(vs map[string]uint) map[string]*uint
UintMap returns a map of uint pointers from the values passed in.
158 159 160 |
// File 'aws/to_ptr.go', line 158
|
func UintSlice(vs []uint) []*uint
UintSlice returns a slice of uint pointers from the values passed in.
152 153 154 |
// File 'aws/to_ptr.go', line 152
|