aws-sdk-dynamodb 1.137.0 → 1.139.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.
@@ -30,16 +30,10 @@ module Aws::DynamoDB
30
30
  end
31
31
  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 })
32
32
  end
33
- if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.account_id))
34
- raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded."
35
- end
36
- if Aws::Endpoints::Matchers.set?(parameters.account_id) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false))
37
- raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
38
- end
39
33
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
40
34
  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)
41
- if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")
42
- return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
35
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
36
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
43
37
  end
44
38
  return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
45
39
  end
@@ -48,13 +42,13 @@ module Aws::DynamoDB
48
42
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
49
43
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
50
44
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
51
- if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")
52
- return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
45
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
46
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
53
47
  end
54
48
  return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
55
49
  end
56
- if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")
57
- return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
50
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
51
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
58
52
  end
59
53
  return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
60
54
  end
@@ -62,18 +56,39 @@ module Aws::DynamoDB
62
56
  end
63
57
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
64
58
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
65
- if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")
66
- return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
59
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
60
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true))
61
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and DualStack is enabled, but DualStack account endpoints are not supported"
62
+ end
63
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
67
64
  end
68
65
  return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
69
66
  end
70
67
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
71
68
  end
72
- if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")
73
- return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
69
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)) && Aws::Endpoints::Matchers.set?(parameters.resource_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.resource_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
70
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
71
+ end
72
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)) && Aws::Endpoints::Matchers.set?(parameters.resource_arn_list) && (first_arn = Aws::Endpoints::Matchers.attr(parameters.resource_arn_list, "[0]")) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(first_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
73
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
74
74
  end
75
- if Aws::Endpoints::Matchers.set?(parameters.account_id) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true))
76
- return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
75
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)) && Aws::Endpoints::Matchers.set?(parameters.account_id)
76
+ if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
77
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
78
+ end
79
+ raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
80
+ end
81
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
82
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true))
83
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true))
84
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
85
+ raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
86
+ end
87
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"
88
+ end
89
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and DualStack is enabled, but DualStack account endpoints are not supported"
90
+ end
91
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
77
92
  end
78
93
  return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
79
94
  end
@@ -12,9 +12,551 @@ module Aws::DynamoDB
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
+ class BatchGetItem
16
+ def self.build(context)
17
+ Aws::DynamoDB::EndpointParameters.create(
18
+ context.config,
19
+ resource_arn_list: JMESPath.search("keys(request_items)", context.params),
20
+ )
21
+ end
22
+ end
23
+
24
+ class BatchWriteItem
25
+ def self.build(context)
26
+ Aws::DynamoDB::EndpointParameters.create(
27
+ context.config,
28
+ resource_arn_list: JMESPath.search("keys(request_items)", context.params),
29
+ )
30
+ end
31
+ end
32
+
33
+ class CreateBackup
34
+ def self.build(context)
35
+ Aws::DynamoDB::EndpointParameters.create(
36
+ context.config,
37
+ resource_arn: context.params[:table_name],
38
+ )
39
+ end
40
+ end
41
+
42
+ class CreateGlobalTable
43
+ def self.build(context)
44
+ Aws::DynamoDB::EndpointParameters.create(
45
+ context.config,
46
+ resource_arn: context.params[:global_table_name],
47
+ )
48
+ end
49
+ end
50
+
51
+ class CreateTable
52
+ def self.build(context)
53
+ Aws::DynamoDB::EndpointParameters.create(
54
+ context.config,
55
+ resource_arn: context.params[:table_name],
56
+ )
57
+ end
58
+ end
59
+
60
+ class DeleteBackup
61
+ def self.build(context)
62
+ Aws::DynamoDB::EndpointParameters.create(
63
+ context.config,
64
+ resource_arn: context.params[:backup_arn],
65
+ )
66
+ end
67
+ end
68
+
69
+ class DeleteItem
70
+ def self.build(context)
71
+ Aws::DynamoDB::EndpointParameters.create(
72
+ context.config,
73
+ resource_arn: context.params[:table_name],
74
+ )
75
+ end
76
+ end
77
+
78
+ class DeleteResourcePolicy
79
+ def self.build(context)
80
+ Aws::DynamoDB::EndpointParameters.create(
81
+ context.config,
82
+ resource_arn: context.params[:resource_arn],
83
+ )
84
+ end
85
+ end
86
+
87
+ class DeleteTable
88
+ def self.build(context)
89
+ Aws::DynamoDB::EndpointParameters.create(
90
+ context.config,
91
+ resource_arn: context.params[:table_name],
92
+ )
93
+ end
94
+ end
95
+
96
+ class DescribeBackup
97
+ def self.build(context)
98
+ Aws::DynamoDB::EndpointParameters.create(
99
+ context.config,
100
+ resource_arn: context.params[:backup_arn],
101
+ )
102
+ end
103
+ end
104
+
105
+ class DescribeContinuousBackups
106
+ def self.build(context)
107
+ Aws::DynamoDB::EndpointParameters.create(
108
+ context.config,
109
+ resource_arn: context.params[:table_name],
110
+ )
111
+ end
112
+ end
113
+
114
+ class DescribeContributorInsights
115
+ def self.build(context)
116
+ Aws::DynamoDB::EndpointParameters.create(
117
+ context.config,
118
+ resource_arn: context.params[:table_name],
119
+ )
120
+ end
121
+ end
122
+
123
+ class DescribeExport
124
+ def self.build(context)
125
+ Aws::DynamoDB::EndpointParameters.create(
126
+ context.config,
127
+ resource_arn: context.params[:export_arn],
128
+ )
129
+ end
130
+ end
131
+
132
+ class DescribeGlobalTable
133
+ def self.build(context)
134
+ Aws::DynamoDB::EndpointParameters.create(
135
+ context.config,
136
+ resource_arn: context.params[:global_table_name],
137
+ )
138
+ end
139
+ end
140
+
141
+ class DescribeGlobalTableSettings
142
+ def self.build(context)
143
+ Aws::DynamoDB::EndpointParameters.create(
144
+ context.config,
145
+ resource_arn: context.params[:global_table_name],
146
+ )
147
+ end
148
+ end
149
+
150
+ class DescribeImport
151
+ def self.build(context)
152
+ Aws::DynamoDB::EndpointParameters.create(
153
+ context.config,
154
+ resource_arn: context.params[:import_arn],
155
+ )
156
+ end
157
+ end
158
+
159
+ class DescribeKinesisStreamingDestination
160
+ def self.build(context)
161
+ Aws::DynamoDB::EndpointParameters.create(
162
+ context.config,
163
+ resource_arn: context.params[:table_name],
164
+ )
165
+ end
166
+ end
167
+
168
+ class DescribeTable
169
+ def self.build(context)
170
+ Aws::DynamoDB::EndpointParameters.create(
171
+ context.config,
172
+ resource_arn: context.params[:table_name],
173
+ )
174
+ end
175
+ end
176
+
177
+ class DescribeTableReplicaAutoScaling
178
+ def self.build(context)
179
+ Aws::DynamoDB::EndpointParameters.create(
180
+ context.config,
181
+ resource_arn: context.params[:table_name],
182
+ )
183
+ end
184
+ end
185
+
186
+ class DescribeTimeToLive
187
+ def self.build(context)
188
+ Aws::DynamoDB::EndpointParameters.create(
189
+ context.config,
190
+ resource_arn: context.params[:table_name],
191
+ )
192
+ end
193
+ end
194
+
195
+ class DisableKinesisStreamingDestination
196
+ def self.build(context)
197
+ Aws::DynamoDB::EndpointParameters.create(
198
+ context.config,
199
+ resource_arn: context.params[:table_name],
200
+ )
201
+ end
202
+ end
203
+
204
+ class EnableKinesisStreamingDestination
205
+ def self.build(context)
206
+ Aws::DynamoDB::EndpointParameters.create(
207
+ context.config,
208
+ resource_arn: context.params[:table_name],
209
+ )
210
+ end
211
+ end
212
+
213
+ class ExportTableToPointInTime
214
+ def self.build(context)
215
+ Aws::DynamoDB::EndpointParameters.create(
216
+ context.config,
217
+ resource_arn: context.params[:table_arn],
218
+ )
219
+ end
220
+ end
221
+
222
+ class GetItem
223
+ def self.build(context)
224
+ Aws::DynamoDB::EndpointParameters.create(
225
+ context.config,
226
+ resource_arn: context.params[:table_name],
227
+ )
228
+ end
229
+ end
230
+
231
+ class GetResourcePolicy
232
+ def self.build(context)
233
+ Aws::DynamoDB::EndpointParameters.create(
234
+ context.config,
235
+ resource_arn: context.params[:resource_arn],
236
+ )
237
+ end
238
+ end
239
+
240
+ class ImportTable
241
+ def self.build(context)
242
+ Aws::DynamoDB::EndpointParameters.create(
243
+ context.config,
244
+ resource_arn: JMESPath.search("table_creation_parameters.table_name", context.params),
245
+ )
246
+ end
247
+ end
248
+
249
+ class ListBackups
250
+ def self.build(context)
251
+ Aws::DynamoDB::EndpointParameters.create(
252
+ context.config,
253
+ resource_arn: context.params[:table_name],
254
+ )
255
+ end
256
+ end
257
+
258
+ class ListContributorInsights
259
+ def self.build(context)
260
+ Aws::DynamoDB::EndpointParameters.create(
261
+ context.config,
262
+ resource_arn: context.params[:table_name],
263
+ )
264
+ end
265
+ end
266
+
267
+ class ListExports
268
+ def self.build(context)
269
+ Aws::DynamoDB::EndpointParameters.create(
270
+ context.config,
271
+ resource_arn: context.params[:table_arn],
272
+ )
273
+ end
274
+ end
275
+
276
+ class ListImports
277
+ def self.build(context)
278
+ Aws::DynamoDB::EndpointParameters.create(
279
+ context.config,
280
+ resource_arn: context.params[:table_arn],
281
+ )
282
+ end
283
+ end
284
+
285
+ class ListTagsOfResource
286
+ def self.build(context)
287
+ Aws::DynamoDB::EndpointParameters.create(
288
+ context.config,
289
+ resource_arn: context.params[:resource_arn],
290
+ )
291
+ end
292
+ end
293
+
294
+ class PutItem
295
+ def self.build(context)
296
+ Aws::DynamoDB::EndpointParameters.create(
297
+ context.config,
298
+ resource_arn: context.params[:table_name],
299
+ )
300
+ end
301
+ end
302
+
303
+ class PutResourcePolicy
304
+ def self.build(context)
305
+ Aws::DynamoDB::EndpointParameters.create(
306
+ context.config,
307
+ resource_arn: context.params[:resource_arn],
308
+ )
309
+ end
310
+ end
311
+
312
+ class Query
313
+ def self.build(context)
314
+ Aws::DynamoDB::EndpointParameters.create(
315
+ context.config,
316
+ resource_arn: context.params[:table_name],
317
+ )
318
+ end
319
+ end
320
+
321
+ class RestoreTableFromBackup
322
+ def self.build(context)
323
+ Aws::DynamoDB::EndpointParameters.create(
324
+ context.config,
325
+ resource_arn: context.params[:target_table_name],
326
+ )
327
+ end
328
+ end
329
+
330
+ class RestoreTableToPointInTime
331
+ def self.build(context)
332
+ Aws::DynamoDB::EndpointParameters.create(
333
+ context.config,
334
+ resource_arn: context.params[:target_table_name],
335
+ )
336
+ end
337
+ end
338
+
339
+ class Scan
340
+ def self.build(context)
341
+ Aws::DynamoDB::EndpointParameters.create(
342
+ context.config,
343
+ resource_arn: context.params[:table_name],
344
+ )
345
+ end
346
+ end
347
+
348
+ class TagResource
349
+ def self.build(context)
350
+ Aws::DynamoDB::EndpointParameters.create(
351
+ context.config,
352
+ resource_arn: context.params[:resource_arn],
353
+ )
354
+ end
355
+ end
356
+
357
+ class TransactGetItems
358
+ def self.build(context)
359
+ Aws::DynamoDB::EndpointParameters.create(
360
+ context.config,
361
+ resource_arn_list: JMESPath.search("transact_items[*].get.table_name", context.params),
362
+ )
363
+ end
364
+ end
365
+
366
+ class UntagResource
367
+ def self.build(context)
368
+ Aws::DynamoDB::EndpointParameters.create(
369
+ context.config,
370
+ resource_arn: context.params[:resource_arn],
371
+ )
372
+ end
373
+ end
374
+
375
+ class UpdateContinuousBackups
376
+ def self.build(context)
377
+ Aws::DynamoDB::EndpointParameters.create(
378
+ context.config,
379
+ resource_arn: context.params[:table_name],
380
+ )
381
+ end
382
+ end
383
+
384
+ class UpdateContributorInsights
385
+ def self.build(context)
386
+ Aws::DynamoDB::EndpointParameters.create(
387
+ context.config,
388
+ resource_arn: context.params[:table_name],
389
+ )
390
+ end
391
+ end
392
+
393
+ class UpdateGlobalTable
394
+ def self.build(context)
395
+ Aws::DynamoDB::EndpointParameters.create(
396
+ context.config,
397
+ resource_arn: context.params[:global_table_name],
398
+ )
399
+ end
400
+ end
401
+
402
+ class UpdateGlobalTableSettings
403
+ def self.build(context)
404
+ Aws::DynamoDB::EndpointParameters.create(
405
+ context.config,
406
+ resource_arn: context.params[:global_table_name],
407
+ )
408
+ end
409
+ end
410
+
411
+ class UpdateItem
412
+ def self.build(context)
413
+ Aws::DynamoDB::EndpointParameters.create(
414
+ context.config,
415
+ resource_arn: context.params[:table_name],
416
+ )
417
+ end
418
+ end
419
+
420
+ class UpdateKinesisStreamingDestination
421
+ def self.build(context)
422
+ Aws::DynamoDB::EndpointParameters.create(
423
+ context.config,
424
+ resource_arn: context.params[:table_name],
425
+ )
426
+ end
427
+ end
428
+
429
+ class UpdateTable
430
+ def self.build(context)
431
+ Aws::DynamoDB::EndpointParameters.create(
432
+ context.config,
433
+ resource_arn: context.params[:table_name],
434
+ )
435
+ end
436
+ end
437
+
438
+ class UpdateTableReplicaAutoScaling
439
+ def self.build(context)
440
+ Aws::DynamoDB::EndpointParameters.create(
441
+ context.config,
442
+ resource_arn: context.params[:table_name],
443
+ )
444
+ end
445
+ end
446
+
447
+ class UpdateTimeToLive
448
+ def self.build(context)
449
+ Aws::DynamoDB::EndpointParameters.create(
450
+ context.config,
451
+ resource_arn: context.params[:table_name],
452
+ )
453
+ end
454
+ end
455
+
15
456
 
16
457
  def self.parameters_for_operation(context)
17
- Aws::DynamoDB::EndpointParameters.create(context.config)
458
+ case context.operation_name
459
+ when :batch_get_item
460
+ BatchGetItem.build(context)
461
+ when :batch_write_item
462
+ BatchWriteItem.build(context)
463
+ when :create_backup
464
+ CreateBackup.build(context)
465
+ when :create_global_table
466
+ CreateGlobalTable.build(context)
467
+ when :create_table
468
+ CreateTable.build(context)
469
+ when :delete_backup
470
+ DeleteBackup.build(context)
471
+ when :delete_item
472
+ DeleteItem.build(context)
473
+ when :delete_resource_policy
474
+ DeleteResourcePolicy.build(context)
475
+ when :delete_table
476
+ DeleteTable.build(context)
477
+ when :describe_backup
478
+ DescribeBackup.build(context)
479
+ when :describe_continuous_backups
480
+ DescribeContinuousBackups.build(context)
481
+ when :describe_contributor_insights
482
+ DescribeContributorInsights.build(context)
483
+ when :describe_export
484
+ DescribeExport.build(context)
485
+ when :describe_global_table
486
+ DescribeGlobalTable.build(context)
487
+ when :describe_global_table_settings
488
+ DescribeGlobalTableSettings.build(context)
489
+ when :describe_import
490
+ DescribeImport.build(context)
491
+ when :describe_kinesis_streaming_destination
492
+ DescribeKinesisStreamingDestination.build(context)
493
+ when :describe_table
494
+ DescribeTable.build(context)
495
+ when :describe_table_replica_auto_scaling
496
+ DescribeTableReplicaAutoScaling.build(context)
497
+ when :describe_time_to_live
498
+ DescribeTimeToLive.build(context)
499
+ when :disable_kinesis_streaming_destination
500
+ DisableKinesisStreamingDestination.build(context)
501
+ when :enable_kinesis_streaming_destination
502
+ EnableKinesisStreamingDestination.build(context)
503
+ when :export_table_to_point_in_time
504
+ ExportTableToPointInTime.build(context)
505
+ when :get_item
506
+ GetItem.build(context)
507
+ when :get_resource_policy
508
+ GetResourcePolicy.build(context)
509
+ when :import_table
510
+ ImportTable.build(context)
511
+ when :list_backups
512
+ ListBackups.build(context)
513
+ when :list_contributor_insights
514
+ ListContributorInsights.build(context)
515
+ when :list_exports
516
+ ListExports.build(context)
517
+ when :list_imports
518
+ ListImports.build(context)
519
+ when :list_tags_of_resource
520
+ ListTagsOfResource.build(context)
521
+ when :put_item
522
+ PutItem.build(context)
523
+ when :put_resource_policy
524
+ PutResourcePolicy.build(context)
525
+ when :query
526
+ Query.build(context)
527
+ when :restore_table_from_backup
528
+ RestoreTableFromBackup.build(context)
529
+ when :restore_table_to_point_in_time
530
+ RestoreTableToPointInTime.build(context)
531
+ when :scan
532
+ Scan.build(context)
533
+ when :tag_resource
534
+ TagResource.build(context)
535
+ when :transact_get_items
536
+ TransactGetItems.build(context)
537
+ when :untag_resource
538
+ UntagResource.build(context)
539
+ when :update_continuous_backups
540
+ UpdateContinuousBackups.build(context)
541
+ when :update_contributor_insights
542
+ UpdateContributorInsights.build(context)
543
+ when :update_global_table
544
+ UpdateGlobalTable.build(context)
545
+ when :update_global_table_settings
546
+ UpdateGlobalTableSettings.build(context)
547
+ when :update_item
548
+ UpdateItem.build(context)
549
+ when :update_kinesis_streaming_destination
550
+ UpdateKinesisStreamingDestination.build(context)
551
+ when :update_table
552
+ UpdateTable.build(context)
553
+ when :update_table_replica_auto_scaling
554
+ UpdateTableReplicaAutoScaling.build(context)
555
+ when :update_time_to_live
556
+ UpdateTimeToLive.build(context)
557
+ else
558
+ Aws::DynamoDB::EndpointParameters.create(context.config)
559
+ end
18
560
  end
19
561
  end
20
562
  end