aws-sdk-s3 1.150.0 → 1.169.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +110 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/access_grants_credentials_provider.rb +12 -3
  5. data/lib/aws-sdk-s3/bucket.rb +252 -88
  6. data/lib/aws-sdk-s3/bucket_acl.rb +3 -3
  7. data/lib/aws-sdk-s3/bucket_cors.rb +4 -4
  8. data/lib/aws-sdk-s3/bucket_lifecycle.rb +4 -4
  9. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +42 -5
  10. data/lib/aws-sdk-s3/bucket_logging.rb +3 -3
  11. data/lib/aws-sdk-s3/bucket_notification.rb +3 -3
  12. data/lib/aws-sdk-s3/bucket_policy.rb +8 -8
  13. data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -3
  14. data/lib/aws-sdk-s3/bucket_tagging.rb +4 -4
  15. data/lib/aws-sdk-s3/bucket_versioning.rb +5 -5
  16. data/lib/aws-sdk-s3/bucket_website.rb +4 -4
  17. data/lib/aws-sdk-s3/client.rb +1685 -668
  18. data/lib/aws-sdk-s3/client_api.rb +49 -4
  19. data/lib/aws-sdk-s3/customizations/bucket.rb +1 -1
  20. data/lib/aws-sdk-s3/customizations/object.rb +11 -5
  21. data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
  22. data/lib/aws-sdk-s3/customizations/object_version.rb +13 -0
  23. data/lib/aws-sdk-s3/customizations.rb +24 -38
  24. data/lib/aws-sdk-s3/encryption/client.rb +2 -2
  25. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +2 -2
  26. data/lib/aws-sdk-s3/encryptionV2/client.rb +2 -2
  27. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +2 -2
  28. data/lib/aws-sdk-s3/endpoint_parameters.rb +21 -18
  29. data/lib/aws-sdk-s3/endpoint_provider.rb +1 -0
  30. data/lib/aws-sdk-s3/endpoints.rb +416 -1614
  31. data/lib/aws-sdk-s3/errors.rb +3 -0
  32. data/lib/aws-sdk-s3/file_downloader.rb +1 -1
  33. data/lib/aws-sdk-s3/file_uploader.rb +1 -1
  34. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +1 -1
  35. data/lib/aws-sdk-s3/multipart_upload.rb +31 -8
  36. data/lib/aws-sdk-s3/multipart_upload_part.rb +11 -11
  37. data/lib/aws-sdk-s3/object.rb +441 -158
  38. data/lib/aws-sdk-s3/object_acl.rb +3 -3
  39. data/lib/aws-sdk-s3/object_copier.rb +1 -1
  40. data/lib/aws-sdk-s3/object_summary.rb +403 -134
  41. data/lib/aws-sdk-s3/object_version.rb +53 -13
  42. data/lib/aws-sdk-s3/plugins/access_grants.rb +75 -5
  43. data/lib/aws-sdk-s3/plugins/endpoints.rb +24 -212
  44. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +7 -1
  45. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +53 -16
  46. data/lib/aws-sdk-s3/resource.rb +37 -11
  47. data/lib/aws-sdk-s3/types.rb +1106 -401
  48. data/lib/aws-sdk-s3.rb +35 -31
  49. data/sig/bucket.rbs +4 -0
  50. data/sig/bucket_lifecycle_configuration.rbs +7 -3
  51. data/sig/client.rbs +49 -5
  52. data/sig/multipart_upload.rbs +1 -0
  53. data/sig/object.rbs +7 -0
  54. data/sig/object_summary.rbs +1 -0
  55. data/sig/object_version.rbs +6 -0
  56. data/sig/resource.rbs +7 -1
  57. data/sig/types.rbs +36 -2
  58. data/sig/waiters.rbs +12 -0
  59. metadata +7 -6
@@ -14,77 +14,37 @@ module Aws::S3
14
14
 
15
15
  class AbortMultipartUpload
16
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(
17
+ Aws::S3::EndpointParameters.create(
18
+ context.config,
21
19
  bucket: context.params[:bucket],
22
- region: context.config.region,
23
- use_fips: context.config.use_fips_endpoint,
24
20
  use_dual_stack: context[:use_dualstack_endpoint],
25
- endpoint: endpoint,
26
- force_path_style: context.config.force_path_style,
27
21
  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
22
  key: context.params[:key],
31
- prefix: nil,
32
- disable_access_points: nil,
33
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
34
- use_arn_region: context.config.s3_use_arn_region,
35
- use_s3_express_control_endpoint: nil,
36
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
37
23
  )
38
24
  end
39
25
  end
40
26
 
41
27
  class CompleteMultipartUpload
42
28
  def self.build(context)
43
- unless context.config.regional_endpoint
44
- endpoint = context.config.endpoint.to_s
45
- end
46
- Aws::S3::EndpointParameters.new(
29
+ Aws::S3::EndpointParameters.create(
30
+ context.config,
47
31
  bucket: context.params[:bucket],
48
- region: context.config.region,
49
- use_fips: context.config.use_fips_endpoint,
50
32
  use_dual_stack: context[:use_dualstack_endpoint],
51
- endpoint: endpoint,
52
- force_path_style: context.config.force_path_style,
53
33
  accelerate: context[:use_accelerate_endpoint],
54
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
55
- use_object_lambda_endpoint: nil,
56
34
  key: context.params[:key],
57
- prefix: nil,
58
- disable_access_points: nil,
59
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
60
- use_arn_region: context.config.s3_use_arn_region,
61
- use_s3_express_control_endpoint: nil,
62
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
63
35
  )
64
36
  end
65
37
  end
66
38
 
67
39
  class CopyObject
68
40
  def self.build(context)
69
- unless context.config.regional_endpoint
70
- endpoint = context.config.endpoint.to_s
71
- end
72
- Aws::S3::EndpointParameters.new(
73
- bucket: context.params[:bucket],
74
- region: context.config.region,
75
- use_fips: context.config.use_fips_endpoint,
76
- use_dual_stack: context[:use_dualstack_endpoint],
77
- endpoint: endpoint,
78
- force_path_style: context.config.force_path_style,
79
- accelerate: context[:use_accelerate_endpoint],
80
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
81
- use_object_lambda_endpoint: nil,
82
- key: nil,
83
- prefix: nil,
84
- disable_access_points: nil,
85
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
86
- use_arn_region: context.config.s3_use_arn_region,
87
- use_s3_express_control_endpoint: nil,
41
+ Aws::S3::EndpointParameters.create(
42
+ context.config,
43
+ bucket: context.params[:bucket],
44
+ use_dual_stack: context[:use_dualstack_endpoint],
45
+ accelerate: context[:use_accelerate_endpoint],
46
+ key: context.params[:key],
47
+ copy_source: context.params[:copy_source],
88
48
  disable_s3_express_session_auth: true,
89
49
  )
90
50
  end
@@ -92,77 +52,36 @@ module Aws::S3
92
52
 
93
53
  class CreateBucket
94
54
  def self.build(context)
95
- unless context.config.regional_endpoint
96
- endpoint = context.config.endpoint.to_s
97
- end
98
- Aws::S3::EndpointParameters.new(
55
+ Aws::S3::EndpointParameters.create(
56
+ context.config,
99
57
  bucket: context.params[:bucket],
100
- region: context.config.region,
101
- use_fips: context.config.use_fips_endpoint,
102
58
  use_dual_stack: context[:use_dualstack_endpoint],
103
- endpoint: endpoint,
104
- force_path_style: context.config.force_path_style,
105
59
  accelerate: context[:use_accelerate_endpoint],
106
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
107
- use_object_lambda_endpoint: nil,
108
- key: nil,
109
- prefix: nil,
110
60
  disable_access_points: true,
111
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
112
- use_arn_region: context.config.s3_use_arn_region,
113
61
  use_s3_express_control_endpoint: true,
114
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
115
62
  )
116
63
  end
117
64
  end
118
65
 
119
66
  class CreateMultipartUpload
120
67
  def self.build(context)
121
- unless context.config.regional_endpoint
122
- endpoint = context.config.endpoint.to_s
123
- end
124
- Aws::S3::EndpointParameters.new(
68
+ Aws::S3::EndpointParameters.create(
69
+ context.config,
125
70
  bucket: context.params[:bucket],
126
- region: context.config.region,
127
- use_fips: context.config.use_fips_endpoint,
128
71
  use_dual_stack: context[:use_dualstack_endpoint],
129
- endpoint: endpoint,
130
- force_path_style: context.config.force_path_style,
131
72
  accelerate: context[:use_accelerate_endpoint],
132
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
133
- use_object_lambda_endpoint: nil,
134
73
  key: context.params[:key],
135
- prefix: nil,
136
- disable_access_points: nil,
137
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
138
- use_arn_region: context.config.s3_use_arn_region,
139
- use_s3_express_control_endpoint: nil,
140
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
141
74
  )
142
75
  end
143
76
  end
144
77
 
145
78
  class CreateSession
146
79
  def self.build(context)
147
- unless context.config.regional_endpoint
148
- endpoint = context.config.endpoint.to_s
149
- end
150
- Aws::S3::EndpointParameters.new(
151
- bucket: context.params[:bucket],
152
- region: context.config.region,
153
- use_fips: context.config.use_fips_endpoint,
154
- use_dual_stack: context[:use_dualstack_endpoint],
155
- endpoint: endpoint,
156
- force_path_style: context.config.force_path_style,
157
- accelerate: context[:use_accelerate_endpoint],
158
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
159
- use_object_lambda_endpoint: nil,
160
- key: nil,
161
- prefix: 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
- use_s3_express_control_endpoint: nil,
80
+ Aws::S3::EndpointParameters.create(
81
+ context.config,
82
+ bucket: context.params[:bucket],
83
+ use_dual_stack: context[:use_dualstack_endpoint],
84
+ accelerate: context[:use_accelerate_endpoint],
166
85
  disable_s3_express_session_auth: true,
167
86
  )
168
87
  end
@@ -170,2391 +89,1084 @@ module Aws::S3
170
89
 
171
90
  class DeleteBucket
172
91
  def self.build(context)
173
- unless context.config.regional_endpoint
174
- endpoint = context.config.endpoint.to_s
175
- end
176
- Aws::S3::EndpointParameters.new(
92
+ Aws::S3::EndpointParameters.create(
93
+ context.config,
177
94
  bucket: context.params[:bucket],
178
- region: context.config.region,
179
- use_fips: context.config.use_fips_endpoint,
180
95
  use_dual_stack: context[:use_dualstack_endpoint],
181
- endpoint: endpoint,
182
- force_path_style: context.config.force_path_style,
183
96
  accelerate: context[:use_accelerate_endpoint],
184
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
185
- use_object_lambda_endpoint: nil,
186
- key: nil,
187
- prefix: nil,
188
- disable_access_points: nil,
189
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
190
- use_arn_region: context.config.s3_use_arn_region,
191
97
  use_s3_express_control_endpoint: true,
192
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
193
98
  )
194
99
  end
195
100
  end
196
101
 
197
102
  class DeleteBucketAnalyticsConfiguration
198
103
  def self.build(context)
199
- unless context.config.regional_endpoint
200
- endpoint = context.config.endpoint.to_s
201
- end
202
- Aws::S3::EndpointParameters.new(
104
+ Aws::S3::EndpointParameters.create(
105
+ context.config,
203
106
  bucket: context.params[:bucket],
204
- region: context.config.region,
205
- use_fips: context.config.use_fips_endpoint,
206
107
  use_dual_stack: context[:use_dualstack_endpoint],
207
- endpoint: endpoint,
208
- force_path_style: context.config.force_path_style,
209
108
  accelerate: context[:use_accelerate_endpoint],
210
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
211
- use_object_lambda_endpoint: nil,
212
- key: nil,
213
- prefix: nil,
214
- disable_access_points: nil,
215
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
216
- use_arn_region: context.config.s3_use_arn_region,
217
109
  use_s3_express_control_endpoint: true,
218
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
219
110
  )
220
111
  end
221
112
  end
222
113
 
223
114
  class DeleteBucketCors
224
115
  def self.build(context)
225
- unless context.config.regional_endpoint
226
- endpoint = context.config.endpoint.to_s
227
- end
228
- Aws::S3::EndpointParameters.new(
116
+ Aws::S3::EndpointParameters.create(
117
+ context.config,
229
118
  bucket: context.params[:bucket],
230
- region: context.config.region,
231
- use_fips: context.config.use_fips_endpoint,
232
119
  use_dual_stack: context[:use_dualstack_endpoint],
233
- endpoint: endpoint,
234
- force_path_style: context.config.force_path_style,
235
120
  accelerate: context[:use_accelerate_endpoint],
236
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
237
- use_object_lambda_endpoint: nil,
238
- key: nil,
239
- prefix: nil,
240
- disable_access_points: nil,
241
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
242
- use_arn_region: context.config.s3_use_arn_region,
243
121
  use_s3_express_control_endpoint: true,
244
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
245
122
  )
246
123
  end
247
124
  end
248
125
 
249
126
  class DeleteBucketEncryption
250
127
  def self.build(context)
251
- unless context.config.regional_endpoint
252
- endpoint = context.config.endpoint.to_s
253
- end
254
- Aws::S3::EndpointParameters.new(
128
+ Aws::S3::EndpointParameters.create(
129
+ context.config,
255
130
  bucket: context.params[:bucket],
256
- region: context.config.region,
257
- use_fips: context.config.use_fips_endpoint,
258
131
  use_dual_stack: context[:use_dualstack_endpoint],
259
- endpoint: endpoint,
260
- force_path_style: context.config.force_path_style,
261
132
  accelerate: context[:use_accelerate_endpoint],
262
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
263
- use_object_lambda_endpoint: nil,
264
- key: nil,
265
- prefix: nil,
266
- disable_access_points: nil,
267
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
268
- use_arn_region: context.config.s3_use_arn_region,
269
133
  use_s3_express_control_endpoint: true,
270
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
271
134
  )
272
135
  end
273
136
  end
274
137
 
275
138
  class DeleteBucketIntelligentTieringConfiguration
276
139
  def self.build(context)
277
- unless context.config.regional_endpoint
278
- endpoint = context.config.endpoint.to_s
279
- end
280
- Aws::S3::EndpointParameters.new(
140
+ Aws::S3::EndpointParameters.create(
141
+ context.config,
281
142
  bucket: context.params[:bucket],
282
- region: context.config.region,
283
- use_fips: context.config.use_fips_endpoint,
284
143
  use_dual_stack: context[:use_dualstack_endpoint],
285
- endpoint: endpoint,
286
- force_path_style: context.config.force_path_style,
287
144
  accelerate: context[:use_accelerate_endpoint],
288
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
289
- use_object_lambda_endpoint: nil,
290
- key: nil,
291
- prefix: nil,
292
- disable_access_points: nil,
293
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
294
- use_arn_region: context.config.s3_use_arn_region,
295
145
  use_s3_express_control_endpoint: true,
296
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
297
146
  )
298
147
  end
299
148
  end
300
149
 
301
150
  class DeleteBucketInventoryConfiguration
302
151
  def self.build(context)
303
- unless context.config.regional_endpoint
304
- endpoint = context.config.endpoint.to_s
305
- end
306
- Aws::S3::EndpointParameters.new(
152
+ Aws::S3::EndpointParameters.create(
153
+ context.config,
307
154
  bucket: context.params[:bucket],
308
- region: context.config.region,
309
- use_fips: context.config.use_fips_endpoint,
310
155
  use_dual_stack: context[:use_dualstack_endpoint],
311
- endpoint: endpoint,
312
- force_path_style: context.config.force_path_style,
313
156
  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
- key: nil,
317
- prefix: nil,
318
- disable_access_points: nil,
319
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
320
- use_arn_region: context.config.s3_use_arn_region,
321
157
  use_s3_express_control_endpoint: true,
322
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
323
158
  )
324
159
  end
325
160
  end
326
161
 
327
162
  class DeleteBucketLifecycle
328
163
  def self.build(context)
329
- unless context.config.regional_endpoint
330
- endpoint = context.config.endpoint.to_s
331
- end
332
- Aws::S3::EndpointParameters.new(
164
+ Aws::S3::EndpointParameters.create(
165
+ context.config,
333
166
  bucket: context.params[:bucket],
334
- region: context.config.region,
335
- use_fips: context.config.use_fips_endpoint,
336
167
  use_dual_stack: context[:use_dualstack_endpoint],
337
- endpoint: endpoint,
338
- force_path_style: context.config.force_path_style,
339
168
  accelerate: context[:use_accelerate_endpoint],
340
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
341
- use_object_lambda_endpoint: nil,
342
- key: nil,
343
- prefix: nil,
344
- disable_access_points: nil,
345
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
346
- use_arn_region: context.config.s3_use_arn_region,
347
169
  use_s3_express_control_endpoint: true,
348
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
349
170
  )
350
171
  end
351
172
  end
352
173
 
353
174
  class DeleteBucketMetricsConfiguration
354
175
  def self.build(context)
355
- unless context.config.regional_endpoint
356
- endpoint = context.config.endpoint.to_s
357
- end
358
- Aws::S3::EndpointParameters.new(
176
+ Aws::S3::EndpointParameters.create(
177
+ context.config,
359
178
  bucket: context.params[:bucket],
360
- region: context.config.region,
361
- use_fips: context.config.use_fips_endpoint,
362
179
  use_dual_stack: context[:use_dualstack_endpoint],
363
- endpoint: endpoint,
364
- force_path_style: context.config.force_path_style,
365
180
  accelerate: context[:use_accelerate_endpoint],
366
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
367
- use_object_lambda_endpoint: nil,
368
- key: nil,
369
- prefix: nil,
370
- disable_access_points: nil,
371
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
372
- use_arn_region: context.config.s3_use_arn_region,
373
181
  use_s3_express_control_endpoint: true,
374
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
375
182
  )
376
183
  end
377
184
  end
378
185
 
379
186
  class DeleteBucketOwnershipControls
380
187
  def self.build(context)
381
- unless context.config.regional_endpoint
382
- endpoint = context.config.endpoint.to_s
383
- end
384
- Aws::S3::EndpointParameters.new(
188
+ Aws::S3::EndpointParameters.create(
189
+ context.config,
385
190
  bucket: context.params[:bucket],
386
- region: context.config.region,
387
- use_fips: context.config.use_fips_endpoint,
388
191
  use_dual_stack: context[:use_dualstack_endpoint],
389
- endpoint: endpoint,
390
- force_path_style: context.config.force_path_style,
391
192
  accelerate: context[:use_accelerate_endpoint],
392
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
393
- use_object_lambda_endpoint: nil,
394
- key: nil,
395
- prefix: nil,
396
- disable_access_points: nil,
397
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
398
- use_arn_region: context.config.s3_use_arn_region,
399
193
  use_s3_express_control_endpoint: true,
400
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
401
194
  )
402
195
  end
403
196
  end
404
197
 
405
198
  class DeleteBucketPolicy
406
199
  def self.build(context)
407
- unless context.config.regional_endpoint
408
- endpoint = context.config.endpoint.to_s
409
- end
410
- Aws::S3::EndpointParameters.new(
200
+ Aws::S3::EndpointParameters.create(
201
+ context.config,
411
202
  bucket: context.params[:bucket],
412
- region: context.config.region,
413
- use_fips: context.config.use_fips_endpoint,
414
203
  use_dual_stack: context[:use_dualstack_endpoint],
415
- endpoint: endpoint,
416
- force_path_style: context.config.force_path_style,
417
204
  accelerate: context[:use_accelerate_endpoint],
418
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
419
- use_object_lambda_endpoint: nil,
420
- key: nil,
421
- prefix: nil,
422
- disable_access_points: nil,
423
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
424
- use_arn_region: context.config.s3_use_arn_region,
425
205
  use_s3_express_control_endpoint: true,
426
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
427
206
  )
428
207
  end
429
208
  end
430
209
 
431
210
  class DeleteBucketReplication
432
211
  def self.build(context)
433
- unless context.config.regional_endpoint
434
- endpoint = context.config.endpoint.to_s
435
- end
436
- Aws::S3::EndpointParameters.new(
212
+ Aws::S3::EndpointParameters.create(
213
+ context.config,
437
214
  bucket: context.params[:bucket],
438
- region: context.config.region,
439
- use_fips: context.config.use_fips_endpoint,
440
215
  use_dual_stack: context[:use_dualstack_endpoint],
441
- endpoint: endpoint,
442
- force_path_style: context.config.force_path_style,
443
216
  accelerate: context[:use_accelerate_endpoint],
444
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
445
- use_object_lambda_endpoint: nil,
446
- key: nil,
447
- prefix: 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
217
  use_s3_express_control_endpoint: true,
452
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
453
218
  )
454
219
  end
455
220
  end
456
221
 
457
222
  class DeleteBucketTagging
458
223
  def self.build(context)
459
- unless context.config.regional_endpoint
460
- endpoint = context.config.endpoint.to_s
461
- end
462
- Aws::S3::EndpointParameters.new(
224
+ Aws::S3::EndpointParameters.create(
225
+ context.config,
463
226
  bucket: context.params[:bucket],
464
- region: context.config.region,
465
- use_fips: context.config.use_fips_endpoint,
466
227
  use_dual_stack: context[:use_dualstack_endpoint],
467
- endpoint: endpoint,
468
- force_path_style: context.config.force_path_style,
469
228
  accelerate: context[:use_accelerate_endpoint],
470
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
471
- use_object_lambda_endpoint: nil,
472
- key: nil,
473
- prefix: nil,
474
- disable_access_points: nil,
475
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
476
- use_arn_region: context.config.s3_use_arn_region,
477
229
  use_s3_express_control_endpoint: true,
478
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
479
230
  )
480
231
  end
481
232
  end
482
233
 
483
234
  class DeleteBucketWebsite
484
235
  def self.build(context)
485
- unless context.config.regional_endpoint
486
- endpoint = context.config.endpoint.to_s
487
- end
488
- Aws::S3::EndpointParameters.new(
236
+ Aws::S3::EndpointParameters.create(
237
+ context.config,
489
238
  bucket: context.params[:bucket],
490
- region: context.config.region,
491
- use_fips: context.config.use_fips_endpoint,
492
239
  use_dual_stack: context[:use_dualstack_endpoint],
493
- endpoint: endpoint,
494
- force_path_style: context.config.force_path_style,
495
240
  accelerate: context[:use_accelerate_endpoint],
496
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
497
- use_object_lambda_endpoint: nil,
498
- key: nil,
499
- prefix: nil,
500
- disable_access_points: nil,
501
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
502
- use_arn_region: context.config.s3_use_arn_region,
503
241
  use_s3_express_control_endpoint: true,
504
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
505
242
  )
506
243
  end
507
244
  end
508
245
 
509
246
  class DeleteObject
510
247
  def self.build(context)
511
- unless context.config.regional_endpoint
512
- endpoint = context.config.endpoint.to_s
513
- end
514
- Aws::S3::EndpointParameters.new(
248
+ Aws::S3::EndpointParameters.create(
249
+ context.config,
515
250
  bucket: context.params[:bucket],
516
- region: context.config.region,
517
- use_fips: context.config.use_fips_endpoint,
518
251
  use_dual_stack: context[:use_dualstack_endpoint],
519
- endpoint: endpoint,
520
- force_path_style: context.config.force_path_style,
521
252
  accelerate: context[:use_accelerate_endpoint],
522
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
523
- use_object_lambda_endpoint: nil,
524
253
  key: context.params[:key],
525
- prefix: nil,
526
- disable_access_points: nil,
527
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
528
- use_arn_region: context.config.s3_use_arn_region,
529
- use_s3_express_control_endpoint: nil,
530
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
531
254
  )
532
255
  end
533
256
  end
534
257
 
535
258
  class DeleteObjectTagging
536
259
  def self.build(context)
537
- unless context.config.regional_endpoint
538
- endpoint = context.config.endpoint.to_s
539
- end
540
- Aws::S3::EndpointParameters.new(
260
+ Aws::S3::EndpointParameters.create(
261
+ context.config,
541
262
  bucket: context.params[:bucket],
542
- region: context.config.region,
543
- use_fips: context.config.use_fips_endpoint,
544
263
  use_dual_stack: context[:use_dualstack_endpoint],
545
- endpoint: endpoint,
546
- force_path_style: context.config.force_path_style,
547
264
  accelerate: context[:use_accelerate_endpoint],
548
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
549
- use_object_lambda_endpoint: nil,
550
- key: nil,
551
- prefix: nil,
552
- disable_access_points: nil,
553
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
554
- use_arn_region: context.config.s3_use_arn_region,
555
- use_s3_express_control_endpoint: nil,
556
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
557
265
  )
558
266
  end
559
267
  end
560
268
 
561
269
  class DeleteObjects
562
270
  def self.build(context)
563
- unless context.config.regional_endpoint
564
- endpoint = context.config.endpoint.to_s
565
- end
566
- Aws::S3::EndpointParameters.new(
271
+ Aws::S3::EndpointParameters.create(
272
+ context.config,
567
273
  bucket: context.params[:bucket],
568
- region: context.config.region,
569
- use_fips: context.config.use_fips_endpoint,
570
274
  use_dual_stack: context[:use_dualstack_endpoint],
571
- endpoint: endpoint,
572
- force_path_style: context.config.force_path_style,
573
275
  accelerate: context[:use_accelerate_endpoint],
574
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
575
- use_object_lambda_endpoint: nil,
576
- key: nil,
577
- prefix: nil,
578
- disable_access_points: nil,
579
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
580
- use_arn_region: context.config.s3_use_arn_region,
581
- use_s3_express_control_endpoint: nil,
582
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
583
276
  )
584
277
  end
585
278
  end
586
279
 
587
280
  class DeletePublicAccessBlock
588
281
  def self.build(context)
589
- unless context.config.regional_endpoint
590
- endpoint = context.config.endpoint.to_s
591
- end
592
- Aws::S3::EndpointParameters.new(
282
+ Aws::S3::EndpointParameters.create(
283
+ context.config,
593
284
  bucket: context.params[:bucket],
594
- region: context.config.region,
595
- use_fips: context.config.use_fips_endpoint,
596
285
  use_dual_stack: context[:use_dualstack_endpoint],
597
- endpoint: endpoint,
598
- force_path_style: context.config.force_path_style,
599
286
  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
- key: nil,
603
- prefix: nil,
604
- disable_access_points: nil,
605
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
606
- use_arn_region: context.config.s3_use_arn_region,
607
287
  use_s3_express_control_endpoint: true,
608
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
609
288
  )
610
289
  end
611
290
  end
612
291
 
613
292
  class GetBucketAccelerateConfiguration
614
293
  def self.build(context)
615
- unless context.config.regional_endpoint
616
- endpoint = context.config.endpoint.to_s
617
- end
618
- Aws::S3::EndpointParameters.new(
294
+ Aws::S3::EndpointParameters.create(
295
+ context.config,
619
296
  bucket: context.params[:bucket],
620
- region: context.config.region,
621
- use_fips: context.config.use_fips_endpoint,
622
297
  use_dual_stack: context[:use_dualstack_endpoint],
623
- endpoint: endpoint,
624
- force_path_style: context.config.force_path_style,
625
298
  accelerate: context[:use_accelerate_endpoint],
626
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
627
- use_object_lambda_endpoint: nil,
628
- key: nil,
629
- prefix: nil,
630
- disable_access_points: nil,
631
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
632
- use_arn_region: context.config.s3_use_arn_region,
633
299
  use_s3_express_control_endpoint: true,
634
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
635
300
  )
636
301
  end
637
302
  end
638
303
 
639
304
  class GetBucketAcl
640
305
  def self.build(context)
641
- unless context.config.regional_endpoint
642
- endpoint = context.config.endpoint.to_s
643
- end
644
- Aws::S3::EndpointParameters.new(
306
+ Aws::S3::EndpointParameters.create(
307
+ context.config,
645
308
  bucket: context.params[:bucket],
646
- region: context.config.region,
647
- use_fips: context.config.use_fips_endpoint,
648
309
  use_dual_stack: context[:use_dualstack_endpoint],
649
- endpoint: endpoint,
650
- force_path_style: context.config.force_path_style,
651
310
  accelerate: context[:use_accelerate_endpoint],
652
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
653
- use_object_lambda_endpoint: nil,
654
- key: nil,
655
- prefix: nil,
656
- disable_access_points: nil,
657
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
658
- use_arn_region: context.config.s3_use_arn_region,
659
311
  use_s3_express_control_endpoint: true,
660
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
661
312
  )
662
313
  end
663
314
  end
664
315
 
665
316
  class GetBucketAnalyticsConfiguration
666
317
  def self.build(context)
667
- unless context.config.regional_endpoint
668
- endpoint = context.config.endpoint.to_s
669
- end
670
- Aws::S3::EndpointParameters.new(
318
+ Aws::S3::EndpointParameters.create(
319
+ context.config,
671
320
  bucket: context.params[:bucket],
672
- region: context.config.region,
673
- use_fips: context.config.use_fips_endpoint,
674
321
  use_dual_stack: context[:use_dualstack_endpoint],
675
- endpoint: endpoint,
676
- force_path_style: context.config.force_path_style,
677
322
  accelerate: context[:use_accelerate_endpoint],
678
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
679
- use_object_lambda_endpoint: nil,
680
- key: nil,
681
- prefix: nil,
682
- disable_access_points: nil,
683
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
684
- use_arn_region: context.config.s3_use_arn_region,
685
323
  use_s3_express_control_endpoint: true,
686
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
687
324
  )
688
325
  end
689
326
  end
690
327
 
691
328
  class GetBucketCors
692
329
  def self.build(context)
693
- unless context.config.regional_endpoint
694
- endpoint = context.config.endpoint.to_s
695
- end
696
- Aws::S3::EndpointParameters.new(
330
+ Aws::S3::EndpointParameters.create(
331
+ context.config,
697
332
  bucket: context.params[:bucket],
698
- region: context.config.region,
699
- use_fips: context.config.use_fips_endpoint,
700
333
  use_dual_stack: context[:use_dualstack_endpoint],
701
- endpoint: endpoint,
702
- force_path_style: context.config.force_path_style,
703
334
  accelerate: context[:use_accelerate_endpoint],
704
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
705
- use_object_lambda_endpoint: nil,
706
- key: nil,
707
- prefix: nil,
708
- disable_access_points: nil,
709
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
710
- use_arn_region: context.config.s3_use_arn_region,
711
335
  use_s3_express_control_endpoint: true,
712
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
713
336
  )
714
337
  end
715
338
  end
716
339
 
717
340
  class GetBucketEncryption
718
341
  def self.build(context)
719
- unless context.config.regional_endpoint
720
- endpoint = context.config.endpoint.to_s
721
- end
722
- Aws::S3::EndpointParameters.new(
342
+ Aws::S3::EndpointParameters.create(
343
+ context.config,
723
344
  bucket: context.params[:bucket],
724
- region: context.config.region,
725
- use_fips: context.config.use_fips_endpoint,
726
345
  use_dual_stack: context[:use_dualstack_endpoint],
727
- endpoint: endpoint,
728
- force_path_style: context.config.force_path_style,
729
346
  accelerate: context[:use_accelerate_endpoint],
730
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
731
- use_object_lambda_endpoint: nil,
732
- key: nil,
733
- prefix: 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
347
  use_s3_express_control_endpoint: true,
738
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
739
348
  )
740
349
  end
741
350
  end
742
351
 
743
352
  class GetBucketIntelligentTieringConfiguration
744
353
  def self.build(context)
745
- unless context.config.regional_endpoint
746
- endpoint = context.config.endpoint.to_s
747
- end
748
- Aws::S3::EndpointParameters.new(
354
+ Aws::S3::EndpointParameters.create(
355
+ context.config,
749
356
  bucket: context.params[:bucket],
750
- region: context.config.region,
751
- use_fips: context.config.use_fips_endpoint,
752
357
  use_dual_stack: context[:use_dualstack_endpoint],
753
- endpoint: endpoint,
754
- force_path_style: context.config.force_path_style,
755
358
  accelerate: context[:use_accelerate_endpoint],
756
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
757
- use_object_lambda_endpoint: nil,
758
- key: nil,
759
- prefix: nil,
760
- disable_access_points: nil,
761
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
762
- use_arn_region: context.config.s3_use_arn_region,
763
359
  use_s3_express_control_endpoint: true,
764
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
765
360
  )
766
361
  end
767
362
  end
768
363
 
769
364
  class GetBucketInventoryConfiguration
770
365
  def self.build(context)
771
- unless context.config.regional_endpoint
772
- endpoint = context.config.endpoint.to_s
773
- end
774
- Aws::S3::EndpointParameters.new(
366
+ Aws::S3::EndpointParameters.create(
367
+ context.config,
775
368
  bucket: context.params[:bucket],
776
- region: context.config.region,
777
- use_fips: context.config.use_fips_endpoint,
778
369
  use_dual_stack: context[:use_dualstack_endpoint],
779
- endpoint: endpoint,
780
- force_path_style: context.config.force_path_style,
781
370
  accelerate: context[:use_accelerate_endpoint],
782
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
783
- use_object_lambda_endpoint: nil,
784
- key: nil,
785
- prefix: nil,
786
- disable_access_points: nil,
787
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
788
- use_arn_region: context.config.s3_use_arn_region,
789
371
  use_s3_express_control_endpoint: true,
790
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
791
372
  )
792
373
  end
793
374
  end
794
375
 
795
376
  class GetBucketLifecycle
796
377
  def self.build(context)
797
- unless context.config.regional_endpoint
798
- endpoint = context.config.endpoint.to_s
799
- end
800
- Aws::S3::EndpointParameters.new(
378
+ Aws::S3::EndpointParameters.create(
379
+ context.config,
801
380
  bucket: context.params[:bucket],
802
- region: context.config.region,
803
- use_fips: context.config.use_fips_endpoint,
804
381
  use_dual_stack: context[:use_dualstack_endpoint],
805
- endpoint: endpoint,
806
- force_path_style: context.config.force_path_style,
807
382
  accelerate: context[:use_accelerate_endpoint],
808
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
809
- use_object_lambda_endpoint: nil,
810
- key: nil,
811
- prefix: nil,
812
- disable_access_points: nil,
813
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
814
- use_arn_region: context.config.s3_use_arn_region,
815
383
  use_s3_express_control_endpoint: true,
816
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
817
384
  )
818
385
  end
819
386
  end
820
387
 
821
388
  class GetBucketLifecycleConfiguration
822
389
  def self.build(context)
823
- unless context.config.regional_endpoint
824
- endpoint = context.config.endpoint.to_s
825
- end
826
- Aws::S3::EndpointParameters.new(
390
+ Aws::S3::EndpointParameters.create(
391
+ context.config,
827
392
  bucket: context.params[:bucket],
828
- region: context.config.region,
829
- use_fips: context.config.use_fips_endpoint,
830
393
  use_dual_stack: context[:use_dualstack_endpoint],
831
- endpoint: endpoint,
832
- force_path_style: context.config.force_path_style,
833
394
  accelerate: context[:use_accelerate_endpoint],
834
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
835
- use_object_lambda_endpoint: nil,
836
- key: nil,
837
- prefix: nil,
838
- disable_access_points: nil,
839
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
840
- use_arn_region: context.config.s3_use_arn_region,
841
395
  use_s3_express_control_endpoint: true,
842
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
843
396
  )
844
397
  end
845
398
  end
846
399
 
847
400
  class GetBucketLocation
848
401
  def self.build(context)
849
- unless context.config.regional_endpoint
850
- endpoint = context.config.endpoint.to_s
851
- end
852
- Aws::S3::EndpointParameters.new(
402
+ Aws::S3::EndpointParameters.create(
403
+ context.config,
853
404
  bucket: context.params[:bucket],
854
- region: context.config.region,
855
- use_fips: context.config.use_fips_endpoint,
856
405
  use_dual_stack: context[:use_dualstack_endpoint],
857
- endpoint: endpoint,
858
- force_path_style: context.config.force_path_style,
859
406
  accelerate: context[:use_accelerate_endpoint],
860
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
861
- use_object_lambda_endpoint: nil,
862
- key: nil,
863
- prefix: nil,
864
- disable_access_points: nil,
865
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
866
- use_arn_region: context.config.s3_use_arn_region,
867
407
  use_s3_express_control_endpoint: true,
868
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
869
408
  )
870
409
  end
871
410
  end
872
411
 
873
412
  class GetBucketLogging
874
413
  def self.build(context)
875
- unless context.config.regional_endpoint
876
- endpoint = context.config.endpoint.to_s
877
- end
878
- Aws::S3::EndpointParameters.new(
414
+ Aws::S3::EndpointParameters.create(
415
+ context.config,
879
416
  bucket: context.params[:bucket],
880
- region: context.config.region,
881
- use_fips: context.config.use_fips_endpoint,
882
417
  use_dual_stack: context[:use_dualstack_endpoint],
883
- endpoint: endpoint,
884
- force_path_style: context.config.force_path_style,
885
418
  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
- key: nil,
889
- prefix: nil,
890
- disable_access_points: nil,
891
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
892
- use_arn_region: context.config.s3_use_arn_region,
893
419
  use_s3_express_control_endpoint: true,
894
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
895
420
  )
896
421
  end
897
422
  end
898
423
 
899
424
  class GetBucketMetricsConfiguration
900
425
  def self.build(context)
901
- unless context.config.regional_endpoint
902
- endpoint = context.config.endpoint.to_s
903
- end
904
- Aws::S3::EndpointParameters.new(
426
+ Aws::S3::EndpointParameters.create(
427
+ context.config,
905
428
  bucket: context.params[:bucket],
906
- region: context.config.region,
907
- use_fips: context.config.use_fips_endpoint,
908
429
  use_dual_stack: context[:use_dualstack_endpoint],
909
- endpoint: endpoint,
910
- force_path_style: context.config.force_path_style,
911
430
  accelerate: context[:use_accelerate_endpoint],
912
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
913
- use_object_lambda_endpoint: nil,
914
- key: nil,
915
- prefix: nil,
916
- disable_access_points: nil,
917
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
918
- use_arn_region: context.config.s3_use_arn_region,
919
431
  use_s3_express_control_endpoint: true,
920
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
921
432
  )
922
433
  end
923
434
  end
924
435
 
925
436
  class GetBucketNotification
926
437
  def self.build(context)
927
- unless context.config.regional_endpoint
928
- endpoint = context.config.endpoint.to_s
929
- end
930
- Aws::S3::EndpointParameters.new(
438
+ Aws::S3::EndpointParameters.create(
439
+ context.config,
931
440
  bucket: context.params[:bucket],
932
- region: context.config.region,
933
- use_fips: context.config.use_fips_endpoint,
934
441
  use_dual_stack: context[:use_dualstack_endpoint],
935
- endpoint: endpoint,
936
- force_path_style: context.config.force_path_style,
937
442
  accelerate: context[:use_accelerate_endpoint],
938
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
939
- use_object_lambda_endpoint: nil,
940
- key: nil,
941
- prefix: nil,
942
- disable_access_points: nil,
943
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
944
- use_arn_region: context.config.s3_use_arn_region,
945
443
  use_s3_express_control_endpoint: true,
946
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
947
444
  )
948
445
  end
949
446
  end
950
447
 
951
448
  class GetBucketNotificationConfiguration
952
449
  def self.build(context)
953
- unless context.config.regional_endpoint
954
- endpoint = context.config.endpoint.to_s
955
- end
956
- Aws::S3::EndpointParameters.new(
450
+ Aws::S3::EndpointParameters.create(
451
+ context.config,
957
452
  bucket: context.params[:bucket],
958
- region: context.config.region,
959
- use_fips: context.config.use_fips_endpoint,
960
453
  use_dual_stack: context[:use_dualstack_endpoint],
961
- endpoint: endpoint,
962
- force_path_style: context.config.force_path_style,
963
454
  accelerate: context[:use_accelerate_endpoint],
964
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
965
- use_object_lambda_endpoint: nil,
966
- key: nil,
967
- prefix: nil,
968
- disable_access_points: nil,
969
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
970
- use_arn_region: context.config.s3_use_arn_region,
971
455
  use_s3_express_control_endpoint: true,
972
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
973
456
  )
974
457
  end
975
458
  end
976
459
 
977
460
  class GetBucketOwnershipControls
978
461
  def self.build(context)
979
- unless context.config.regional_endpoint
980
- endpoint = context.config.endpoint.to_s
981
- end
982
- Aws::S3::EndpointParameters.new(
462
+ Aws::S3::EndpointParameters.create(
463
+ context.config,
983
464
  bucket: context.params[:bucket],
984
- region: context.config.region,
985
- use_fips: context.config.use_fips_endpoint,
986
465
  use_dual_stack: context[:use_dualstack_endpoint],
987
- endpoint: endpoint,
988
- force_path_style: context.config.force_path_style,
989
466
  accelerate: context[:use_accelerate_endpoint],
990
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
991
- use_object_lambda_endpoint: nil,
992
- key: nil,
993
- prefix: nil,
994
- disable_access_points: nil,
995
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
996
- use_arn_region: context.config.s3_use_arn_region,
997
467
  use_s3_express_control_endpoint: true,
998
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
999
468
  )
1000
469
  end
1001
470
  end
1002
471
 
1003
472
  class GetBucketPolicy
1004
473
  def self.build(context)
1005
- unless context.config.regional_endpoint
1006
- endpoint = context.config.endpoint.to_s
1007
- end
1008
- Aws::S3::EndpointParameters.new(
474
+ Aws::S3::EndpointParameters.create(
475
+ context.config,
1009
476
  bucket: context.params[:bucket],
1010
- region: context.config.region,
1011
- use_fips: context.config.use_fips_endpoint,
1012
477
  use_dual_stack: context[:use_dualstack_endpoint],
1013
- endpoint: endpoint,
1014
- force_path_style: context.config.force_path_style,
1015
478
  accelerate: context[:use_accelerate_endpoint],
1016
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1017
- use_object_lambda_endpoint: nil,
1018
- key: nil,
1019
- prefix: 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
479
  use_s3_express_control_endpoint: true,
1024
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1025
480
  )
1026
481
  end
1027
482
  end
1028
483
 
1029
484
  class GetBucketPolicyStatus
1030
485
  def self.build(context)
1031
- unless context.config.regional_endpoint
1032
- endpoint = context.config.endpoint.to_s
1033
- end
1034
- Aws::S3::EndpointParameters.new(
486
+ Aws::S3::EndpointParameters.create(
487
+ context.config,
1035
488
  bucket: context.params[:bucket],
1036
- region: context.config.region,
1037
- use_fips: context.config.use_fips_endpoint,
1038
489
  use_dual_stack: context[:use_dualstack_endpoint],
1039
- endpoint: endpoint,
1040
- force_path_style: context.config.force_path_style,
1041
490
  accelerate: context[:use_accelerate_endpoint],
1042
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1043
- use_object_lambda_endpoint: nil,
1044
- key: nil,
1045
- prefix: nil,
1046
- disable_access_points: nil,
1047
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1048
- use_arn_region: context.config.s3_use_arn_region,
1049
491
  use_s3_express_control_endpoint: true,
1050
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1051
492
  )
1052
493
  end
1053
494
  end
1054
495
 
1055
496
  class GetBucketReplication
1056
497
  def self.build(context)
1057
- unless context.config.regional_endpoint
1058
- endpoint = context.config.endpoint.to_s
1059
- end
1060
- Aws::S3::EndpointParameters.new(
498
+ Aws::S3::EndpointParameters.create(
499
+ context.config,
1061
500
  bucket: context.params[:bucket],
1062
- region: context.config.region,
1063
- use_fips: context.config.use_fips_endpoint,
1064
501
  use_dual_stack: context[:use_dualstack_endpoint],
1065
- endpoint: endpoint,
1066
- force_path_style: context.config.force_path_style,
1067
502
  accelerate: context[:use_accelerate_endpoint],
1068
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1069
- use_object_lambda_endpoint: nil,
1070
- key: nil,
1071
- prefix: nil,
1072
- disable_access_points: nil,
1073
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1074
- use_arn_region: context.config.s3_use_arn_region,
1075
503
  use_s3_express_control_endpoint: true,
1076
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1077
504
  )
1078
505
  end
1079
506
  end
1080
507
 
1081
508
  class GetBucketRequestPayment
1082
509
  def self.build(context)
1083
- unless context.config.regional_endpoint
1084
- endpoint = context.config.endpoint.to_s
1085
- end
1086
- Aws::S3::EndpointParameters.new(
510
+ Aws::S3::EndpointParameters.create(
511
+ context.config,
1087
512
  bucket: context.params[:bucket],
1088
- region: context.config.region,
1089
- use_fips: context.config.use_fips_endpoint,
1090
513
  use_dual_stack: context[:use_dualstack_endpoint],
1091
- endpoint: endpoint,
1092
- force_path_style: context.config.force_path_style,
1093
514
  accelerate: context[:use_accelerate_endpoint],
1094
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1095
- use_object_lambda_endpoint: nil,
1096
- key: nil,
1097
- prefix: nil,
1098
- disable_access_points: nil,
1099
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1100
- use_arn_region: context.config.s3_use_arn_region,
1101
515
  use_s3_express_control_endpoint: true,
1102
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1103
516
  )
1104
517
  end
1105
518
  end
1106
519
 
1107
520
  class GetBucketTagging
1108
521
  def self.build(context)
1109
- unless context.config.regional_endpoint
1110
- endpoint = context.config.endpoint.to_s
1111
- end
1112
- Aws::S3::EndpointParameters.new(
522
+ Aws::S3::EndpointParameters.create(
523
+ context.config,
1113
524
  bucket: context.params[:bucket],
1114
- region: context.config.region,
1115
- use_fips: context.config.use_fips_endpoint,
1116
525
  use_dual_stack: context[:use_dualstack_endpoint],
1117
- endpoint: endpoint,
1118
- force_path_style: context.config.force_path_style,
1119
526
  accelerate: context[:use_accelerate_endpoint],
1120
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1121
- use_object_lambda_endpoint: nil,
1122
- key: nil,
1123
- prefix: nil,
1124
- disable_access_points: nil,
1125
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1126
- use_arn_region: context.config.s3_use_arn_region,
1127
527
  use_s3_express_control_endpoint: true,
1128
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1129
528
  )
1130
529
  end
1131
530
  end
1132
531
 
1133
532
  class GetBucketVersioning
1134
533
  def self.build(context)
1135
- unless context.config.regional_endpoint
1136
- endpoint = context.config.endpoint.to_s
1137
- end
1138
- Aws::S3::EndpointParameters.new(
534
+ Aws::S3::EndpointParameters.create(
535
+ context.config,
1139
536
  bucket: context.params[:bucket],
1140
- region: context.config.region,
1141
- use_fips: context.config.use_fips_endpoint,
1142
537
  use_dual_stack: context[:use_dualstack_endpoint],
1143
- endpoint: endpoint,
1144
- force_path_style: context.config.force_path_style,
1145
538
  accelerate: context[:use_accelerate_endpoint],
1146
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1147
- use_object_lambda_endpoint: nil,
1148
- key: nil,
1149
- prefix: nil,
1150
- disable_access_points: nil,
1151
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1152
- use_arn_region: context.config.s3_use_arn_region,
1153
539
  use_s3_express_control_endpoint: true,
1154
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1155
540
  )
1156
541
  end
1157
542
  end
1158
543
 
1159
544
  class GetBucketWebsite
1160
545
  def self.build(context)
1161
- unless context.config.regional_endpoint
1162
- endpoint = context.config.endpoint.to_s
1163
- end
1164
- Aws::S3::EndpointParameters.new(
546
+ Aws::S3::EndpointParameters.create(
547
+ context.config,
1165
548
  bucket: context.params[:bucket],
1166
- region: context.config.region,
1167
- use_fips: context.config.use_fips_endpoint,
1168
549
  use_dual_stack: context[:use_dualstack_endpoint],
1169
- endpoint: endpoint,
1170
- force_path_style: context.config.force_path_style,
1171
550
  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
- key: nil,
1175
- prefix: nil,
1176
- disable_access_points: nil,
1177
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1178
- use_arn_region: context.config.s3_use_arn_region,
1179
551
  use_s3_express_control_endpoint: true,
1180
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1181
552
  )
1182
553
  end
1183
554
  end
1184
555
 
1185
556
  class GetObject
1186
557
  def self.build(context)
1187
- unless context.config.regional_endpoint
1188
- endpoint = context.config.endpoint.to_s
1189
- end
1190
- Aws::S3::EndpointParameters.new(
558
+ Aws::S3::EndpointParameters.create(
559
+ context.config,
1191
560
  bucket: context.params[:bucket],
1192
- region: context.config.region,
1193
- use_fips: context.config.use_fips_endpoint,
1194
561
  use_dual_stack: context[:use_dualstack_endpoint],
1195
- endpoint: endpoint,
1196
- force_path_style: context.config.force_path_style,
1197
562
  accelerate: context[:use_accelerate_endpoint],
1198
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1199
- use_object_lambda_endpoint: nil,
1200
563
  key: context.params[:key],
1201
- prefix: nil,
1202
- disable_access_points: nil,
1203
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1204
- use_arn_region: context.config.s3_use_arn_region,
1205
- use_s3_express_control_endpoint: nil,
1206
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1207
564
  )
1208
565
  end
1209
566
  end
1210
567
 
1211
568
  class GetObjectAcl
1212
569
  def self.build(context)
1213
- unless context.config.regional_endpoint
1214
- endpoint = context.config.endpoint.to_s
1215
- end
1216
- Aws::S3::EndpointParameters.new(
570
+ Aws::S3::EndpointParameters.create(
571
+ context.config,
1217
572
  bucket: context.params[:bucket],
1218
- region: context.config.region,
1219
- use_fips: context.config.use_fips_endpoint,
1220
573
  use_dual_stack: context[:use_dualstack_endpoint],
1221
- endpoint: endpoint,
1222
- force_path_style: context.config.force_path_style,
1223
574
  accelerate: context[:use_accelerate_endpoint],
1224
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1225
- use_object_lambda_endpoint: nil,
1226
575
  key: context.params[:key],
1227
- prefix: nil,
1228
- disable_access_points: nil,
1229
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1230
- use_arn_region: context.config.s3_use_arn_region,
1231
- use_s3_express_control_endpoint: nil,
1232
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1233
576
  )
1234
577
  end
1235
578
  end
1236
579
 
1237
580
  class GetObjectAttributes
1238
581
  def self.build(context)
1239
- unless context.config.regional_endpoint
1240
- endpoint = context.config.endpoint.to_s
1241
- end
1242
- Aws::S3::EndpointParameters.new(
582
+ Aws::S3::EndpointParameters.create(
583
+ context.config,
1243
584
  bucket: context.params[:bucket],
1244
- region: context.config.region,
1245
- use_fips: context.config.use_fips_endpoint,
1246
585
  use_dual_stack: context[:use_dualstack_endpoint],
1247
- endpoint: endpoint,
1248
- force_path_style: context.config.force_path_style,
1249
586
  accelerate: context[:use_accelerate_endpoint],
1250
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1251
- use_object_lambda_endpoint: nil,
1252
- key: nil,
1253
- prefix: nil,
1254
- disable_access_points: nil,
1255
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1256
- use_arn_region: context.config.s3_use_arn_region,
1257
- use_s3_express_control_endpoint: nil,
1258
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1259
587
  )
1260
588
  end
1261
589
  end
1262
590
 
1263
591
  class GetObjectLegalHold
1264
592
  def self.build(context)
1265
- unless context.config.regional_endpoint
1266
- endpoint = context.config.endpoint.to_s
1267
- end
1268
- Aws::S3::EndpointParameters.new(
593
+ Aws::S3::EndpointParameters.create(
594
+ context.config,
1269
595
  bucket: context.params[:bucket],
1270
- region: context.config.region,
1271
- use_fips: context.config.use_fips_endpoint,
1272
596
  use_dual_stack: context[:use_dualstack_endpoint],
1273
- endpoint: endpoint,
1274
- force_path_style: context.config.force_path_style,
1275
597
  accelerate: context[:use_accelerate_endpoint],
1276
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1277
- use_object_lambda_endpoint: nil,
1278
- key: nil,
1279
- prefix: nil,
1280
- disable_access_points: nil,
1281
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1282
- use_arn_region: context.config.s3_use_arn_region,
1283
- use_s3_express_control_endpoint: nil,
1284
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1285
598
  )
1286
599
  end
1287
600
  end
1288
601
 
1289
602
  class GetObjectLockConfiguration
1290
603
  def self.build(context)
1291
- unless context.config.regional_endpoint
1292
- endpoint = context.config.endpoint.to_s
1293
- end
1294
- Aws::S3::EndpointParameters.new(
604
+ Aws::S3::EndpointParameters.create(
605
+ context.config,
1295
606
  bucket: context.params[:bucket],
1296
- region: context.config.region,
1297
- use_fips: context.config.use_fips_endpoint,
1298
607
  use_dual_stack: context[:use_dualstack_endpoint],
1299
- endpoint: endpoint,
1300
- force_path_style: context.config.force_path_style,
1301
608
  accelerate: context[:use_accelerate_endpoint],
1302
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1303
- use_object_lambda_endpoint: nil,
1304
- key: nil,
1305
- prefix: 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
- use_s3_express_control_endpoint: nil,
1310
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1311
609
  )
1312
610
  end
1313
611
  end
1314
612
 
1315
613
  class GetObjectRetention
1316
614
  def self.build(context)
1317
- unless context.config.regional_endpoint
1318
- endpoint = context.config.endpoint.to_s
1319
- end
1320
- Aws::S3::EndpointParameters.new(
615
+ Aws::S3::EndpointParameters.create(
616
+ context.config,
1321
617
  bucket: context.params[:bucket],
1322
- region: context.config.region,
1323
- use_fips: context.config.use_fips_endpoint,
1324
618
  use_dual_stack: context[:use_dualstack_endpoint],
1325
- endpoint: endpoint,
1326
- force_path_style: context.config.force_path_style,
1327
619
  accelerate: context[:use_accelerate_endpoint],
1328
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1329
- use_object_lambda_endpoint: nil,
1330
- key: nil,
1331
- prefix: nil,
1332
- disable_access_points: nil,
1333
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1334
- use_arn_region: context.config.s3_use_arn_region,
1335
- use_s3_express_control_endpoint: nil,
1336
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1337
620
  )
1338
621
  end
1339
622
  end
1340
623
 
1341
624
  class GetObjectTagging
1342
625
  def self.build(context)
1343
- unless context.config.regional_endpoint
1344
- endpoint = context.config.endpoint.to_s
1345
- end
1346
- Aws::S3::EndpointParameters.new(
626
+ Aws::S3::EndpointParameters.create(
627
+ context.config,
1347
628
  bucket: context.params[:bucket],
1348
- region: context.config.region,
1349
- use_fips: context.config.use_fips_endpoint,
1350
629
  use_dual_stack: context[:use_dualstack_endpoint],
1351
- endpoint: endpoint,
1352
- force_path_style: context.config.force_path_style,
1353
630
  accelerate: context[:use_accelerate_endpoint],
1354
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1355
- use_object_lambda_endpoint: nil,
1356
- key: nil,
1357
- prefix: nil,
1358
- disable_access_points: nil,
1359
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1360
- use_arn_region: context.config.s3_use_arn_region,
1361
- use_s3_express_control_endpoint: nil,
1362
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1363
631
  )
1364
632
  end
1365
633
  end
1366
634
 
1367
635
  class GetObjectTorrent
1368
636
  def self.build(context)
1369
- unless context.config.regional_endpoint
1370
- endpoint = context.config.endpoint.to_s
1371
- end
1372
- Aws::S3::EndpointParameters.new(
637
+ Aws::S3::EndpointParameters.create(
638
+ context.config,
1373
639
  bucket: context.params[:bucket],
1374
- region: context.config.region,
1375
- use_fips: context.config.use_fips_endpoint,
1376
640
  use_dual_stack: context[:use_dualstack_endpoint],
1377
- endpoint: endpoint,
1378
- force_path_style: context.config.force_path_style,
1379
641
  accelerate: context[:use_accelerate_endpoint],
1380
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1381
- use_object_lambda_endpoint: nil,
1382
- key: nil,
1383
- prefix: nil,
1384
- disable_access_points: nil,
1385
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1386
- use_arn_region: context.config.s3_use_arn_region,
1387
- use_s3_express_control_endpoint: nil,
1388
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1389
642
  )
1390
643
  end
1391
644
  end
1392
645
 
1393
646
  class GetPublicAccessBlock
1394
647
  def self.build(context)
1395
- unless context.config.regional_endpoint
1396
- endpoint = context.config.endpoint.to_s
1397
- end
1398
- Aws::S3::EndpointParameters.new(
648
+ Aws::S3::EndpointParameters.create(
649
+ context.config,
1399
650
  bucket: context.params[:bucket],
1400
- region: context.config.region,
1401
- use_fips: context.config.use_fips_endpoint,
1402
651
  use_dual_stack: context[:use_dualstack_endpoint],
1403
- endpoint: endpoint,
1404
- force_path_style: context.config.force_path_style,
1405
652
  accelerate: context[:use_accelerate_endpoint],
1406
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1407
- use_object_lambda_endpoint: nil,
1408
- key: nil,
1409
- prefix: nil,
1410
- disable_access_points: nil,
1411
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1412
- use_arn_region: context.config.s3_use_arn_region,
1413
653
  use_s3_express_control_endpoint: true,
1414
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1415
654
  )
1416
655
  end
1417
656
  end
1418
657
 
1419
658
  class HeadBucket
1420
659
  def self.build(context)
1421
- unless context.config.regional_endpoint
1422
- endpoint = context.config.endpoint.to_s
1423
- end
1424
- Aws::S3::EndpointParameters.new(
660
+ Aws::S3::EndpointParameters.create(
661
+ context.config,
1425
662
  bucket: context.params[:bucket],
1426
- region: context.config.region,
1427
- use_fips: context.config.use_fips_endpoint,
1428
663
  use_dual_stack: context[:use_dualstack_endpoint],
1429
- endpoint: endpoint,
1430
- force_path_style: context.config.force_path_style,
1431
664
  accelerate: context[:use_accelerate_endpoint],
1432
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1433
- use_object_lambda_endpoint: nil,
1434
- key: nil,
1435
- prefix: nil,
1436
- disable_access_points: nil,
1437
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1438
- use_arn_region: context.config.s3_use_arn_region,
1439
- use_s3_express_control_endpoint: nil,
1440
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1441
665
  )
1442
666
  end
1443
667
  end
1444
668
 
1445
669
  class HeadObject
1446
670
  def self.build(context)
1447
- unless context.config.regional_endpoint
1448
- endpoint = context.config.endpoint.to_s
1449
- end
1450
- Aws::S3::EndpointParameters.new(
671
+ Aws::S3::EndpointParameters.create(
672
+ context.config,
1451
673
  bucket: context.params[:bucket],
1452
- region: context.config.region,
1453
- use_fips: context.config.use_fips_endpoint,
1454
674
  use_dual_stack: context[:use_dualstack_endpoint],
1455
- endpoint: endpoint,
1456
- force_path_style: context.config.force_path_style,
1457
675
  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
676
  key: context.params[:key],
1461
- prefix: nil,
1462
- disable_access_points: nil,
1463
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1464
- use_arn_region: context.config.s3_use_arn_region,
1465
- use_s3_express_control_endpoint: nil,
1466
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1467
677
  )
1468
678
  end
1469
679
  end
1470
680
 
1471
681
  class ListBucketAnalyticsConfigurations
1472
682
  def self.build(context)
1473
- unless context.config.regional_endpoint
1474
- endpoint = context.config.endpoint.to_s
1475
- end
1476
- Aws::S3::EndpointParameters.new(
683
+ Aws::S3::EndpointParameters.create(
684
+ context.config,
1477
685
  bucket: context.params[:bucket],
1478
- region: context.config.region,
1479
- use_fips: context.config.use_fips_endpoint,
1480
686
  use_dual_stack: context[:use_dualstack_endpoint],
1481
- endpoint: endpoint,
1482
- force_path_style: context.config.force_path_style,
1483
687
  accelerate: context[:use_accelerate_endpoint],
1484
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1485
- use_object_lambda_endpoint: nil,
1486
- key: nil,
1487
- prefix: nil,
1488
- disable_access_points: nil,
1489
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1490
- use_arn_region: context.config.s3_use_arn_region,
1491
688
  use_s3_express_control_endpoint: true,
1492
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1493
689
  )
1494
690
  end
1495
691
  end
1496
692
 
1497
693
  class ListBucketIntelligentTieringConfigurations
1498
694
  def self.build(context)
1499
- unless context.config.regional_endpoint
1500
- endpoint = context.config.endpoint.to_s
1501
- end
1502
- Aws::S3::EndpointParameters.new(
695
+ Aws::S3::EndpointParameters.create(
696
+ context.config,
1503
697
  bucket: context.params[:bucket],
1504
- region: context.config.region,
1505
- use_fips: context.config.use_fips_endpoint,
1506
698
  use_dual_stack: context[:use_dualstack_endpoint],
1507
- endpoint: endpoint,
1508
- force_path_style: context.config.force_path_style,
1509
699
  accelerate: context[:use_accelerate_endpoint],
1510
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1511
- use_object_lambda_endpoint: nil,
1512
- key: nil,
1513
- prefix: nil,
1514
- disable_access_points: nil,
1515
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1516
- use_arn_region: context.config.s3_use_arn_region,
1517
700
  use_s3_express_control_endpoint: true,
1518
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1519
701
  )
1520
702
  end
1521
703
  end
1522
704
 
1523
705
  class ListBucketInventoryConfigurations
1524
706
  def self.build(context)
1525
- unless context.config.regional_endpoint
1526
- endpoint = context.config.endpoint.to_s
1527
- end
1528
- Aws::S3::EndpointParameters.new(
707
+ Aws::S3::EndpointParameters.create(
708
+ context.config,
1529
709
  bucket: context.params[:bucket],
1530
- region: context.config.region,
1531
- use_fips: context.config.use_fips_endpoint,
1532
710
  use_dual_stack: context[:use_dualstack_endpoint],
1533
- endpoint: endpoint,
1534
- force_path_style: context.config.force_path_style,
1535
711
  accelerate: context[:use_accelerate_endpoint],
1536
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1537
- use_object_lambda_endpoint: nil,
1538
- key: nil,
1539
- prefix: nil,
1540
- disable_access_points: nil,
1541
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1542
- use_arn_region: context.config.s3_use_arn_region,
1543
712
  use_s3_express_control_endpoint: true,
1544
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1545
713
  )
1546
714
  end
1547
715
  end
1548
716
 
1549
717
  class ListBucketMetricsConfigurations
1550
718
  def self.build(context)
1551
- unless context.config.regional_endpoint
1552
- endpoint = context.config.endpoint.to_s
1553
- end
1554
- Aws::S3::EndpointParameters.new(
719
+ Aws::S3::EndpointParameters.create(
720
+ context.config,
1555
721
  bucket: context.params[:bucket],
1556
- region: context.config.region,
1557
- use_fips: context.config.use_fips_endpoint,
1558
722
  use_dual_stack: context[:use_dualstack_endpoint],
1559
- endpoint: endpoint,
1560
- force_path_style: context.config.force_path_style,
1561
723
  accelerate: context[:use_accelerate_endpoint],
1562
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1563
- use_object_lambda_endpoint: nil,
1564
- key: nil,
1565
- prefix: nil,
1566
- disable_access_points: nil,
1567
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1568
- use_arn_region: context.config.s3_use_arn_region,
1569
- use_s3_express_control_endpoint: nil,
1570
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1571
724
  )
1572
725
  end
1573
726
  end
1574
727
 
1575
728
  class ListBuckets
1576
729
  def self.build(context)
1577
- unless context.config.regional_endpoint
1578
- endpoint = context.config.endpoint.to_s
1579
- end
1580
- Aws::S3::EndpointParameters.new(
1581
- bucket: nil,
1582
- region: context.config.region,
1583
- use_fips: context.config.use_fips_endpoint,
730
+ Aws::S3::EndpointParameters.create(
731
+ context.config,
1584
732
  use_dual_stack: context[:use_dualstack_endpoint],
1585
- endpoint: endpoint,
1586
- force_path_style: context.config.force_path_style,
1587
733
  accelerate: context[:use_accelerate_endpoint],
1588
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1589
- use_object_lambda_endpoint: nil,
1590
- key: nil,
1591
- prefix: 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
- use_s3_express_control_endpoint: nil,
1596
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1597
734
  )
1598
735
  end
1599
736
  end
1600
737
 
1601
738
  class ListDirectoryBuckets
1602
739
  def self.build(context)
1603
- unless context.config.regional_endpoint
1604
- endpoint = context.config.endpoint.to_s
1605
- end
1606
- Aws::S3::EndpointParameters.new(
1607
- bucket: nil,
1608
- region: context.config.region,
1609
- use_fips: context.config.use_fips_endpoint,
1610
- use_dual_stack: context[:use_dualstack_endpoint],
1611
- endpoint: endpoint,
1612
- force_path_style: context.config.force_path_style,
1613
- accelerate: context[:use_accelerate_endpoint],
1614
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1615
- use_object_lambda_endpoint: nil,
1616
- key: nil,
1617
- prefix: nil,
1618
- disable_access_points: nil,
1619
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1620
- use_arn_region: context.config.s3_use_arn_region,
740
+ Aws::S3::EndpointParameters.create(
741
+ context.config,
742
+ use_dual_stack: context[:use_dualstack_endpoint],
743
+ accelerate: context[:use_accelerate_endpoint],
1621
744
  use_s3_express_control_endpoint: true,
1622
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1623
745
  )
1624
746
  end
1625
747
  end
1626
748
 
1627
749
  class ListMultipartUploads
1628
750
  def self.build(context)
1629
- unless context.config.regional_endpoint
1630
- endpoint = context.config.endpoint.to_s
1631
- end
1632
- Aws::S3::EndpointParameters.new(
751
+ Aws::S3::EndpointParameters.create(
752
+ context.config,
1633
753
  bucket: context.params[:bucket],
1634
- region: context.config.region,
1635
- use_fips: context.config.use_fips_endpoint,
1636
754
  use_dual_stack: context[:use_dualstack_endpoint],
1637
- endpoint: endpoint,
1638
- force_path_style: context.config.force_path_style,
1639
755
  accelerate: context[:use_accelerate_endpoint],
1640
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1641
- use_object_lambda_endpoint: nil,
1642
- key: nil,
1643
756
  prefix: context.params[:prefix],
1644
- disable_access_points: nil,
1645
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1646
- use_arn_region: context.config.s3_use_arn_region,
1647
- use_s3_express_control_endpoint: nil,
1648
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1649
757
  )
1650
758
  end
1651
759
  end
1652
760
 
1653
761
  class ListObjectVersions
1654
762
  def self.build(context)
1655
- unless context.config.regional_endpoint
1656
- endpoint = context.config.endpoint.to_s
1657
- end
1658
- Aws::S3::EndpointParameters.new(
763
+ Aws::S3::EndpointParameters.create(
764
+ context.config,
1659
765
  bucket: context.params[:bucket],
1660
- region: context.config.region,
1661
- use_fips: context.config.use_fips_endpoint,
1662
766
  use_dual_stack: context[:use_dualstack_endpoint],
1663
- endpoint: endpoint,
1664
- force_path_style: context.config.force_path_style,
1665
767
  accelerate: context[:use_accelerate_endpoint],
1666
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1667
- use_object_lambda_endpoint: nil,
1668
- key: nil,
1669
768
  prefix: context.params[:prefix],
1670
- disable_access_points: nil,
1671
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1672
- use_arn_region: context.config.s3_use_arn_region,
1673
- use_s3_express_control_endpoint: nil,
1674
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1675
769
  )
1676
770
  end
1677
771
  end
1678
772
 
1679
773
  class ListObjects
1680
774
  def self.build(context)
1681
- unless context.config.regional_endpoint
1682
- endpoint = context.config.endpoint.to_s
1683
- end
1684
- Aws::S3::EndpointParameters.new(
775
+ Aws::S3::EndpointParameters.create(
776
+ context.config,
1685
777
  bucket: context.params[:bucket],
1686
- region: context.config.region,
1687
- use_fips: context.config.use_fips_endpoint,
1688
778
  use_dual_stack: context[:use_dualstack_endpoint],
1689
- endpoint: endpoint,
1690
- force_path_style: context.config.force_path_style,
1691
779
  accelerate: context[:use_accelerate_endpoint],
1692
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1693
- use_object_lambda_endpoint: nil,
1694
- key: nil,
1695
780
  prefix: context.params[:prefix],
1696
- disable_access_points: nil,
1697
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1698
- use_arn_region: context.config.s3_use_arn_region,
1699
- use_s3_express_control_endpoint: nil,
1700
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1701
781
  )
1702
782
  end
1703
783
  end
1704
784
 
1705
785
  class ListObjectsV2
1706
786
  def self.build(context)
1707
- unless context.config.regional_endpoint
1708
- endpoint = context.config.endpoint.to_s
1709
- end
1710
- Aws::S3::EndpointParameters.new(
787
+ Aws::S3::EndpointParameters.create(
788
+ context.config,
1711
789
  bucket: context.params[:bucket],
1712
- region: context.config.region,
1713
- use_fips: context.config.use_fips_endpoint,
1714
790
  use_dual_stack: context[:use_dualstack_endpoint],
1715
- endpoint: endpoint,
1716
- force_path_style: context.config.force_path_style,
1717
791
  accelerate: context[:use_accelerate_endpoint],
1718
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1719
- use_object_lambda_endpoint: nil,
1720
- key: nil,
1721
792
  prefix: context.params[:prefix],
1722
- disable_access_points: nil,
1723
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1724
- use_arn_region: context.config.s3_use_arn_region,
1725
- use_s3_express_control_endpoint: nil,
1726
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1727
793
  )
1728
794
  end
1729
795
  end
1730
796
 
1731
797
  class ListParts
1732
798
  def self.build(context)
1733
- unless context.config.regional_endpoint
1734
- endpoint = context.config.endpoint.to_s
1735
- end
1736
- Aws::S3::EndpointParameters.new(
799
+ Aws::S3::EndpointParameters.create(
800
+ context.config,
1737
801
  bucket: context.params[:bucket],
1738
- region: context.config.region,
1739
- use_fips: context.config.use_fips_endpoint,
1740
802
  use_dual_stack: context[:use_dualstack_endpoint],
1741
- endpoint: endpoint,
1742
- force_path_style: context.config.force_path_style,
1743
803
  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
804
  key: context.params[:key],
1747
- prefix: nil,
1748
- disable_access_points: nil,
1749
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1750
- use_arn_region: context.config.s3_use_arn_region,
1751
- use_s3_express_control_endpoint: nil,
1752
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1753
805
  )
1754
806
  end
1755
807
  end
1756
808
 
1757
809
  class PutBucketAccelerateConfiguration
1758
810
  def self.build(context)
1759
- unless context.config.regional_endpoint
1760
- endpoint = context.config.endpoint.to_s
1761
- end
1762
- Aws::S3::EndpointParameters.new(
811
+ Aws::S3::EndpointParameters.create(
812
+ context.config,
1763
813
  bucket: context.params[:bucket],
1764
- region: context.config.region,
1765
- use_fips: context.config.use_fips_endpoint,
1766
814
  use_dual_stack: context[:use_dualstack_endpoint],
1767
- endpoint: endpoint,
1768
- force_path_style: context.config.force_path_style,
1769
815
  accelerate: context[:use_accelerate_endpoint],
1770
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1771
- use_object_lambda_endpoint: nil,
1772
- key: nil,
1773
- prefix: nil,
1774
- disable_access_points: nil,
1775
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1776
- use_arn_region: context.config.s3_use_arn_region,
1777
816
  use_s3_express_control_endpoint: true,
1778
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1779
817
  )
1780
818
  end
1781
819
  end
1782
820
 
1783
821
  class PutBucketAcl
1784
822
  def self.build(context)
1785
- unless context.config.regional_endpoint
1786
- endpoint = context.config.endpoint.to_s
1787
- end
1788
- Aws::S3::EndpointParameters.new(
823
+ Aws::S3::EndpointParameters.create(
824
+ context.config,
1789
825
  bucket: context.params[:bucket],
1790
- region: context.config.region,
1791
- use_fips: context.config.use_fips_endpoint,
1792
826
  use_dual_stack: context[:use_dualstack_endpoint],
1793
- endpoint: endpoint,
1794
- force_path_style: context.config.force_path_style,
1795
827
  accelerate: context[:use_accelerate_endpoint],
1796
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1797
- use_object_lambda_endpoint: nil,
1798
- key: nil,
1799
- prefix: nil,
1800
- disable_access_points: nil,
1801
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1802
- use_arn_region: context.config.s3_use_arn_region,
1803
828
  use_s3_express_control_endpoint: true,
1804
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1805
829
  )
1806
830
  end
1807
831
  end
1808
832
 
1809
833
  class PutBucketAnalyticsConfiguration
1810
834
  def self.build(context)
1811
- unless context.config.regional_endpoint
1812
- endpoint = context.config.endpoint.to_s
1813
- end
1814
- Aws::S3::EndpointParameters.new(
835
+ Aws::S3::EndpointParameters.create(
836
+ context.config,
1815
837
  bucket: context.params[:bucket],
1816
- region: context.config.region,
1817
- use_fips: context.config.use_fips_endpoint,
1818
838
  use_dual_stack: context[:use_dualstack_endpoint],
1819
- endpoint: endpoint,
1820
- force_path_style: context.config.force_path_style,
1821
839
  accelerate: context[:use_accelerate_endpoint],
1822
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1823
- use_object_lambda_endpoint: nil,
1824
- key: nil,
1825
- prefix: nil,
1826
- disable_access_points: nil,
1827
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1828
- use_arn_region: context.config.s3_use_arn_region,
1829
840
  use_s3_express_control_endpoint: true,
1830
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1831
841
  )
1832
842
  end
1833
843
  end
1834
844
 
1835
845
  class PutBucketCors
1836
846
  def self.build(context)
1837
- unless context.config.regional_endpoint
1838
- endpoint = context.config.endpoint.to_s
1839
- end
1840
- Aws::S3::EndpointParameters.new(
847
+ Aws::S3::EndpointParameters.create(
848
+ context.config,
1841
849
  bucket: context.params[:bucket],
1842
- region: context.config.region,
1843
- use_fips: context.config.use_fips_endpoint,
1844
850
  use_dual_stack: context[:use_dualstack_endpoint],
1845
- endpoint: endpoint,
1846
- force_path_style: context.config.force_path_style,
1847
851
  accelerate: context[:use_accelerate_endpoint],
1848
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1849
- use_object_lambda_endpoint: nil,
1850
- key: nil,
1851
- prefix: nil,
1852
- disable_access_points: nil,
1853
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1854
- use_arn_region: context.config.s3_use_arn_region,
1855
852
  use_s3_express_control_endpoint: true,
1856
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1857
853
  )
1858
854
  end
1859
855
  end
1860
856
 
1861
857
  class PutBucketEncryption
1862
858
  def self.build(context)
1863
- unless context.config.regional_endpoint
1864
- endpoint = context.config.endpoint.to_s
1865
- end
1866
- Aws::S3::EndpointParameters.new(
859
+ Aws::S3::EndpointParameters.create(
860
+ context.config,
1867
861
  bucket: context.params[:bucket],
1868
- region: context.config.region,
1869
- use_fips: context.config.use_fips_endpoint,
1870
862
  use_dual_stack: context[:use_dualstack_endpoint],
1871
- endpoint: endpoint,
1872
- force_path_style: context.config.force_path_style,
1873
863
  accelerate: context[:use_accelerate_endpoint],
1874
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1875
- use_object_lambda_endpoint: nil,
1876
- key: nil,
1877
- prefix: 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
864
  use_s3_express_control_endpoint: true,
1882
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1883
865
  )
1884
866
  end
1885
867
  end
1886
868
 
1887
869
  class PutBucketIntelligentTieringConfiguration
1888
870
  def self.build(context)
1889
- unless context.config.regional_endpoint
1890
- endpoint = context.config.endpoint.to_s
1891
- end
1892
- Aws::S3::EndpointParameters.new(
871
+ Aws::S3::EndpointParameters.create(
872
+ context.config,
1893
873
  bucket: context.params[:bucket],
1894
- region: context.config.region,
1895
- use_fips: context.config.use_fips_endpoint,
1896
874
  use_dual_stack: context[:use_dualstack_endpoint],
1897
- endpoint: endpoint,
1898
- force_path_style: context.config.force_path_style,
1899
875
  accelerate: context[:use_accelerate_endpoint],
1900
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1901
- use_object_lambda_endpoint: nil,
1902
- key: nil,
1903
- prefix: nil,
1904
- disable_access_points: nil,
1905
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1906
- use_arn_region: context.config.s3_use_arn_region,
1907
876
  use_s3_express_control_endpoint: true,
1908
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1909
877
  )
1910
878
  end
1911
879
  end
1912
880
 
1913
881
  class PutBucketInventoryConfiguration
1914
882
  def self.build(context)
1915
- unless context.config.regional_endpoint
1916
- endpoint = context.config.endpoint.to_s
1917
- end
1918
- Aws::S3::EndpointParameters.new(
883
+ Aws::S3::EndpointParameters.create(
884
+ context.config,
1919
885
  bucket: context.params[:bucket],
1920
- region: context.config.region,
1921
- use_fips: context.config.use_fips_endpoint,
1922
886
  use_dual_stack: context[:use_dualstack_endpoint],
1923
- endpoint: endpoint,
1924
- force_path_style: context.config.force_path_style,
1925
887
  accelerate: context[:use_accelerate_endpoint],
1926
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1927
- use_object_lambda_endpoint: nil,
1928
- key: nil,
1929
- prefix: nil,
1930
- disable_access_points: nil,
1931
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1932
- use_arn_region: context.config.s3_use_arn_region,
1933
888
  use_s3_express_control_endpoint: true,
1934
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1935
889
  )
1936
890
  end
1937
891
  end
1938
892
 
1939
893
  class PutBucketLifecycle
1940
894
  def self.build(context)
1941
- unless context.config.regional_endpoint
1942
- endpoint = context.config.endpoint.to_s
1943
- end
1944
- Aws::S3::EndpointParameters.new(
895
+ Aws::S3::EndpointParameters.create(
896
+ context.config,
1945
897
  bucket: context.params[:bucket],
1946
- region: context.config.region,
1947
- use_fips: context.config.use_fips_endpoint,
1948
898
  use_dual_stack: context[:use_dualstack_endpoint],
1949
- endpoint: endpoint,
1950
- force_path_style: context.config.force_path_style,
1951
899
  accelerate: context[:use_accelerate_endpoint],
1952
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1953
- use_object_lambda_endpoint: nil,
1954
- key: nil,
1955
- prefix: nil,
1956
- disable_access_points: nil,
1957
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1958
- use_arn_region: context.config.s3_use_arn_region,
1959
900
  use_s3_express_control_endpoint: true,
1960
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1961
901
  )
1962
902
  end
1963
903
  end
1964
904
 
1965
905
  class PutBucketLifecycleConfiguration
1966
906
  def self.build(context)
1967
- unless context.config.regional_endpoint
1968
- endpoint = context.config.endpoint.to_s
1969
- end
1970
- Aws::S3::EndpointParameters.new(
907
+ Aws::S3::EndpointParameters.create(
908
+ context.config,
1971
909
  bucket: context.params[:bucket],
1972
- region: context.config.region,
1973
- use_fips: context.config.use_fips_endpoint,
1974
910
  use_dual_stack: context[:use_dualstack_endpoint],
1975
- endpoint: endpoint,
1976
- force_path_style: context.config.force_path_style,
1977
911
  accelerate: context[:use_accelerate_endpoint],
1978
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1979
- use_object_lambda_endpoint: nil,
1980
- key: nil,
1981
- prefix: nil,
1982
- disable_access_points: nil,
1983
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
1984
- use_arn_region: context.config.s3_use_arn_region,
1985
912
  use_s3_express_control_endpoint: true,
1986
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1987
913
  )
1988
914
  end
1989
915
  end
1990
916
 
1991
917
  class PutBucketLogging
1992
918
  def self.build(context)
1993
- unless context.config.regional_endpoint
1994
- endpoint = context.config.endpoint.to_s
1995
- end
1996
- Aws::S3::EndpointParameters.new(
919
+ Aws::S3::EndpointParameters.create(
920
+ context.config,
1997
921
  bucket: context.params[:bucket],
1998
- region: context.config.region,
1999
- use_fips: context.config.use_fips_endpoint,
2000
922
  use_dual_stack: context[:use_dualstack_endpoint],
2001
- endpoint: endpoint,
2002
- force_path_style: context.config.force_path_style,
2003
923
  accelerate: context[:use_accelerate_endpoint],
2004
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2005
- use_object_lambda_endpoint: nil,
2006
- key: nil,
2007
- prefix: nil,
2008
- disable_access_points: nil,
2009
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2010
- use_arn_region: context.config.s3_use_arn_region,
2011
924
  use_s3_express_control_endpoint: true,
2012
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2013
925
  )
2014
926
  end
2015
927
  end
2016
928
 
2017
929
  class PutBucketMetricsConfiguration
2018
930
  def self.build(context)
2019
- unless context.config.regional_endpoint
2020
- endpoint = context.config.endpoint.to_s
2021
- end
2022
- Aws::S3::EndpointParameters.new(
931
+ Aws::S3::EndpointParameters.create(
932
+ context.config,
2023
933
  bucket: context.params[:bucket],
2024
- region: context.config.region,
2025
- use_fips: context.config.use_fips_endpoint,
2026
934
  use_dual_stack: context[:use_dualstack_endpoint],
2027
- endpoint: endpoint,
2028
- force_path_style: context.config.force_path_style,
2029
935
  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
- key: nil,
2033
- prefix: nil,
2034
- disable_access_points: nil,
2035
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2036
- use_arn_region: context.config.s3_use_arn_region,
2037
936
  use_s3_express_control_endpoint: true,
2038
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2039
937
  )
2040
938
  end
2041
939
  end
2042
940
 
2043
941
  class PutBucketNotification
2044
942
  def self.build(context)
2045
- unless context.config.regional_endpoint
2046
- endpoint = context.config.endpoint.to_s
2047
- end
2048
- Aws::S3::EndpointParameters.new(
943
+ Aws::S3::EndpointParameters.create(
944
+ context.config,
2049
945
  bucket: context.params[:bucket],
2050
- region: context.config.region,
2051
- use_fips: context.config.use_fips_endpoint,
2052
946
  use_dual_stack: context[:use_dualstack_endpoint],
2053
- endpoint: endpoint,
2054
- force_path_style: context.config.force_path_style,
2055
947
  accelerate: context[:use_accelerate_endpoint],
2056
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2057
- use_object_lambda_endpoint: nil,
2058
- key: nil,
2059
- prefix: nil,
2060
- disable_access_points: nil,
2061
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2062
- use_arn_region: context.config.s3_use_arn_region,
2063
948
  use_s3_express_control_endpoint: true,
2064
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2065
949
  )
2066
950
  end
2067
951
  end
2068
952
 
2069
953
  class PutBucketNotificationConfiguration
2070
954
  def self.build(context)
2071
- unless context.config.regional_endpoint
2072
- endpoint = context.config.endpoint.to_s
2073
- end
2074
- Aws::S3::EndpointParameters.new(
955
+ Aws::S3::EndpointParameters.create(
956
+ context.config,
2075
957
  bucket: context.params[:bucket],
2076
- region: context.config.region,
2077
- use_fips: context.config.use_fips_endpoint,
2078
958
  use_dual_stack: context[:use_dualstack_endpoint],
2079
- endpoint: endpoint,
2080
- force_path_style: context.config.force_path_style,
2081
959
  accelerate: context[:use_accelerate_endpoint],
2082
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2083
- use_object_lambda_endpoint: nil,
2084
- key: nil,
2085
- prefix: nil,
2086
- disable_access_points: nil,
2087
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2088
- use_arn_region: context.config.s3_use_arn_region,
2089
960
  use_s3_express_control_endpoint: true,
2090
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2091
961
  )
2092
962
  end
2093
963
  end
2094
964
 
2095
965
  class PutBucketOwnershipControls
2096
966
  def self.build(context)
2097
- unless context.config.regional_endpoint
2098
- endpoint = context.config.endpoint.to_s
2099
- end
2100
- Aws::S3::EndpointParameters.new(
967
+ Aws::S3::EndpointParameters.create(
968
+ context.config,
2101
969
  bucket: context.params[:bucket],
2102
- region: context.config.region,
2103
- use_fips: context.config.use_fips_endpoint,
2104
970
  use_dual_stack: context[:use_dualstack_endpoint],
2105
- endpoint: endpoint,
2106
- force_path_style: context.config.force_path_style,
2107
971
  accelerate: context[:use_accelerate_endpoint],
2108
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2109
- use_object_lambda_endpoint: nil,
2110
- key: nil,
2111
- prefix: nil,
2112
- disable_access_points: nil,
2113
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2114
- use_arn_region: context.config.s3_use_arn_region,
2115
972
  use_s3_express_control_endpoint: true,
2116
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2117
973
  )
2118
974
  end
2119
975
  end
2120
976
 
2121
977
  class PutBucketPolicy
2122
978
  def self.build(context)
2123
- unless context.config.regional_endpoint
2124
- endpoint = context.config.endpoint.to_s
2125
- end
2126
- Aws::S3::EndpointParameters.new(
979
+ Aws::S3::EndpointParameters.create(
980
+ context.config,
2127
981
  bucket: context.params[:bucket],
2128
- region: context.config.region,
2129
- use_fips: context.config.use_fips_endpoint,
2130
982
  use_dual_stack: context[:use_dualstack_endpoint],
2131
- endpoint: endpoint,
2132
- force_path_style: context.config.force_path_style,
2133
983
  accelerate: context[:use_accelerate_endpoint],
2134
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2135
- use_object_lambda_endpoint: nil,
2136
- key: nil,
2137
- prefix: nil,
2138
- disable_access_points: nil,
2139
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2140
- use_arn_region: context.config.s3_use_arn_region,
2141
984
  use_s3_express_control_endpoint: true,
2142
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2143
985
  )
2144
986
  end
2145
987
  end
2146
988
 
2147
989
  class PutBucketReplication
2148
990
  def self.build(context)
2149
- unless context.config.regional_endpoint
2150
- endpoint = context.config.endpoint.to_s
2151
- end
2152
- Aws::S3::EndpointParameters.new(
991
+ Aws::S3::EndpointParameters.create(
992
+ context.config,
2153
993
  bucket: context.params[:bucket],
2154
- region: context.config.region,
2155
- use_fips: context.config.use_fips_endpoint,
2156
994
  use_dual_stack: context[:use_dualstack_endpoint],
2157
- endpoint: endpoint,
2158
- force_path_style: context.config.force_path_style,
2159
995
  accelerate: context[:use_accelerate_endpoint],
2160
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2161
- use_object_lambda_endpoint: nil,
2162
- key: nil,
2163
- prefix: nil,
2164
- disable_access_points: nil,
2165
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2166
- use_arn_region: context.config.s3_use_arn_region,
2167
996
  use_s3_express_control_endpoint: true,
2168
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2169
997
  )
2170
998
  end
2171
999
  end
2172
1000
 
2173
1001
  class PutBucketRequestPayment
2174
1002
  def self.build(context)
2175
- unless context.config.regional_endpoint
2176
- endpoint = context.config.endpoint.to_s
2177
- end
2178
- Aws::S3::EndpointParameters.new(
1003
+ Aws::S3::EndpointParameters.create(
1004
+ context.config,
2179
1005
  bucket: context.params[:bucket],
2180
- region: context.config.region,
2181
- use_fips: context.config.use_fips_endpoint,
2182
1006
  use_dual_stack: context[:use_dualstack_endpoint],
2183
- endpoint: endpoint,
2184
- force_path_style: context.config.force_path_style,
2185
1007
  accelerate: context[:use_accelerate_endpoint],
2186
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2187
- use_object_lambda_endpoint: nil,
2188
- key: nil,
2189
- prefix: nil,
2190
- disable_access_points: nil,
2191
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2192
- use_arn_region: context.config.s3_use_arn_region,
2193
1008
  use_s3_express_control_endpoint: true,
2194
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2195
1009
  )
2196
1010
  end
2197
1011
  end
2198
1012
 
2199
1013
  class PutBucketTagging
2200
1014
  def self.build(context)
2201
- unless context.config.regional_endpoint
2202
- endpoint = context.config.endpoint.to_s
2203
- end
2204
- Aws::S3::EndpointParameters.new(
1015
+ Aws::S3::EndpointParameters.create(
1016
+ context.config,
2205
1017
  bucket: context.params[:bucket],
2206
- region: context.config.region,
2207
- use_fips: context.config.use_fips_endpoint,
2208
1018
  use_dual_stack: context[:use_dualstack_endpoint],
2209
- endpoint: endpoint,
2210
- force_path_style: context.config.force_path_style,
2211
1019
  accelerate: context[:use_accelerate_endpoint],
2212
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2213
- use_object_lambda_endpoint: nil,
2214
- key: nil,
2215
- prefix: nil,
2216
- disable_access_points: nil,
2217
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2218
- use_arn_region: context.config.s3_use_arn_region,
2219
1020
  use_s3_express_control_endpoint: true,
2220
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2221
1021
  )
2222
1022
  end
2223
1023
  end
2224
1024
 
2225
1025
  class PutBucketVersioning
2226
1026
  def self.build(context)
2227
- unless context.config.regional_endpoint
2228
- endpoint = context.config.endpoint.to_s
2229
- end
2230
- Aws::S3::EndpointParameters.new(
1027
+ Aws::S3::EndpointParameters.create(
1028
+ context.config,
2231
1029
  bucket: context.params[:bucket],
2232
- region: context.config.region,
2233
- use_fips: context.config.use_fips_endpoint,
2234
1030
  use_dual_stack: context[:use_dualstack_endpoint],
2235
- endpoint: endpoint,
2236
- force_path_style: context.config.force_path_style,
2237
1031
  accelerate: context[:use_accelerate_endpoint],
2238
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2239
- use_object_lambda_endpoint: nil,
2240
- key: nil,
2241
- prefix: nil,
2242
- disable_access_points: nil,
2243
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2244
- use_arn_region: context.config.s3_use_arn_region,
2245
1032
  use_s3_express_control_endpoint: true,
2246
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2247
1033
  )
2248
1034
  end
2249
1035
  end
2250
1036
 
2251
1037
  class PutBucketWebsite
2252
1038
  def self.build(context)
2253
- unless context.config.regional_endpoint
2254
- endpoint = context.config.endpoint.to_s
2255
- end
2256
- Aws::S3::EndpointParameters.new(
1039
+ Aws::S3::EndpointParameters.create(
1040
+ context.config,
2257
1041
  bucket: context.params[:bucket],
2258
- region: context.config.region,
2259
- use_fips: context.config.use_fips_endpoint,
2260
1042
  use_dual_stack: context[:use_dualstack_endpoint],
2261
- endpoint: endpoint,
2262
- force_path_style: context.config.force_path_style,
2263
1043
  accelerate: context[:use_accelerate_endpoint],
2264
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2265
- use_object_lambda_endpoint: nil,
2266
- key: nil,
2267
- prefix: nil,
2268
- disable_access_points: nil,
2269
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2270
- use_arn_region: context.config.s3_use_arn_region,
2271
1044
  use_s3_express_control_endpoint: true,
2272
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2273
1045
  )
2274
1046
  end
2275
1047
  end
2276
1048
 
2277
1049
  class PutObject
2278
1050
  def self.build(context)
2279
- unless context.config.regional_endpoint
2280
- endpoint = context.config.endpoint.to_s
2281
- end
2282
- Aws::S3::EndpointParameters.new(
1051
+ Aws::S3::EndpointParameters.create(
1052
+ context.config,
2283
1053
  bucket: context.params[:bucket],
2284
- region: context.config.region,
2285
- use_fips: context.config.use_fips_endpoint,
2286
1054
  use_dual_stack: context[:use_dualstack_endpoint],
2287
- endpoint: endpoint,
2288
- force_path_style: context.config.force_path_style,
2289
1055
  accelerate: context[:use_accelerate_endpoint],
2290
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2291
- use_object_lambda_endpoint: nil,
2292
1056
  key: context.params[:key],
2293
- prefix: nil,
2294
- disable_access_points: nil,
2295
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2296
- use_arn_region: context.config.s3_use_arn_region,
2297
- use_s3_express_control_endpoint: nil,
2298
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2299
1057
  )
2300
1058
  end
2301
1059
  end
2302
1060
 
2303
1061
  class PutObjectAcl
2304
1062
  def self.build(context)
2305
- unless context.config.regional_endpoint
2306
- endpoint = context.config.endpoint.to_s
2307
- end
2308
- Aws::S3::EndpointParameters.new(
1063
+ Aws::S3::EndpointParameters.create(
1064
+ context.config,
2309
1065
  bucket: context.params[:bucket],
2310
- region: context.config.region,
2311
- use_fips: context.config.use_fips_endpoint,
2312
1066
  use_dual_stack: context[:use_dualstack_endpoint],
2313
- endpoint: endpoint,
2314
- force_path_style: context.config.force_path_style,
2315
1067
  accelerate: context[:use_accelerate_endpoint],
2316
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2317
- use_object_lambda_endpoint: nil,
2318
1068
  key: context.params[:key],
2319
- prefix: nil,
2320
- disable_access_points: nil,
2321
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2322
- use_arn_region: context.config.s3_use_arn_region,
2323
- use_s3_express_control_endpoint: nil,
2324
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2325
1069
  )
2326
1070
  end
2327
1071
  end
2328
1072
 
2329
1073
  class PutObjectLegalHold
2330
1074
  def self.build(context)
2331
- unless context.config.regional_endpoint
2332
- endpoint = context.config.endpoint.to_s
2333
- end
2334
- Aws::S3::EndpointParameters.new(
1075
+ Aws::S3::EndpointParameters.create(
1076
+ context.config,
2335
1077
  bucket: context.params[:bucket],
2336
- region: context.config.region,
2337
- use_fips: context.config.use_fips_endpoint,
2338
1078
  use_dual_stack: context[:use_dualstack_endpoint],
2339
- endpoint: endpoint,
2340
- force_path_style: context.config.force_path_style,
2341
1079
  accelerate: context[:use_accelerate_endpoint],
2342
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2343
- use_object_lambda_endpoint: nil,
2344
- key: nil,
2345
- prefix: nil,
2346
- disable_access_points: nil,
2347
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2348
- use_arn_region: context.config.s3_use_arn_region,
2349
- use_s3_express_control_endpoint: nil,
2350
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2351
1080
  )
2352
1081
  end
2353
1082
  end
2354
1083
 
2355
1084
  class PutObjectLockConfiguration
2356
1085
  def self.build(context)
2357
- unless context.config.regional_endpoint
2358
- endpoint = context.config.endpoint.to_s
2359
- end
2360
- Aws::S3::EndpointParameters.new(
1086
+ Aws::S3::EndpointParameters.create(
1087
+ context.config,
2361
1088
  bucket: context.params[:bucket],
2362
- region: context.config.region,
2363
- use_fips: context.config.use_fips_endpoint,
2364
1089
  use_dual_stack: context[:use_dualstack_endpoint],
2365
- endpoint: endpoint,
2366
- force_path_style: context.config.force_path_style,
2367
1090
  accelerate: context[:use_accelerate_endpoint],
2368
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2369
- use_object_lambda_endpoint: nil,
2370
- key: nil,
2371
- prefix: nil,
2372
- disable_access_points: nil,
2373
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2374
- use_arn_region: context.config.s3_use_arn_region,
2375
- use_s3_express_control_endpoint: nil,
2376
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2377
1091
  )
2378
1092
  end
2379
1093
  end
2380
1094
 
2381
1095
  class PutObjectRetention
2382
1096
  def self.build(context)
2383
- unless context.config.regional_endpoint
2384
- endpoint = context.config.endpoint.to_s
2385
- end
2386
- Aws::S3::EndpointParameters.new(
1097
+ Aws::S3::EndpointParameters.create(
1098
+ context.config,
2387
1099
  bucket: context.params[:bucket],
2388
- region: context.config.region,
2389
- use_fips: context.config.use_fips_endpoint,
2390
1100
  use_dual_stack: context[:use_dualstack_endpoint],
2391
- endpoint: endpoint,
2392
- force_path_style: context.config.force_path_style,
2393
1101
  accelerate: context[:use_accelerate_endpoint],
2394
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2395
- use_object_lambda_endpoint: nil,
2396
- key: nil,
2397
- prefix: nil,
2398
- disable_access_points: nil,
2399
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2400
- use_arn_region: context.config.s3_use_arn_region,
2401
- use_s3_express_control_endpoint: nil,
2402
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2403
1102
  )
2404
1103
  end
2405
1104
  end
2406
1105
 
2407
1106
  class PutObjectTagging
2408
1107
  def self.build(context)
2409
- unless context.config.regional_endpoint
2410
- endpoint = context.config.endpoint.to_s
2411
- end
2412
- Aws::S3::EndpointParameters.new(
1108
+ Aws::S3::EndpointParameters.create(
1109
+ context.config,
2413
1110
  bucket: context.params[:bucket],
2414
- region: context.config.region,
2415
- use_fips: context.config.use_fips_endpoint,
2416
1111
  use_dual_stack: context[:use_dualstack_endpoint],
2417
- endpoint: endpoint,
2418
- force_path_style: context.config.force_path_style,
2419
1112
  accelerate: context[:use_accelerate_endpoint],
2420
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2421
- use_object_lambda_endpoint: nil,
2422
- key: nil,
2423
- prefix: nil,
2424
- disable_access_points: nil,
2425
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2426
- use_arn_region: context.config.s3_use_arn_region,
2427
- use_s3_express_control_endpoint: nil,
2428
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2429
1113
  )
2430
1114
  end
2431
1115
  end
2432
1116
 
2433
1117
  class PutPublicAccessBlock
2434
1118
  def self.build(context)
2435
- unless context.config.regional_endpoint
2436
- endpoint = context.config.endpoint.to_s
2437
- end
2438
- Aws::S3::EndpointParameters.new(
1119
+ Aws::S3::EndpointParameters.create(
1120
+ context.config,
2439
1121
  bucket: context.params[:bucket],
2440
- region: context.config.region,
2441
- use_fips: context.config.use_fips_endpoint,
2442
1122
  use_dual_stack: context[:use_dualstack_endpoint],
2443
- endpoint: endpoint,
2444
- force_path_style: context.config.force_path_style,
2445
1123
  accelerate: context[:use_accelerate_endpoint],
2446
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2447
- use_object_lambda_endpoint: nil,
2448
- key: nil,
2449
- prefix: nil,
2450
- disable_access_points: nil,
2451
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2452
- use_arn_region: context.config.s3_use_arn_region,
2453
1124
  use_s3_express_control_endpoint: true,
2454
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2455
1125
  )
2456
1126
  end
2457
1127
  end
2458
1128
 
2459
1129
  class RestoreObject
2460
1130
  def self.build(context)
2461
- unless context.config.regional_endpoint
2462
- endpoint = context.config.endpoint.to_s
2463
- end
2464
- Aws::S3::EndpointParameters.new(
1131
+ Aws::S3::EndpointParameters.create(
1132
+ context.config,
2465
1133
  bucket: context.params[:bucket],
2466
- region: context.config.region,
2467
- use_fips: context.config.use_fips_endpoint,
2468
1134
  use_dual_stack: context[:use_dualstack_endpoint],
2469
- endpoint: endpoint,
2470
- force_path_style: context.config.force_path_style,
2471
1135
  accelerate: context[:use_accelerate_endpoint],
2472
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2473
- use_object_lambda_endpoint: nil,
2474
- key: nil,
2475
- prefix: nil,
2476
- disable_access_points: nil,
2477
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2478
- use_arn_region: context.config.s3_use_arn_region,
2479
- use_s3_express_control_endpoint: nil,
2480
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2481
1136
  )
2482
1137
  end
2483
1138
  end
2484
1139
 
2485
1140
  class SelectObjectContent
2486
1141
  def self.build(context)
2487
- unless context.config.regional_endpoint
2488
- endpoint = context.config.endpoint.to_s
2489
- end
2490
- Aws::S3::EndpointParameters.new(
1142
+ Aws::S3::EndpointParameters.create(
1143
+ context.config,
2491
1144
  bucket: context.params[:bucket],
2492
- region: context.config.region,
2493
- use_fips: context.config.use_fips_endpoint,
2494
1145
  use_dual_stack: context[:use_dualstack_endpoint],
2495
- endpoint: endpoint,
2496
- force_path_style: context.config.force_path_style,
2497
1146
  accelerate: context[:use_accelerate_endpoint],
2498
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2499
- use_object_lambda_endpoint: nil,
2500
- key: nil,
2501
- prefix: nil,
2502
- disable_access_points: nil,
2503
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2504
- use_arn_region: context.config.s3_use_arn_region,
2505
- use_s3_express_control_endpoint: nil,
2506
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2507
1147
  )
2508
1148
  end
2509
1149
  end
2510
1150
 
2511
1151
  class UploadPart
2512
1152
  def self.build(context)
2513
- unless context.config.regional_endpoint
2514
- endpoint = context.config.endpoint.to_s
2515
- end
2516
- Aws::S3::EndpointParameters.new(
1153
+ Aws::S3::EndpointParameters.create(
1154
+ context.config,
2517
1155
  bucket: context.params[:bucket],
2518
- region: context.config.region,
2519
- use_fips: context.config.use_fips_endpoint,
2520
1156
  use_dual_stack: context[:use_dualstack_endpoint],
2521
- endpoint: endpoint,
2522
- force_path_style: context.config.force_path_style,
2523
1157
  accelerate: context[:use_accelerate_endpoint],
2524
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2525
- use_object_lambda_endpoint: nil,
2526
1158
  key: context.params[:key],
2527
- prefix: nil,
2528
- disable_access_points: nil,
2529
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2530
- use_arn_region: context.config.s3_use_arn_region,
2531
- use_s3_express_control_endpoint: nil,
2532
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2533
1159
  )
2534
1160
  end
2535
1161
  end
2536
1162
 
2537
1163
  class UploadPartCopy
2538
1164
  def self.build(context)
2539
- unless context.config.regional_endpoint
2540
- endpoint = context.config.endpoint.to_s
2541
- end
2542
- Aws::S3::EndpointParameters.new(
2543
- bucket: context.params[:bucket],
2544
- region: context.config.region,
2545
- use_fips: context.config.use_fips_endpoint,
2546
- use_dual_stack: context[:use_dualstack_endpoint],
2547
- endpoint: endpoint,
2548
- force_path_style: context.config.force_path_style,
2549
- accelerate: context[:use_accelerate_endpoint],
2550
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2551
- use_object_lambda_endpoint: nil,
2552
- key: nil,
2553
- prefix: nil,
2554
- disable_access_points: nil,
2555
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2556
- use_arn_region: context.config.s3_use_arn_region,
2557
- use_s3_express_control_endpoint: nil,
1165
+ Aws::S3::EndpointParameters.create(
1166
+ context.config,
1167
+ bucket: context.params[:bucket],
1168
+ use_dual_stack: context[:use_dualstack_endpoint],
1169
+ accelerate: context[:use_accelerate_endpoint],
2558
1170
  disable_s3_express_session_auth: true,
2559
1171
  )
2560
1172
  end
@@ -2562,29 +1174,219 @@ module Aws::S3
2562
1174
 
2563
1175
  class WriteGetObjectResponse
2564
1176
  def self.build(context)
2565
- unless context.config.regional_endpoint
2566
- endpoint = context.config.endpoint.to_s
2567
- end
2568
- Aws::S3::EndpointParameters.new(
2569
- bucket: nil,
2570
- region: context.config.region,
2571
- use_fips: context.config.use_fips_endpoint,
1177
+ Aws::S3::EndpointParameters.create(
1178
+ context.config,
2572
1179
  use_dual_stack: context[:use_dualstack_endpoint],
2573
- endpoint: endpoint,
2574
- force_path_style: context.config.force_path_style,
2575
1180
  accelerate: context[:use_accelerate_endpoint],
2576
- use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2577
1181
  use_object_lambda_endpoint: true,
2578
- key: nil,
2579
- prefix: nil,
2580
- disable_access_points: nil,
2581
- disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
2582
- use_arn_region: context.config.s3_use_arn_region,
2583
- use_s3_express_control_endpoint: nil,
2584
- disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2585
1182
  )
2586
1183
  end
2587
1184
  end
2588
1185
 
1186
+
1187
+ def self.parameters_for_operation(context)
1188
+ case context.operation_name
1189
+ when :abort_multipart_upload
1190
+ AbortMultipartUpload.build(context)
1191
+ when :complete_multipart_upload
1192
+ CompleteMultipartUpload.build(context)
1193
+ when :copy_object
1194
+ CopyObject.build(context)
1195
+ when :create_bucket
1196
+ CreateBucket.build(context)
1197
+ when :create_multipart_upload
1198
+ CreateMultipartUpload.build(context)
1199
+ when :create_session
1200
+ CreateSession.build(context)
1201
+ when :delete_bucket
1202
+ DeleteBucket.build(context)
1203
+ when :delete_bucket_analytics_configuration
1204
+ DeleteBucketAnalyticsConfiguration.build(context)
1205
+ when :delete_bucket_cors
1206
+ DeleteBucketCors.build(context)
1207
+ when :delete_bucket_encryption
1208
+ DeleteBucketEncryption.build(context)
1209
+ when :delete_bucket_intelligent_tiering_configuration
1210
+ DeleteBucketIntelligentTieringConfiguration.build(context)
1211
+ when :delete_bucket_inventory_configuration
1212
+ DeleteBucketInventoryConfiguration.build(context)
1213
+ when :delete_bucket_lifecycle
1214
+ DeleteBucketLifecycle.build(context)
1215
+ when :delete_bucket_metrics_configuration
1216
+ DeleteBucketMetricsConfiguration.build(context)
1217
+ when :delete_bucket_ownership_controls
1218
+ DeleteBucketOwnershipControls.build(context)
1219
+ when :delete_bucket_policy
1220
+ DeleteBucketPolicy.build(context)
1221
+ when :delete_bucket_replication
1222
+ DeleteBucketReplication.build(context)
1223
+ when :delete_bucket_tagging
1224
+ DeleteBucketTagging.build(context)
1225
+ when :delete_bucket_website
1226
+ DeleteBucketWebsite.build(context)
1227
+ when :delete_object
1228
+ DeleteObject.build(context)
1229
+ when :delete_object_tagging
1230
+ DeleteObjectTagging.build(context)
1231
+ when :delete_objects
1232
+ DeleteObjects.build(context)
1233
+ when :delete_public_access_block
1234
+ DeletePublicAccessBlock.build(context)
1235
+ when :get_bucket_accelerate_configuration
1236
+ GetBucketAccelerateConfiguration.build(context)
1237
+ when :get_bucket_acl
1238
+ GetBucketAcl.build(context)
1239
+ when :get_bucket_analytics_configuration
1240
+ GetBucketAnalyticsConfiguration.build(context)
1241
+ when :get_bucket_cors
1242
+ GetBucketCors.build(context)
1243
+ when :get_bucket_encryption
1244
+ GetBucketEncryption.build(context)
1245
+ when :get_bucket_intelligent_tiering_configuration
1246
+ GetBucketIntelligentTieringConfiguration.build(context)
1247
+ when :get_bucket_inventory_configuration
1248
+ GetBucketInventoryConfiguration.build(context)
1249
+ when :get_bucket_lifecycle
1250
+ GetBucketLifecycle.build(context)
1251
+ when :get_bucket_lifecycle_configuration
1252
+ GetBucketLifecycleConfiguration.build(context)
1253
+ when :get_bucket_location
1254
+ GetBucketLocation.build(context)
1255
+ when :get_bucket_logging
1256
+ GetBucketLogging.build(context)
1257
+ when :get_bucket_metrics_configuration
1258
+ GetBucketMetricsConfiguration.build(context)
1259
+ when :get_bucket_notification
1260
+ GetBucketNotification.build(context)
1261
+ when :get_bucket_notification_configuration
1262
+ GetBucketNotificationConfiguration.build(context)
1263
+ when :get_bucket_ownership_controls
1264
+ GetBucketOwnershipControls.build(context)
1265
+ when :get_bucket_policy
1266
+ GetBucketPolicy.build(context)
1267
+ when :get_bucket_policy_status
1268
+ GetBucketPolicyStatus.build(context)
1269
+ when :get_bucket_replication
1270
+ GetBucketReplication.build(context)
1271
+ when :get_bucket_request_payment
1272
+ GetBucketRequestPayment.build(context)
1273
+ when :get_bucket_tagging
1274
+ GetBucketTagging.build(context)
1275
+ when :get_bucket_versioning
1276
+ GetBucketVersioning.build(context)
1277
+ when :get_bucket_website
1278
+ GetBucketWebsite.build(context)
1279
+ when :get_object
1280
+ GetObject.build(context)
1281
+ when :get_object_acl
1282
+ GetObjectAcl.build(context)
1283
+ when :get_object_attributes
1284
+ GetObjectAttributes.build(context)
1285
+ when :get_object_legal_hold
1286
+ GetObjectLegalHold.build(context)
1287
+ when :get_object_lock_configuration
1288
+ GetObjectLockConfiguration.build(context)
1289
+ when :get_object_retention
1290
+ GetObjectRetention.build(context)
1291
+ when :get_object_tagging
1292
+ GetObjectTagging.build(context)
1293
+ when :get_object_torrent
1294
+ GetObjectTorrent.build(context)
1295
+ when :get_public_access_block
1296
+ GetPublicAccessBlock.build(context)
1297
+ when :head_bucket
1298
+ HeadBucket.build(context)
1299
+ when :head_object
1300
+ HeadObject.build(context)
1301
+ when :list_bucket_analytics_configurations
1302
+ ListBucketAnalyticsConfigurations.build(context)
1303
+ when :list_bucket_intelligent_tiering_configurations
1304
+ ListBucketIntelligentTieringConfigurations.build(context)
1305
+ when :list_bucket_inventory_configurations
1306
+ ListBucketInventoryConfigurations.build(context)
1307
+ when :list_bucket_metrics_configurations
1308
+ ListBucketMetricsConfigurations.build(context)
1309
+ when :list_buckets
1310
+ ListBuckets.build(context)
1311
+ when :list_directory_buckets
1312
+ ListDirectoryBuckets.build(context)
1313
+ when :list_multipart_uploads
1314
+ ListMultipartUploads.build(context)
1315
+ when :list_object_versions
1316
+ ListObjectVersions.build(context)
1317
+ when :list_objects
1318
+ ListObjects.build(context)
1319
+ when :list_objects_v2
1320
+ ListObjectsV2.build(context)
1321
+ when :list_parts
1322
+ ListParts.build(context)
1323
+ when :put_bucket_accelerate_configuration
1324
+ PutBucketAccelerateConfiguration.build(context)
1325
+ when :put_bucket_acl
1326
+ PutBucketAcl.build(context)
1327
+ when :put_bucket_analytics_configuration
1328
+ PutBucketAnalyticsConfiguration.build(context)
1329
+ when :put_bucket_cors
1330
+ PutBucketCors.build(context)
1331
+ when :put_bucket_encryption
1332
+ PutBucketEncryption.build(context)
1333
+ when :put_bucket_intelligent_tiering_configuration
1334
+ PutBucketIntelligentTieringConfiguration.build(context)
1335
+ when :put_bucket_inventory_configuration
1336
+ PutBucketInventoryConfiguration.build(context)
1337
+ when :put_bucket_lifecycle
1338
+ PutBucketLifecycle.build(context)
1339
+ when :put_bucket_lifecycle_configuration
1340
+ PutBucketLifecycleConfiguration.build(context)
1341
+ when :put_bucket_logging
1342
+ PutBucketLogging.build(context)
1343
+ when :put_bucket_metrics_configuration
1344
+ PutBucketMetricsConfiguration.build(context)
1345
+ when :put_bucket_notification
1346
+ PutBucketNotification.build(context)
1347
+ when :put_bucket_notification_configuration
1348
+ PutBucketNotificationConfiguration.build(context)
1349
+ when :put_bucket_ownership_controls
1350
+ PutBucketOwnershipControls.build(context)
1351
+ when :put_bucket_policy
1352
+ PutBucketPolicy.build(context)
1353
+ when :put_bucket_replication
1354
+ PutBucketReplication.build(context)
1355
+ when :put_bucket_request_payment
1356
+ PutBucketRequestPayment.build(context)
1357
+ when :put_bucket_tagging
1358
+ PutBucketTagging.build(context)
1359
+ when :put_bucket_versioning
1360
+ PutBucketVersioning.build(context)
1361
+ when :put_bucket_website
1362
+ PutBucketWebsite.build(context)
1363
+ when :put_object
1364
+ PutObject.build(context)
1365
+ when :put_object_acl
1366
+ PutObjectAcl.build(context)
1367
+ when :put_object_legal_hold
1368
+ PutObjectLegalHold.build(context)
1369
+ when :put_object_lock_configuration
1370
+ PutObjectLockConfiguration.build(context)
1371
+ when :put_object_retention
1372
+ PutObjectRetention.build(context)
1373
+ when :put_object_tagging
1374
+ PutObjectTagging.build(context)
1375
+ when :put_public_access_block
1376
+ PutPublicAccessBlock.build(context)
1377
+ when :restore_object
1378
+ RestoreObject.build(context)
1379
+ when :select_object_content
1380
+ SelectObjectContent.build(context)
1381
+ when :upload_part
1382
+ UploadPart.build(context)
1383
+ when :upload_part_copy
1384
+ UploadPartCopy.build(context)
1385
+ when :write_get_object_response
1386
+ WriteGetObjectResponse.build(context)
1387
+ else
1388
+ Aws::S3::EndpointParameters.create(context.config)
1389
+ end
1390
+ end
2589
1391
  end
2590
1392
  end