aws-sdk-dynamodb 1.122.0 → 1.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +20 -5
- data/lib/aws-sdk-dynamodb/endpoint_parameters.rb +16 -0
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +42 -10
- data/lib/aws-sdk-dynamodb/endpoints.rb +114 -0
- data/lib/aws-sdk-dynamodb/plugins/endpoints.rb +33 -5
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +2 -0
- data/sig/resource.rbs +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d4ddf00f4e505e5aebc2c86256418c7f7b58a81744d1a09f7384d68a12b0cf3
|
4
|
+
data.tar.gz: aae193f2f263176968fb472c9d2324034585323bbf1e55d6a9594a6a8f4f7b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61e413c107a331adc99ddb2d2b69e0f8dc1a8d51fce7597e7d132a84c57141f6e3bf70bf8f58c739e2c7bdeb745783afbb2c05da62a09cb703fb77974ba36b48
|
7
|
+
data.tar.gz: fe880f0078859c6cfce74a578877f6b9abc2ece89f85ebf8e4e0f99fc38f51dd9744dd42a1cecdfe959606964e7fae3a156f30926579f5c52f7a348aeb5a43de
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.123.0
|
@@ -136,13 +136,15 @@ module Aws::DynamoDB
|
|
136
136
|
# locations will be searched for credentials:
|
137
137
|
#
|
138
138
|
# * `Aws.config[:credentials]`
|
139
|
-
# * The `:access_key_id`, `:secret_access_key`,
|
140
|
-
#
|
139
|
+
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
140
|
+
# `:account_id` options.
|
141
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
|
142
|
+
# ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
|
141
143
|
# * `~/.aws/credentials`
|
142
144
|
# * `~/.aws/config`
|
143
145
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
144
146
|
# are very aggressive. Construct and pass an instance of
|
145
|
-
# `Aws::
|
147
|
+
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
146
148
|
# enable retries and extended timeouts. Instance profile credential
|
147
149
|
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
148
150
|
# to true.
|
@@ -161,6 +163,8 @@ module Aws::DynamoDB
|
|
161
163
|
#
|
162
164
|
# @option options [String] :access_key_id
|
163
165
|
#
|
166
|
+
# @option options [String] :account_id
|
167
|
+
#
|
164
168
|
# @option options [Boolean] :active_endpoint_cache (false)
|
165
169
|
# When set to `true`, a thread polling for endpoints will be running in
|
166
170
|
# the background every 60 secs (default). Defaults to `false`.
|
@@ -394,8 +398,19 @@ module Aws::DynamoDB
|
|
394
398
|
# When `true`, request parameters are validated before
|
395
399
|
# sending the request.
|
396
400
|
#
|
401
|
+
# @option options [String] :account_id_endpoint_mode
|
402
|
+
# The account ID endpoint mode to use. This can be one of the following values:
|
403
|
+
# * `preferred` - The default behavior. Use the account ID endpoint if
|
404
|
+
# available, otherwise use the standard endpoint.
|
405
|
+
# * `disabled` - Never use the account ID endpoint. Only use the standard
|
406
|
+
# endpoint.
|
407
|
+
# * `required` - Always use the account ID endpoint. If the account ID
|
408
|
+
# cannot be retrieved from credentials, an error is raised.
|
409
|
+
#
|
397
410
|
# @option options [Aws::DynamoDB::EndpointProvider] :endpoint_provider
|
398
|
-
# The endpoint provider used to resolve endpoints. Any object that responds to
|
411
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to
|
412
|
+
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
413
|
+
# `Aws::DynamoDB::EndpointParameters`.
|
399
414
|
#
|
400
415
|
# @option options [Float] :http_continue_timeout (1)
|
401
416
|
# The number of seconds to wait for a 100-continue response before sending the
|
@@ -8423,7 +8438,7 @@ module Aws::DynamoDB
|
|
8423
8438
|
tracer: tracer
|
8424
8439
|
)
|
8425
8440
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
8426
|
-
context[:gem_version] = '1.
|
8441
|
+
context[:gem_version] = '1.123.0'
|
8427
8442
|
Seahorse::Client::Request.new(handlers, context)
|
8428
8443
|
end
|
8429
8444
|
|
@@ -30,11 +30,23 @@ module Aws::DynamoDB
|
|
30
30
|
#
|
31
31
|
# @return [String]
|
32
32
|
#
|
33
|
+
# @!attribute account_id
|
34
|
+
# The AWS AccountId used for the request.
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @!attribute account_id_endpoint_mode
|
39
|
+
# The AccountId Endpoint Mode.
|
40
|
+
#
|
41
|
+
# @return [String]
|
42
|
+
#
|
33
43
|
EndpointParameters = Struct.new(
|
34
44
|
:region,
|
35
45
|
:use_dual_stack,
|
36
46
|
:use_fips,
|
37
47
|
:endpoint,
|
48
|
+
:account_id,
|
49
|
+
:account_id_endpoint_mode,
|
38
50
|
) do
|
39
51
|
include Aws::Structure
|
40
52
|
|
@@ -45,6 +57,8 @@ module Aws::DynamoDB
|
|
45
57
|
'UseDualStack' => :use_dual_stack,
|
46
58
|
'UseFIPS' => :use_fips,
|
47
59
|
'Endpoint' => :endpoint,
|
60
|
+
'AccountId' => :account_id,
|
61
|
+
'AccountIdEndpointMode' => :account_id_endpoint_mode,
|
48
62
|
}.freeze
|
49
63
|
end
|
50
64
|
|
@@ -61,6 +75,8 @@ module Aws::DynamoDB
|
|
61
75
|
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
76
|
end
|
63
77
|
self[:endpoint] = options[:endpoint]
|
78
|
+
self[:account_id] = options[:account_id]
|
79
|
+
self[:account_id_endpoint_mode] = options[:account_id_endpoint_mode]
|
64
80
|
end
|
65
81
|
end
|
66
82
|
end
|
@@ -14,6 +14,8 @@ module Aws::DynamoDB
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
+
account_id = parameters.account_id
|
18
|
+
account_id_endpoint_mode = parameters.account_id_endpoint_mode
|
17
19
|
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
20
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
21
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
@@ -21,35 +23,65 @@ module Aws::DynamoDB
|
|
21
23
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
24
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
25
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "#{endpoint}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
25
27
|
end
|
26
28
|
if Aws::Endpoints::Matchers.set?(region)
|
27
29
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
30
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "local")
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
32
|
+
raise ArgumentError, "Invalid Configuration: FIPS and local endpoint are not supported"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
35
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and local endpoint are not supported"
|
36
|
+
end
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"dynamodb", "signingRegion"=>"us-east-1"}]}, metadata: { account_id_endpoint: false })
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.set?(account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(account_id_endpoint_mode, "required") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(account_id))
|
40
|
+
raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded."
|
41
|
+
end
|
42
|
+
if Aws::Endpoints::Matchers.set?(account_id) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.valid_host_label?(account_id, false))
|
43
|
+
raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
|
44
|
+
end
|
28
45
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
30
|
-
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true) && Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
47
|
+
if Aws::Endpoints::Matchers.set?(account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(account_id_endpoint_mode, "disabled")
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
49
|
+
end
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
31
51
|
end
|
32
52
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
53
|
end
|
34
54
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
55
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
56
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
37
|
-
|
57
|
+
if Aws::Endpoints::Matchers.set?(account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(account_id_endpoint_mode, "disabled")
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
59
|
+
end
|
60
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
61
|
+
end
|
62
|
+
if Aws::Endpoints::Matchers.set?(account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(account_id_endpoint_mode, "disabled")
|
63
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
38
64
|
end
|
39
|
-
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
65
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
40
66
|
end
|
41
67
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
68
|
end
|
43
69
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
45
|
-
|
70
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
71
|
+
if Aws::Endpoints::Matchers.set?(account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(account_id_endpoint_mode, "disabled")
|
72
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
73
|
+
end
|
74
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
46
75
|
end
|
47
76
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
77
|
end
|
49
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
50
|
-
return Aws::Endpoints::Endpoint.new(url: "
|
78
|
+
if Aws::Endpoints::Matchers.set?(account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(account_id_endpoint_mode, "disabled")
|
79
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
80
|
+
end
|
81
|
+
if Aws::Endpoints::Matchers.set?(account_id) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true))
|
82
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{account_id}.ddb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
|
51
83
|
end
|
52
|
-
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
84
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
53
85
|
end
|
54
86
|
end
|
55
87
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -19,6 +19,8 @@ module Aws::DynamoDB
|
|
19
19
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
20
20
|
use_fips: context.config.use_fips_endpoint,
|
21
21
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
22
|
+
account_id: context.config.credentials.credentials.account_id,
|
23
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
22
24
|
)
|
23
25
|
end
|
24
26
|
end
|
@@ -30,6 +32,8 @@ module Aws::DynamoDB
|
|
30
32
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
31
33
|
use_fips: context.config.use_fips_endpoint,
|
32
34
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
35
|
+
account_id: context.config.credentials.credentials.account_id,
|
36
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
33
37
|
)
|
34
38
|
end
|
35
39
|
end
|
@@ -41,6 +45,8 @@ module Aws::DynamoDB
|
|
41
45
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
42
46
|
use_fips: context.config.use_fips_endpoint,
|
43
47
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
48
|
+
account_id: context.config.credentials.credentials.account_id,
|
49
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
44
50
|
)
|
45
51
|
end
|
46
52
|
end
|
@@ -52,6 +58,8 @@ module Aws::DynamoDB
|
|
52
58
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
53
59
|
use_fips: context.config.use_fips_endpoint,
|
54
60
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
61
|
+
account_id: context.config.credentials.credentials.account_id,
|
62
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
55
63
|
)
|
56
64
|
end
|
57
65
|
end
|
@@ -63,6 +71,8 @@ module Aws::DynamoDB
|
|
63
71
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
72
|
use_fips: context.config.use_fips_endpoint,
|
65
73
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
74
|
+
account_id: context.config.credentials.credentials.account_id,
|
75
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
66
76
|
)
|
67
77
|
end
|
68
78
|
end
|
@@ -74,6 +84,8 @@ module Aws::DynamoDB
|
|
74
84
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
75
85
|
use_fips: context.config.use_fips_endpoint,
|
76
86
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
87
|
+
account_id: context.config.credentials.credentials.account_id,
|
88
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
77
89
|
)
|
78
90
|
end
|
79
91
|
end
|
@@ -85,6 +97,8 @@ module Aws::DynamoDB
|
|
85
97
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
86
98
|
use_fips: context.config.use_fips_endpoint,
|
87
99
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
100
|
+
account_id: context.config.credentials.credentials.account_id,
|
101
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
88
102
|
)
|
89
103
|
end
|
90
104
|
end
|
@@ -96,6 +110,8 @@ module Aws::DynamoDB
|
|
96
110
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
97
111
|
use_fips: context.config.use_fips_endpoint,
|
98
112
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
113
|
+
account_id: context.config.credentials.credentials.account_id,
|
114
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
99
115
|
)
|
100
116
|
end
|
101
117
|
end
|
@@ -107,6 +123,8 @@ module Aws::DynamoDB
|
|
107
123
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
108
124
|
use_fips: context.config.use_fips_endpoint,
|
109
125
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
126
|
+
account_id: context.config.credentials.credentials.account_id,
|
127
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
110
128
|
)
|
111
129
|
end
|
112
130
|
end
|
@@ -118,6 +136,8 @@ module Aws::DynamoDB
|
|
118
136
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
119
137
|
use_fips: context.config.use_fips_endpoint,
|
120
138
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
139
|
+
account_id: context.config.credentials.credentials.account_id,
|
140
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
121
141
|
)
|
122
142
|
end
|
123
143
|
end
|
@@ -129,6 +149,8 @@ module Aws::DynamoDB
|
|
129
149
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
130
150
|
use_fips: context.config.use_fips_endpoint,
|
131
151
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
152
|
+
account_id: context.config.credentials.credentials.account_id,
|
153
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
132
154
|
)
|
133
155
|
end
|
134
156
|
end
|
@@ -140,6 +162,8 @@ module Aws::DynamoDB
|
|
140
162
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
141
163
|
use_fips: context.config.use_fips_endpoint,
|
142
164
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
165
|
+
account_id: context.config.credentials.credentials.account_id,
|
166
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
143
167
|
)
|
144
168
|
end
|
145
169
|
end
|
@@ -151,6 +175,8 @@ module Aws::DynamoDB
|
|
151
175
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
152
176
|
use_fips: context.config.use_fips_endpoint,
|
153
177
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
178
|
+
account_id: context.config.credentials.credentials.account_id,
|
179
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
154
180
|
)
|
155
181
|
end
|
156
182
|
end
|
@@ -162,6 +188,8 @@ module Aws::DynamoDB
|
|
162
188
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
163
189
|
use_fips: context.config.use_fips_endpoint,
|
164
190
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
191
|
+
account_id: context.config.credentials.credentials.account_id,
|
192
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
165
193
|
)
|
166
194
|
end
|
167
195
|
end
|
@@ -173,6 +201,8 @@ module Aws::DynamoDB
|
|
173
201
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
174
202
|
use_fips: context.config.use_fips_endpoint,
|
175
203
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
204
|
+
account_id: context.config.credentials.credentials.account_id,
|
205
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
176
206
|
)
|
177
207
|
end
|
178
208
|
end
|
@@ -184,6 +214,8 @@ module Aws::DynamoDB
|
|
184
214
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
185
215
|
use_fips: context.config.use_fips_endpoint,
|
186
216
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
217
|
+
account_id: context.config.credentials.credentials.account_id,
|
218
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
187
219
|
)
|
188
220
|
end
|
189
221
|
end
|
@@ -195,6 +227,8 @@ module Aws::DynamoDB
|
|
195
227
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
196
228
|
use_fips: context.config.use_fips_endpoint,
|
197
229
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
230
|
+
account_id: context.config.credentials.credentials.account_id,
|
231
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
198
232
|
)
|
199
233
|
end
|
200
234
|
end
|
@@ -206,6 +240,8 @@ module Aws::DynamoDB
|
|
206
240
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
207
241
|
use_fips: context.config.use_fips_endpoint,
|
208
242
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
243
|
+
account_id: context.config.credentials.credentials.account_id,
|
244
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
209
245
|
)
|
210
246
|
end
|
211
247
|
end
|
@@ -217,6 +253,8 @@ module Aws::DynamoDB
|
|
217
253
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
254
|
use_fips: context.config.use_fips_endpoint,
|
219
255
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
256
|
+
account_id: context.config.credentials.credentials.account_id,
|
257
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
220
258
|
)
|
221
259
|
end
|
222
260
|
end
|
@@ -228,6 +266,8 @@ module Aws::DynamoDB
|
|
228
266
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
229
267
|
use_fips: context.config.use_fips_endpoint,
|
230
268
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
269
|
+
account_id: context.config.credentials.credentials.account_id,
|
270
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
231
271
|
)
|
232
272
|
end
|
233
273
|
end
|
@@ -239,6 +279,8 @@ module Aws::DynamoDB
|
|
239
279
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
240
280
|
use_fips: context.config.use_fips_endpoint,
|
241
281
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
282
|
+
account_id: context.config.credentials.credentials.account_id,
|
283
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
242
284
|
)
|
243
285
|
end
|
244
286
|
end
|
@@ -250,6 +292,8 @@ module Aws::DynamoDB
|
|
250
292
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
251
293
|
use_fips: context.config.use_fips_endpoint,
|
252
294
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
295
|
+
account_id: context.config.credentials.credentials.account_id,
|
296
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
253
297
|
)
|
254
298
|
end
|
255
299
|
end
|
@@ -261,6 +305,8 @@ module Aws::DynamoDB
|
|
261
305
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
262
306
|
use_fips: context.config.use_fips_endpoint,
|
263
307
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
308
|
+
account_id: context.config.credentials.credentials.account_id,
|
309
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
264
310
|
)
|
265
311
|
end
|
266
312
|
end
|
@@ -272,6 +318,8 @@ module Aws::DynamoDB
|
|
272
318
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
273
319
|
use_fips: context.config.use_fips_endpoint,
|
274
320
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
321
|
+
account_id: context.config.credentials.credentials.account_id,
|
322
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
275
323
|
)
|
276
324
|
end
|
277
325
|
end
|
@@ -283,6 +331,8 @@ module Aws::DynamoDB
|
|
283
331
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
284
332
|
use_fips: context.config.use_fips_endpoint,
|
285
333
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
334
|
+
account_id: context.config.credentials.credentials.account_id,
|
335
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
286
336
|
)
|
287
337
|
end
|
288
338
|
end
|
@@ -294,6 +344,8 @@ module Aws::DynamoDB
|
|
294
344
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
295
345
|
use_fips: context.config.use_fips_endpoint,
|
296
346
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
347
|
+
account_id: context.config.credentials.credentials.account_id,
|
348
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
297
349
|
)
|
298
350
|
end
|
299
351
|
end
|
@@ -305,6 +357,8 @@ module Aws::DynamoDB
|
|
305
357
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
306
358
|
use_fips: context.config.use_fips_endpoint,
|
307
359
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
360
|
+
account_id: context.config.credentials.credentials.account_id,
|
361
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
308
362
|
)
|
309
363
|
end
|
310
364
|
end
|
@@ -316,6 +370,8 @@ module Aws::DynamoDB
|
|
316
370
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
317
371
|
use_fips: context.config.use_fips_endpoint,
|
318
372
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
373
|
+
account_id: context.config.credentials.credentials.account_id,
|
374
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
319
375
|
)
|
320
376
|
end
|
321
377
|
end
|
@@ -327,6 +383,8 @@ module Aws::DynamoDB
|
|
327
383
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
328
384
|
use_fips: context.config.use_fips_endpoint,
|
329
385
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
386
|
+
account_id: context.config.credentials.credentials.account_id,
|
387
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
330
388
|
)
|
331
389
|
end
|
332
390
|
end
|
@@ -338,6 +396,8 @@ module Aws::DynamoDB
|
|
338
396
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
339
397
|
use_fips: context.config.use_fips_endpoint,
|
340
398
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
399
|
+
account_id: context.config.credentials.credentials.account_id,
|
400
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
341
401
|
)
|
342
402
|
end
|
343
403
|
end
|
@@ -349,6 +409,8 @@ module Aws::DynamoDB
|
|
349
409
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
350
410
|
use_fips: context.config.use_fips_endpoint,
|
351
411
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
412
|
+
account_id: context.config.credentials.credentials.account_id,
|
413
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
352
414
|
)
|
353
415
|
end
|
354
416
|
end
|
@@ -360,6 +422,8 @@ module Aws::DynamoDB
|
|
360
422
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
361
423
|
use_fips: context.config.use_fips_endpoint,
|
362
424
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
425
|
+
account_id: context.config.credentials.credentials.account_id,
|
426
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
363
427
|
)
|
364
428
|
end
|
365
429
|
end
|
@@ -371,6 +435,8 @@ module Aws::DynamoDB
|
|
371
435
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
372
436
|
use_fips: context.config.use_fips_endpoint,
|
373
437
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
438
|
+
account_id: context.config.credentials.credentials.account_id,
|
439
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
374
440
|
)
|
375
441
|
end
|
376
442
|
end
|
@@ -382,6 +448,8 @@ module Aws::DynamoDB
|
|
382
448
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
383
449
|
use_fips: context.config.use_fips_endpoint,
|
384
450
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
451
|
+
account_id: context.config.credentials.credentials.account_id,
|
452
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
385
453
|
)
|
386
454
|
end
|
387
455
|
end
|
@@ -393,6 +461,8 @@ module Aws::DynamoDB
|
|
393
461
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
394
462
|
use_fips: context.config.use_fips_endpoint,
|
395
463
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
464
|
+
account_id: context.config.credentials.credentials.account_id,
|
465
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
396
466
|
)
|
397
467
|
end
|
398
468
|
end
|
@@ -404,6 +474,8 @@ module Aws::DynamoDB
|
|
404
474
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
405
475
|
use_fips: context.config.use_fips_endpoint,
|
406
476
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
477
|
+
account_id: context.config.credentials.credentials.account_id,
|
478
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
407
479
|
)
|
408
480
|
end
|
409
481
|
end
|
@@ -415,6 +487,8 @@ module Aws::DynamoDB
|
|
415
487
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
416
488
|
use_fips: context.config.use_fips_endpoint,
|
417
489
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
490
|
+
account_id: context.config.credentials.credentials.account_id,
|
491
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
418
492
|
)
|
419
493
|
end
|
420
494
|
end
|
@@ -426,6 +500,8 @@ module Aws::DynamoDB
|
|
426
500
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
427
501
|
use_fips: context.config.use_fips_endpoint,
|
428
502
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
503
|
+
account_id: context.config.credentials.credentials.account_id,
|
504
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
429
505
|
)
|
430
506
|
end
|
431
507
|
end
|
@@ -437,6 +513,8 @@ module Aws::DynamoDB
|
|
437
513
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
438
514
|
use_fips: context.config.use_fips_endpoint,
|
439
515
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
516
|
+
account_id: context.config.credentials.credentials.account_id,
|
517
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
440
518
|
)
|
441
519
|
end
|
442
520
|
end
|
@@ -448,6 +526,8 @@ module Aws::DynamoDB
|
|
448
526
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
449
527
|
use_fips: context.config.use_fips_endpoint,
|
450
528
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
529
|
+
account_id: context.config.credentials.credentials.account_id,
|
530
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
451
531
|
)
|
452
532
|
end
|
453
533
|
end
|
@@ -459,6 +539,8 @@ module Aws::DynamoDB
|
|
459
539
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
460
540
|
use_fips: context.config.use_fips_endpoint,
|
461
541
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
542
|
+
account_id: context.config.credentials.credentials.account_id,
|
543
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
462
544
|
)
|
463
545
|
end
|
464
546
|
end
|
@@ -470,6 +552,8 @@ module Aws::DynamoDB
|
|
470
552
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
471
553
|
use_fips: context.config.use_fips_endpoint,
|
472
554
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
555
|
+
account_id: context.config.credentials.credentials.account_id,
|
556
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
473
557
|
)
|
474
558
|
end
|
475
559
|
end
|
@@ -481,6 +565,8 @@ module Aws::DynamoDB
|
|
481
565
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
482
566
|
use_fips: context.config.use_fips_endpoint,
|
483
567
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
568
|
+
account_id: context.config.credentials.credentials.account_id,
|
569
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
484
570
|
)
|
485
571
|
end
|
486
572
|
end
|
@@ -492,6 +578,8 @@ module Aws::DynamoDB
|
|
492
578
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
493
579
|
use_fips: context.config.use_fips_endpoint,
|
494
580
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
581
|
+
account_id: context.config.credentials.credentials.account_id,
|
582
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
495
583
|
)
|
496
584
|
end
|
497
585
|
end
|
@@ -503,6 +591,8 @@ module Aws::DynamoDB
|
|
503
591
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
504
592
|
use_fips: context.config.use_fips_endpoint,
|
505
593
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
594
|
+
account_id: context.config.credentials.credentials.account_id,
|
595
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
506
596
|
)
|
507
597
|
end
|
508
598
|
end
|
@@ -514,6 +604,8 @@ module Aws::DynamoDB
|
|
514
604
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
515
605
|
use_fips: context.config.use_fips_endpoint,
|
516
606
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
607
|
+
account_id: context.config.credentials.credentials.account_id,
|
608
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
517
609
|
)
|
518
610
|
end
|
519
611
|
end
|
@@ -525,6 +617,8 @@ module Aws::DynamoDB
|
|
525
617
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
526
618
|
use_fips: context.config.use_fips_endpoint,
|
527
619
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
620
|
+
account_id: context.config.credentials.credentials.account_id,
|
621
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
528
622
|
)
|
529
623
|
end
|
530
624
|
end
|
@@ -536,6 +630,8 @@ module Aws::DynamoDB
|
|
536
630
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
537
631
|
use_fips: context.config.use_fips_endpoint,
|
538
632
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
633
|
+
account_id: context.config.credentials.credentials.account_id,
|
634
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
539
635
|
)
|
540
636
|
end
|
541
637
|
end
|
@@ -547,6 +643,8 @@ module Aws::DynamoDB
|
|
547
643
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
548
644
|
use_fips: context.config.use_fips_endpoint,
|
549
645
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
646
|
+
account_id: context.config.credentials.credentials.account_id,
|
647
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
550
648
|
)
|
551
649
|
end
|
552
650
|
end
|
@@ -558,6 +656,8 @@ module Aws::DynamoDB
|
|
558
656
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
559
657
|
use_fips: context.config.use_fips_endpoint,
|
560
658
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
659
|
+
account_id: context.config.credentials.credentials.account_id,
|
660
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
561
661
|
)
|
562
662
|
end
|
563
663
|
end
|
@@ -569,6 +669,8 @@ module Aws::DynamoDB
|
|
569
669
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
570
670
|
use_fips: context.config.use_fips_endpoint,
|
571
671
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
672
|
+
account_id: context.config.credentials.credentials.account_id,
|
673
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
572
674
|
)
|
573
675
|
end
|
574
676
|
end
|
@@ -580,6 +682,8 @@ module Aws::DynamoDB
|
|
580
682
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
581
683
|
use_fips: context.config.use_fips_endpoint,
|
582
684
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
685
|
+
account_id: context.config.credentials.credentials.account_id,
|
686
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
583
687
|
)
|
584
688
|
end
|
585
689
|
end
|
@@ -591,6 +695,8 @@ module Aws::DynamoDB
|
|
591
695
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
592
696
|
use_fips: context.config.use_fips_endpoint,
|
593
697
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
698
|
+
account_id: context.config.credentials.credentials.account_id,
|
699
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
594
700
|
)
|
595
701
|
end
|
596
702
|
end
|
@@ -602,6 +708,8 @@ module Aws::DynamoDB
|
|
602
708
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
603
709
|
use_fips: context.config.use_fips_endpoint,
|
604
710
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
711
|
+
account_id: context.config.credentials.credentials.account_id,
|
712
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
605
713
|
)
|
606
714
|
end
|
607
715
|
end
|
@@ -613,6 +721,8 @@ module Aws::DynamoDB
|
|
613
721
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
614
722
|
use_fips: context.config.use_fips_endpoint,
|
615
723
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
724
|
+
account_id: context.config.credentials.credentials.account_id,
|
725
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
616
726
|
)
|
617
727
|
end
|
618
728
|
end
|
@@ -624,6 +734,8 @@ module Aws::DynamoDB
|
|
624
734
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
625
735
|
use_fips: context.config.use_fips_endpoint,
|
626
736
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
737
|
+
account_id: context.config.credentials.credentials.account_id,
|
738
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
627
739
|
)
|
628
740
|
end
|
629
741
|
end
|
@@ -635,6 +747,8 @@ module Aws::DynamoDB
|
|
635
747
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
636
748
|
use_fips: context.config.use_fips_endpoint,
|
637
749
|
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
750
|
+
account_id: context.config.credentials.credentials.account_id,
|
751
|
+
account_id_endpoint_mode: context.config.account_id_endpoint_mode,
|
638
752
|
)
|
639
753
|
end
|
640
754
|
end
|
@@ -15,14 +15,31 @@ module Aws::DynamoDB
|
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::DynamoDB::EndpointProvider',
|
17
17
|
rbs_type: 'untyped',
|
18
|
-
docstring:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::DynamoDB::EndpointParameters`.
|
22
|
+
DOCS
|
23
23
|
Aws::DynamoDB::EndpointProvider.new
|
24
24
|
end
|
25
25
|
|
26
|
+
option(
|
27
|
+
:account_id_endpoint_mode,
|
28
|
+
doc_type: 'String',
|
29
|
+
docstring: <<~DOCS) do |cfg|
|
30
|
+
The account ID endpoint mode to use. This can be one of the following values:
|
31
|
+
* `preferred` - The default behavior. Use the account ID endpoint if
|
32
|
+
available, otherwise use the standard endpoint.
|
33
|
+
* `disabled` - Never use the account ID endpoint. Only use the standard
|
34
|
+
endpoint.
|
35
|
+
* `required` - Always use the account ID endpoint. If the account ID
|
36
|
+
cannot be retrieved from credentials, an error is raised.
|
37
|
+
DOCS
|
38
|
+
value = ENV['AWS_ACCOUNT_ID_ENDPOINT_MODE']
|
39
|
+
value ||= Aws.shared_config.account_id_endpoint_mode(profile: cfg.profile)
|
40
|
+
value || 'preferred'
|
41
|
+
end
|
42
|
+
|
26
43
|
# @api private
|
27
44
|
class Handler < Seahorse::Client::Handler
|
28
45
|
def call(context)
|
@@ -51,6 +68,17 @@ module Aws::DynamoDB
|
|
51
68
|
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
69
|
metrics << 'SIGV4A_SIGNING'
|
53
70
|
end
|
71
|
+
case context.config.account_id_endpoint_mode
|
72
|
+
when 'preferred'
|
73
|
+
metrics << 'ACCOUNT_ID_MODE_PREFERRED'
|
74
|
+
when 'disabled'
|
75
|
+
metrics << 'ACCOUNT_ID_MODE_DISABLED'
|
76
|
+
when 'required'
|
77
|
+
metrics << 'ACCOUNT_ID_MODE_REQUIRED'
|
78
|
+
end
|
79
|
+
if context.config.credentials&.credentials&.account_id
|
80
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
81
|
+
end
|
54
82
|
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
55
83
|
end
|
56
84
|
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
?credentials: untyped,
|
16
16
|
?region: String,
|
17
17
|
?access_key_id: String,
|
18
|
+
?account_id: String,
|
18
19
|
?active_endpoint_cache: bool,
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
20
21
|
?client_side_monitoring: bool,
|
@@ -58,6 +59,7 @@ module Aws
|
|
58
59
|
?use_dualstack_endpoint: bool,
|
59
60
|
?use_fips_endpoint: bool,
|
60
61
|
?validate_params: bool,
|
62
|
+
?account_id_endpoint_mode: String,
|
61
63
|
?endpoint_provider: untyped,
|
62
64
|
?http_proxy: String,
|
63
65
|
?http_open_timeout: (Float | Integer),
|
data/sig/resource.rbs
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
?credentials: untyped,
|
16
16
|
?region: String,
|
17
17
|
?access_key_id: String,
|
18
|
+
?account_id: String,
|
18
19
|
?active_endpoint_cache: bool,
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
20
21
|
?client_side_monitoring: bool,
|
@@ -58,6 +59,7 @@ module Aws
|
|
58
59
|
?use_dualstack_endpoint: bool,
|
59
60
|
?use_fips_endpoint: bool,
|
60
61
|
?validate_params: bool,
|
62
|
+
?account_id_endpoint_mode: String,
|
61
63
|
?endpoint_provider: untyped,
|
62
64
|
?http_proxy: String,
|
63
65
|
?http_open_timeout: (Float | Integer),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-dynamodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.123.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.207.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.207.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|