aws-sdk-s3 1.114.0 → 1.125.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +94 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +51 -28
  5. data/lib/aws-sdk-s3/bucket_acl.rb +9 -3
  6. data/lib/aws-sdk-s3/bucket_cors.rb +12 -4
  7. data/lib/aws-sdk-s3/bucket_lifecycle.rb +12 -4
  8. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +12 -4
  9. data/lib/aws-sdk-s3/bucket_logging.rb +9 -3
  10. data/lib/aws-sdk-s3/bucket_notification.rb +9 -3
  11. data/lib/aws-sdk-s3/bucket_policy.rb +12 -4
  12. data/lib/aws-sdk-s3/bucket_request_payment.rb +9 -3
  13. data/lib/aws-sdk-s3/bucket_tagging.rb +12 -4
  14. data/lib/aws-sdk-s3/bucket_versioning.rb +15 -5
  15. data/lib/aws-sdk-s3/bucket_website.rb +12 -4
  16. data/lib/aws-sdk-s3/client.rb +1721 -1457
  17. data/lib/aws-sdk-s3/client_api.rb +189 -189
  18. data/lib/aws-sdk-s3/customizations/bucket.rb +23 -47
  19. data/lib/aws-sdk-s3/customizations/errors.rb +27 -0
  20. data/lib/aws-sdk-s3/customizations/object.rb +32 -19
  21. data/lib/aws-sdk-s3/customizations/types/permanent_redirect.rb +26 -0
  22. data/lib/aws-sdk-s3/customizations.rb +2 -0
  23. data/lib/aws-sdk-s3/encryption/client.rb +6 -2
  24. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +13 -9
  25. data/lib/aws-sdk-s3/encryptionV2/client.rb +6 -2
  26. data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +1 -0
  27. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +10 -6
  28. data/lib/aws-sdk-s3/endpoint_parameters.rb +142 -0
  29. data/lib/aws-sdk-s3/endpoint_provider.rb +733 -0
  30. data/lib/aws-sdk-s3/endpoints.rb +2150 -0
  31. data/lib/aws-sdk-s3/file_downloader.rb +28 -24
  32. data/lib/aws-sdk-s3/file_uploader.rb +8 -6
  33. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +41 -13
  34. data/lib/aws-sdk-s3/multipart_upload.rb +12 -4
  35. data/lib/aws-sdk-s3/multipart_upload_part.rb +10 -4
  36. data/lib/aws-sdk-s3/object.rb +86 -57
  37. data/lib/aws-sdk-s3/object_acl.rb +9 -3
  38. data/lib/aws-sdk-s3/object_copier.rb +7 -5
  39. data/lib/aws-sdk-s3/object_multipart_copier.rb +11 -5
  40. data/lib/aws-sdk-s3/object_summary.rb +72 -46
  41. data/lib/aws-sdk-s3/object_version.rb +21 -9
  42. data/lib/aws-sdk-s3/plugins/accelerate.rb +3 -50
  43. data/lib/aws-sdk-s3/plugins/arn.rb +0 -184
  44. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +3 -39
  45. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +1 -6
  46. data/lib/aws-sdk-s3/plugins/dualstack.rb +1 -49
  47. data/lib/aws-sdk-s3/plugins/endpoints.rb +262 -0
  48. data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +2 -1
  49. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +0 -29
  50. data/lib/aws-sdk-s3/plugins/s3_signer.rb +32 -126
  51. data/lib/aws-sdk-s3/presigned_post.rb +9 -16
  52. data/lib/aws-sdk-s3/presigner.rb +20 -33
  53. data/lib/aws-sdk-s3/resource.rb +7 -3
  54. data/lib/aws-sdk-s3/types.rb +406 -3903
  55. data/lib/aws-sdk-s3.rb +5 -1
  56. metadata +10 -9
  57. data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -69
  58. data/lib/aws-sdk-s3/arn/multi_region_access_point_arn.rb +0 -68
  59. data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +0 -69
  60. data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -74
  61. data/lib/aws-sdk-s3/plugins/object_lambda_endpoint.rb +0 -25
@@ -0,0 +1,2150 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::S3
12
+ # @api private
13
+ module Endpoints
14
+
15
+ class AbortMultipartUpload
16
+ def self.build(context)
17
+ unless context.config.regional_endpoint
18
+ endpoint = context.config.endpoint.to_s
19
+ end
20
+ Aws::S3::EndpointParameters.new(
21
+ bucket: context.params[:bucket],
22
+ region: context.config.region,
23
+ use_fips: context.config.use_fips_endpoint,
24
+ use_dual_stack: context[:use_dualstack_endpoint],
25
+ endpoint: endpoint,
26
+ force_path_style: context.config.force_path_style,
27
+ accelerate: context[:use_accelerate_endpoint],
28
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
29
+ use_object_lambda_endpoint: nil,
30
+ disable_access_points: nil,
31
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
32
+ use_arn_region: context.config.s3_use_arn_region,
33
+ )
34
+ end
35
+ end
36
+
37
+ class CompleteMultipartUpload
38
+ def self.build(context)
39
+ unless context.config.regional_endpoint
40
+ endpoint = context.config.endpoint.to_s
41
+ end
42
+ Aws::S3::EndpointParameters.new(
43
+ bucket: context.params[:bucket],
44
+ region: context.config.region,
45
+ use_fips: context.config.use_fips_endpoint,
46
+ use_dual_stack: context[:use_dualstack_endpoint],
47
+ endpoint: endpoint,
48
+ force_path_style: context.config.force_path_style,
49
+ accelerate: context[:use_accelerate_endpoint],
50
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
51
+ use_object_lambda_endpoint: nil,
52
+ disable_access_points: nil,
53
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
54
+ use_arn_region: context.config.s3_use_arn_region,
55
+ )
56
+ end
57
+ end
58
+
59
+ class CopyObject
60
+ def self.build(context)
61
+ unless context.config.regional_endpoint
62
+ endpoint = context.config.endpoint.to_s
63
+ end
64
+ Aws::S3::EndpointParameters.new(
65
+ bucket: context.params[:bucket],
66
+ region: context.config.region,
67
+ use_fips: context.config.use_fips_endpoint,
68
+ use_dual_stack: context[:use_dualstack_endpoint],
69
+ endpoint: endpoint,
70
+ force_path_style: context.config.force_path_style,
71
+ accelerate: context[:use_accelerate_endpoint],
72
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
73
+ use_object_lambda_endpoint: nil,
74
+ disable_access_points: nil,
75
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
76
+ use_arn_region: context.config.s3_use_arn_region,
77
+ )
78
+ end
79
+ end
80
+
81
+ class CreateBucket
82
+ def self.build(context)
83
+ unless context.config.regional_endpoint
84
+ endpoint = context.config.endpoint.to_s
85
+ end
86
+ Aws::S3::EndpointParameters.new(
87
+ bucket: context.params[:bucket],
88
+ region: context.config.region,
89
+ use_fips: context.config.use_fips_endpoint,
90
+ use_dual_stack: context[:use_dualstack_endpoint],
91
+ endpoint: endpoint,
92
+ force_path_style: context.config.force_path_style,
93
+ accelerate: context[:use_accelerate_endpoint],
94
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
95
+ use_object_lambda_endpoint: nil,
96
+ disable_access_points: true,
97
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
98
+ use_arn_region: context.config.s3_use_arn_region,
99
+ )
100
+ end
101
+ end
102
+
103
+ class CreateMultipartUpload
104
+ def self.build(context)
105
+ unless context.config.regional_endpoint
106
+ endpoint = context.config.endpoint.to_s
107
+ end
108
+ Aws::S3::EndpointParameters.new(
109
+ bucket: context.params[:bucket],
110
+ region: context.config.region,
111
+ use_fips: context.config.use_fips_endpoint,
112
+ use_dual_stack: context[:use_dualstack_endpoint],
113
+ endpoint: endpoint,
114
+ force_path_style: context.config.force_path_style,
115
+ accelerate: context[:use_accelerate_endpoint],
116
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
117
+ use_object_lambda_endpoint: nil,
118
+ disable_access_points: nil,
119
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
120
+ use_arn_region: context.config.s3_use_arn_region,
121
+ )
122
+ end
123
+ end
124
+
125
+ class DeleteBucket
126
+ def self.build(context)
127
+ unless context.config.regional_endpoint
128
+ endpoint = context.config.endpoint.to_s
129
+ end
130
+ Aws::S3::EndpointParameters.new(
131
+ bucket: context.params[:bucket],
132
+ region: context.config.region,
133
+ use_fips: context.config.use_fips_endpoint,
134
+ use_dual_stack: context[:use_dualstack_endpoint],
135
+ endpoint: endpoint,
136
+ force_path_style: context.config.force_path_style,
137
+ accelerate: context[:use_accelerate_endpoint],
138
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
139
+ use_object_lambda_endpoint: nil,
140
+ disable_access_points: nil,
141
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
142
+ use_arn_region: context.config.s3_use_arn_region,
143
+ )
144
+ end
145
+ end
146
+
147
+ class DeleteBucketAnalyticsConfiguration
148
+ def self.build(context)
149
+ unless context.config.regional_endpoint
150
+ endpoint = context.config.endpoint.to_s
151
+ end
152
+ Aws::S3::EndpointParameters.new(
153
+ bucket: context.params[:bucket],
154
+ region: context.config.region,
155
+ use_fips: context.config.use_fips_endpoint,
156
+ use_dual_stack: context[:use_dualstack_endpoint],
157
+ endpoint: endpoint,
158
+ force_path_style: context.config.force_path_style,
159
+ accelerate: context[:use_accelerate_endpoint],
160
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
161
+ use_object_lambda_endpoint: nil,
162
+ disable_access_points: nil,
163
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
164
+ use_arn_region: context.config.s3_use_arn_region,
165
+ )
166
+ end
167
+ end
168
+
169
+ class DeleteBucketCors
170
+ def self.build(context)
171
+ unless context.config.regional_endpoint
172
+ endpoint = context.config.endpoint.to_s
173
+ end
174
+ Aws::S3::EndpointParameters.new(
175
+ bucket: context.params[:bucket],
176
+ region: context.config.region,
177
+ use_fips: context.config.use_fips_endpoint,
178
+ use_dual_stack: context[:use_dualstack_endpoint],
179
+ endpoint: endpoint,
180
+ force_path_style: context.config.force_path_style,
181
+ accelerate: context[:use_accelerate_endpoint],
182
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
183
+ use_object_lambda_endpoint: nil,
184
+ disable_access_points: nil,
185
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
186
+ use_arn_region: context.config.s3_use_arn_region,
187
+ )
188
+ end
189
+ end
190
+
191
+ class DeleteBucketEncryption
192
+ def self.build(context)
193
+ unless context.config.regional_endpoint
194
+ endpoint = context.config.endpoint.to_s
195
+ end
196
+ Aws::S3::EndpointParameters.new(
197
+ bucket: context.params[:bucket],
198
+ region: context.config.region,
199
+ use_fips: context.config.use_fips_endpoint,
200
+ use_dual_stack: context[:use_dualstack_endpoint],
201
+ endpoint: endpoint,
202
+ force_path_style: context.config.force_path_style,
203
+ accelerate: context[:use_accelerate_endpoint],
204
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
205
+ use_object_lambda_endpoint: nil,
206
+ disable_access_points: nil,
207
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
208
+ use_arn_region: context.config.s3_use_arn_region,
209
+ )
210
+ end
211
+ end
212
+
213
+ class DeleteBucketIntelligentTieringConfiguration
214
+ def self.build(context)
215
+ unless context.config.regional_endpoint
216
+ endpoint = context.config.endpoint.to_s
217
+ end
218
+ Aws::S3::EndpointParameters.new(
219
+ bucket: context.params[:bucket],
220
+ region: context.config.region,
221
+ use_fips: context.config.use_fips_endpoint,
222
+ use_dual_stack: context[:use_dualstack_endpoint],
223
+ endpoint: endpoint,
224
+ force_path_style: context.config.force_path_style,
225
+ accelerate: context[:use_accelerate_endpoint],
226
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
227
+ use_object_lambda_endpoint: nil,
228
+ disable_access_points: nil,
229
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
230
+ use_arn_region: context.config.s3_use_arn_region,
231
+ )
232
+ end
233
+ end
234
+
235
+ class DeleteBucketInventoryConfiguration
236
+ def self.build(context)
237
+ unless context.config.regional_endpoint
238
+ endpoint = context.config.endpoint.to_s
239
+ end
240
+ Aws::S3::EndpointParameters.new(
241
+ bucket: context.params[:bucket],
242
+ region: context.config.region,
243
+ use_fips: context.config.use_fips_endpoint,
244
+ use_dual_stack: context[:use_dualstack_endpoint],
245
+ endpoint: endpoint,
246
+ force_path_style: context.config.force_path_style,
247
+ accelerate: context[:use_accelerate_endpoint],
248
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
249
+ use_object_lambda_endpoint: nil,
250
+ disable_access_points: nil,
251
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
252
+ use_arn_region: context.config.s3_use_arn_region,
253
+ )
254
+ end
255
+ end
256
+
257
+ class DeleteBucketLifecycle
258
+ def self.build(context)
259
+ unless context.config.regional_endpoint
260
+ endpoint = context.config.endpoint.to_s
261
+ end
262
+ Aws::S3::EndpointParameters.new(
263
+ bucket: context.params[:bucket],
264
+ region: context.config.region,
265
+ use_fips: context.config.use_fips_endpoint,
266
+ use_dual_stack: context[:use_dualstack_endpoint],
267
+ endpoint: endpoint,
268
+ force_path_style: context.config.force_path_style,
269
+ accelerate: context[:use_accelerate_endpoint],
270
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
271
+ use_object_lambda_endpoint: nil,
272
+ disable_access_points: nil,
273
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
274
+ use_arn_region: context.config.s3_use_arn_region,
275
+ )
276
+ end
277
+ end
278
+
279
+ class DeleteBucketMetricsConfiguration
280
+ def self.build(context)
281
+ unless context.config.regional_endpoint
282
+ endpoint = context.config.endpoint.to_s
283
+ end
284
+ Aws::S3::EndpointParameters.new(
285
+ bucket: context.params[:bucket],
286
+ region: context.config.region,
287
+ use_fips: context.config.use_fips_endpoint,
288
+ use_dual_stack: context[:use_dualstack_endpoint],
289
+ endpoint: endpoint,
290
+ force_path_style: context.config.force_path_style,
291
+ accelerate: context[:use_accelerate_endpoint],
292
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
293
+ use_object_lambda_endpoint: nil,
294
+ disable_access_points: nil,
295
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
296
+ use_arn_region: context.config.s3_use_arn_region,
297
+ )
298
+ end
299
+ end
300
+
301
+ class DeleteBucketOwnershipControls
302
+ def self.build(context)
303
+ unless context.config.regional_endpoint
304
+ endpoint = context.config.endpoint.to_s
305
+ end
306
+ Aws::S3::EndpointParameters.new(
307
+ bucket: context.params[:bucket],
308
+ region: context.config.region,
309
+ use_fips: context.config.use_fips_endpoint,
310
+ use_dual_stack: context[:use_dualstack_endpoint],
311
+ endpoint: endpoint,
312
+ force_path_style: context.config.force_path_style,
313
+ accelerate: context[:use_accelerate_endpoint],
314
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
315
+ use_object_lambda_endpoint: nil,
316
+ disable_access_points: nil,
317
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
318
+ use_arn_region: context.config.s3_use_arn_region,
319
+ )
320
+ end
321
+ end
322
+
323
+ class DeleteBucketPolicy
324
+ def self.build(context)
325
+ unless context.config.regional_endpoint
326
+ endpoint = context.config.endpoint.to_s
327
+ end
328
+ Aws::S3::EndpointParameters.new(
329
+ bucket: context.params[:bucket],
330
+ region: context.config.region,
331
+ use_fips: context.config.use_fips_endpoint,
332
+ use_dual_stack: context[:use_dualstack_endpoint],
333
+ endpoint: endpoint,
334
+ force_path_style: context.config.force_path_style,
335
+ accelerate: context[:use_accelerate_endpoint],
336
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
337
+ use_object_lambda_endpoint: nil,
338
+ disable_access_points: nil,
339
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
340
+ use_arn_region: context.config.s3_use_arn_region,
341
+ )
342
+ end
343
+ end
344
+
345
+ class DeleteBucketReplication
346
+ def self.build(context)
347
+ unless context.config.regional_endpoint
348
+ endpoint = context.config.endpoint.to_s
349
+ end
350
+ Aws::S3::EndpointParameters.new(
351
+ bucket: context.params[:bucket],
352
+ region: context.config.region,
353
+ use_fips: context.config.use_fips_endpoint,
354
+ use_dual_stack: context[:use_dualstack_endpoint],
355
+ endpoint: endpoint,
356
+ force_path_style: context.config.force_path_style,
357
+ accelerate: context[:use_accelerate_endpoint],
358
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
359
+ use_object_lambda_endpoint: nil,
360
+ disable_access_points: nil,
361
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
362
+ use_arn_region: context.config.s3_use_arn_region,
363
+ )
364
+ end
365
+ end
366
+
367
+ class DeleteBucketTagging
368
+ def self.build(context)
369
+ unless context.config.regional_endpoint
370
+ endpoint = context.config.endpoint.to_s
371
+ end
372
+ Aws::S3::EndpointParameters.new(
373
+ bucket: context.params[:bucket],
374
+ region: context.config.region,
375
+ use_fips: context.config.use_fips_endpoint,
376
+ use_dual_stack: context[:use_dualstack_endpoint],
377
+ endpoint: endpoint,
378
+ force_path_style: context.config.force_path_style,
379
+ accelerate: context[:use_accelerate_endpoint],
380
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
381
+ use_object_lambda_endpoint: nil,
382
+ disable_access_points: nil,
383
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
384
+ use_arn_region: context.config.s3_use_arn_region,
385
+ )
386
+ end
387
+ end
388
+
389
+ class DeleteBucketWebsite
390
+ def self.build(context)
391
+ unless context.config.regional_endpoint
392
+ endpoint = context.config.endpoint.to_s
393
+ end
394
+ Aws::S3::EndpointParameters.new(
395
+ bucket: context.params[:bucket],
396
+ region: context.config.region,
397
+ use_fips: context.config.use_fips_endpoint,
398
+ use_dual_stack: context[:use_dualstack_endpoint],
399
+ endpoint: endpoint,
400
+ force_path_style: context.config.force_path_style,
401
+ accelerate: context[:use_accelerate_endpoint],
402
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
403
+ use_object_lambda_endpoint: nil,
404
+ disable_access_points: nil,
405
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
406
+ use_arn_region: context.config.s3_use_arn_region,
407
+ )
408
+ end
409
+ end
410
+
411
+ class DeleteObject
412
+ def self.build(context)
413
+ unless context.config.regional_endpoint
414
+ endpoint = context.config.endpoint.to_s
415
+ end
416
+ Aws::S3::EndpointParameters.new(
417
+ bucket: context.params[:bucket],
418
+ region: context.config.region,
419
+ use_fips: context.config.use_fips_endpoint,
420
+ use_dual_stack: context[:use_dualstack_endpoint],
421
+ endpoint: endpoint,
422
+ force_path_style: context.config.force_path_style,
423
+ accelerate: context[:use_accelerate_endpoint],
424
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
425
+ use_object_lambda_endpoint: nil,
426
+ disable_access_points: nil,
427
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
428
+ use_arn_region: context.config.s3_use_arn_region,
429
+ )
430
+ end
431
+ end
432
+
433
+ class DeleteObjectTagging
434
+ def self.build(context)
435
+ unless context.config.regional_endpoint
436
+ endpoint = context.config.endpoint.to_s
437
+ end
438
+ Aws::S3::EndpointParameters.new(
439
+ bucket: context.params[:bucket],
440
+ region: context.config.region,
441
+ use_fips: context.config.use_fips_endpoint,
442
+ use_dual_stack: context[:use_dualstack_endpoint],
443
+ endpoint: endpoint,
444
+ force_path_style: context.config.force_path_style,
445
+ accelerate: context[:use_accelerate_endpoint],
446
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
447
+ use_object_lambda_endpoint: nil,
448
+ disable_access_points: nil,
449
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
450
+ use_arn_region: context.config.s3_use_arn_region,
451
+ )
452
+ end
453
+ end
454
+
455
+ class DeleteObjects
456
+ def self.build(context)
457
+ unless context.config.regional_endpoint
458
+ endpoint = context.config.endpoint.to_s
459
+ end
460
+ Aws::S3::EndpointParameters.new(
461
+ bucket: context.params[:bucket],
462
+ region: context.config.region,
463
+ use_fips: context.config.use_fips_endpoint,
464
+ use_dual_stack: context[:use_dualstack_endpoint],
465
+ endpoint: endpoint,
466
+ force_path_style: context.config.force_path_style,
467
+ accelerate: context[:use_accelerate_endpoint],
468
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
469
+ use_object_lambda_endpoint: nil,
470
+ disable_access_points: nil,
471
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
472
+ use_arn_region: context.config.s3_use_arn_region,
473
+ )
474
+ end
475
+ end
476
+
477
+ class DeletePublicAccessBlock
478
+ def self.build(context)
479
+ unless context.config.regional_endpoint
480
+ endpoint = context.config.endpoint.to_s
481
+ end
482
+ Aws::S3::EndpointParameters.new(
483
+ bucket: context.params[:bucket],
484
+ region: context.config.region,
485
+ use_fips: context.config.use_fips_endpoint,
486
+ use_dual_stack: context[:use_dualstack_endpoint],
487
+ endpoint: endpoint,
488
+ force_path_style: context.config.force_path_style,
489
+ accelerate: context[:use_accelerate_endpoint],
490
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
491
+ use_object_lambda_endpoint: nil,
492
+ disable_access_points: nil,
493
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
494
+ use_arn_region: context.config.s3_use_arn_region,
495
+ )
496
+ end
497
+ end
498
+
499
+ class GetBucketAccelerateConfiguration
500
+ def self.build(context)
501
+ unless context.config.regional_endpoint
502
+ endpoint = context.config.endpoint.to_s
503
+ end
504
+ Aws::S3::EndpointParameters.new(
505
+ bucket: context.params[:bucket],
506
+ region: context.config.region,
507
+ use_fips: context.config.use_fips_endpoint,
508
+ use_dual_stack: context[:use_dualstack_endpoint],
509
+ endpoint: endpoint,
510
+ force_path_style: context.config.force_path_style,
511
+ accelerate: context[:use_accelerate_endpoint],
512
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
513
+ use_object_lambda_endpoint: nil,
514
+ disable_access_points: nil,
515
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
516
+ use_arn_region: context.config.s3_use_arn_region,
517
+ )
518
+ end
519
+ end
520
+
521
+ class GetBucketAcl
522
+ def self.build(context)
523
+ unless context.config.regional_endpoint
524
+ endpoint = context.config.endpoint.to_s
525
+ end
526
+ Aws::S3::EndpointParameters.new(
527
+ bucket: context.params[:bucket],
528
+ region: context.config.region,
529
+ use_fips: context.config.use_fips_endpoint,
530
+ use_dual_stack: context[:use_dualstack_endpoint],
531
+ endpoint: endpoint,
532
+ force_path_style: context.config.force_path_style,
533
+ accelerate: context[:use_accelerate_endpoint],
534
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
535
+ use_object_lambda_endpoint: nil,
536
+ disable_access_points: nil,
537
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
538
+ use_arn_region: context.config.s3_use_arn_region,
539
+ )
540
+ end
541
+ end
542
+
543
+ class GetBucketAnalyticsConfiguration
544
+ def self.build(context)
545
+ unless context.config.regional_endpoint
546
+ endpoint = context.config.endpoint.to_s
547
+ end
548
+ Aws::S3::EndpointParameters.new(
549
+ bucket: context.params[:bucket],
550
+ region: context.config.region,
551
+ use_fips: context.config.use_fips_endpoint,
552
+ use_dual_stack: context[:use_dualstack_endpoint],
553
+ endpoint: endpoint,
554
+ force_path_style: context.config.force_path_style,
555
+ accelerate: context[:use_accelerate_endpoint],
556
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
557
+ use_object_lambda_endpoint: nil,
558
+ disable_access_points: nil,
559
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
560
+ use_arn_region: context.config.s3_use_arn_region,
561
+ )
562
+ end
563
+ end
564
+
565
+ class GetBucketCors
566
+ def self.build(context)
567
+ unless context.config.regional_endpoint
568
+ endpoint = context.config.endpoint.to_s
569
+ end
570
+ Aws::S3::EndpointParameters.new(
571
+ bucket: context.params[:bucket],
572
+ region: context.config.region,
573
+ use_fips: context.config.use_fips_endpoint,
574
+ use_dual_stack: context[:use_dualstack_endpoint],
575
+ endpoint: endpoint,
576
+ force_path_style: context.config.force_path_style,
577
+ accelerate: context[:use_accelerate_endpoint],
578
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
579
+ use_object_lambda_endpoint: nil,
580
+ disable_access_points: nil,
581
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
582
+ use_arn_region: context.config.s3_use_arn_region,
583
+ )
584
+ end
585
+ end
586
+
587
+ class GetBucketEncryption
588
+ def self.build(context)
589
+ unless context.config.regional_endpoint
590
+ endpoint = context.config.endpoint.to_s
591
+ end
592
+ Aws::S3::EndpointParameters.new(
593
+ bucket: context.params[:bucket],
594
+ region: context.config.region,
595
+ use_fips: context.config.use_fips_endpoint,
596
+ use_dual_stack: context[:use_dualstack_endpoint],
597
+ endpoint: endpoint,
598
+ force_path_style: context.config.force_path_style,
599
+ accelerate: context[:use_accelerate_endpoint],
600
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
601
+ use_object_lambda_endpoint: nil,
602
+ disable_access_points: nil,
603
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
604
+ use_arn_region: context.config.s3_use_arn_region,
605
+ )
606
+ end
607
+ end
608
+
609
+ class GetBucketIntelligentTieringConfiguration
610
+ def self.build(context)
611
+ unless context.config.regional_endpoint
612
+ endpoint = context.config.endpoint.to_s
613
+ end
614
+ Aws::S3::EndpointParameters.new(
615
+ bucket: context.params[:bucket],
616
+ region: context.config.region,
617
+ use_fips: context.config.use_fips_endpoint,
618
+ use_dual_stack: context[:use_dualstack_endpoint],
619
+ endpoint: endpoint,
620
+ force_path_style: context.config.force_path_style,
621
+ accelerate: context[:use_accelerate_endpoint],
622
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
623
+ use_object_lambda_endpoint: nil,
624
+ disable_access_points: nil,
625
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
626
+ use_arn_region: context.config.s3_use_arn_region,
627
+ )
628
+ end
629
+ end
630
+
631
+ class GetBucketInventoryConfiguration
632
+ def self.build(context)
633
+ unless context.config.regional_endpoint
634
+ endpoint = context.config.endpoint.to_s
635
+ end
636
+ Aws::S3::EndpointParameters.new(
637
+ bucket: context.params[:bucket],
638
+ region: context.config.region,
639
+ use_fips: context.config.use_fips_endpoint,
640
+ use_dual_stack: context[:use_dualstack_endpoint],
641
+ endpoint: endpoint,
642
+ force_path_style: context.config.force_path_style,
643
+ accelerate: context[:use_accelerate_endpoint],
644
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
645
+ use_object_lambda_endpoint: nil,
646
+ disable_access_points: nil,
647
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
648
+ use_arn_region: context.config.s3_use_arn_region,
649
+ )
650
+ end
651
+ end
652
+
653
+ class GetBucketLifecycle
654
+ def self.build(context)
655
+ unless context.config.regional_endpoint
656
+ endpoint = context.config.endpoint.to_s
657
+ end
658
+ Aws::S3::EndpointParameters.new(
659
+ bucket: context.params[:bucket],
660
+ region: context.config.region,
661
+ use_fips: context.config.use_fips_endpoint,
662
+ use_dual_stack: context[:use_dualstack_endpoint],
663
+ endpoint: endpoint,
664
+ force_path_style: context.config.force_path_style,
665
+ accelerate: context[:use_accelerate_endpoint],
666
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
667
+ use_object_lambda_endpoint: nil,
668
+ disable_access_points: nil,
669
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
670
+ use_arn_region: context.config.s3_use_arn_region,
671
+ )
672
+ end
673
+ end
674
+
675
+ class GetBucketLifecycleConfiguration
676
+ def self.build(context)
677
+ unless context.config.regional_endpoint
678
+ endpoint = context.config.endpoint.to_s
679
+ end
680
+ Aws::S3::EndpointParameters.new(
681
+ bucket: context.params[:bucket],
682
+ region: context.config.region,
683
+ use_fips: context.config.use_fips_endpoint,
684
+ use_dual_stack: context[:use_dualstack_endpoint],
685
+ endpoint: endpoint,
686
+ force_path_style: context.config.force_path_style,
687
+ accelerate: context[:use_accelerate_endpoint],
688
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
689
+ use_object_lambda_endpoint: nil,
690
+ disable_access_points: nil,
691
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
692
+ use_arn_region: context.config.s3_use_arn_region,
693
+ )
694
+ end
695
+ end
696
+
697
+ class GetBucketLocation
698
+ def self.build(context)
699
+ unless context.config.regional_endpoint
700
+ endpoint = context.config.endpoint.to_s
701
+ end
702
+ Aws::S3::EndpointParameters.new(
703
+ bucket: context.params[:bucket],
704
+ region: context.config.region,
705
+ use_fips: context.config.use_fips_endpoint,
706
+ use_dual_stack: context[:use_dualstack_endpoint],
707
+ endpoint: endpoint,
708
+ force_path_style: context.config.force_path_style,
709
+ accelerate: context[:use_accelerate_endpoint],
710
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
711
+ use_object_lambda_endpoint: nil,
712
+ disable_access_points: nil,
713
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
714
+ use_arn_region: context.config.s3_use_arn_region,
715
+ )
716
+ end
717
+ end
718
+
719
+ class GetBucketLogging
720
+ def self.build(context)
721
+ unless context.config.regional_endpoint
722
+ endpoint = context.config.endpoint.to_s
723
+ end
724
+ Aws::S3::EndpointParameters.new(
725
+ bucket: context.params[:bucket],
726
+ region: context.config.region,
727
+ use_fips: context.config.use_fips_endpoint,
728
+ use_dual_stack: context[:use_dualstack_endpoint],
729
+ endpoint: endpoint,
730
+ force_path_style: context.config.force_path_style,
731
+ accelerate: context[:use_accelerate_endpoint],
732
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
733
+ use_object_lambda_endpoint: nil,
734
+ disable_access_points: nil,
735
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
736
+ use_arn_region: context.config.s3_use_arn_region,
737
+ )
738
+ end
739
+ end
740
+
741
+ class GetBucketMetricsConfiguration
742
+ def self.build(context)
743
+ unless context.config.regional_endpoint
744
+ endpoint = context.config.endpoint.to_s
745
+ end
746
+ Aws::S3::EndpointParameters.new(
747
+ bucket: context.params[:bucket],
748
+ region: context.config.region,
749
+ use_fips: context.config.use_fips_endpoint,
750
+ use_dual_stack: context[:use_dualstack_endpoint],
751
+ endpoint: endpoint,
752
+ force_path_style: context.config.force_path_style,
753
+ accelerate: context[:use_accelerate_endpoint],
754
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
755
+ use_object_lambda_endpoint: nil,
756
+ disable_access_points: nil,
757
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
758
+ use_arn_region: context.config.s3_use_arn_region,
759
+ )
760
+ end
761
+ end
762
+
763
+ class GetBucketNotification
764
+ def self.build(context)
765
+ unless context.config.regional_endpoint
766
+ endpoint = context.config.endpoint.to_s
767
+ end
768
+ Aws::S3::EndpointParameters.new(
769
+ bucket: context.params[:bucket],
770
+ region: context.config.region,
771
+ use_fips: context.config.use_fips_endpoint,
772
+ use_dual_stack: context[:use_dualstack_endpoint],
773
+ endpoint: endpoint,
774
+ force_path_style: context.config.force_path_style,
775
+ accelerate: context[:use_accelerate_endpoint],
776
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
777
+ use_object_lambda_endpoint: nil,
778
+ disable_access_points: nil,
779
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
780
+ use_arn_region: context.config.s3_use_arn_region,
781
+ )
782
+ end
783
+ end
784
+
785
+ class GetBucketNotificationConfiguration
786
+ def self.build(context)
787
+ unless context.config.regional_endpoint
788
+ endpoint = context.config.endpoint.to_s
789
+ end
790
+ Aws::S3::EndpointParameters.new(
791
+ bucket: context.params[:bucket],
792
+ region: context.config.region,
793
+ use_fips: context.config.use_fips_endpoint,
794
+ use_dual_stack: context[:use_dualstack_endpoint],
795
+ endpoint: endpoint,
796
+ force_path_style: context.config.force_path_style,
797
+ accelerate: context[:use_accelerate_endpoint],
798
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
799
+ use_object_lambda_endpoint: nil,
800
+ disable_access_points: nil,
801
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
802
+ use_arn_region: context.config.s3_use_arn_region,
803
+ )
804
+ end
805
+ end
806
+
807
+ class GetBucketOwnershipControls
808
+ def self.build(context)
809
+ unless context.config.regional_endpoint
810
+ endpoint = context.config.endpoint.to_s
811
+ end
812
+ Aws::S3::EndpointParameters.new(
813
+ bucket: context.params[:bucket],
814
+ region: context.config.region,
815
+ use_fips: context.config.use_fips_endpoint,
816
+ use_dual_stack: context[:use_dualstack_endpoint],
817
+ endpoint: endpoint,
818
+ force_path_style: context.config.force_path_style,
819
+ accelerate: context[:use_accelerate_endpoint],
820
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
821
+ use_object_lambda_endpoint: nil,
822
+ disable_access_points: nil,
823
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
824
+ use_arn_region: context.config.s3_use_arn_region,
825
+ )
826
+ end
827
+ end
828
+
829
+ class GetBucketPolicy
830
+ def self.build(context)
831
+ unless context.config.regional_endpoint
832
+ endpoint = context.config.endpoint.to_s
833
+ end
834
+ Aws::S3::EndpointParameters.new(
835
+ bucket: context.params[:bucket],
836
+ region: context.config.region,
837
+ use_fips: context.config.use_fips_endpoint,
838
+ use_dual_stack: context[:use_dualstack_endpoint],
839
+ endpoint: endpoint,
840
+ force_path_style: context.config.force_path_style,
841
+ accelerate: context[:use_accelerate_endpoint],
842
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
843
+ use_object_lambda_endpoint: nil,
844
+ disable_access_points: nil,
845
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
846
+ use_arn_region: context.config.s3_use_arn_region,
847
+ )
848
+ end
849
+ end
850
+
851
+ class GetBucketPolicyStatus
852
+ def self.build(context)
853
+ unless context.config.regional_endpoint
854
+ endpoint = context.config.endpoint.to_s
855
+ end
856
+ Aws::S3::EndpointParameters.new(
857
+ bucket: context.params[:bucket],
858
+ region: context.config.region,
859
+ use_fips: context.config.use_fips_endpoint,
860
+ use_dual_stack: context[:use_dualstack_endpoint],
861
+ endpoint: endpoint,
862
+ force_path_style: context.config.force_path_style,
863
+ accelerate: context[:use_accelerate_endpoint],
864
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
865
+ use_object_lambda_endpoint: nil,
866
+ disable_access_points: nil,
867
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
868
+ use_arn_region: context.config.s3_use_arn_region,
869
+ )
870
+ end
871
+ end
872
+
873
+ class GetBucketReplication
874
+ def self.build(context)
875
+ unless context.config.regional_endpoint
876
+ endpoint = context.config.endpoint.to_s
877
+ end
878
+ Aws::S3::EndpointParameters.new(
879
+ bucket: context.params[:bucket],
880
+ region: context.config.region,
881
+ use_fips: context.config.use_fips_endpoint,
882
+ use_dual_stack: context[:use_dualstack_endpoint],
883
+ endpoint: endpoint,
884
+ force_path_style: context.config.force_path_style,
885
+ accelerate: context[:use_accelerate_endpoint],
886
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
887
+ use_object_lambda_endpoint: nil,
888
+ disable_access_points: nil,
889
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
890
+ use_arn_region: context.config.s3_use_arn_region,
891
+ )
892
+ end
893
+ end
894
+
895
+ class GetBucketRequestPayment
896
+ def self.build(context)
897
+ unless context.config.regional_endpoint
898
+ endpoint = context.config.endpoint.to_s
899
+ end
900
+ Aws::S3::EndpointParameters.new(
901
+ bucket: context.params[:bucket],
902
+ region: context.config.region,
903
+ use_fips: context.config.use_fips_endpoint,
904
+ use_dual_stack: context[:use_dualstack_endpoint],
905
+ endpoint: endpoint,
906
+ force_path_style: context.config.force_path_style,
907
+ accelerate: context[:use_accelerate_endpoint],
908
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
909
+ use_object_lambda_endpoint: nil,
910
+ disable_access_points: nil,
911
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
912
+ use_arn_region: context.config.s3_use_arn_region,
913
+ )
914
+ end
915
+ end
916
+
917
+ class GetBucketTagging
918
+ def self.build(context)
919
+ unless context.config.regional_endpoint
920
+ endpoint = context.config.endpoint.to_s
921
+ end
922
+ Aws::S3::EndpointParameters.new(
923
+ bucket: context.params[:bucket],
924
+ region: context.config.region,
925
+ use_fips: context.config.use_fips_endpoint,
926
+ use_dual_stack: context[:use_dualstack_endpoint],
927
+ endpoint: endpoint,
928
+ force_path_style: context.config.force_path_style,
929
+ accelerate: context[:use_accelerate_endpoint],
930
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
931
+ use_object_lambda_endpoint: nil,
932
+ disable_access_points: nil,
933
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
934
+ use_arn_region: context.config.s3_use_arn_region,
935
+ )
936
+ end
937
+ end
938
+
939
+ class GetBucketVersioning
940
+ def self.build(context)
941
+ unless context.config.regional_endpoint
942
+ endpoint = context.config.endpoint.to_s
943
+ end
944
+ Aws::S3::EndpointParameters.new(
945
+ bucket: context.params[:bucket],
946
+ region: context.config.region,
947
+ use_fips: context.config.use_fips_endpoint,
948
+ use_dual_stack: context[:use_dualstack_endpoint],
949
+ endpoint: endpoint,
950
+ force_path_style: context.config.force_path_style,
951
+ accelerate: context[:use_accelerate_endpoint],
952
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
953
+ use_object_lambda_endpoint: nil,
954
+ disable_access_points: nil,
955
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
956
+ use_arn_region: context.config.s3_use_arn_region,
957
+ )
958
+ end
959
+ end
960
+
961
+ class GetBucketWebsite
962
+ def self.build(context)
963
+ unless context.config.regional_endpoint
964
+ endpoint = context.config.endpoint.to_s
965
+ end
966
+ Aws::S3::EndpointParameters.new(
967
+ bucket: context.params[:bucket],
968
+ region: context.config.region,
969
+ use_fips: context.config.use_fips_endpoint,
970
+ use_dual_stack: context[:use_dualstack_endpoint],
971
+ endpoint: endpoint,
972
+ force_path_style: context.config.force_path_style,
973
+ accelerate: context[:use_accelerate_endpoint],
974
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
975
+ use_object_lambda_endpoint: nil,
976
+ disable_access_points: nil,
977
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
978
+ use_arn_region: context.config.s3_use_arn_region,
979
+ )
980
+ end
981
+ end
982
+
983
+ class GetObject
984
+ def self.build(context)
985
+ unless context.config.regional_endpoint
986
+ endpoint = context.config.endpoint.to_s
987
+ end
988
+ Aws::S3::EndpointParameters.new(
989
+ bucket: context.params[:bucket],
990
+ region: context.config.region,
991
+ use_fips: context.config.use_fips_endpoint,
992
+ use_dual_stack: context[:use_dualstack_endpoint],
993
+ endpoint: endpoint,
994
+ force_path_style: context.config.force_path_style,
995
+ accelerate: context[:use_accelerate_endpoint],
996
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
997
+ use_object_lambda_endpoint: nil,
998
+ disable_access_points: nil,
999
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1000
+ use_arn_region: context.config.s3_use_arn_region,
1001
+ )
1002
+ end
1003
+ end
1004
+
1005
+ class GetObjectAcl
1006
+ def self.build(context)
1007
+ unless context.config.regional_endpoint
1008
+ endpoint = context.config.endpoint.to_s
1009
+ end
1010
+ Aws::S3::EndpointParameters.new(
1011
+ bucket: context.params[:bucket],
1012
+ region: context.config.region,
1013
+ use_fips: context.config.use_fips_endpoint,
1014
+ use_dual_stack: context[:use_dualstack_endpoint],
1015
+ endpoint: endpoint,
1016
+ force_path_style: context.config.force_path_style,
1017
+ accelerate: context[:use_accelerate_endpoint],
1018
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1019
+ use_object_lambda_endpoint: nil,
1020
+ disable_access_points: nil,
1021
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1022
+ use_arn_region: context.config.s3_use_arn_region,
1023
+ )
1024
+ end
1025
+ end
1026
+
1027
+ class GetObjectAttributes
1028
+ def self.build(context)
1029
+ unless context.config.regional_endpoint
1030
+ endpoint = context.config.endpoint.to_s
1031
+ end
1032
+ Aws::S3::EndpointParameters.new(
1033
+ bucket: context.params[:bucket],
1034
+ region: context.config.region,
1035
+ use_fips: context.config.use_fips_endpoint,
1036
+ use_dual_stack: context[:use_dualstack_endpoint],
1037
+ endpoint: endpoint,
1038
+ force_path_style: context.config.force_path_style,
1039
+ accelerate: context[:use_accelerate_endpoint],
1040
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1041
+ use_object_lambda_endpoint: nil,
1042
+ disable_access_points: nil,
1043
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1044
+ use_arn_region: context.config.s3_use_arn_region,
1045
+ )
1046
+ end
1047
+ end
1048
+
1049
+ class GetObjectLegalHold
1050
+ def self.build(context)
1051
+ unless context.config.regional_endpoint
1052
+ endpoint = context.config.endpoint.to_s
1053
+ end
1054
+ Aws::S3::EndpointParameters.new(
1055
+ bucket: context.params[:bucket],
1056
+ region: context.config.region,
1057
+ use_fips: context.config.use_fips_endpoint,
1058
+ use_dual_stack: context[:use_dualstack_endpoint],
1059
+ endpoint: endpoint,
1060
+ force_path_style: context.config.force_path_style,
1061
+ accelerate: context[:use_accelerate_endpoint],
1062
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1063
+ use_object_lambda_endpoint: nil,
1064
+ disable_access_points: nil,
1065
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1066
+ use_arn_region: context.config.s3_use_arn_region,
1067
+ )
1068
+ end
1069
+ end
1070
+
1071
+ class GetObjectLockConfiguration
1072
+ def self.build(context)
1073
+ unless context.config.regional_endpoint
1074
+ endpoint = context.config.endpoint.to_s
1075
+ end
1076
+ Aws::S3::EndpointParameters.new(
1077
+ bucket: context.params[:bucket],
1078
+ region: context.config.region,
1079
+ use_fips: context.config.use_fips_endpoint,
1080
+ use_dual_stack: context[:use_dualstack_endpoint],
1081
+ endpoint: endpoint,
1082
+ force_path_style: context.config.force_path_style,
1083
+ accelerate: context[:use_accelerate_endpoint],
1084
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1085
+ use_object_lambda_endpoint: nil,
1086
+ disable_access_points: nil,
1087
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1088
+ use_arn_region: context.config.s3_use_arn_region,
1089
+ )
1090
+ end
1091
+ end
1092
+
1093
+ class GetObjectRetention
1094
+ def self.build(context)
1095
+ unless context.config.regional_endpoint
1096
+ endpoint = context.config.endpoint.to_s
1097
+ end
1098
+ Aws::S3::EndpointParameters.new(
1099
+ bucket: context.params[:bucket],
1100
+ region: context.config.region,
1101
+ use_fips: context.config.use_fips_endpoint,
1102
+ use_dual_stack: context[:use_dualstack_endpoint],
1103
+ endpoint: endpoint,
1104
+ force_path_style: context.config.force_path_style,
1105
+ accelerate: context[:use_accelerate_endpoint],
1106
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1107
+ use_object_lambda_endpoint: nil,
1108
+ disable_access_points: nil,
1109
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1110
+ use_arn_region: context.config.s3_use_arn_region,
1111
+ )
1112
+ end
1113
+ end
1114
+
1115
+ class GetObjectTagging
1116
+ def self.build(context)
1117
+ unless context.config.regional_endpoint
1118
+ endpoint = context.config.endpoint.to_s
1119
+ end
1120
+ Aws::S3::EndpointParameters.new(
1121
+ bucket: context.params[:bucket],
1122
+ region: context.config.region,
1123
+ use_fips: context.config.use_fips_endpoint,
1124
+ use_dual_stack: context[:use_dualstack_endpoint],
1125
+ endpoint: endpoint,
1126
+ force_path_style: context.config.force_path_style,
1127
+ accelerate: context[:use_accelerate_endpoint],
1128
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1129
+ use_object_lambda_endpoint: nil,
1130
+ disable_access_points: nil,
1131
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1132
+ use_arn_region: context.config.s3_use_arn_region,
1133
+ )
1134
+ end
1135
+ end
1136
+
1137
+ class GetObjectTorrent
1138
+ def self.build(context)
1139
+ unless context.config.regional_endpoint
1140
+ endpoint = context.config.endpoint.to_s
1141
+ end
1142
+ Aws::S3::EndpointParameters.new(
1143
+ bucket: context.params[:bucket],
1144
+ region: context.config.region,
1145
+ use_fips: context.config.use_fips_endpoint,
1146
+ use_dual_stack: context[:use_dualstack_endpoint],
1147
+ endpoint: endpoint,
1148
+ force_path_style: context.config.force_path_style,
1149
+ accelerate: context[:use_accelerate_endpoint],
1150
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1151
+ use_object_lambda_endpoint: nil,
1152
+ disable_access_points: nil,
1153
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1154
+ use_arn_region: context.config.s3_use_arn_region,
1155
+ )
1156
+ end
1157
+ end
1158
+
1159
+ class GetPublicAccessBlock
1160
+ def self.build(context)
1161
+ unless context.config.regional_endpoint
1162
+ endpoint = context.config.endpoint.to_s
1163
+ end
1164
+ Aws::S3::EndpointParameters.new(
1165
+ bucket: context.params[:bucket],
1166
+ region: context.config.region,
1167
+ use_fips: context.config.use_fips_endpoint,
1168
+ use_dual_stack: context[:use_dualstack_endpoint],
1169
+ endpoint: endpoint,
1170
+ force_path_style: context.config.force_path_style,
1171
+ accelerate: context[:use_accelerate_endpoint],
1172
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1173
+ use_object_lambda_endpoint: nil,
1174
+ disable_access_points: nil,
1175
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1176
+ use_arn_region: context.config.s3_use_arn_region,
1177
+ )
1178
+ end
1179
+ end
1180
+
1181
+ class HeadBucket
1182
+ def self.build(context)
1183
+ unless context.config.regional_endpoint
1184
+ endpoint = context.config.endpoint.to_s
1185
+ end
1186
+ Aws::S3::EndpointParameters.new(
1187
+ bucket: context.params[:bucket],
1188
+ region: context.config.region,
1189
+ use_fips: context.config.use_fips_endpoint,
1190
+ use_dual_stack: context[:use_dualstack_endpoint],
1191
+ endpoint: endpoint,
1192
+ force_path_style: context.config.force_path_style,
1193
+ accelerate: context[:use_accelerate_endpoint],
1194
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1195
+ use_object_lambda_endpoint: nil,
1196
+ disable_access_points: nil,
1197
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1198
+ use_arn_region: context.config.s3_use_arn_region,
1199
+ )
1200
+ end
1201
+ end
1202
+
1203
+ class HeadObject
1204
+ def self.build(context)
1205
+ unless context.config.regional_endpoint
1206
+ endpoint = context.config.endpoint.to_s
1207
+ end
1208
+ Aws::S3::EndpointParameters.new(
1209
+ bucket: context.params[:bucket],
1210
+ region: context.config.region,
1211
+ use_fips: context.config.use_fips_endpoint,
1212
+ use_dual_stack: context[:use_dualstack_endpoint],
1213
+ endpoint: endpoint,
1214
+ force_path_style: context.config.force_path_style,
1215
+ accelerate: context[:use_accelerate_endpoint],
1216
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1217
+ use_object_lambda_endpoint: nil,
1218
+ disable_access_points: nil,
1219
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1220
+ use_arn_region: context.config.s3_use_arn_region,
1221
+ )
1222
+ end
1223
+ end
1224
+
1225
+ class ListBucketAnalyticsConfigurations
1226
+ def self.build(context)
1227
+ unless context.config.regional_endpoint
1228
+ endpoint = context.config.endpoint.to_s
1229
+ end
1230
+ Aws::S3::EndpointParameters.new(
1231
+ bucket: context.params[:bucket],
1232
+ region: context.config.region,
1233
+ use_fips: context.config.use_fips_endpoint,
1234
+ use_dual_stack: context[:use_dualstack_endpoint],
1235
+ endpoint: endpoint,
1236
+ force_path_style: context.config.force_path_style,
1237
+ accelerate: context[:use_accelerate_endpoint],
1238
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1239
+ use_object_lambda_endpoint: nil,
1240
+ disable_access_points: nil,
1241
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1242
+ use_arn_region: context.config.s3_use_arn_region,
1243
+ )
1244
+ end
1245
+ end
1246
+
1247
+ class ListBucketIntelligentTieringConfigurations
1248
+ def self.build(context)
1249
+ unless context.config.regional_endpoint
1250
+ endpoint = context.config.endpoint.to_s
1251
+ end
1252
+ Aws::S3::EndpointParameters.new(
1253
+ bucket: context.params[:bucket],
1254
+ region: context.config.region,
1255
+ use_fips: context.config.use_fips_endpoint,
1256
+ use_dual_stack: context[:use_dualstack_endpoint],
1257
+ endpoint: endpoint,
1258
+ force_path_style: context.config.force_path_style,
1259
+ accelerate: context[:use_accelerate_endpoint],
1260
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1261
+ use_object_lambda_endpoint: nil,
1262
+ disable_access_points: nil,
1263
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1264
+ use_arn_region: context.config.s3_use_arn_region,
1265
+ )
1266
+ end
1267
+ end
1268
+
1269
+ class ListBucketInventoryConfigurations
1270
+ def self.build(context)
1271
+ unless context.config.regional_endpoint
1272
+ endpoint = context.config.endpoint.to_s
1273
+ end
1274
+ Aws::S3::EndpointParameters.new(
1275
+ bucket: context.params[:bucket],
1276
+ region: context.config.region,
1277
+ use_fips: context.config.use_fips_endpoint,
1278
+ use_dual_stack: context[:use_dualstack_endpoint],
1279
+ endpoint: endpoint,
1280
+ force_path_style: context.config.force_path_style,
1281
+ accelerate: context[:use_accelerate_endpoint],
1282
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1283
+ use_object_lambda_endpoint: nil,
1284
+ disable_access_points: nil,
1285
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1286
+ use_arn_region: context.config.s3_use_arn_region,
1287
+ )
1288
+ end
1289
+ end
1290
+
1291
+ class ListBucketMetricsConfigurations
1292
+ def self.build(context)
1293
+ unless context.config.regional_endpoint
1294
+ endpoint = context.config.endpoint.to_s
1295
+ end
1296
+ Aws::S3::EndpointParameters.new(
1297
+ bucket: context.params[:bucket],
1298
+ region: context.config.region,
1299
+ use_fips: context.config.use_fips_endpoint,
1300
+ use_dual_stack: context[:use_dualstack_endpoint],
1301
+ endpoint: endpoint,
1302
+ force_path_style: context.config.force_path_style,
1303
+ accelerate: context[:use_accelerate_endpoint],
1304
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1305
+ use_object_lambda_endpoint: nil,
1306
+ disable_access_points: nil,
1307
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1308
+ use_arn_region: context.config.s3_use_arn_region,
1309
+ )
1310
+ end
1311
+ end
1312
+
1313
+ class ListBuckets
1314
+ def self.build(context)
1315
+ unless context.config.regional_endpoint
1316
+ endpoint = context.config.endpoint.to_s
1317
+ end
1318
+ Aws::S3::EndpointParameters.new(
1319
+ bucket: nil,
1320
+ region: context.config.region,
1321
+ use_fips: context.config.use_fips_endpoint,
1322
+ use_dual_stack: context[:use_dualstack_endpoint],
1323
+ endpoint: endpoint,
1324
+ force_path_style: context.config.force_path_style,
1325
+ accelerate: context[:use_accelerate_endpoint],
1326
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1327
+ use_object_lambda_endpoint: nil,
1328
+ disable_access_points: nil,
1329
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1330
+ use_arn_region: context.config.s3_use_arn_region,
1331
+ )
1332
+ end
1333
+ end
1334
+
1335
+ class ListMultipartUploads
1336
+ def self.build(context)
1337
+ unless context.config.regional_endpoint
1338
+ endpoint = context.config.endpoint.to_s
1339
+ end
1340
+ Aws::S3::EndpointParameters.new(
1341
+ bucket: context.params[:bucket],
1342
+ region: context.config.region,
1343
+ use_fips: context.config.use_fips_endpoint,
1344
+ use_dual_stack: context[:use_dualstack_endpoint],
1345
+ endpoint: endpoint,
1346
+ force_path_style: context.config.force_path_style,
1347
+ accelerate: context[:use_accelerate_endpoint],
1348
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1349
+ use_object_lambda_endpoint: nil,
1350
+ disable_access_points: nil,
1351
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1352
+ use_arn_region: context.config.s3_use_arn_region,
1353
+ )
1354
+ end
1355
+ end
1356
+
1357
+ class ListObjectVersions
1358
+ def self.build(context)
1359
+ unless context.config.regional_endpoint
1360
+ endpoint = context.config.endpoint.to_s
1361
+ end
1362
+ Aws::S3::EndpointParameters.new(
1363
+ bucket: context.params[:bucket],
1364
+ region: context.config.region,
1365
+ use_fips: context.config.use_fips_endpoint,
1366
+ use_dual_stack: context[:use_dualstack_endpoint],
1367
+ endpoint: endpoint,
1368
+ force_path_style: context.config.force_path_style,
1369
+ accelerate: context[:use_accelerate_endpoint],
1370
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1371
+ use_object_lambda_endpoint: nil,
1372
+ disable_access_points: nil,
1373
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1374
+ use_arn_region: context.config.s3_use_arn_region,
1375
+ )
1376
+ end
1377
+ end
1378
+
1379
+ class ListObjects
1380
+ def self.build(context)
1381
+ unless context.config.regional_endpoint
1382
+ endpoint = context.config.endpoint.to_s
1383
+ end
1384
+ Aws::S3::EndpointParameters.new(
1385
+ bucket: context.params[:bucket],
1386
+ region: context.config.region,
1387
+ use_fips: context.config.use_fips_endpoint,
1388
+ use_dual_stack: context[:use_dualstack_endpoint],
1389
+ endpoint: endpoint,
1390
+ force_path_style: context.config.force_path_style,
1391
+ accelerate: context[:use_accelerate_endpoint],
1392
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1393
+ use_object_lambda_endpoint: nil,
1394
+ disable_access_points: nil,
1395
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1396
+ use_arn_region: context.config.s3_use_arn_region,
1397
+ )
1398
+ end
1399
+ end
1400
+
1401
+ class ListObjectsV2
1402
+ def self.build(context)
1403
+ unless context.config.regional_endpoint
1404
+ endpoint = context.config.endpoint.to_s
1405
+ end
1406
+ Aws::S3::EndpointParameters.new(
1407
+ bucket: context.params[:bucket],
1408
+ region: context.config.region,
1409
+ use_fips: context.config.use_fips_endpoint,
1410
+ use_dual_stack: context[:use_dualstack_endpoint],
1411
+ endpoint: endpoint,
1412
+ force_path_style: context.config.force_path_style,
1413
+ accelerate: context[:use_accelerate_endpoint],
1414
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1415
+ use_object_lambda_endpoint: nil,
1416
+ disable_access_points: nil,
1417
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1418
+ use_arn_region: context.config.s3_use_arn_region,
1419
+ )
1420
+ end
1421
+ end
1422
+
1423
+ class ListParts
1424
+ def self.build(context)
1425
+ unless context.config.regional_endpoint
1426
+ endpoint = context.config.endpoint.to_s
1427
+ end
1428
+ Aws::S3::EndpointParameters.new(
1429
+ bucket: context.params[:bucket],
1430
+ region: context.config.region,
1431
+ use_fips: context.config.use_fips_endpoint,
1432
+ use_dual_stack: context[:use_dualstack_endpoint],
1433
+ endpoint: endpoint,
1434
+ force_path_style: context.config.force_path_style,
1435
+ accelerate: context[:use_accelerate_endpoint],
1436
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1437
+ use_object_lambda_endpoint: nil,
1438
+ disable_access_points: nil,
1439
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1440
+ use_arn_region: context.config.s3_use_arn_region,
1441
+ )
1442
+ end
1443
+ end
1444
+
1445
+ class PutBucketAccelerateConfiguration
1446
+ def self.build(context)
1447
+ unless context.config.regional_endpoint
1448
+ endpoint = context.config.endpoint.to_s
1449
+ end
1450
+ Aws::S3::EndpointParameters.new(
1451
+ bucket: context.params[:bucket],
1452
+ region: context.config.region,
1453
+ use_fips: context.config.use_fips_endpoint,
1454
+ use_dual_stack: context[:use_dualstack_endpoint],
1455
+ endpoint: endpoint,
1456
+ force_path_style: context.config.force_path_style,
1457
+ accelerate: context[:use_accelerate_endpoint],
1458
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1459
+ use_object_lambda_endpoint: nil,
1460
+ disable_access_points: nil,
1461
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1462
+ use_arn_region: context.config.s3_use_arn_region,
1463
+ )
1464
+ end
1465
+ end
1466
+
1467
+ class PutBucketAcl
1468
+ def self.build(context)
1469
+ unless context.config.regional_endpoint
1470
+ endpoint = context.config.endpoint.to_s
1471
+ end
1472
+ Aws::S3::EndpointParameters.new(
1473
+ bucket: context.params[:bucket],
1474
+ region: context.config.region,
1475
+ use_fips: context.config.use_fips_endpoint,
1476
+ use_dual_stack: context[:use_dualstack_endpoint],
1477
+ endpoint: endpoint,
1478
+ force_path_style: context.config.force_path_style,
1479
+ accelerate: context[:use_accelerate_endpoint],
1480
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1481
+ use_object_lambda_endpoint: nil,
1482
+ disable_access_points: nil,
1483
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1484
+ use_arn_region: context.config.s3_use_arn_region,
1485
+ )
1486
+ end
1487
+ end
1488
+
1489
+ class PutBucketAnalyticsConfiguration
1490
+ def self.build(context)
1491
+ unless context.config.regional_endpoint
1492
+ endpoint = context.config.endpoint.to_s
1493
+ end
1494
+ Aws::S3::EndpointParameters.new(
1495
+ bucket: context.params[:bucket],
1496
+ region: context.config.region,
1497
+ use_fips: context.config.use_fips_endpoint,
1498
+ use_dual_stack: context[:use_dualstack_endpoint],
1499
+ endpoint: endpoint,
1500
+ force_path_style: context.config.force_path_style,
1501
+ accelerate: context[:use_accelerate_endpoint],
1502
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1503
+ use_object_lambda_endpoint: nil,
1504
+ disable_access_points: nil,
1505
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1506
+ use_arn_region: context.config.s3_use_arn_region,
1507
+ )
1508
+ end
1509
+ end
1510
+
1511
+ class PutBucketCors
1512
+ def self.build(context)
1513
+ unless context.config.regional_endpoint
1514
+ endpoint = context.config.endpoint.to_s
1515
+ end
1516
+ Aws::S3::EndpointParameters.new(
1517
+ bucket: context.params[:bucket],
1518
+ region: context.config.region,
1519
+ use_fips: context.config.use_fips_endpoint,
1520
+ use_dual_stack: context[:use_dualstack_endpoint],
1521
+ endpoint: endpoint,
1522
+ force_path_style: context.config.force_path_style,
1523
+ accelerate: context[:use_accelerate_endpoint],
1524
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1525
+ use_object_lambda_endpoint: nil,
1526
+ disable_access_points: nil,
1527
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1528
+ use_arn_region: context.config.s3_use_arn_region,
1529
+ )
1530
+ end
1531
+ end
1532
+
1533
+ class PutBucketEncryption
1534
+ def self.build(context)
1535
+ unless context.config.regional_endpoint
1536
+ endpoint = context.config.endpoint.to_s
1537
+ end
1538
+ Aws::S3::EndpointParameters.new(
1539
+ bucket: context.params[:bucket],
1540
+ region: context.config.region,
1541
+ use_fips: context.config.use_fips_endpoint,
1542
+ use_dual_stack: context[:use_dualstack_endpoint],
1543
+ endpoint: endpoint,
1544
+ force_path_style: context.config.force_path_style,
1545
+ accelerate: context[:use_accelerate_endpoint],
1546
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1547
+ use_object_lambda_endpoint: nil,
1548
+ disable_access_points: nil,
1549
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1550
+ use_arn_region: context.config.s3_use_arn_region,
1551
+ )
1552
+ end
1553
+ end
1554
+
1555
+ class PutBucketIntelligentTieringConfiguration
1556
+ def self.build(context)
1557
+ unless context.config.regional_endpoint
1558
+ endpoint = context.config.endpoint.to_s
1559
+ end
1560
+ Aws::S3::EndpointParameters.new(
1561
+ bucket: context.params[:bucket],
1562
+ region: context.config.region,
1563
+ use_fips: context.config.use_fips_endpoint,
1564
+ use_dual_stack: context[:use_dualstack_endpoint],
1565
+ endpoint: endpoint,
1566
+ force_path_style: context.config.force_path_style,
1567
+ accelerate: context[:use_accelerate_endpoint],
1568
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1569
+ use_object_lambda_endpoint: nil,
1570
+ disable_access_points: nil,
1571
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1572
+ use_arn_region: context.config.s3_use_arn_region,
1573
+ )
1574
+ end
1575
+ end
1576
+
1577
+ class PutBucketInventoryConfiguration
1578
+ def self.build(context)
1579
+ unless context.config.regional_endpoint
1580
+ endpoint = context.config.endpoint.to_s
1581
+ end
1582
+ Aws::S3::EndpointParameters.new(
1583
+ bucket: context.params[:bucket],
1584
+ region: context.config.region,
1585
+ use_fips: context.config.use_fips_endpoint,
1586
+ use_dual_stack: context[:use_dualstack_endpoint],
1587
+ endpoint: endpoint,
1588
+ force_path_style: context.config.force_path_style,
1589
+ accelerate: context[:use_accelerate_endpoint],
1590
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1591
+ use_object_lambda_endpoint: nil,
1592
+ disable_access_points: nil,
1593
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1594
+ use_arn_region: context.config.s3_use_arn_region,
1595
+ )
1596
+ end
1597
+ end
1598
+
1599
+ class PutBucketLifecycle
1600
+ def self.build(context)
1601
+ unless context.config.regional_endpoint
1602
+ endpoint = context.config.endpoint.to_s
1603
+ end
1604
+ Aws::S3::EndpointParameters.new(
1605
+ bucket: context.params[:bucket],
1606
+ region: context.config.region,
1607
+ use_fips: context.config.use_fips_endpoint,
1608
+ use_dual_stack: context[:use_dualstack_endpoint],
1609
+ endpoint: endpoint,
1610
+ force_path_style: context.config.force_path_style,
1611
+ accelerate: context[:use_accelerate_endpoint],
1612
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1613
+ use_object_lambda_endpoint: nil,
1614
+ disable_access_points: nil,
1615
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1616
+ use_arn_region: context.config.s3_use_arn_region,
1617
+ )
1618
+ end
1619
+ end
1620
+
1621
+ class PutBucketLifecycleConfiguration
1622
+ def self.build(context)
1623
+ unless context.config.regional_endpoint
1624
+ endpoint = context.config.endpoint.to_s
1625
+ end
1626
+ Aws::S3::EndpointParameters.new(
1627
+ bucket: context.params[:bucket],
1628
+ region: context.config.region,
1629
+ use_fips: context.config.use_fips_endpoint,
1630
+ use_dual_stack: context[:use_dualstack_endpoint],
1631
+ endpoint: endpoint,
1632
+ force_path_style: context.config.force_path_style,
1633
+ accelerate: context[:use_accelerate_endpoint],
1634
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1635
+ use_object_lambda_endpoint: nil,
1636
+ disable_access_points: nil,
1637
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1638
+ use_arn_region: context.config.s3_use_arn_region,
1639
+ )
1640
+ end
1641
+ end
1642
+
1643
+ class PutBucketLogging
1644
+ def self.build(context)
1645
+ unless context.config.regional_endpoint
1646
+ endpoint = context.config.endpoint.to_s
1647
+ end
1648
+ Aws::S3::EndpointParameters.new(
1649
+ bucket: context.params[:bucket],
1650
+ region: context.config.region,
1651
+ use_fips: context.config.use_fips_endpoint,
1652
+ use_dual_stack: context[:use_dualstack_endpoint],
1653
+ endpoint: endpoint,
1654
+ force_path_style: context.config.force_path_style,
1655
+ accelerate: context[:use_accelerate_endpoint],
1656
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1657
+ use_object_lambda_endpoint: nil,
1658
+ disable_access_points: nil,
1659
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1660
+ use_arn_region: context.config.s3_use_arn_region,
1661
+ )
1662
+ end
1663
+ end
1664
+
1665
+ class PutBucketMetricsConfiguration
1666
+ def self.build(context)
1667
+ unless context.config.regional_endpoint
1668
+ endpoint = context.config.endpoint.to_s
1669
+ end
1670
+ Aws::S3::EndpointParameters.new(
1671
+ bucket: context.params[:bucket],
1672
+ region: context.config.region,
1673
+ use_fips: context.config.use_fips_endpoint,
1674
+ use_dual_stack: context[:use_dualstack_endpoint],
1675
+ endpoint: endpoint,
1676
+ force_path_style: context.config.force_path_style,
1677
+ accelerate: context[:use_accelerate_endpoint],
1678
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1679
+ use_object_lambda_endpoint: nil,
1680
+ disable_access_points: nil,
1681
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1682
+ use_arn_region: context.config.s3_use_arn_region,
1683
+ )
1684
+ end
1685
+ end
1686
+
1687
+ class PutBucketNotification
1688
+ def self.build(context)
1689
+ unless context.config.regional_endpoint
1690
+ endpoint = context.config.endpoint.to_s
1691
+ end
1692
+ Aws::S3::EndpointParameters.new(
1693
+ bucket: context.params[:bucket],
1694
+ region: context.config.region,
1695
+ use_fips: context.config.use_fips_endpoint,
1696
+ use_dual_stack: context[:use_dualstack_endpoint],
1697
+ endpoint: endpoint,
1698
+ force_path_style: context.config.force_path_style,
1699
+ accelerate: context[:use_accelerate_endpoint],
1700
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1701
+ use_object_lambda_endpoint: nil,
1702
+ disable_access_points: nil,
1703
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1704
+ use_arn_region: context.config.s3_use_arn_region,
1705
+ )
1706
+ end
1707
+ end
1708
+
1709
+ class PutBucketNotificationConfiguration
1710
+ def self.build(context)
1711
+ unless context.config.regional_endpoint
1712
+ endpoint = context.config.endpoint.to_s
1713
+ end
1714
+ Aws::S3::EndpointParameters.new(
1715
+ bucket: context.params[:bucket],
1716
+ region: context.config.region,
1717
+ use_fips: context.config.use_fips_endpoint,
1718
+ use_dual_stack: context[:use_dualstack_endpoint],
1719
+ endpoint: endpoint,
1720
+ force_path_style: context.config.force_path_style,
1721
+ accelerate: context[:use_accelerate_endpoint],
1722
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1723
+ use_object_lambda_endpoint: nil,
1724
+ disable_access_points: nil,
1725
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1726
+ use_arn_region: context.config.s3_use_arn_region,
1727
+ )
1728
+ end
1729
+ end
1730
+
1731
+ class PutBucketOwnershipControls
1732
+ def self.build(context)
1733
+ unless context.config.regional_endpoint
1734
+ endpoint = context.config.endpoint.to_s
1735
+ end
1736
+ Aws::S3::EndpointParameters.new(
1737
+ bucket: context.params[:bucket],
1738
+ region: context.config.region,
1739
+ use_fips: context.config.use_fips_endpoint,
1740
+ use_dual_stack: context[:use_dualstack_endpoint],
1741
+ endpoint: endpoint,
1742
+ force_path_style: context.config.force_path_style,
1743
+ accelerate: context[:use_accelerate_endpoint],
1744
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1745
+ use_object_lambda_endpoint: nil,
1746
+ disable_access_points: nil,
1747
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1748
+ use_arn_region: context.config.s3_use_arn_region,
1749
+ )
1750
+ end
1751
+ end
1752
+
1753
+ class PutBucketPolicy
1754
+ def self.build(context)
1755
+ unless context.config.regional_endpoint
1756
+ endpoint = context.config.endpoint.to_s
1757
+ end
1758
+ Aws::S3::EndpointParameters.new(
1759
+ bucket: context.params[:bucket],
1760
+ region: context.config.region,
1761
+ use_fips: context.config.use_fips_endpoint,
1762
+ use_dual_stack: context[:use_dualstack_endpoint],
1763
+ endpoint: endpoint,
1764
+ force_path_style: context.config.force_path_style,
1765
+ accelerate: context[:use_accelerate_endpoint],
1766
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1767
+ use_object_lambda_endpoint: nil,
1768
+ disable_access_points: nil,
1769
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1770
+ use_arn_region: context.config.s3_use_arn_region,
1771
+ )
1772
+ end
1773
+ end
1774
+
1775
+ class PutBucketReplication
1776
+ def self.build(context)
1777
+ unless context.config.regional_endpoint
1778
+ endpoint = context.config.endpoint.to_s
1779
+ end
1780
+ Aws::S3::EndpointParameters.new(
1781
+ bucket: context.params[:bucket],
1782
+ region: context.config.region,
1783
+ use_fips: context.config.use_fips_endpoint,
1784
+ use_dual_stack: context[:use_dualstack_endpoint],
1785
+ endpoint: endpoint,
1786
+ force_path_style: context.config.force_path_style,
1787
+ accelerate: context[:use_accelerate_endpoint],
1788
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1789
+ use_object_lambda_endpoint: nil,
1790
+ disable_access_points: nil,
1791
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1792
+ use_arn_region: context.config.s3_use_arn_region,
1793
+ )
1794
+ end
1795
+ end
1796
+
1797
+ class PutBucketRequestPayment
1798
+ def self.build(context)
1799
+ unless context.config.regional_endpoint
1800
+ endpoint = context.config.endpoint.to_s
1801
+ end
1802
+ Aws::S3::EndpointParameters.new(
1803
+ bucket: context.params[:bucket],
1804
+ region: context.config.region,
1805
+ use_fips: context.config.use_fips_endpoint,
1806
+ use_dual_stack: context[:use_dualstack_endpoint],
1807
+ endpoint: endpoint,
1808
+ force_path_style: context.config.force_path_style,
1809
+ accelerate: context[:use_accelerate_endpoint],
1810
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1811
+ use_object_lambda_endpoint: nil,
1812
+ disable_access_points: nil,
1813
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1814
+ use_arn_region: context.config.s3_use_arn_region,
1815
+ )
1816
+ end
1817
+ end
1818
+
1819
+ class PutBucketTagging
1820
+ def self.build(context)
1821
+ unless context.config.regional_endpoint
1822
+ endpoint = context.config.endpoint.to_s
1823
+ end
1824
+ Aws::S3::EndpointParameters.new(
1825
+ bucket: context.params[:bucket],
1826
+ region: context.config.region,
1827
+ use_fips: context.config.use_fips_endpoint,
1828
+ use_dual_stack: context[:use_dualstack_endpoint],
1829
+ endpoint: endpoint,
1830
+ force_path_style: context.config.force_path_style,
1831
+ accelerate: context[:use_accelerate_endpoint],
1832
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1833
+ use_object_lambda_endpoint: nil,
1834
+ disable_access_points: nil,
1835
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1836
+ use_arn_region: context.config.s3_use_arn_region,
1837
+ )
1838
+ end
1839
+ end
1840
+
1841
+ class PutBucketVersioning
1842
+ def self.build(context)
1843
+ unless context.config.regional_endpoint
1844
+ endpoint = context.config.endpoint.to_s
1845
+ end
1846
+ Aws::S3::EndpointParameters.new(
1847
+ bucket: context.params[:bucket],
1848
+ region: context.config.region,
1849
+ use_fips: context.config.use_fips_endpoint,
1850
+ use_dual_stack: context[:use_dualstack_endpoint],
1851
+ endpoint: endpoint,
1852
+ force_path_style: context.config.force_path_style,
1853
+ accelerate: context[:use_accelerate_endpoint],
1854
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1855
+ use_object_lambda_endpoint: nil,
1856
+ disable_access_points: nil,
1857
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1858
+ use_arn_region: context.config.s3_use_arn_region,
1859
+ )
1860
+ end
1861
+ end
1862
+
1863
+ class PutBucketWebsite
1864
+ def self.build(context)
1865
+ unless context.config.regional_endpoint
1866
+ endpoint = context.config.endpoint.to_s
1867
+ end
1868
+ Aws::S3::EndpointParameters.new(
1869
+ bucket: context.params[:bucket],
1870
+ region: context.config.region,
1871
+ use_fips: context.config.use_fips_endpoint,
1872
+ use_dual_stack: context[:use_dualstack_endpoint],
1873
+ endpoint: endpoint,
1874
+ force_path_style: context.config.force_path_style,
1875
+ accelerate: context[:use_accelerate_endpoint],
1876
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1877
+ use_object_lambda_endpoint: nil,
1878
+ disable_access_points: nil,
1879
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1880
+ use_arn_region: context.config.s3_use_arn_region,
1881
+ )
1882
+ end
1883
+ end
1884
+
1885
+ class PutObject
1886
+ def self.build(context)
1887
+ unless context.config.regional_endpoint
1888
+ endpoint = context.config.endpoint.to_s
1889
+ end
1890
+ Aws::S3::EndpointParameters.new(
1891
+ bucket: context.params[:bucket],
1892
+ region: context.config.region,
1893
+ use_fips: context.config.use_fips_endpoint,
1894
+ use_dual_stack: context[:use_dualstack_endpoint],
1895
+ endpoint: endpoint,
1896
+ force_path_style: context.config.force_path_style,
1897
+ accelerate: context[:use_accelerate_endpoint],
1898
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1899
+ use_object_lambda_endpoint: nil,
1900
+ disable_access_points: nil,
1901
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1902
+ use_arn_region: context.config.s3_use_arn_region,
1903
+ )
1904
+ end
1905
+ end
1906
+
1907
+ class PutObjectAcl
1908
+ def self.build(context)
1909
+ unless context.config.regional_endpoint
1910
+ endpoint = context.config.endpoint.to_s
1911
+ end
1912
+ Aws::S3::EndpointParameters.new(
1913
+ bucket: context.params[:bucket],
1914
+ region: context.config.region,
1915
+ use_fips: context.config.use_fips_endpoint,
1916
+ use_dual_stack: context[:use_dualstack_endpoint],
1917
+ endpoint: endpoint,
1918
+ force_path_style: context.config.force_path_style,
1919
+ accelerate: context[:use_accelerate_endpoint],
1920
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1921
+ use_object_lambda_endpoint: nil,
1922
+ disable_access_points: nil,
1923
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1924
+ use_arn_region: context.config.s3_use_arn_region,
1925
+ )
1926
+ end
1927
+ end
1928
+
1929
+ class PutObjectLegalHold
1930
+ def self.build(context)
1931
+ unless context.config.regional_endpoint
1932
+ endpoint = context.config.endpoint.to_s
1933
+ end
1934
+ Aws::S3::EndpointParameters.new(
1935
+ bucket: context.params[:bucket],
1936
+ region: context.config.region,
1937
+ use_fips: context.config.use_fips_endpoint,
1938
+ use_dual_stack: context[:use_dualstack_endpoint],
1939
+ endpoint: endpoint,
1940
+ force_path_style: context.config.force_path_style,
1941
+ accelerate: context[:use_accelerate_endpoint],
1942
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1943
+ use_object_lambda_endpoint: nil,
1944
+ disable_access_points: nil,
1945
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1946
+ use_arn_region: context.config.s3_use_arn_region,
1947
+ )
1948
+ end
1949
+ end
1950
+
1951
+ class PutObjectLockConfiguration
1952
+ def self.build(context)
1953
+ unless context.config.regional_endpoint
1954
+ endpoint = context.config.endpoint.to_s
1955
+ end
1956
+ Aws::S3::EndpointParameters.new(
1957
+ bucket: context.params[:bucket],
1958
+ region: context.config.region,
1959
+ use_fips: context.config.use_fips_endpoint,
1960
+ use_dual_stack: context[:use_dualstack_endpoint],
1961
+ endpoint: endpoint,
1962
+ force_path_style: context.config.force_path_style,
1963
+ accelerate: context[:use_accelerate_endpoint],
1964
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1965
+ use_object_lambda_endpoint: nil,
1966
+ disable_access_points: nil,
1967
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1968
+ use_arn_region: context.config.s3_use_arn_region,
1969
+ )
1970
+ end
1971
+ end
1972
+
1973
+ class PutObjectRetention
1974
+ def self.build(context)
1975
+ unless context.config.regional_endpoint
1976
+ endpoint = context.config.endpoint.to_s
1977
+ end
1978
+ Aws::S3::EndpointParameters.new(
1979
+ bucket: context.params[:bucket],
1980
+ region: context.config.region,
1981
+ use_fips: context.config.use_fips_endpoint,
1982
+ use_dual_stack: context[:use_dualstack_endpoint],
1983
+ endpoint: endpoint,
1984
+ force_path_style: context.config.force_path_style,
1985
+ accelerate: context[:use_accelerate_endpoint],
1986
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1987
+ use_object_lambda_endpoint: nil,
1988
+ disable_access_points: nil,
1989
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1990
+ use_arn_region: context.config.s3_use_arn_region,
1991
+ )
1992
+ end
1993
+ end
1994
+
1995
+ class PutObjectTagging
1996
+ def self.build(context)
1997
+ unless context.config.regional_endpoint
1998
+ endpoint = context.config.endpoint.to_s
1999
+ end
2000
+ Aws::S3::EndpointParameters.new(
2001
+ bucket: context.params[:bucket],
2002
+ region: context.config.region,
2003
+ use_fips: context.config.use_fips_endpoint,
2004
+ use_dual_stack: context[:use_dualstack_endpoint],
2005
+ endpoint: endpoint,
2006
+ force_path_style: context.config.force_path_style,
2007
+ accelerate: context[:use_accelerate_endpoint],
2008
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2009
+ use_object_lambda_endpoint: nil,
2010
+ disable_access_points: nil,
2011
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2012
+ use_arn_region: context.config.s3_use_arn_region,
2013
+ )
2014
+ end
2015
+ end
2016
+
2017
+ class PutPublicAccessBlock
2018
+ def self.build(context)
2019
+ unless context.config.regional_endpoint
2020
+ endpoint = context.config.endpoint.to_s
2021
+ end
2022
+ Aws::S3::EndpointParameters.new(
2023
+ bucket: context.params[:bucket],
2024
+ region: context.config.region,
2025
+ use_fips: context.config.use_fips_endpoint,
2026
+ use_dual_stack: context[:use_dualstack_endpoint],
2027
+ endpoint: endpoint,
2028
+ force_path_style: context.config.force_path_style,
2029
+ accelerate: context[:use_accelerate_endpoint],
2030
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2031
+ use_object_lambda_endpoint: nil,
2032
+ disable_access_points: nil,
2033
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2034
+ use_arn_region: context.config.s3_use_arn_region,
2035
+ )
2036
+ end
2037
+ end
2038
+
2039
+ class RestoreObject
2040
+ def self.build(context)
2041
+ unless context.config.regional_endpoint
2042
+ endpoint = context.config.endpoint.to_s
2043
+ end
2044
+ Aws::S3::EndpointParameters.new(
2045
+ bucket: context.params[:bucket],
2046
+ region: context.config.region,
2047
+ use_fips: context.config.use_fips_endpoint,
2048
+ use_dual_stack: context[:use_dualstack_endpoint],
2049
+ endpoint: endpoint,
2050
+ force_path_style: context.config.force_path_style,
2051
+ accelerate: context[:use_accelerate_endpoint],
2052
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2053
+ use_object_lambda_endpoint: nil,
2054
+ disable_access_points: nil,
2055
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2056
+ use_arn_region: context.config.s3_use_arn_region,
2057
+ )
2058
+ end
2059
+ end
2060
+
2061
+ class SelectObjectContent
2062
+ def self.build(context)
2063
+ unless context.config.regional_endpoint
2064
+ endpoint = context.config.endpoint.to_s
2065
+ end
2066
+ Aws::S3::EndpointParameters.new(
2067
+ bucket: context.params[:bucket],
2068
+ region: context.config.region,
2069
+ use_fips: context.config.use_fips_endpoint,
2070
+ use_dual_stack: context[:use_dualstack_endpoint],
2071
+ endpoint: endpoint,
2072
+ force_path_style: context.config.force_path_style,
2073
+ accelerate: context[:use_accelerate_endpoint],
2074
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2075
+ use_object_lambda_endpoint: nil,
2076
+ disable_access_points: nil,
2077
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2078
+ use_arn_region: context.config.s3_use_arn_region,
2079
+ )
2080
+ end
2081
+ end
2082
+
2083
+ class UploadPart
2084
+ def self.build(context)
2085
+ unless context.config.regional_endpoint
2086
+ endpoint = context.config.endpoint.to_s
2087
+ end
2088
+ Aws::S3::EndpointParameters.new(
2089
+ bucket: context.params[:bucket],
2090
+ region: context.config.region,
2091
+ use_fips: context.config.use_fips_endpoint,
2092
+ use_dual_stack: context[:use_dualstack_endpoint],
2093
+ endpoint: endpoint,
2094
+ force_path_style: context.config.force_path_style,
2095
+ accelerate: context[:use_accelerate_endpoint],
2096
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2097
+ use_object_lambda_endpoint: nil,
2098
+ disable_access_points: nil,
2099
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2100
+ use_arn_region: context.config.s3_use_arn_region,
2101
+ )
2102
+ end
2103
+ end
2104
+
2105
+ class UploadPartCopy
2106
+ def self.build(context)
2107
+ unless context.config.regional_endpoint
2108
+ endpoint = context.config.endpoint.to_s
2109
+ end
2110
+ Aws::S3::EndpointParameters.new(
2111
+ bucket: context.params[:bucket],
2112
+ region: context.config.region,
2113
+ use_fips: context.config.use_fips_endpoint,
2114
+ use_dual_stack: context[:use_dualstack_endpoint],
2115
+ endpoint: endpoint,
2116
+ force_path_style: context.config.force_path_style,
2117
+ accelerate: context[:use_accelerate_endpoint],
2118
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2119
+ use_object_lambda_endpoint: nil,
2120
+ disable_access_points: nil,
2121
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2122
+ use_arn_region: context.config.s3_use_arn_region,
2123
+ )
2124
+ end
2125
+ end
2126
+
2127
+ class WriteGetObjectResponse
2128
+ def self.build(context)
2129
+ unless context.config.regional_endpoint
2130
+ endpoint = context.config.endpoint.to_s
2131
+ end
2132
+ Aws::S3::EndpointParameters.new(
2133
+ bucket: nil,
2134
+ region: context.config.region,
2135
+ use_fips: context.config.use_fips_endpoint,
2136
+ use_dual_stack: context[:use_dualstack_endpoint],
2137
+ endpoint: endpoint,
2138
+ force_path_style: context.config.force_path_style,
2139
+ accelerate: context[:use_accelerate_endpoint],
2140
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2141
+ use_object_lambda_endpoint: true,
2142
+ disable_access_points: nil,
2143
+ disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2144
+ use_arn_region: context.config.s3_use_arn_region,
2145
+ )
2146
+ end
2147
+ end
2148
+
2149
+ end
2150
+ end