Package: aws

import "../ibm-cos-sdk-go-v2/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

Interface Summary collapse

Function Summary collapse

Type Details

CredentialsCacheOptions struct

CredentialsCacheOptions are the options

Structure Fields:

ExpiryWindow time.Duration

ExpiryWindow will allow the credentials to trigger refreshing prior to the credentials actually expiring. This is beneficial so race conditions with expiring credentials do not cause request to fail unexpectedly due to ExpiredTokenException exceptions.

An ExpiryWindow of 10s would cause calls to IsExpired() to return true 10 seconds before the credentials are actually expired. This can cause an increased number of requests to refresh the credentials to occur.

If ExpiryWindow is 0 or less it will be ignored.

ExpiryWindowJitterFrac float64

ExpiryWindowJitterFrac provides a mechanism for randomizing the expiration of credentials within the configured ExpiryWindow by a random percentage. Valid values are between 0.0 and 1.0.

As an example if ExpiryWindow is 60 seconds and ExpiryWindowJitterFrac is 0.5 then credentials will be set to expire between 30 to 60 seconds prior to their actual expiration time.

If ExpiryWindow is 0 or less then ExpiryWindowJitterFrac is ignored. If ExpiryWindowJitterFrac is 0 then no randomization will be applied to the window. If ExpiryWindowJitterFrac < 0 the value will be treated as 0. If ExpiryWindowJitterFrac > 1 the value will be treated as 1.

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.

Structure Fields:

URL string

The base URL endpoint the SDK API clients will use to make API calls to. The SDK will suffix URI path and query elements to this endpoint.

HostnameImmutable bool

Specifies if the endpoint’s hostname can be modified by the SDK’s API client.

If the hostname is mutable the SDK API clients may modify any part of the hostname based on the requirements of the API, (e.g. adding, or removing content in the hostname). Such as, Amazon S3 API client prefixing “bucketname” to the hostname, or changing the hostname service name component from “s3.” to “s3-accesspoint.dualstack.” for the dualstack endpoint of an S3 Accesspoint resource.

Care should be taken when providing a custom endpoint for an API. If the endpoint hostname is mutable, and the client cannot modify the endpoint correctly, the operation call will most likely fail, or have undefined behavior.

If hostname is immutable, the SDK API clients will not modify the hostname of the URL. This may cause the API client not to function correctly if the API requires the operation specific hostname values to be used by the client.

This flag does not modify the API client’s behavior if this endpoint will be used instead of Endpoint Discovery, or if the endpoint will be used to perform Endpoint Discovery. That behavior is configured via the API Client’s Options.

PartitionID string

The AWS partition the endpoint belongs to.

SigningName string

The service name that should be used for signing the requests to the endpoint.

SigningRegion string

The region that should be used for signing the request to the endpoint.

SigningMethod string

The signing method that should be used for signing the requests to the endpoint.

Source EndpointSource

The source of the Endpoint. By default, this will be EndpointSourceServiceMetadata. When providing a custom endpoint, you should set the source as EndpointSourceCustom. If source is not provided when providing a custom endpoint, the SDK may not perform required host mutations correctly. Source should be used along with HostnameImmutable property as per the usage requirement.

RetryMode struct

Structure Fields:

(empty 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..

Structure Fields:

EnvironmentIdentifier ExecutionEnvironmentID
Region string
EC2InstanceMetadataRegion string

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 Bool(v bool) *bool { return ptr.Bool(v) }

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 BoolMap(vs map[string]bool) map[string]*bool { return ptr.BoolMap(vs) }

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 BoolSlice(vs []bool) []*bool { return ptr.BoolSlice(vs) }

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 BoolTernary(v bool) Ternary { if v { return TrueTernary } return FalseTernary }

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 Byte(v byte) *byte { return ptr.Byte(v) }

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 ByteMap(vs map[string]byte) map[string]*byte { return ptr.ByteMap(vs) }

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 ByteSlice(vs []byte) []*byte { return ptr.ByteSlice(vs) }

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 Duration(v time.Duration) *time.Duration { return ptr.Duration(v) }

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 DurationMap(vs map[string]time.Duration) map[string]*time.Duration { return ptr.DurationMap(vs) }

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 DurationSlice(vs []time.Duration) []*time.Duration { return ptr.DurationSlice(vs) }

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 Float32(v float32) *float32 { return ptr.Float32(v) }

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 Float32Map(vs map[string]float32) map[string]*float32 { return ptr.Float32Map(vs) }

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 Float32Slice(vs []float32) []*float32 { return ptr.Float32Slice(vs) }

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 Float64(v float64) *float64 { return ptr.Float64(v) }

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 Float64Map(vs map[string]float64) map[string]*float64 { return ptr.Float64Map(vs) }

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 Float64Slice(vs []float64) []*float64 { return ptr.Float64Slice(vs) }

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 GetDisableHTTPS(options ...interface{}) (value bool, found bool) { type iface interface { GetDisableHTTPS() bool } for _, option := range options { if i, ok := option.(iface); ok { value = i.GetDisableHTTPS() found = true break } } return value, found }

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 GetResolvedRegion(options ...interface{}) (value string, found bool) { type iface interface { GetResolvedRegion() string } for _, option := range options { if i, ok := option.(iface); ok { value = i.GetResolvedRegion() found = true break } } return value, found }

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 GetUseDualStackEndpoint(options ...interface{}) (value DualStackEndpointState, found bool) { type iface interface { GetUseDualStackEndpoint() DualStackEndpointState } for _, option := range options { if i, ok := option.(iface); ok { value = i.GetUseDualStackEndpoint() found = true break } } return value, found }

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 GetUseFIPSEndpoint(options ...interface{}) (value FIPSEndpointState, found bool) { type iface interface { GetUseFIPSEndpoint() FIPSEndpointState } for _, option := range options { if i, ok := option.(iface); ok { value = i.GetUseFIPSEndpoint() found = true break } } return value, found }

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 Int(v int) *int { return ptr.Int(v) }

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 Int16(v int16) *int16 { return ptr.Int16(v) }

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 Int16Map(vs map[string]int16) map[string]*int16 { return ptr.Int16Map(vs) }

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 Int16Slice(vs []int16) []*int16 { return ptr.Int16Slice(vs) }

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 Int32(v int32) *int32 { return ptr.Int32(v) }

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 Int32Map(vs map[string]int32) map[string]*int32 { return ptr.Int32Map(vs) }

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 Int32Slice(vs []int32) []*int32 { return ptr.Int32Slice(vs) }

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 Int64(v int64) *int64 { return ptr.Int64(v) }

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 Int64Map(vs map[string]int64) map[string]*int64 { return ptr.Int64Map(vs) }

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 Int64Slice(vs []int64) []*int64 { return ptr.Int64Slice(vs) }

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 Int8(v int8) *int8 { return ptr.Int8(v) }

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 Int8Map(vs map[string]int8) map[string]*int8 { return ptr.Int8Map(vs) }

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 Int8Slice(vs []int8) []*int8 { return ptr.Int8Slice(vs) }

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 IntMap(vs map[string]int) map[string]*int { return ptr.IntMap(vs) }

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 IntSlice(vs []int) []*int { return ptr.IntSlice(vs) }

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 IsCredentialsProvider(provider, target CredentialsProvider) bool { if target == nil || provider == nil { return provider == target } if x, ok := provider.(isCredentialsProvider); ok { return x.IsCredentialsProvider(target) } targetType := reflect.TypeOf(target) if targetType.Kind() != reflect.Ptr { targetType = reflect.PtrTo(targetType) } providerType := reflect.TypeOf(provider) if providerType.Kind() != reflect.Ptr { providerType = reflect.PtrTo(providerType) } return targetType.AssignableTo(providerType) }

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 NewCredentialsCache(provider CredentialsProvider, optFns ...func(options *CredentialsCacheOptions)) *CredentialsCache { options := CredentialsCacheOptions{} for _, fn := range optFns { fn(&options) } if options.ExpiryWindow < 0 { options.ExpiryWindow = 0 } if options.ExpiryWindowJitterFrac < 0 { options.ExpiryWindowJitterFrac = 0 } else if options.ExpiryWindowJitterFrac > 1 { options.ExpiryWindowJitterFrac = 1 } return &CredentialsCache{ provider: provider, options: options, } }

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 ParseRetryMode(v string) (mode RetryMode, err error) { switch v { case "standard": return RetryModeStandard, nil case "adaptive": return RetryModeAdaptive, nil default: return mode, fmt.Errorf("unknown RetryMode, %v", v) } }

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 String(v string) *string { return ptr.String(v) }

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 StringMap(vs map[string]string) map[string]*string { return ptr.StringMap(vs) }

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 StringSlice(vs []string) []*string { return ptr.StringSlice(vs) }

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 Time(v time.Time) *time.Time { return ptr.Time(v) }

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 TimeMap(vs map[string]time.Time) map[string]*time.Time { return ptr.TimeMap(vs) }

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 TimeSlice(vs []time.Time) []*time.Time { return ptr.TimeSlice(vs) }

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 ToBool(p *bool) (v bool) { return ptr.ToBool(p) }

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 ToBoolMap(vs map[string]*bool) map[string]bool { return ptr.ToBoolMap(vs) }

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 ToBoolSlice(vs []*bool) []bool { return ptr.ToBoolSlice(vs) }

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 ToByte(p *byte) (v byte) { return ptr.ToByte(p) }

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 ToByteMap(vs map[string]*byte) map[string]byte { return ptr.ToByteMap(vs) }

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 ToByteSlice(vs []*byte) []byte { return ptr.ToByteSlice(vs) }

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 ToDuration(p *time.Duration) (v time.Duration) { return ptr.ToDuration(p) }

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 ToDurationMap(vs map[string]*time.Duration) map[string]time.Duration { return ptr.ToDurationMap(vs) }

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 ToDurationSlice(vs []*time.Duration) []time.Duration { return ptr.ToDurationSlice(vs) }

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 ToFloat32(p *float32) (v float32) { return ptr.ToFloat32(p) }

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 ToFloat32Map(vs map[string]*float32) map[string]float32 { return ptr.ToFloat32Map(vs) }

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 ToFloat32Slice(vs []*float32) []float32 { return ptr.ToFloat32Slice(vs) }

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 ToFloat64(p *float64) (v float64) { return ptr.ToFloat64(p) }

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 ToFloat64Map(vs map[string]*float64) map[string]float64 { return ptr.ToFloat64Map(vs) }

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 ToFloat64Slice(vs []*float64) []float64 { return ptr.ToFloat64Slice(vs) }

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 ToInt(p *int) (v int) { return ptr.ToInt(p) }

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 ToInt16(p *int16) (v int16) { return ptr.ToInt16(p) }

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 ToInt16Map(vs map[string]*int16) map[string]int16 { return ptr.ToInt16Map(vs) }

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 ToInt16Slice(vs []*int16) []int16 { return ptr.ToInt16Slice(vs) }

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 ToInt32(p *int32) (v int32) { return ptr.ToInt32(p) }

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 ToInt32Map(vs map[string]*int32) map[string]int32 { return ptr.ToInt32Map(vs) }

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 ToInt32Slice(vs []*int32) []int32 { return ptr.ToInt32Slice(vs) }

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 ToInt64(p *int64) (v int64) { return ptr.ToInt64(p) }

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 ToInt64Map(vs map[string]*int64) map[string]int64 { return ptr.ToInt64Map(vs) }

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 ToInt64Slice(vs []*int64) []int64 { return ptr.ToInt64Slice(vs) }

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 ToInt8(p *int8) (v int8) { return ptr.ToInt8(p) }

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 ToInt8Map(vs map[string]*int8) map[string]int8 { return ptr.ToInt8Map(vs) }

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 ToInt8Slice(vs []*int8) []int8 { return ptr.ToInt8Slice(vs) }

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 ToIntMap(vs map[string]*int) map[string]int { return ptr.ToIntMap(vs) }

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 ToIntSlice(vs []*int) []int { return ptr.ToIntSlice(vs) }

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 ToString(p *string) (v string) { return ptr.ToString(p) }

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 ToStringMap(vs map[string]*string) map[string]string { return ptr.ToStringMap(vs) }

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 ToStringSlice(vs []*string) []string { return ptr.ToStringSlice(vs) }

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 ToTime(p *time.Time) (v time.Time) { return ptr.ToTime(p) }

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 ToTimeMap(vs map[string]*time.Time) map[string]time.Time { return ptr.ToTimeMap(vs) }

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 ToTimeSlice(vs []*time.Time) []time.Time { return ptr.ToTimeSlice(vs) }

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 ToUint(p *uint) (v uint) { return ptr.ToUint(p) }

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 ToUint16(p *uint16) (v uint16) { return ptr.ToUint16(p) }

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 ToUint16Map(vs map[string]*uint16) map[string]uint16 { return ptr.ToUint16Map(vs) }

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 ToUint16Slice(vs []*uint16) []uint16 { return ptr.ToUint16Slice(vs) }

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 ToUint32(p *uint32) (v uint32) { return ptr.ToUint32(p) }

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 ToUint32Map(vs map[string]*uint32) map[string]uint32 { return ptr.ToUint32Map(vs) }

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 ToUint32Slice(vs []*uint32) []uint32 { return ptr.ToUint32Slice(vs) }

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 ToUint64(p *uint64) (v uint64) { return ptr.ToUint64(p) }

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 ToUint64Map(vs map[string]*uint64) map[string]uint64 { return ptr.ToUint64Map(vs) }

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 ToUint64Slice(vs []*uint64) []uint64 { return ptr.ToUint64Slice(vs) }

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 ToUint8(p *uint8) (v uint8) { return ptr.ToUint8(p) }

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 ToUint8Map(vs map[string]*uint8) map[string]uint8 { return ptr.ToUint8Map(vs) }

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 ToUint8Slice(vs []*uint8) []uint8 { return ptr.ToUint8Slice(vs) }

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 ToUintMap(vs map[string]*uint) map[string]uint { return ptr.ToUintMap(vs) }

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 ToUintSlice(vs []*uint) []uint { return ptr.ToUintSlice(vs) }

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 Uint(v uint) *uint { return ptr.Uint(v) }

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 Uint16(v uint16) *uint16 { return ptr.Uint16(v) }

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 Uint16Map(vs map[string]uint16) map[string]*uint16 { return ptr.Uint16Map(vs) }

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 Uint16Slice(vs []uint16) []*uint16 { return ptr.Uint16Slice(vs) }

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 Uint32(v uint32) *uint32 { return ptr.Uint32(v) }

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 Uint32Map(vs map[string]uint32) map[string]*uint32 { return ptr.Uint32Map(vs) }

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 Uint32Slice(vs []uint32) []*uint32 { return ptr.Uint32Slice(vs) }

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 Uint64(v uint64) *uint64 { return ptr.Uint64(v) }

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 Uint64Map(vs map[string]uint64) map[string]*uint64 { return ptr.Uint64Map(vs) }

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 Uint64Slice(vs []uint64) []*uint64 { return ptr.Uint64Slice(vs) }

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 Uint8(v uint8) *uint8 { return ptr.Uint8(v) }

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 Uint8Map(vs map[string]uint8) map[string]*uint8 { return ptr.Uint8Map(vs) }

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 Uint8Slice(vs []uint8) []*uint8 { return ptr.Uint8Slice(vs) }

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 UintMap(vs map[string]uint) map[string]*uint { return ptr.UintMap(vs) }

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

func UintSlice(vs []uint) []*uint { return ptr.UintSlice(vs) }