aws-sdk-s3 1.96.2 → 1.113.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +105 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/arn/access_point_arn.rb +6 -6
  5. data/lib/aws-sdk-s3/arn/multi_region_access_point_arn.rb +68 -0
  6. data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +6 -6
  7. data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +7 -6
  8. data/lib/aws-sdk-s3/bucket.rb +126 -29
  9. data/lib/aws-sdk-s3/bucket_acl.rb +21 -4
  10. data/lib/aws-sdk-s3/bucket_cors.rb +23 -6
  11. data/lib/aws-sdk-s3/bucket_lifecycle.rb +27 -8
  12. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +28 -6
  13. data/lib/aws-sdk-s3/bucket_logging.rb +21 -4
  14. data/lib/aws-sdk-s3/bucket_notification.rb +19 -7
  15. data/lib/aws-sdk-s3/bucket_policy.rb +23 -6
  16. data/lib/aws-sdk-s3/bucket_request_payment.rb +21 -4
  17. data/lib/aws-sdk-s3/bucket_tagging.rb +23 -6
  18. data/lib/aws-sdk-s3/bucket_versioning.rb +63 -12
  19. data/lib/aws-sdk-s3/bucket_website.rb +23 -6
  20. data/lib/aws-sdk-s3/client.rb +2691 -1278
  21. data/lib/aws-sdk-s3/client_api.rb +390 -21
  22. data/lib/aws-sdk-s3/customizations/object.rb +78 -5
  23. data/lib/aws-sdk-s3/encryption/client.rb +1 -1
  24. data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +0 -4
  25. data/lib/aws-sdk-s3/encryptionV2/client.rb +1 -1
  26. data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +0 -4
  27. data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +0 -4
  28. data/lib/aws-sdk-s3/file_downloader.rb +1 -1
  29. data/lib/aws-sdk-s3/file_uploader.rb +6 -1
  30. data/lib/aws-sdk-s3/multipart_file_uploader.rb +26 -7
  31. data/lib/aws-sdk-s3/multipart_upload.rb +126 -12
  32. data/lib/aws-sdk-s3/multipart_upload_part.rb +134 -14
  33. data/lib/aws-sdk-s3/object.rb +291 -115
  34. data/lib/aws-sdk-s3/object_acl.rb +23 -6
  35. data/lib/aws-sdk-s3/object_summary.rb +207 -80
  36. data/lib/aws-sdk-s3/object_version.rb +66 -39
  37. data/lib/aws-sdk-s3/plugins/accelerate.rb +7 -1
  38. data/lib/aws-sdk-s3/plugins/arn.rb +59 -33
  39. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +1 -1
  40. data/lib/aws-sdk-s3/plugins/dualstack.rb +25 -31
  41. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +6 -0
  42. data/lib/aws-sdk-s3/plugins/md5s.rb +5 -3
  43. data/lib/aws-sdk-s3/plugins/s3_signer.rb +29 -5
  44. data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
  45. data/lib/aws-sdk-s3/presigned_post.rb +38 -19
  46. data/lib/aws-sdk-s3/presigner.rb +6 -0
  47. data/lib/aws-sdk-s3/resource.rb +18 -0
  48. data/lib/aws-sdk-s3/types.rb +2928 -920
  49. data/lib/aws-sdk-s3.rb +1 -1
  50. metadata +9 -7
@@ -204,8 +204,8 @@ module Aws::S3
204
204
  # @param [Hash] options ({})
205
205
  # @option options [String] :expected_bucket_owner
206
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.
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,18 +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
  #
255
- # For requests made using the AWS Command Line Interface (CLI) or AWS
256
- # SDKs, this field is calculated automatically.
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.
257
259
  #
258
260
  #
259
261
  #
260
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
261
278
  # @option options [required, Types::WebsiteConfiguration] :website_configuration
262
279
  # Container for the request.
263
280
  # @option options [String] :expected_bucket_owner
264
281
  # The account ID of the expected bucket owner. If the bucket is owned by
265
- # a different account, the request will fail with an HTTP `403 (Access
266
- # Denied)` error.
282
+ # a different account, the request fails with the HTTP status code `403
283
+ # Forbidden` (access denied).
267
284
  # @return [EmptyStructure]
268
285
  def put(options = {})
269
286
  options = options.merge(bucket: @bucket_name)