aws-sdk-s3 1.84.1 → 1.117.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +930 -0
  3. data/LICENSE.txt +202 -0
  4. data/VERSION +1 -0
  5. data/lib/aws-sdk-s3/bucket.rb +154 -46
  6. data/lib/aws-sdk-s3/bucket_acl.rb +28 -6
  7. data/lib/aws-sdk-s3/bucket_cors.rb +29 -9
  8. data/lib/aws-sdk-s3/bucket_lifecycle.rb +30 -9
  9. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +31 -9
  10. data/lib/aws-sdk-s3/bucket_logging.rb +25 -6
  11. data/lib/aws-sdk-s3/bucket_notification.rb +21 -9
  12. data/lib/aws-sdk-s3/bucket_policy.rb +27 -7
  13. data/lib/aws-sdk-s3/bucket_request_payment.rb +27 -8
  14. data/lib/aws-sdk-s3/bucket_tagging.rb +27 -7
  15. data/lib/aws-sdk-s3/bucket_versioning.rb +70 -10
  16. data/lib/aws-sdk-s3/bucket_website.rb +27 -7
  17. data/lib/aws-sdk-s3/client.rb +3747 -1848
  18. data/lib/aws-sdk-s3/client_api.rb +677 -227
  19. data/lib/aws-sdk-s3/customizations/bucket.rb +28 -49
  20. data/lib/aws-sdk-s3/customizations/object.rb +116 -18
  21. data/lib/aws-sdk-s3/encryption/client.rb +1 -1
  22. data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +0 -4
  23. data/lib/aws-sdk-s3/encryptionV2/client.rb +1 -1
  24. data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +0 -4
  25. data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +3 -3
  26. data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +0 -4
  27. data/lib/aws-sdk-s3/endpoint_parameters.rb +142 -0
  28. data/lib/aws-sdk-s3/endpoint_provider.rb +2020 -0
  29. data/lib/aws-sdk-s3/endpoints.rb +2149 -0
  30. data/lib/aws-sdk-s3/errors.rb +1 -1
  31. data/lib/aws-sdk-s3/event_streams.rb +1 -1
  32. data/lib/aws-sdk-s3/file_downloader.rb +7 -2
  33. data/lib/aws-sdk-s3/file_uploader.rb +8 -3
  34. data/lib/aws-sdk-s3/legacy_signer.rb +15 -25
  35. data/lib/aws-sdk-s3/multipart_file_uploader.rb +26 -7
  36. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +36 -10
  37. data/lib/aws-sdk-s3/multipart_upload.rb +133 -19
  38. data/lib/aws-sdk-s3/multipart_upload_part.rb +141 -21
  39. data/lib/aws-sdk-s3/object.rb +430 -126
  40. data/lib/aws-sdk-s3/object_acl.rb +31 -9
  41. data/lib/aws-sdk-s3/object_summary.rb +265 -110
  42. data/lib/aws-sdk-s3/object_version.rb +80 -53
  43. data/lib/aws-sdk-s3/plugins/accelerate.rb +1 -39
  44. data/lib/aws-sdk-s3/plugins/arn.rb +25 -142
  45. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +3 -39
  46. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +1 -6
  47. data/lib/aws-sdk-s3/plugins/dualstack.rb +2 -49
  48. data/lib/aws-sdk-s3/plugins/endpoints.rb +262 -0
  49. data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +3 -1
  50. data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +1 -1
  51. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +8 -31
  52. data/lib/aws-sdk-s3/plugins/md5s.rb +5 -3
  53. data/lib/aws-sdk-s3/plugins/s3_signer.rb +33 -102
  54. data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
  55. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +23 -2
  56. data/lib/aws-sdk-s3/presigned_post.rb +47 -35
  57. data/lib/aws-sdk-s3/presigner.rb +39 -49
  58. data/lib/aws-sdk-s3/resource.rb +24 -4
  59. data/lib/aws-sdk-s3/types.rb +3785 -4735
  60. data/lib/aws-sdk-s3/waiters.rb +1 -1
  61. data/lib/aws-sdk-s3.rb +6 -2
  62. metadata +19 -14
  63. data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -62
  64. data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -71
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -187,6 +187,7 @@ module Aws::S3
187
187
  #
188
188
  # bucket_versioning.enable({
189
189
  # content_md5: "ContentMD5",
190
+ # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
190
191
  # mfa: "MFA",
191
192
  # expected_bucket_owner: "AccountId",
192
193
  # })
@@ -197,16 +198,35 @@ module Aws::S3
197
198
  # body was not corrupted in transit. For more information, see [RFC
198
199
  # 1864][1].
199
200
  #
201
+ # For requests made using the Amazon Web Services Command Line Interface
202
+ # (CLI) or Amazon Web Services SDKs, this field is calculated
203
+ # automatically.
204
+ #
200
205
  #
201
206
  #
202
207
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
208
+ # @option options [String] :checksum_algorithm
209
+ # Indicates the algorithm used to create the checksum for the object
210
+ # when using the SDK. This header will not provide any additional
211
+ # functionality if not using the SDK. When sending this header, there
212
+ # must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
213
+ # sent. Otherwise, Amazon S3 fails the request with the HTTP status code
214
+ # `400 Bad Request`. For more information, see [Checking object
215
+ # integrity][1] in the *Amazon S3 User Guide*.
216
+ #
217
+ # If you provide an individual checksum, Amazon S3 ignores any provided
218
+ # `ChecksumAlgorithm` parameter.
219
+ #
220
+ #
221
+ #
222
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
203
223
  # @option options [String] :mfa
204
224
  # The concatenation of the authentication device's serial number, a
205
225
  # space, and the value that is displayed on your authentication device.
206
226
  # @option options [String] :expected_bucket_owner
207
- # The account id of the expected bucket owner. If the bucket is owned by
208
- # a different account, the request will fail with an HTTP `403 (Access
209
- # Denied)` error.
227
+ # The account ID of the expected bucket owner. If the bucket is owned by
228
+ # a different account, the request fails with the HTTP status code `403
229
+ # Forbidden` (access denied).
210
230
  # @return [EmptyStructure]
211
231
  def enable(options = {})
212
232
  options = Aws::Util.deep_merge(options,
@@ -223,6 +243,7 @@ module Aws::S3
223
243
  #
224
244
  # bucket_versioning.put({
225
245
  # content_md5: "ContentMD5",
246
+ # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
226
247
  # mfa: "MFA",
227
248
  # versioning_configuration: { # required
228
249
  # mfa_delete: "Enabled", # accepts Enabled, Disabled
@@ -237,18 +258,37 @@ module Aws::S3
237
258
  # body was not corrupted in transit. For more information, see [RFC
238
259
  # 1864][1].
239
260
  #
261
+ # For requests made using the Amazon Web Services Command Line Interface
262
+ # (CLI) or Amazon Web Services SDKs, this field is calculated
263
+ # automatically.
264
+ #
240
265
  #
241
266
  #
242
267
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
268
+ # @option options [String] :checksum_algorithm
269
+ # Indicates the algorithm used to create the checksum for the object
270
+ # when using the SDK. This header will not provide any additional
271
+ # functionality if not using the SDK. When sending this header, there
272
+ # must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
273
+ # sent. Otherwise, Amazon S3 fails the request with the HTTP status code
274
+ # `400 Bad Request`. For more information, see [Checking object
275
+ # integrity][1] in the *Amazon S3 User Guide*.
276
+ #
277
+ # If you provide an individual checksum, Amazon S3 ignores any provided
278
+ # `ChecksumAlgorithm` parameter.
279
+ #
280
+ #
281
+ #
282
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
243
283
  # @option options [String] :mfa
244
284
  # The concatenation of the authentication device's serial number, a
245
285
  # space, and the value that is displayed on your authentication device.
246
286
  # @option options [required, Types::VersioningConfiguration] :versioning_configuration
247
287
  # Container for setting the versioning state.
248
288
  # @option options [String] :expected_bucket_owner
249
- # The account id of the expected bucket owner. If the bucket is owned by
250
- # a different account, the request will fail with an HTTP `403 (Access
251
- # Denied)` error.
289
+ # The account ID of the expected bucket owner. If the bucket is owned by
290
+ # a different account, the request fails with the HTTP status code `403
291
+ # Forbidden` (access denied).
252
292
  # @return [EmptyStructure]
253
293
  def put(options = {})
254
294
  options = options.merge(bucket: @bucket_name)
@@ -260,6 +300,7 @@ module Aws::S3
260
300
  #
261
301
  # bucket_versioning.suspend({
262
302
  # content_md5: "ContentMD5",
303
+ # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
263
304
  # mfa: "MFA",
264
305
  # expected_bucket_owner: "AccountId",
265
306
  # })
@@ -270,16 +311,35 @@ module Aws::S3
270
311
  # body was not corrupted in transit. For more information, see [RFC
271
312
  # 1864][1].
272
313
  #
314
+ # For requests made using the Amazon Web Services Command Line Interface
315
+ # (CLI) or Amazon Web Services SDKs, this field is calculated
316
+ # automatically.
317
+ #
273
318
  #
274
319
  #
275
320
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
321
+ # @option options [String] :checksum_algorithm
322
+ # Indicates the algorithm used to create the checksum for the object
323
+ # when using the SDK. This header will not provide any additional
324
+ # functionality if not using the SDK. When sending this header, there
325
+ # must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
326
+ # sent. Otherwise, Amazon S3 fails the request with the HTTP status code
327
+ # `400 Bad Request`. For more information, see [Checking object
328
+ # integrity][1] in the *Amazon S3 User Guide*.
329
+ #
330
+ # If you provide an individual checksum, Amazon S3 ignores any provided
331
+ # `ChecksumAlgorithm` parameter.
332
+ #
333
+ #
334
+ #
335
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
276
336
  # @option options [String] :mfa
277
337
  # The concatenation of the authentication device's serial number, a
278
338
  # space, and the value that is displayed on your authentication device.
279
339
  # @option options [String] :expected_bucket_owner
280
- # The account id of the expected bucket owner. If the bucket is owned by
281
- # a different account, the request will fail with an HTTP `403 (Access
282
- # Denied)` error.
340
+ # The account ID of the expected bucket owner. If the bucket is owned by
341
+ # a different account, the request fails with the HTTP status code `403
342
+ # Forbidden` (access denied).
283
343
  # @return [EmptyStructure]
284
344
  def suspend(options = {})
285
345
  options = Aws::Util.deep_merge(options,
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -203,9 +203,9 @@ module Aws::S3
203
203
  # })
204
204
  # @param [Hash] options ({})
205
205
  # @option options [String] :expected_bucket_owner
206
- # The account id of the expected bucket owner. If the bucket is owned by
207
- # a different account, the request will fail with an HTTP `403 (Access
208
- # Denied)` error.
206
+ # The account ID of the expected bucket owner. If the bucket is owned by
207
+ # a different account, the request fails with the HTTP status code `403
208
+ # Forbidden` (access denied).
209
209
  # @return [EmptyStructure]
210
210
  def delete(options = {})
211
211
  options = options.merge(bucket: @bucket_name)
@@ -217,6 +217,7 @@ module Aws::S3
217
217
  #
218
218
  # bucket_website.put({
219
219
  # content_md5: "ContentMD5",
220
+ # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
220
221
  # website_configuration: { # required
221
222
  # error_document: {
222
223
  # key: "ObjectKey", # required
@@ -252,15 +253,34 @@ module Aws::S3
252
253
  # header as a message integrity check to verify that the request body
253
254
  # was not corrupted in transit. For more information, see [RFC 1864][1].
254
255
  #
256
+ # For requests made using the Amazon Web Services Command Line Interface
257
+ # (CLI) or Amazon Web Services SDKs, this field is calculated
258
+ # automatically.
259
+ #
255
260
  #
256
261
  #
257
262
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
263
+ # @option options [String] :checksum_algorithm
264
+ # Indicates the algorithm used to create the checksum for the object
265
+ # when using the SDK. This header will not provide any additional
266
+ # functionality if not using the SDK. When sending this header, there
267
+ # must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
268
+ # sent. Otherwise, Amazon S3 fails the request with the HTTP status code
269
+ # `400 Bad Request`. For more information, see [Checking object
270
+ # integrity][1] in the *Amazon S3 User Guide*.
271
+ #
272
+ # If you provide an individual checksum, Amazon S3 ignores any provided
273
+ # `ChecksumAlgorithm` parameter.
274
+ #
275
+ #
276
+ #
277
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
258
278
  # @option options [required, Types::WebsiteConfiguration] :website_configuration
259
279
  # Container for the request.
260
280
  # @option options [String] :expected_bucket_owner
261
- # The account id of the expected bucket owner. If the bucket is owned by
262
- # a different account, the request will fail with an HTTP `403 (Access
263
- # Denied)` error.
281
+ # The account ID of the expected bucket owner. If the bucket is owned by
282
+ # a different account, the request fails with the HTTP status code `403
283
+ # Forbidden` (access denied).
264
284
  # @return [EmptyStructure]
265
285
  def put(options = {})
266
286
  options = options.merge(bucket: @bucket_name)