aws-sdk-s3 1.45.0 → 1.143.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +1106 -0
  3. data/LICENSE.txt +202 -0
  4. data/VERSION +1 -0
  5. data/lib/aws-sdk-s3/bucket.rb +784 -98
  6. data/lib/aws-sdk-s3/bucket_acl.rb +64 -18
  7. data/lib/aws-sdk-s3/bucket_cors.rb +79 -18
  8. data/lib/aws-sdk-s3/bucket_lifecycle.rb +66 -20
  9. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +68 -20
  10. data/lib/aws-sdk-s3/bucket_logging.rb +68 -16
  11. data/lib/aws-sdk-s3/bucket_notification.rb +52 -20
  12. data/lib/aws-sdk-s3/bucket_policy.rb +107 -17
  13. data/lib/aws-sdk-s3/bucket_region_cache.rb +2 -0
  14. data/lib/aws-sdk-s3/bucket_request_payment.rb +60 -15
  15. data/lib/aws-sdk-s3/bucket_tagging.rb +71 -18
  16. data/lib/aws-sdk-s3/bucket_versioning.rb +133 -17
  17. data/lib/aws-sdk-s3/bucket_website.rb +78 -21
  18. data/lib/aws-sdk-s3/client.rb +12610 -902
  19. data/lib/aws-sdk-s3/client_api.rb +1086 -191
  20. data/lib/aws-sdk-s3/customizations/bucket.rb +56 -37
  21. data/lib/aws-sdk-s3/customizations/errors.rb +27 -0
  22. data/lib/aws-sdk-s3/customizations/multipart_upload.rb +2 -0
  23. data/lib/aws-sdk-s3/customizations/object.rb +282 -68
  24. data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
  25. data/lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb +2 -0
  26. data/lib/aws-sdk-s3/customizations/types/permanent_redirect.rb +26 -0
  27. data/lib/aws-sdk-s3/customizations.rb +11 -1
  28. data/lib/aws-sdk-s3/encryption/client.rb +28 -7
  29. data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +71 -29
  30. data/lib/aws-sdk-s3/encryption/default_cipher_provider.rb +43 -5
  31. data/lib/aws-sdk-s3/encryption/default_key_provider.rb +2 -0
  32. data/lib/aws-sdk-s3/encryption/encrypt_handler.rb +13 -2
  33. data/lib/aws-sdk-s3/encryption/errors.rb +2 -0
  34. data/lib/aws-sdk-s3/encryption/io_auth_decrypter.rb +2 -0
  35. data/lib/aws-sdk-s3/encryption/io_decrypter.rb +11 -3
  36. data/lib/aws-sdk-s3/encryption/io_encrypter.rb +2 -0
  37. data/lib/aws-sdk-s3/encryption/key_provider.rb +2 -0
  38. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +46 -11
  39. data/lib/aws-sdk-s3/encryption/materials.rb +8 -6
  40. data/lib/aws-sdk-s3/encryption/utils.rb +25 -0
  41. data/lib/aws-sdk-s3/encryption.rb +4 -0
  42. data/lib/aws-sdk-s3/encryptionV2/client.rb +570 -0
  43. data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +223 -0
  44. data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +170 -0
  45. data/lib/aws-sdk-s3/encryptionV2/default_key_provider.rb +40 -0
  46. data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +65 -0
  47. data/lib/aws-sdk-s3/encryptionV2/errors.rb +37 -0
  48. data/lib/aws-sdk-s3/encryptionV2/io_auth_decrypter.rb +58 -0
  49. data/lib/aws-sdk-s3/encryptionV2/io_decrypter.rb +37 -0
  50. data/lib/aws-sdk-s3/encryptionV2/io_encrypter.rb +73 -0
  51. data/lib/aws-sdk-s3/encryptionV2/key_provider.rb +31 -0
  52. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +173 -0
  53. data/lib/aws-sdk-s3/encryptionV2/materials.rb +60 -0
  54. data/lib/aws-sdk-s3/encryptionV2/utils.rb +103 -0
  55. data/lib/aws-sdk-s3/encryption_v2.rb +23 -0
  56. data/lib/aws-sdk-s3/endpoint_parameters.rb +178 -0
  57. data/lib/aws-sdk-s3/endpoint_provider.rb +591 -0
  58. data/lib/aws-sdk-s3/endpoints.rb +2590 -0
  59. data/lib/aws-sdk-s3/errors.rb +123 -1
  60. data/lib/aws-sdk-s3/event_streams.rb +8 -1
  61. data/lib/aws-sdk-s3/express_credentials.rb +55 -0
  62. data/lib/aws-sdk-s3/express_credentials_cache.rb +30 -0
  63. data/lib/aws-sdk-s3/express_credentials_provider.rb +36 -0
  64. data/lib/aws-sdk-s3/file_downloader.rb +176 -44
  65. data/lib/aws-sdk-s3/file_part.rb +11 -6
  66. data/lib/aws-sdk-s3/file_uploader.rb +39 -18
  67. data/lib/aws-sdk-s3/legacy_signer.rb +17 -25
  68. data/lib/aws-sdk-s3/multipart_file_uploader.rb +78 -20
  69. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +56 -18
  70. data/lib/aws-sdk-s3/multipart_upload.rb +242 -32
  71. data/lib/aws-sdk-s3/multipart_upload_error.rb +2 -0
  72. data/lib/aws-sdk-s3/multipart_upload_part.rb +367 -45
  73. data/lib/aws-sdk-s3/object.rb +2191 -227
  74. data/lib/aws-sdk-s3/object_acl.rb +103 -25
  75. data/lib/aws-sdk-s3/object_copier.rb +9 -5
  76. data/lib/aws-sdk-s3/object_multipart_copier.rb +43 -19
  77. data/lib/aws-sdk-s3/object_summary.rb +1811 -208
  78. data/lib/aws-sdk-s3/object_version.rb +452 -80
  79. data/lib/aws-sdk-s3/plugins/accelerate.rb +17 -64
  80. data/lib/aws-sdk-s3/plugins/arn.rb +70 -0
  81. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +7 -43
  82. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +20 -3
  83. data/lib/aws-sdk-s3/plugins/dualstack.rb +7 -50
  84. data/lib/aws-sdk-s3/plugins/endpoints.rb +274 -0
  85. data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +5 -4
  86. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +91 -0
  87. data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +3 -1
  88. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +11 -3
  89. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +44 -0
  90. data/lib/aws-sdk-s3/plugins/location_constraint.rb +5 -1
  91. data/lib/aws-sdk-s3/plugins/md5s.rb +35 -30
  92. data/lib/aws-sdk-s3/plugins/redirects.rb +2 -0
  93. data/lib/aws-sdk-s3/plugins/s3_host_id.rb +2 -0
  94. data/lib/aws-sdk-s3/plugins/s3_signer.rb +56 -92
  95. data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
  96. data/lib/aws-sdk-s3/plugins/sse_cpk.rb +3 -1
  97. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +139 -0
  98. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -0
  99. data/lib/aws-sdk-s3/presigned_post.rb +160 -99
  100. data/lib/aws-sdk-s3/presigner.rb +171 -80
  101. data/lib/aws-sdk-s3/resource.rb +120 -8
  102. data/lib/aws-sdk-s3/types.rb +11353 -4225
  103. data/lib/aws-sdk-s3/waiters.rb +67 -1
  104. data/lib/aws-sdk-s3.rb +16 -6
  105. data/sig/bucket.rbs +212 -0
  106. data/sig/bucket_acl.rbs +78 -0
  107. data/sig/bucket_cors.rbs +69 -0
  108. data/sig/bucket_lifecycle.rbs +88 -0
  109. data/sig/bucket_lifecycle_configuration.rbs +111 -0
  110. data/sig/bucket_logging.rbs +76 -0
  111. data/sig/bucket_notification.rbs +114 -0
  112. data/sig/bucket_policy.rbs +59 -0
  113. data/sig/bucket_request_payment.rbs +54 -0
  114. data/sig/bucket_tagging.rbs +65 -0
  115. data/sig/bucket_versioning.rbs +77 -0
  116. data/sig/bucket_website.rbs +93 -0
  117. data/sig/client.rbs +2360 -0
  118. data/sig/errors.rbs +34 -0
  119. data/sig/multipart_upload.rbs +110 -0
  120. data/sig/multipart_upload_part.rbs +105 -0
  121. data/sig/object.rbs +436 -0
  122. data/sig/object_acl.rbs +86 -0
  123. data/sig/object_summary.rbs +334 -0
  124. data/sig/object_version.rbs +131 -0
  125. data/sig/resource.rbs +124 -0
  126. data/sig/types.rbs +2562 -0
  127. data/sig/waiters.rbs +83 -0
  128. metadata +68 -15
@@ -0,0 +1,2590 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::S3
12
+ # @api private
13
+ module Endpoints
14
+
15
+ class AbortMultipartUpload
16
+ def self.build(context)
17
+ unless context.config.regional_endpoint
18
+ endpoint = context.config.endpoint.to_s
19
+ end
20
+ Aws::S3::EndpointParameters.new(
21
+ bucket: context.params[:bucket],
22
+ region: context.config.region,
23
+ use_fips: context.config.use_fips_endpoint,
24
+ use_dual_stack: context[:use_dualstack_endpoint],
25
+ endpoint: endpoint,
26
+ force_path_style: context.config.force_path_style,
27
+ accelerate: context[:use_accelerate_endpoint],
28
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
29
+ use_object_lambda_endpoint: nil,
30
+ 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
+ )
38
+ end
39
+ end
40
+
41
+ class CompleteMultipartUpload
42
+ def self.build(context)
43
+ unless context.config.regional_endpoint
44
+ endpoint = context.config.endpoint.to_s
45
+ end
46
+ Aws::S3::EndpointParameters.new(
47
+ bucket: context.params[:bucket],
48
+ region: context.config.region,
49
+ use_fips: context.config.use_fips_endpoint,
50
+ use_dual_stack: context[:use_dualstack_endpoint],
51
+ endpoint: endpoint,
52
+ force_path_style: context.config.force_path_style,
53
+ 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
+ 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
+ )
64
+ end
65
+ end
66
+
67
+ class CopyObject
68
+ 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,
88
+ disable_s3_express_session_auth: true,
89
+ )
90
+ end
91
+ end
92
+
93
+ class CreateBucket
94
+ def self.build(context)
95
+ unless context.config.regional_endpoint
96
+ endpoint = context.config.endpoint.to_s
97
+ end
98
+ Aws::S3::EndpointParameters.new(
99
+ bucket: context.params[:bucket],
100
+ region: context.config.region,
101
+ use_fips: context.config.use_fips_endpoint,
102
+ use_dual_stack: context[:use_dualstack_endpoint],
103
+ endpoint: endpoint,
104
+ force_path_style: context.config.force_path_style,
105
+ 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
+ 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
+ use_s3_express_control_endpoint: true,
114
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
115
+ )
116
+ end
117
+ end
118
+
119
+ class CreateMultipartUpload
120
+ def self.build(context)
121
+ unless context.config.regional_endpoint
122
+ endpoint = context.config.endpoint.to_s
123
+ end
124
+ Aws::S3::EndpointParameters.new(
125
+ bucket: context.params[:bucket],
126
+ region: context.config.region,
127
+ use_fips: context.config.use_fips_endpoint,
128
+ use_dual_stack: context[:use_dualstack_endpoint],
129
+ endpoint: endpoint,
130
+ force_path_style: context.config.force_path_style,
131
+ 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
+ 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
+ )
142
+ end
143
+ end
144
+
145
+ class CreateSession
146
+ 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,
166
+ disable_s3_express_session_auth: true,
167
+ )
168
+ end
169
+ end
170
+
171
+ class DeleteBucket
172
+ def self.build(context)
173
+ unless context.config.regional_endpoint
174
+ endpoint = context.config.endpoint.to_s
175
+ end
176
+ Aws::S3::EndpointParameters.new(
177
+ bucket: context.params[:bucket],
178
+ region: context.config.region,
179
+ use_fips: context.config.use_fips_endpoint,
180
+ use_dual_stack: context[:use_dualstack_endpoint],
181
+ endpoint: endpoint,
182
+ force_path_style: context.config.force_path_style,
183
+ 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
+ use_s3_express_control_endpoint: true,
192
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
193
+ )
194
+ end
195
+ end
196
+
197
+ class DeleteBucketAnalyticsConfiguration
198
+ def self.build(context)
199
+ unless context.config.regional_endpoint
200
+ endpoint = context.config.endpoint.to_s
201
+ end
202
+ Aws::S3::EndpointParameters.new(
203
+ bucket: context.params[:bucket],
204
+ region: context.config.region,
205
+ use_fips: context.config.use_fips_endpoint,
206
+ use_dual_stack: context[:use_dualstack_endpoint],
207
+ endpoint: endpoint,
208
+ force_path_style: context.config.force_path_style,
209
+ 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
+ use_s3_express_control_endpoint: true,
218
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
219
+ )
220
+ end
221
+ end
222
+
223
+ class DeleteBucketCors
224
+ def self.build(context)
225
+ unless context.config.regional_endpoint
226
+ endpoint = context.config.endpoint.to_s
227
+ end
228
+ Aws::S3::EndpointParameters.new(
229
+ bucket: context.params[:bucket],
230
+ region: context.config.region,
231
+ use_fips: context.config.use_fips_endpoint,
232
+ use_dual_stack: context[:use_dualstack_endpoint],
233
+ endpoint: endpoint,
234
+ force_path_style: context.config.force_path_style,
235
+ 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
+ use_s3_express_control_endpoint: true,
244
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
245
+ )
246
+ end
247
+ end
248
+
249
+ class DeleteBucketEncryption
250
+ def self.build(context)
251
+ unless context.config.regional_endpoint
252
+ endpoint = context.config.endpoint.to_s
253
+ end
254
+ Aws::S3::EndpointParameters.new(
255
+ bucket: context.params[:bucket],
256
+ region: context.config.region,
257
+ use_fips: context.config.use_fips_endpoint,
258
+ use_dual_stack: context[:use_dualstack_endpoint],
259
+ endpoint: endpoint,
260
+ force_path_style: context.config.force_path_style,
261
+ 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
+ use_s3_express_control_endpoint: true,
270
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
271
+ )
272
+ end
273
+ end
274
+
275
+ class DeleteBucketIntelligentTieringConfiguration
276
+ def self.build(context)
277
+ unless context.config.regional_endpoint
278
+ endpoint = context.config.endpoint.to_s
279
+ end
280
+ Aws::S3::EndpointParameters.new(
281
+ bucket: context.params[:bucket],
282
+ region: context.config.region,
283
+ use_fips: context.config.use_fips_endpoint,
284
+ use_dual_stack: context[:use_dualstack_endpoint],
285
+ endpoint: endpoint,
286
+ force_path_style: context.config.force_path_style,
287
+ 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
+ use_s3_express_control_endpoint: true,
296
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
297
+ )
298
+ end
299
+ end
300
+
301
+ class DeleteBucketInventoryConfiguration
302
+ def self.build(context)
303
+ unless context.config.regional_endpoint
304
+ endpoint = context.config.endpoint.to_s
305
+ end
306
+ Aws::S3::EndpointParameters.new(
307
+ bucket: context.params[:bucket],
308
+ region: context.config.region,
309
+ use_fips: context.config.use_fips_endpoint,
310
+ use_dual_stack: context[:use_dualstack_endpoint],
311
+ endpoint: endpoint,
312
+ force_path_style: context.config.force_path_style,
313
+ accelerate: context[:use_accelerate_endpoint],
314
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
315
+ use_object_lambda_endpoint: nil,
316
+ 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
+ use_s3_express_control_endpoint: true,
322
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
323
+ )
324
+ end
325
+ end
326
+
327
+ class DeleteBucketLifecycle
328
+ def self.build(context)
329
+ unless context.config.regional_endpoint
330
+ endpoint = context.config.endpoint.to_s
331
+ end
332
+ Aws::S3::EndpointParameters.new(
333
+ bucket: context.params[:bucket],
334
+ region: context.config.region,
335
+ use_fips: context.config.use_fips_endpoint,
336
+ use_dual_stack: context[:use_dualstack_endpoint],
337
+ endpoint: endpoint,
338
+ force_path_style: context.config.force_path_style,
339
+ 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
+ use_s3_express_control_endpoint: true,
348
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
349
+ )
350
+ end
351
+ end
352
+
353
+ class DeleteBucketMetricsConfiguration
354
+ def self.build(context)
355
+ unless context.config.regional_endpoint
356
+ endpoint = context.config.endpoint.to_s
357
+ end
358
+ Aws::S3::EndpointParameters.new(
359
+ bucket: context.params[:bucket],
360
+ region: context.config.region,
361
+ use_fips: context.config.use_fips_endpoint,
362
+ use_dual_stack: context[:use_dualstack_endpoint],
363
+ endpoint: endpoint,
364
+ force_path_style: context.config.force_path_style,
365
+ 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
+ use_s3_express_control_endpoint: true,
374
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
375
+ )
376
+ end
377
+ end
378
+
379
+ class DeleteBucketOwnershipControls
380
+ def self.build(context)
381
+ unless context.config.regional_endpoint
382
+ endpoint = context.config.endpoint.to_s
383
+ end
384
+ Aws::S3::EndpointParameters.new(
385
+ bucket: context.params[:bucket],
386
+ region: context.config.region,
387
+ use_fips: context.config.use_fips_endpoint,
388
+ use_dual_stack: context[:use_dualstack_endpoint],
389
+ endpoint: endpoint,
390
+ force_path_style: context.config.force_path_style,
391
+ 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
+ use_s3_express_control_endpoint: true,
400
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
401
+ )
402
+ end
403
+ end
404
+
405
+ class DeleteBucketPolicy
406
+ def self.build(context)
407
+ unless context.config.regional_endpoint
408
+ endpoint = context.config.endpoint.to_s
409
+ end
410
+ Aws::S3::EndpointParameters.new(
411
+ bucket: context.params[:bucket],
412
+ region: context.config.region,
413
+ use_fips: context.config.use_fips_endpoint,
414
+ use_dual_stack: context[:use_dualstack_endpoint],
415
+ endpoint: endpoint,
416
+ force_path_style: context.config.force_path_style,
417
+ 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
+ use_s3_express_control_endpoint: true,
426
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
427
+ )
428
+ end
429
+ end
430
+
431
+ class DeleteBucketReplication
432
+ def self.build(context)
433
+ unless context.config.regional_endpoint
434
+ endpoint = context.config.endpoint.to_s
435
+ end
436
+ Aws::S3::EndpointParameters.new(
437
+ bucket: context.params[:bucket],
438
+ region: context.config.region,
439
+ use_fips: context.config.use_fips_endpoint,
440
+ use_dual_stack: context[:use_dualstack_endpoint],
441
+ endpoint: endpoint,
442
+ force_path_style: context.config.force_path_style,
443
+ 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
+ use_s3_express_control_endpoint: true,
452
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
453
+ )
454
+ end
455
+ end
456
+
457
+ class DeleteBucketTagging
458
+ def self.build(context)
459
+ unless context.config.regional_endpoint
460
+ endpoint = context.config.endpoint.to_s
461
+ end
462
+ Aws::S3::EndpointParameters.new(
463
+ bucket: context.params[:bucket],
464
+ region: context.config.region,
465
+ use_fips: context.config.use_fips_endpoint,
466
+ use_dual_stack: context[:use_dualstack_endpoint],
467
+ endpoint: endpoint,
468
+ force_path_style: context.config.force_path_style,
469
+ 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
+ use_s3_express_control_endpoint: true,
478
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
479
+ )
480
+ end
481
+ end
482
+
483
+ class DeleteBucketWebsite
484
+ def self.build(context)
485
+ unless context.config.regional_endpoint
486
+ endpoint = context.config.endpoint.to_s
487
+ end
488
+ Aws::S3::EndpointParameters.new(
489
+ bucket: context.params[:bucket],
490
+ region: context.config.region,
491
+ use_fips: context.config.use_fips_endpoint,
492
+ use_dual_stack: context[:use_dualstack_endpoint],
493
+ endpoint: endpoint,
494
+ force_path_style: context.config.force_path_style,
495
+ 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
+ use_s3_express_control_endpoint: true,
504
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
505
+ )
506
+ end
507
+ end
508
+
509
+ class DeleteObject
510
+ def self.build(context)
511
+ unless context.config.regional_endpoint
512
+ endpoint = context.config.endpoint.to_s
513
+ end
514
+ Aws::S3::EndpointParameters.new(
515
+ bucket: context.params[:bucket],
516
+ region: context.config.region,
517
+ use_fips: context.config.use_fips_endpoint,
518
+ use_dual_stack: context[:use_dualstack_endpoint],
519
+ endpoint: endpoint,
520
+ force_path_style: context.config.force_path_style,
521
+ 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
+ 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
+ )
532
+ end
533
+ end
534
+
535
+ class DeleteObjectTagging
536
+ def self.build(context)
537
+ unless context.config.regional_endpoint
538
+ endpoint = context.config.endpoint.to_s
539
+ end
540
+ Aws::S3::EndpointParameters.new(
541
+ bucket: context.params[:bucket],
542
+ region: context.config.region,
543
+ use_fips: context.config.use_fips_endpoint,
544
+ use_dual_stack: context[:use_dualstack_endpoint],
545
+ endpoint: endpoint,
546
+ force_path_style: context.config.force_path_style,
547
+ 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
+ )
558
+ end
559
+ end
560
+
561
+ class DeleteObjects
562
+ def self.build(context)
563
+ unless context.config.regional_endpoint
564
+ endpoint = context.config.endpoint.to_s
565
+ end
566
+ Aws::S3::EndpointParameters.new(
567
+ bucket: context.params[:bucket],
568
+ region: context.config.region,
569
+ use_fips: context.config.use_fips_endpoint,
570
+ use_dual_stack: context[:use_dualstack_endpoint],
571
+ endpoint: endpoint,
572
+ force_path_style: context.config.force_path_style,
573
+ 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
+ )
584
+ end
585
+ end
586
+
587
+ class DeletePublicAccessBlock
588
+ def self.build(context)
589
+ unless context.config.regional_endpoint
590
+ endpoint = context.config.endpoint.to_s
591
+ end
592
+ Aws::S3::EndpointParameters.new(
593
+ bucket: context.params[:bucket],
594
+ region: context.config.region,
595
+ use_fips: context.config.use_fips_endpoint,
596
+ use_dual_stack: context[:use_dualstack_endpoint],
597
+ endpoint: endpoint,
598
+ force_path_style: context.config.force_path_style,
599
+ accelerate: context[:use_accelerate_endpoint],
600
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
601
+ use_object_lambda_endpoint: nil,
602
+ 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
+ use_s3_express_control_endpoint: true,
608
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
609
+ )
610
+ end
611
+ end
612
+
613
+ class GetBucketAccelerateConfiguration
614
+ def self.build(context)
615
+ unless context.config.regional_endpoint
616
+ endpoint = context.config.endpoint.to_s
617
+ end
618
+ Aws::S3::EndpointParameters.new(
619
+ bucket: context.params[:bucket],
620
+ region: context.config.region,
621
+ use_fips: context.config.use_fips_endpoint,
622
+ use_dual_stack: context[:use_dualstack_endpoint],
623
+ endpoint: endpoint,
624
+ force_path_style: context.config.force_path_style,
625
+ 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
+ use_s3_express_control_endpoint: true,
634
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
635
+ )
636
+ end
637
+ end
638
+
639
+ class GetBucketAcl
640
+ def self.build(context)
641
+ unless context.config.regional_endpoint
642
+ endpoint = context.config.endpoint.to_s
643
+ end
644
+ Aws::S3::EndpointParameters.new(
645
+ bucket: context.params[:bucket],
646
+ region: context.config.region,
647
+ use_fips: context.config.use_fips_endpoint,
648
+ use_dual_stack: context[:use_dualstack_endpoint],
649
+ endpoint: endpoint,
650
+ force_path_style: context.config.force_path_style,
651
+ 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
+ use_s3_express_control_endpoint: true,
660
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
661
+ )
662
+ end
663
+ end
664
+
665
+ class GetBucketAnalyticsConfiguration
666
+ def self.build(context)
667
+ unless context.config.regional_endpoint
668
+ endpoint = context.config.endpoint.to_s
669
+ end
670
+ Aws::S3::EndpointParameters.new(
671
+ bucket: context.params[:bucket],
672
+ region: context.config.region,
673
+ use_fips: context.config.use_fips_endpoint,
674
+ use_dual_stack: context[:use_dualstack_endpoint],
675
+ endpoint: endpoint,
676
+ force_path_style: context.config.force_path_style,
677
+ 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
+ use_s3_express_control_endpoint: true,
686
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
687
+ )
688
+ end
689
+ end
690
+
691
+ class GetBucketCors
692
+ def self.build(context)
693
+ unless context.config.regional_endpoint
694
+ endpoint = context.config.endpoint.to_s
695
+ end
696
+ Aws::S3::EndpointParameters.new(
697
+ bucket: context.params[:bucket],
698
+ region: context.config.region,
699
+ use_fips: context.config.use_fips_endpoint,
700
+ use_dual_stack: context[:use_dualstack_endpoint],
701
+ endpoint: endpoint,
702
+ force_path_style: context.config.force_path_style,
703
+ 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
+ use_s3_express_control_endpoint: true,
712
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
713
+ )
714
+ end
715
+ end
716
+
717
+ class GetBucketEncryption
718
+ def self.build(context)
719
+ unless context.config.regional_endpoint
720
+ endpoint = context.config.endpoint.to_s
721
+ end
722
+ Aws::S3::EndpointParameters.new(
723
+ bucket: context.params[:bucket],
724
+ region: context.config.region,
725
+ use_fips: context.config.use_fips_endpoint,
726
+ use_dual_stack: context[:use_dualstack_endpoint],
727
+ endpoint: endpoint,
728
+ force_path_style: context.config.force_path_style,
729
+ 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
+ use_s3_express_control_endpoint: true,
738
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
739
+ )
740
+ end
741
+ end
742
+
743
+ class GetBucketIntelligentTieringConfiguration
744
+ def self.build(context)
745
+ unless context.config.regional_endpoint
746
+ endpoint = context.config.endpoint.to_s
747
+ end
748
+ Aws::S3::EndpointParameters.new(
749
+ bucket: context.params[:bucket],
750
+ region: context.config.region,
751
+ use_fips: context.config.use_fips_endpoint,
752
+ use_dual_stack: context[:use_dualstack_endpoint],
753
+ endpoint: endpoint,
754
+ force_path_style: context.config.force_path_style,
755
+ 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
+ use_s3_express_control_endpoint: true,
764
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
765
+ )
766
+ end
767
+ end
768
+
769
+ class GetBucketInventoryConfiguration
770
+ def self.build(context)
771
+ unless context.config.regional_endpoint
772
+ endpoint = context.config.endpoint.to_s
773
+ end
774
+ Aws::S3::EndpointParameters.new(
775
+ bucket: context.params[:bucket],
776
+ region: context.config.region,
777
+ use_fips: context.config.use_fips_endpoint,
778
+ use_dual_stack: context[:use_dualstack_endpoint],
779
+ endpoint: endpoint,
780
+ force_path_style: context.config.force_path_style,
781
+ 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
+ use_s3_express_control_endpoint: true,
790
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
791
+ )
792
+ end
793
+ end
794
+
795
+ class GetBucketLifecycle
796
+ def self.build(context)
797
+ unless context.config.regional_endpoint
798
+ endpoint = context.config.endpoint.to_s
799
+ end
800
+ Aws::S3::EndpointParameters.new(
801
+ bucket: context.params[:bucket],
802
+ region: context.config.region,
803
+ use_fips: context.config.use_fips_endpoint,
804
+ use_dual_stack: context[:use_dualstack_endpoint],
805
+ endpoint: endpoint,
806
+ force_path_style: context.config.force_path_style,
807
+ 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
+ use_s3_express_control_endpoint: true,
816
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
817
+ )
818
+ end
819
+ end
820
+
821
+ class GetBucketLifecycleConfiguration
822
+ def self.build(context)
823
+ unless context.config.regional_endpoint
824
+ endpoint = context.config.endpoint.to_s
825
+ end
826
+ Aws::S3::EndpointParameters.new(
827
+ bucket: context.params[:bucket],
828
+ region: context.config.region,
829
+ use_fips: context.config.use_fips_endpoint,
830
+ use_dual_stack: context[:use_dualstack_endpoint],
831
+ endpoint: endpoint,
832
+ force_path_style: context.config.force_path_style,
833
+ 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
+ use_s3_express_control_endpoint: true,
842
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
843
+ )
844
+ end
845
+ end
846
+
847
+ class GetBucketLocation
848
+ def self.build(context)
849
+ unless context.config.regional_endpoint
850
+ endpoint = context.config.endpoint.to_s
851
+ end
852
+ Aws::S3::EndpointParameters.new(
853
+ bucket: context.params[:bucket],
854
+ region: context.config.region,
855
+ use_fips: context.config.use_fips_endpoint,
856
+ use_dual_stack: context[:use_dualstack_endpoint],
857
+ endpoint: endpoint,
858
+ force_path_style: context.config.force_path_style,
859
+ 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
+ use_s3_express_control_endpoint: true,
868
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
869
+ )
870
+ end
871
+ end
872
+
873
+ class GetBucketLogging
874
+ def self.build(context)
875
+ unless context.config.regional_endpoint
876
+ endpoint = context.config.endpoint.to_s
877
+ end
878
+ Aws::S3::EndpointParameters.new(
879
+ bucket: context.params[:bucket],
880
+ region: context.config.region,
881
+ use_fips: context.config.use_fips_endpoint,
882
+ use_dual_stack: context[:use_dualstack_endpoint],
883
+ endpoint: endpoint,
884
+ force_path_style: context.config.force_path_style,
885
+ accelerate: context[:use_accelerate_endpoint],
886
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
887
+ use_object_lambda_endpoint: nil,
888
+ 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
+ use_s3_express_control_endpoint: true,
894
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
895
+ )
896
+ end
897
+ end
898
+
899
+ class GetBucketMetricsConfiguration
900
+ def self.build(context)
901
+ unless context.config.regional_endpoint
902
+ endpoint = context.config.endpoint.to_s
903
+ end
904
+ Aws::S3::EndpointParameters.new(
905
+ bucket: context.params[:bucket],
906
+ region: context.config.region,
907
+ use_fips: context.config.use_fips_endpoint,
908
+ use_dual_stack: context[:use_dualstack_endpoint],
909
+ endpoint: endpoint,
910
+ force_path_style: context.config.force_path_style,
911
+ 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
+ use_s3_express_control_endpoint: true,
920
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
921
+ )
922
+ end
923
+ end
924
+
925
+ class GetBucketNotification
926
+ def self.build(context)
927
+ unless context.config.regional_endpoint
928
+ endpoint = context.config.endpoint.to_s
929
+ end
930
+ Aws::S3::EndpointParameters.new(
931
+ bucket: context.params[:bucket],
932
+ region: context.config.region,
933
+ use_fips: context.config.use_fips_endpoint,
934
+ use_dual_stack: context[:use_dualstack_endpoint],
935
+ endpoint: endpoint,
936
+ force_path_style: context.config.force_path_style,
937
+ 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
+ use_s3_express_control_endpoint: true,
946
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
947
+ )
948
+ end
949
+ end
950
+
951
+ class GetBucketNotificationConfiguration
952
+ def self.build(context)
953
+ unless context.config.regional_endpoint
954
+ endpoint = context.config.endpoint.to_s
955
+ end
956
+ Aws::S3::EndpointParameters.new(
957
+ bucket: context.params[:bucket],
958
+ region: context.config.region,
959
+ use_fips: context.config.use_fips_endpoint,
960
+ use_dual_stack: context[:use_dualstack_endpoint],
961
+ endpoint: endpoint,
962
+ force_path_style: context.config.force_path_style,
963
+ 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
+ use_s3_express_control_endpoint: true,
972
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
973
+ )
974
+ end
975
+ end
976
+
977
+ class GetBucketOwnershipControls
978
+ def self.build(context)
979
+ unless context.config.regional_endpoint
980
+ endpoint = context.config.endpoint.to_s
981
+ end
982
+ Aws::S3::EndpointParameters.new(
983
+ bucket: context.params[:bucket],
984
+ region: context.config.region,
985
+ use_fips: context.config.use_fips_endpoint,
986
+ use_dual_stack: context[:use_dualstack_endpoint],
987
+ endpoint: endpoint,
988
+ force_path_style: context.config.force_path_style,
989
+ 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
+ use_s3_express_control_endpoint: true,
998
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
999
+ )
1000
+ end
1001
+ end
1002
+
1003
+ class GetBucketPolicy
1004
+ def self.build(context)
1005
+ unless context.config.regional_endpoint
1006
+ endpoint = context.config.endpoint.to_s
1007
+ end
1008
+ Aws::S3::EndpointParameters.new(
1009
+ bucket: context.params[:bucket],
1010
+ region: context.config.region,
1011
+ use_fips: context.config.use_fips_endpoint,
1012
+ use_dual_stack: context[:use_dualstack_endpoint],
1013
+ endpoint: endpoint,
1014
+ force_path_style: context.config.force_path_style,
1015
+ 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
+ use_s3_express_control_endpoint: true,
1024
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1025
+ )
1026
+ end
1027
+ end
1028
+
1029
+ class GetBucketPolicyStatus
1030
+ def self.build(context)
1031
+ unless context.config.regional_endpoint
1032
+ endpoint = context.config.endpoint.to_s
1033
+ end
1034
+ Aws::S3::EndpointParameters.new(
1035
+ bucket: context.params[:bucket],
1036
+ region: context.config.region,
1037
+ use_fips: context.config.use_fips_endpoint,
1038
+ use_dual_stack: context[:use_dualstack_endpoint],
1039
+ endpoint: endpoint,
1040
+ force_path_style: context.config.force_path_style,
1041
+ 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
+ use_s3_express_control_endpoint: true,
1050
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1051
+ )
1052
+ end
1053
+ end
1054
+
1055
+ class GetBucketReplication
1056
+ def self.build(context)
1057
+ unless context.config.regional_endpoint
1058
+ endpoint = context.config.endpoint.to_s
1059
+ end
1060
+ Aws::S3::EndpointParameters.new(
1061
+ bucket: context.params[:bucket],
1062
+ region: context.config.region,
1063
+ use_fips: context.config.use_fips_endpoint,
1064
+ use_dual_stack: context[:use_dualstack_endpoint],
1065
+ endpoint: endpoint,
1066
+ force_path_style: context.config.force_path_style,
1067
+ 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
+ use_s3_express_control_endpoint: true,
1076
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1077
+ )
1078
+ end
1079
+ end
1080
+
1081
+ class GetBucketRequestPayment
1082
+ def self.build(context)
1083
+ unless context.config.regional_endpoint
1084
+ endpoint = context.config.endpoint.to_s
1085
+ end
1086
+ Aws::S3::EndpointParameters.new(
1087
+ bucket: context.params[:bucket],
1088
+ region: context.config.region,
1089
+ use_fips: context.config.use_fips_endpoint,
1090
+ use_dual_stack: context[:use_dualstack_endpoint],
1091
+ endpoint: endpoint,
1092
+ force_path_style: context.config.force_path_style,
1093
+ 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
+ use_s3_express_control_endpoint: true,
1102
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1103
+ )
1104
+ end
1105
+ end
1106
+
1107
+ class GetBucketTagging
1108
+ def self.build(context)
1109
+ unless context.config.regional_endpoint
1110
+ endpoint = context.config.endpoint.to_s
1111
+ end
1112
+ Aws::S3::EndpointParameters.new(
1113
+ bucket: context.params[:bucket],
1114
+ region: context.config.region,
1115
+ use_fips: context.config.use_fips_endpoint,
1116
+ use_dual_stack: context[:use_dualstack_endpoint],
1117
+ endpoint: endpoint,
1118
+ force_path_style: context.config.force_path_style,
1119
+ 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
+ use_s3_express_control_endpoint: true,
1128
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1129
+ )
1130
+ end
1131
+ end
1132
+
1133
+ class GetBucketVersioning
1134
+ def self.build(context)
1135
+ unless context.config.regional_endpoint
1136
+ endpoint = context.config.endpoint.to_s
1137
+ end
1138
+ Aws::S3::EndpointParameters.new(
1139
+ bucket: context.params[:bucket],
1140
+ region: context.config.region,
1141
+ use_fips: context.config.use_fips_endpoint,
1142
+ use_dual_stack: context[:use_dualstack_endpoint],
1143
+ endpoint: endpoint,
1144
+ force_path_style: context.config.force_path_style,
1145
+ 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
+ use_s3_express_control_endpoint: true,
1154
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1155
+ )
1156
+ end
1157
+ end
1158
+
1159
+ class GetBucketWebsite
1160
+ def self.build(context)
1161
+ unless context.config.regional_endpoint
1162
+ endpoint = context.config.endpoint.to_s
1163
+ end
1164
+ Aws::S3::EndpointParameters.new(
1165
+ bucket: context.params[:bucket],
1166
+ region: context.config.region,
1167
+ use_fips: context.config.use_fips_endpoint,
1168
+ use_dual_stack: context[:use_dualstack_endpoint],
1169
+ endpoint: endpoint,
1170
+ force_path_style: context.config.force_path_style,
1171
+ accelerate: context[:use_accelerate_endpoint],
1172
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1173
+ use_object_lambda_endpoint: nil,
1174
+ 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
+ use_s3_express_control_endpoint: true,
1180
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1181
+ )
1182
+ end
1183
+ end
1184
+
1185
+ class GetObject
1186
+ def self.build(context)
1187
+ unless context.config.regional_endpoint
1188
+ endpoint = context.config.endpoint.to_s
1189
+ end
1190
+ Aws::S3::EndpointParameters.new(
1191
+ bucket: context.params[:bucket],
1192
+ region: context.config.region,
1193
+ use_fips: context.config.use_fips_endpoint,
1194
+ use_dual_stack: context[:use_dualstack_endpoint],
1195
+ endpoint: endpoint,
1196
+ force_path_style: context.config.force_path_style,
1197
+ 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
+ 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
+ )
1208
+ end
1209
+ end
1210
+
1211
+ class GetObjectAcl
1212
+ def self.build(context)
1213
+ unless context.config.regional_endpoint
1214
+ endpoint = context.config.endpoint.to_s
1215
+ end
1216
+ Aws::S3::EndpointParameters.new(
1217
+ bucket: context.params[:bucket],
1218
+ region: context.config.region,
1219
+ use_fips: context.config.use_fips_endpoint,
1220
+ use_dual_stack: context[:use_dualstack_endpoint],
1221
+ endpoint: endpoint,
1222
+ force_path_style: context.config.force_path_style,
1223
+ 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
+ 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
+ )
1234
+ end
1235
+ end
1236
+
1237
+ class GetObjectAttributes
1238
+ def self.build(context)
1239
+ unless context.config.regional_endpoint
1240
+ endpoint = context.config.endpoint.to_s
1241
+ end
1242
+ Aws::S3::EndpointParameters.new(
1243
+ bucket: context.params[:bucket],
1244
+ region: context.config.region,
1245
+ use_fips: context.config.use_fips_endpoint,
1246
+ use_dual_stack: context[:use_dualstack_endpoint],
1247
+ endpoint: endpoint,
1248
+ force_path_style: context.config.force_path_style,
1249
+ 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
+ )
1260
+ end
1261
+ end
1262
+
1263
+ class GetObjectLegalHold
1264
+ def self.build(context)
1265
+ unless context.config.regional_endpoint
1266
+ endpoint = context.config.endpoint.to_s
1267
+ end
1268
+ Aws::S3::EndpointParameters.new(
1269
+ bucket: context.params[:bucket],
1270
+ region: context.config.region,
1271
+ use_fips: context.config.use_fips_endpoint,
1272
+ use_dual_stack: context[:use_dualstack_endpoint],
1273
+ endpoint: endpoint,
1274
+ force_path_style: context.config.force_path_style,
1275
+ 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
+ )
1286
+ end
1287
+ end
1288
+
1289
+ class GetObjectLockConfiguration
1290
+ def self.build(context)
1291
+ unless context.config.regional_endpoint
1292
+ endpoint = context.config.endpoint.to_s
1293
+ end
1294
+ Aws::S3::EndpointParameters.new(
1295
+ bucket: context.params[:bucket],
1296
+ region: context.config.region,
1297
+ use_fips: context.config.use_fips_endpoint,
1298
+ use_dual_stack: context[:use_dualstack_endpoint],
1299
+ endpoint: endpoint,
1300
+ force_path_style: context.config.force_path_style,
1301
+ 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
+ )
1312
+ end
1313
+ end
1314
+
1315
+ class GetObjectRetention
1316
+ def self.build(context)
1317
+ unless context.config.regional_endpoint
1318
+ endpoint = context.config.endpoint.to_s
1319
+ end
1320
+ Aws::S3::EndpointParameters.new(
1321
+ bucket: context.params[:bucket],
1322
+ region: context.config.region,
1323
+ use_fips: context.config.use_fips_endpoint,
1324
+ use_dual_stack: context[:use_dualstack_endpoint],
1325
+ endpoint: endpoint,
1326
+ force_path_style: context.config.force_path_style,
1327
+ 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
+ )
1338
+ end
1339
+ end
1340
+
1341
+ class GetObjectTagging
1342
+ def self.build(context)
1343
+ unless context.config.regional_endpoint
1344
+ endpoint = context.config.endpoint.to_s
1345
+ end
1346
+ Aws::S3::EndpointParameters.new(
1347
+ bucket: context.params[:bucket],
1348
+ region: context.config.region,
1349
+ use_fips: context.config.use_fips_endpoint,
1350
+ use_dual_stack: context[:use_dualstack_endpoint],
1351
+ endpoint: endpoint,
1352
+ force_path_style: context.config.force_path_style,
1353
+ 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
+ )
1364
+ end
1365
+ end
1366
+
1367
+ class GetObjectTorrent
1368
+ def self.build(context)
1369
+ unless context.config.regional_endpoint
1370
+ endpoint = context.config.endpoint.to_s
1371
+ end
1372
+ Aws::S3::EndpointParameters.new(
1373
+ bucket: context.params[:bucket],
1374
+ region: context.config.region,
1375
+ use_fips: context.config.use_fips_endpoint,
1376
+ use_dual_stack: context[:use_dualstack_endpoint],
1377
+ endpoint: endpoint,
1378
+ force_path_style: context.config.force_path_style,
1379
+ 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
+ )
1390
+ end
1391
+ end
1392
+
1393
+ class GetPublicAccessBlock
1394
+ def self.build(context)
1395
+ unless context.config.regional_endpoint
1396
+ endpoint = context.config.endpoint.to_s
1397
+ end
1398
+ Aws::S3::EndpointParameters.new(
1399
+ bucket: context.params[:bucket],
1400
+ region: context.config.region,
1401
+ use_fips: context.config.use_fips_endpoint,
1402
+ use_dual_stack: context[:use_dualstack_endpoint],
1403
+ endpoint: endpoint,
1404
+ force_path_style: context.config.force_path_style,
1405
+ 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
+ use_s3_express_control_endpoint: true,
1414
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1415
+ )
1416
+ end
1417
+ end
1418
+
1419
+ class HeadBucket
1420
+ def self.build(context)
1421
+ unless context.config.regional_endpoint
1422
+ endpoint = context.config.endpoint.to_s
1423
+ end
1424
+ Aws::S3::EndpointParameters.new(
1425
+ bucket: context.params[:bucket],
1426
+ region: context.config.region,
1427
+ use_fips: context.config.use_fips_endpoint,
1428
+ use_dual_stack: context[:use_dualstack_endpoint],
1429
+ endpoint: endpoint,
1430
+ force_path_style: context.config.force_path_style,
1431
+ 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
+ )
1442
+ end
1443
+ end
1444
+
1445
+ class HeadObject
1446
+ def self.build(context)
1447
+ unless context.config.regional_endpoint
1448
+ endpoint = context.config.endpoint.to_s
1449
+ end
1450
+ Aws::S3::EndpointParameters.new(
1451
+ bucket: context.params[:bucket],
1452
+ region: context.config.region,
1453
+ use_fips: context.config.use_fips_endpoint,
1454
+ use_dual_stack: context[:use_dualstack_endpoint],
1455
+ endpoint: endpoint,
1456
+ force_path_style: context.config.force_path_style,
1457
+ accelerate: context[:use_accelerate_endpoint],
1458
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1459
+ use_object_lambda_endpoint: nil,
1460
+ 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
+ )
1468
+ end
1469
+ end
1470
+
1471
+ class ListBucketAnalyticsConfigurations
1472
+ def self.build(context)
1473
+ unless context.config.regional_endpoint
1474
+ endpoint = context.config.endpoint.to_s
1475
+ end
1476
+ Aws::S3::EndpointParameters.new(
1477
+ bucket: context.params[:bucket],
1478
+ region: context.config.region,
1479
+ use_fips: context.config.use_fips_endpoint,
1480
+ use_dual_stack: context[:use_dualstack_endpoint],
1481
+ endpoint: endpoint,
1482
+ force_path_style: context.config.force_path_style,
1483
+ 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
+ use_s3_express_control_endpoint: true,
1492
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1493
+ )
1494
+ end
1495
+ end
1496
+
1497
+ class ListBucketIntelligentTieringConfigurations
1498
+ def self.build(context)
1499
+ unless context.config.regional_endpoint
1500
+ endpoint = context.config.endpoint.to_s
1501
+ end
1502
+ Aws::S3::EndpointParameters.new(
1503
+ bucket: context.params[:bucket],
1504
+ region: context.config.region,
1505
+ use_fips: context.config.use_fips_endpoint,
1506
+ use_dual_stack: context[:use_dualstack_endpoint],
1507
+ endpoint: endpoint,
1508
+ force_path_style: context.config.force_path_style,
1509
+ 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
+ use_s3_express_control_endpoint: true,
1518
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1519
+ )
1520
+ end
1521
+ end
1522
+
1523
+ class ListBucketInventoryConfigurations
1524
+ def self.build(context)
1525
+ unless context.config.regional_endpoint
1526
+ endpoint = context.config.endpoint.to_s
1527
+ end
1528
+ Aws::S3::EndpointParameters.new(
1529
+ bucket: context.params[:bucket],
1530
+ region: context.config.region,
1531
+ use_fips: context.config.use_fips_endpoint,
1532
+ use_dual_stack: context[:use_dualstack_endpoint],
1533
+ endpoint: endpoint,
1534
+ force_path_style: context.config.force_path_style,
1535
+ 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
+ use_s3_express_control_endpoint: true,
1544
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1545
+ )
1546
+ end
1547
+ end
1548
+
1549
+ class ListBucketMetricsConfigurations
1550
+ def self.build(context)
1551
+ unless context.config.regional_endpoint
1552
+ endpoint = context.config.endpoint.to_s
1553
+ end
1554
+ Aws::S3::EndpointParameters.new(
1555
+ bucket: context.params[:bucket],
1556
+ region: context.config.region,
1557
+ use_fips: context.config.use_fips_endpoint,
1558
+ use_dual_stack: context[:use_dualstack_endpoint],
1559
+ endpoint: endpoint,
1560
+ force_path_style: context.config.force_path_style,
1561
+ 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
+ )
1572
+ end
1573
+ end
1574
+
1575
+ class ListBuckets
1576
+ 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,
1584
+ use_dual_stack: context[:use_dualstack_endpoint],
1585
+ endpoint: endpoint,
1586
+ force_path_style: context.config.force_path_style,
1587
+ 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
+ )
1598
+ end
1599
+ end
1600
+
1601
+ class ListDirectoryBuckets
1602
+ 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,
1621
+ use_s3_express_control_endpoint: true,
1622
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1623
+ )
1624
+ end
1625
+ end
1626
+
1627
+ class ListMultipartUploads
1628
+ def self.build(context)
1629
+ unless context.config.regional_endpoint
1630
+ endpoint = context.config.endpoint.to_s
1631
+ end
1632
+ Aws::S3::EndpointParameters.new(
1633
+ bucket: context.params[:bucket],
1634
+ region: context.config.region,
1635
+ use_fips: context.config.use_fips_endpoint,
1636
+ use_dual_stack: context[:use_dualstack_endpoint],
1637
+ endpoint: endpoint,
1638
+ force_path_style: context.config.force_path_style,
1639
+ 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
+ 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
+ )
1650
+ end
1651
+ end
1652
+
1653
+ class ListObjectVersions
1654
+ def self.build(context)
1655
+ unless context.config.regional_endpoint
1656
+ endpoint = context.config.endpoint.to_s
1657
+ end
1658
+ Aws::S3::EndpointParameters.new(
1659
+ bucket: context.params[:bucket],
1660
+ region: context.config.region,
1661
+ use_fips: context.config.use_fips_endpoint,
1662
+ use_dual_stack: context[:use_dualstack_endpoint],
1663
+ endpoint: endpoint,
1664
+ force_path_style: context.config.force_path_style,
1665
+ 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
+ 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
+ )
1676
+ end
1677
+ end
1678
+
1679
+ class ListObjects
1680
+ def self.build(context)
1681
+ unless context.config.regional_endpoint
1682
+ endpoint = context.config.endpoint.to_s
1683
+ end
1684
+ Aws::S3::EndpointParameters.new(
1685
+ bucket: context.params[:bucket],
1686
+ region: context.config.region,
1687
+ use_fips: context.config.use_fips_endpoint,
1688
+ use_dual_stack: context[:use_dualstack_endpoint],
1689
+ endpoint: endpoint,
1690
+ force_path_style: context.config.force_path_style,
1691
+ 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
+ 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
+ )
1702
+ end
1703
+ end
1704
+
1705
+ class ListObjectsV2
1706
+ def self.build(context)
1707
+ unless context.config.regional_endpoint
1708
+ endpoint = context.config.endpoint.to_s
1709
+ end
1710
+ Aws::S3::EndpointParameters.new(
1711
+ bucket: context.params[:bucket],
1712
+ region: context.config.region,
1713
+ use_fips: context.config.use_fips_endpoint,
1714
+ use_dual_stack: context[:use_dualstack_endpoint],
1715
+ endpoint: endpoint,
1716
+ force_path_style: context.config.force_path_style,
1717
+ 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
+ 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
+ )
1728
+ end
1729
+ end
1730
+
1731
+ class ListParts
1732
+ def self.build(context)
1733
+ unless context.config.regional_endpoint
1734
+ endpoint = context.config.endpoint.to_s
1735
+ end
1736
+ Aws::S3::EndpointParameters.new(
1737
+ bucket: context.params[:bucket],
1738
+ region: context.config.region,
1739
+ use_fips: context.config.use_fips_endpoint,
1740
+ use_dual_stack: context[:use_dualstack_endpoint],
1741
+ endpoint: endpoint,
1742
+ force_path_style: context.config.force_path_style,
1743
+ accelerate: context[:use_accelerate_endpoint],
1744
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
1745
+ use_object_lambda_endpoint: nil,
1746
+ 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
+ )
1754
+ end
1755
+ end
1756
+
1757
+ class PutBucketAccelerateConfiguration
1758
+ def self.build(context)
1759
+ unless context.config.regional_endpoint
1760
+ endpoint = context.config.endpoint.to_s
1761
+ end
1762
+ Aws::S3::EndpointParameters.new(
1763
+ bucket: context.params[:bucket],
1764
+ region: context.config.region,
1765
+ use_fips: context.config.use_fips_endpoint,
1766
+ use_dual_stack: context[:use_dualstack_endpoint],
1767
+ endpoint: endpoint,
1768
+ force_path_style: context.config.force_path_style,
1769
+ 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
+ use_s3_express_control_endpoint: true,
1778
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1779
+ )
1780
+ end
1781
+ end
1782
+
1783
+ class PutBucketAcl
1784
+ def self.build(context)
1785
+ unless context.config.regional_endpoint
1786
+ endpoint = context.config.endpoint.to_s
1787
+ end
1788
+ Aws::S3::EndpointParameters.new(
1789
+ bucket: context.params[:bucket],
1790
+ region: context.config.region,
1791
+ use_fips: context.config.use_fips_endpoint,
1792
+ use_dual_stack: context[:use_dualstack_endpoint],
1793
+ endpoint: endpoint,
1794
+ force_path_style: context.config.force_path_style,
1795
+ 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
+ use_s3_express_control_endpoint: true,
1804
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1805
+ )
1806
+ end
1807
+ end
1808
+
1809
+ class PutBucketAnalyticsConfiguration
1810
+ def self.build(context)
1811
+ unless context.config.regional_endpoint
1812
+ endpoint = context.config.endpoint.to_s
1813
+ end
1814
+ Aws::S3::EndpointParameters.new(
1815
+ bucket: context.params[:bucket],
1816
+ region: context.config.region,
1817
+ use_fips: context.config.use_fips_endpoint,
1818
+ use_dual_stack: context[:use_dualstack_endpoint],
1819
+ endpoint: endpoint,
1820
+ force_path_style: context.config.force_path_style,
1821
+ 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
+ use_s3_express_control_endpoint: true,
1830
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1831
+ )
1832
+ end
1833
+ end
1834
+
1835
+ class PutBucketCors
1836
+ def self.build(context)
1837
+ unless context.config.regional_endpoint
1838
+ endpoint = context.config.endpoint.to_s
1839
+ end
1840
+ Aws::S3::EndpointParameters.new(
1841
+ bucket: context.params[:bucket],
1842
+ region: context.config.region,
1843
+ use_fips: context.config.use_fips_endpoint,
1844
+ use_dual_stack: context[:use_dualstack_endpoint],
1845
+ endpoint: endpoint,
1846
+ force_path_style: context.config.force_path_style,
1847
+ 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
+ use_s3_express_control_endpoint: true,
1856
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1857
+ )
1858
+ end
1859
+ end
1860
+
1861
+ class PutBucketEncryption
1862
+ def self.build(context)
1863
+ unless context.config.regional_endpoint
1864
+ endpoint = context.config.endpoint.to_s
1865
+ end
1866
+ Aws::S3::EndpointParameters.new(
1867
+ bucket: context.params[:bucket],
1868
+ region: context.config.region,
1869
+ use_fips: context.config.use_fips_endpoint,
1870
+ use_dual_stack: context[:use_dualstack_endpoint],
1871
+ endpoint: endpoint,
1872
+ force_path_style: context.config.force_path_style,
1873
+ 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
+ use_s3_express_control_endpoint: true,
1882
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1883
+ )
1884
+ end
1885
+ end
1886
+
1887
+ class PutBucketIntelligentTieringConfiguration
1888
+ def self.build(context)
1889
+ unless context.config.regional_endpoint
1890
+ endpoint = context.config.endpoint.to_s
1891
+ end
1892
+ Aws::S3::EndpointParameters.new(
1893
+ bucket: context.params[:bucket],
1894
+ region: context.config.region,
1895
+ use_fips: context.config.use_fips_endpoint,
1896
+ use_dual_stack: context[:use_dualstack_endpoint],
1897
+ endpoint: endpoint,
1898
+ force_path_style: context.config.force_path_style,
1899
+ 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
+ use_s3_express_control_endpoint: true,
1908
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1909
+ )
1910
+ end
1911
+ end
1912
+
1913
+ class PutBucketInventoryConfiguration
1914
+ def self.build(context)
1915
+ unless context.config.regional_endpoint
1916
+ endpoint = context.config.endpoint.to_s
1917
+ end
1918
+ Aws::S3::EndpointParameters.new(
1919
+ bucket: context.params[:bucket],
1920
+ region: context.config.region,
1921
+ use_fips: context.config.use_fips_endpoint,
1922
+ use_dual_stack: context[:use_dualstack_endpoint],
1923
+ endpoint: endpoint,
1924
+ force_path_style: context.config.force_path_style,
1925
+ 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
+ use_s3_express_control_endpoint: true,
1934
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1935
+ )
1936
+ end
1937
+ end
1938
+
1939
+ class PutBucketLifecycle
1940
+ def self.build(context)
1941
+ unless context.config.regional_endpoint
1942
+ endpoint = context.config.endpoint.to_s
1943
+ end
1944
+ Aws::S3::EndpointParameters.new(
1945
+ bucket: context.params[:bucket],
1946
+ region: context.config.region,
1947
+ use_fips: context.config.use_fips_endpoint,
1948
+ use_dual_stack: context[:use_dualstack_endpoint],
1949
+ endpoint: endpoint,
1950
+ force_path_style: context.config.force_path_style,
1951
+ 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
+ use_s3_express_control_endpoint: true,
1960
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1961
+ )
1962
+ end
1963
+ end
1964
+
1965
+ class PutBucketLifecycleConfiguration
1966
+ def self.build(context)
1967
+ unless context.config.regional_endpoint
1968
+ endpoint = context.config.endpoint.to_s
1969
+ end
1970
+ Aws::S3::EndpointParameters.new(
1971
+ bucket: context.params[:bucket],
1972
+ region: context.config.region,
1973
+ use_fips: context.config.use_fips_endpoint,
1974
+ use_dual_stack: context[:use_dualstack_endpoint],
1975
+ endpoint: endpoint,
1976
+ force_path_style: context.config.force_path_style,
1977
+ 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
+ use_s3_express_control_endpoint: true,
1986
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
1987
+ )
1988
+ end
1989
+ end
1990
+
1991
+ class PutBucketLogging
1992
+ def self.build(context)
1993
+ unless context.config.regional_endpoint
1994
+ endpoint = context.config.endpoint.to_s
1995
+ end
1996
+ Aws::S3::EndpointParameters.new(
1997
+ bucket: context.params[:bucket],
1998
+ region: context.config.region,
1999
+ use_fips: context.config.use_fips_endpoint,
2000
+ use_dual_stack: context[:use_dualstack_endpoint],
2001
+ endpoint: endpoint,
2002
+ force_path_style: context.config.force_path_style,
2003
+ 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
+ use_s3_express_control_endpoint: true,
2012
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2013
+ )
2014
+ end
2015
+ end
2016
+
2017
+ class PutBucketMetricsConfiguration
2018
+ def self.build(context)
2019
+ unless context.config.regional_endpoint
2020
+ endpoint = context.config.endpoint.to_s
2021
+ end
2022
+ Aws::S3::EndpointParameters.new(
2023
+ bucket: context.params[:bucket],
2024
+ region: context.config.region,
2025
+ use_fips: context.config.use_fips_endpoint,
2026
+ use_dual_stack: context[:use_dualstack_endpoint],
2027
+ endpoint: endpoint,
2028
+ force_path_style: context.config.force_path_style,
2029
+ accelerate: context[:use_accelerate_endpoint],
2030
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2031
+ use_object_lambda_endpoint: nil,
2032
+ 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
+ use_s3_express_control_endpoint: true,
2038
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2039
+ )
2040
+ end
2041
+ end
2042
+
2043
+ class PutBucketNotification
2044
+ def self.build(context)
2045
+ unless context.config.regional_endpoint
2046
+ endpoint = context.config.endpoint.to_s
2047
+ end
2048
+ Aws::S3::EndpointParameters.new(
2049
+ bucket: context.params[:bucket],
2050
+ region: context.config.region,
2051
+ use_fips: context.config.use_fips_endpoint,
2052
+ use_dual_stack: context[:use_dualstack_endpoint],
2053
+ endpoint: endpoint,
2054
+ force_path_style: context.config.force_path_style,
2055
+ 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
+ use_s3_express_control_endpoint: true,
2064
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2065
+ )
2066
+ end
2067
+ end
2068
+
2069
+ class PutBucketNotificationConfiguration
2070
+ def self.build(context)
2071
+ unless context.config.regional_endpoint
2072
+ endpoint = context.config.endpoint.to_s
2073
+ end
2074
+ Aws::S3::EndpointParameters.new(
2075
+ bucket: context.params[:bucket],
2076
+ region: context.config.region,
2077
+ use_fips: context.config.use_fips_endpoint,
2078
+ use_dual_stack: context[:use_dualstack_endpoint],
2079
+ endpoint: endpoint,
2080
+ force_path_style: context.config.force_path_style,
2081
+ 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
+ use_s3_express_control_endpoint: true,
2090
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2091
+ )
2092
+ end
2093
+ end
2094
+
2095
+ class PutBucketOwnershipControls
2096
+ def self.build(context)
2097
+ unless context.config.regional_endpoint
2098
+ endpoint = context.config.endpoint.to_s
2099
+ end
2100
+ Aws::S3::EndpointParameters.new(
2101
+ bucket: context.params[:bucket],
2102
+ region: context.config.region,
2103
+ use_fips: context.config.use_fips_endpoint,
2104
+ use_dual_stack: context[:use_dualstack_endpoint],
2105
+ endpoint: endpoint,
2106
+ force_path_style: context.config.force_path_style,
2107
+ 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
+ use_s3_express_control_endpoint: true,
2116
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2117
+ )
2118
+ end
2119
+ end
2120
+
2121
+ class PutBucketPolicy
2122
+ def self.build(context)
2123
+ unless context.config.regional_endpoint
2124
+ endpoint = context.config.endpoint.to_s
2125
+ end
2126
+ Aws::S3::EndpointParameters.new(
2127
+ bucket: context.params[:bucket],
2128
+ region: context.config.region,
2129
+ use_fips: context.config.use_fips_endpoint,
2130
+ use_dual_stack: context[:use_dualstack_endpoint],
2131
+ endpoint: endpoint,
2132
+ force_path_style: context.config.force_path_style,
2133
+ 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
+ use_s3_express_control_endpoint: true,
2142
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2143
+ )
2144
+ end
2145
+ end
2146
+
2147
+ class PutBucketReplication
2148
+ def self.build(context)
2149
+ unless context.config.regional_endpoint
2150
+ endpoint = context.config.endpoint.to_s
2151
+ end
2152
+ Aws::S3::EndpointParameters.new(
2153
+ bucket: context.params[:bucket],
2154
+ region: context.config.region,
2155
+ use_fips: context.config.use_fips_endpoint,
2156
+ use_dual_stack: context[:use_dualstack_endpoint],
2157
+ endpoint: endpoint,
2158
+ force_path_style: context.config.force_path_style,
2159
+ 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
+ use_s3_express_control_endpoint: true,
2168
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2169
+ )
2170
+ end
2171
+ end
2172
+
2173
+ class PutBucketRequestPayment
2174
+ def self.build(context)
2175
+ unless context.config.regional_endpoint
2176
+ endpoint = context.config.endpoint.to_s
2177
+ end
2178
+ Aws::S3::EndpointParameters.new(
2179
+ bucket: context.params[:bucket],
2180
+ region: context.config.region,
2181
+ use_fips: context.config.use_fips_endpoint,
2182
+ use_dual_stack: context[:use_dualstack_endpoint],
2183
+ endpoint: endpoint,
2184
+ force_path_style: context.config.force_path_style,
2185
+ 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
+ use_s3_express_control_endpoint: true,
2194
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2195
+ )
2196
+ end
2197
+ end
2198
+
2199
+ class PutBucketTagging
2200
+ def self.build(context)
2201
+ unless context.config.regional_endpoint
2202
+ endpoint = context.config.endpoint.to_s
2203
+ end
2204
+ Aws::S3::EndpointParameters.new(
2205
+ bucket: context.params[:bucket],
2206
+ region: context.config.region,
2207
+ use_fips: context.config.use_fips_endpoint,
2208
+ use_dual_stack: context[:use_dualstack_endpoint],
2209
+ endpoint: endpoint,
2210
+ force_path_style: context.config.force_path_style,
2211
+ 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
+ use_s3_express_control_endpoint: true,
2220
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2221
+ )
2222
+ end
2223
+ end
2224
+
2225
+ class PutBucketVersioning
2226
+ def self.build(context)
2227
+ unless context.config.regional_endpoint
2228
+ endpoint = context.config.endpoint.to_s
2229
+ end
2230
+ Aws::S3::EndpointParameters.new(
2231
+ bucket: context.params[:bucket],
2232
+ region: context.config.region,
2233
+ use_fips: context.config.use_fips_endpoint,
2234
+ use_dual_stack: context[:use_dualstack_endpoint],
2235
+ endpoint: endpoint,
2236
+ force_path_style: context.config.force_path_style,
2237
+ 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
+ use_s3_express_control_endpoint: true,
2246
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2247
+ )
2248
+ end
2249
+ end
2250
+
2251
+ class PutBucketWebsite
2252
+ def self.build(context)
2253
+ unless context.config.regional_endpoint
2254
+ endpoint = context.config.endpoint.to_s
2255
+ end
2256
+ Aws::S3::EndpointParameters.new(
2257
+ bucket: context.params[:bucket],
2258
+ region: context.config.region,
2259
+ use_fips: context.config.use_fips_endpoint,
2260
+ use_dual_stack: context[:use_dualstack_endpoint],
2261
+ endpoint: endpoint,
2262
+ force_path_style: context.config.force_path_style,
2263
+ 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
+ use_s3_express_control_endpoint: true,
2272
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2273
+ )
2274
+ end
2275
+ end
2276
+
2277
+ class PutObject
2278
+ def self.build(context)
2279
+ unless context.config.regional_endpoint
2280
+ endpoint = context.config.endpoint.to_s
2281
+ end
2282
+ Aws::S3::EndpointParameters.new(
2283
+ bucket: context.params[:bucket],
2284
+ region: context.config.region,
2285
+ use_fips: context.config.use_fips_endpoint,
2286
+ use_dual_stack: context[:use_dualstack_endpoint],
2287
+ endpoint: endpoint,
2288
+ force_path_style: context.config.force_path_style,
2289
+ 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
+ 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
+ )
2300
+ end
2301
+ end
2302
+
2303
+ class PutObjectAcl
2304
+ def self.build(context)
2305
+ unless context.config.regional_endpoint
2306
+ endpoint = context.config.endpoint.to_s
2307
+ end
2308
+ Aws::S3::EndpointParameters.new(
2309
+ bucket: context.params[:bucket],
2310
+ region: context.config.region,
2311
+ use_fips: context.config.use_fips_endpoint,
2312
+ use_dual_stack: context[:use_dualstack_endpoint],
2313
+ endpoint: endpoint,
2314
+ force_path_style: context.config.force_path_style,
2315
+ 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
+ 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
+ )
2326
+ end
2327
+ end
2328
+
2329
+ class PutObjectLegalHold
2330
+ def self.build(context)
2331
+ unless context.config.regional_endpoint
2332
+ endpoint = context.config.endpoint.to_s
2333
+ end
2334
+ Aws::S3::EndpointParameters.new(
2335
+ bucket: context.params[:bucket],
2336
+ region: context.config.region,
2337
+ use_fips: context.config.use_fips_endpoint,
2338
+ use_dual_stack: context[:use_dualstack_endpoint],
2339
+ endpoint: endpoint,
2340
+ force_path_style: context.config.force_path_style,
2341
+ 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
+ )
2352
+ end
2353
+ end
2354
+
2355
+ class PutObjectLockConfiguration
2356
+ def self.build(context)
2357
+ unless context.config.regional_endpoint
2358
+ endpoint = context.config.endpoint.to_s
2359
+ end
2360
+ Aws::S3::EndpointParameters.new(
2361
+ bucket: context.params[:bucket],
2362
+ region: context.config.region,
2363
+ use_fips: context.config.use_fips_endpoint,
2364
+ use_dual_stack: context[:use_dualstack_endpoint],
2365
+ endpoint: endpoint,
2366
+ force_path_style: context.config.force_path_style,
2367
+ 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
+ )
2378
+ end
2379
+ end
2380
+
2381
+ class PutObjectRetention
2382
+ def self.build(context)
2383
+ unless context.config.regional_endpoint
2384
+ endpoint = context.config.endpoint.to_s
2385
+ end
2386
+ Aws::S3::EndpointParameters.new(
2387
+ bucket: context.params[:bucket],
2388
+ region: context.config.region,
2389
+ use_fips: context.config.use_fips_endpoint,
2390
+ use_dual_stack: context[:use_dualstack_endpoint],
2391
+ endpoint: endpoint,
2392
+ force_path_style: context.config.force_path_style,
2393
+ 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
+ )
2404
+ end
2405
+ end
2406
+
2407
+ class PutObjectTagging
2408
+ def self.build(context)
2409
+ unless context.config.regional_endpoint
2410
+ endpoint = context.config.endpoint.to_s
2411
+ end
2412
+ Aws::S3::EndpointParameters.new(
2413
+ bucket: context.params[:bucket],
2414
+ region: context.config.region,
2415
+ use_fips: context.config.use_fips_endpoint,
2416
+ use_dual_stack: context[:use_dualstack_endpoint],
2417
+ endpoint: endpoint,
2418
+ force_path_style: context.config.force_path_style,
2419
+ 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
+ )
2430
+ end
2431
+ end
2432
+
2433
+ class PutPublicAccessBlock
2434
+ def self.build(context)
2435
+ unless context.config.regional_endpoint
2436
+ endpoint = context.config.endpoint.to_s
2437
+ end
2438
+ Aws::S3::EndpointParameters.new(
2439
+ bucket: context.params[:bucket],
2440
+ region: context.config.region,
2441
+ use_fips: context.config.use_fips_endpoint,
2442
+ use_dual_stack: context[:use_dualstack_endpoint],
2443
+ endpoint: endpoint,
2444
+ force_path_style: context.config.force_path_style,
2445
+ 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
+ use_s3_express_control_endpoint: true,
2454
+ disable_s3_express_session_auth: context.config.disable_s3_express_session_auth,
2455
+ )
2456
+ end
2457
+ end
2458
+
2459
+ class RestoreObject
2460
+ def self.build(context)
2461
+ unless context.config.regional_endpoint
2462
+ endpoint = context.config.endpoint.to_s
2463
+ end
2464
+ Aws::S3::EndpointParameters.new(
2465
+ bucket: context.params[:bucket],
2466
+ region: context.config.region,
2467
+ use_fips: context.config.use_fips_endpoint,
2468
+ use_dual_stack: context[:use_dualstack_endpoint],
2469
+ endpoint: endpoint,
2470
+ force_path_style: context.config.force_path_style,
2471
+ 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
+ )
2482
+ end
2483
+ end
2484
+
2485
+ class SelectObjectContent
2486
+ def self.build(context)
2487
+ unless context.config.regional_endpoint
2488
+ endpoint = context.config.endpoint.to_s
2489
+ end
2490
+ Aws::S3::EndpointParameters.new(
2491
+ bucket: context.params[:bucket],
2492
+ region: context.config.region,
2493
+ use_fips: context.config.use_fips_endpoint,
2494
+ use_dual_stack: context[:use_dualstack_endpoint],
2495
+ endpoint: endpoint,
2496
+ force_path_style: context.config.force_path_style,
2497
+ 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
+ )
2508
+ end
2509
+ end
2510
+
2511
+ class UploadPart
2512
+ def self.build(context)
2513
+ unless context.config.regional_endpoint
2514
+ endpoint = context.config.endpoint.to_s
2515
+ end
2516
+ Aws::S3::EndpointParameters.new(
2517
+ bucket: context.params[:bucket],
2518
+ region: context.config.region,
2519
+ use_fips: context.config.use_fips_endpoint,
2520
+ use_dual_stack: context[:use_dualstack_endpoint],
2521
+ endpoint: endpoint,
2522
+ force_path_style: context.config.force_path_style,
2523
+ 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
+ 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
+ )
2534
+ end
2535
+ end
2536
+
2537
+ class UploadPartCopy
2538
+ 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,
2558
+ disable_s3_express_session_auth: true,
2559
+ )
2560
+ end
2561
+ end
2562
+
2563
+ class WriteGetObjectResponse
2564
+ 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,
2572
+ use_dual_stack: context[:use_dualstack_endpoint],
2573
+ endpoint: endpoint,
2574
+ force_path_style: context.config.force_path_style,
2575
+ accelerate: context[:use_accelerate_endpoint],
2576
+ use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
2577
+ 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
+ )
2586
+ end
2587
+ end
2588
+
2589
+ end
2590
+ end