aws-sdk-s3 1.121.0 → 1.123.1

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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +48 -25
  5. data/lib/aws-sdk-s3/bucket_acl.rb +9 -3
  6. data/lib/aws-sdk-s3/bucket_cors.rb +12 -4
  7. data/lib/aws-sdk-s3/bucket_lifecycle.rb +12 -4
  8. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +12 -4
  9. data/lib/aws-sdk-s3/bucket_logging.rb +9 -3
  10. data/lib/aws-sdk-s3/bucket_notification.rb +9 -3
  11. data/lib/aws-sdk-s3/bucket_policy.rb +12 -4
  12. data/lib/aws-sdk-s3/bucket_request_payment.rb +9 -3
  13. data/lib/aws-sdk-s3/bucket_tagging.rb +12 -4
  14. data/lib/aws-sdk-s3/bucket_versioning.rb +15 -5
  15. data/lib/aws-sdk-s3/bucket_website.rb +12 -4
  16. data/lib/aws-sdk-s3/client.rb +1547 -1300
  17. data/lib/aws-sdk-s3/customizations/bucket.rb +3 -1
  18. data/lib/aws-sdk-s3/customizations/object.rb +28 -18
  19. data/lib/aws-sdk-s3/encryption/client.rb +6 -2
  20. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +13 -9
  21. data/lib/aws-sdk-s3/encryptionV2/client.rb +6 -2
  22. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +10 -6
  23. data/lib/aws-sdk-s3/file_downloader.rb +28 -24
  24. data/lib/aws-sdk-s3/file_uploader.rb +8 -6
  25. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +5 -3
  26. data/lib/aws-sdk-s3/multipart_upload.rb +12 -4
  27. data/lib/aws-sdk-s3/multipart_upload_part.rb +9 -3
  28. data/lib/aws-sdk-s3/object.rb +77 -48
  29. data/lib/aws-sdk-s3/object_acl.rb +9 -3
  30. data/lib/aws-sdk-s3/object_copier.rb +7 -5
  31. data/lib/aws-sdk-s3/object_summary.rb +63 -37
  32. data/lib/aws-sdk-s3/object_version.rb +21 -9
  33. data/lib/aws-sdk-s3/resource.rb +6 -2
  34. data/lib/aws-sdk-s3/types.rb +403 -263
  35. data/lib/aws-sdk-s3.rb +1 -1
  36. metadata +4 -4
@@ -229,7 +229,9 @@ module Aws::S3
229
229
  :retry
230
230
  end
231
231
  end
232
- Aws::Waiters::Waiter.new(options).wait({})
232
+ Aws::Plugins::UserAgent.feature('resource') do
233
+ Aws::Waiters::Waiter.new(options).wait({})
234
+ end
233
235
  end
234
236
 
235
237
  # @!group Actions
@@ -273,7 +275,9 @@ module Aws::S3
273
275
  key: @object_key,
274
276
  version_id: @id
275
277
  )
276
- resp = @client.delete_object(options)
278
+ resp = Aws::Plugins::UserAgent.feature('resource') do
279
+ @client.delete_object(options)
280
+ end
277
281
  resp.data
278
282
  end
279
283
 
@@ -315,7 +319,7 @@ module Aws::S3
315
319
  # @option options [String] :range
316
320
  # Downloads the specified range bytes of an object. For more information
317
321
  # about the HTTP Range header, see
318
- # [https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
322
+ # [https://www.rfc-editor.org/rfc/rfc9110.html#name-range][1].
319
323
  #
320
324
  # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
321
325
  # `GET` request.
@@ -324,7 +328,7 @@ module Aws::S3
324
328
  #
325
329
  #
326
330
  #
327
- # [1]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
331
+ # [1]: https://www.rfc-editor.org/rfc/rfc9110.html#name-range
328
332
  # @option options [String] :response_cache_control
329
333
  # Sets the `Cache-Control` header of the response.
330
334
  # @option options [String] :response_content_disposition
@@ -378,7 +382,9 @@ module Aws::S3
378
382
  key: @object_key,
379
383
  version_id: @id
380
384
  )
381
- resp = @client.get_object(options, &block)
385
+ resp = Aws::Plugins::UserAgent.feature('resource') do
386
+ @client.get_object(options, &block)
387
+ end
382
388
  resp.data
383
389
  end
384
390
 
@@ -412,8 +418,10 @@ module Aws::S3
412
418
  # Return the object only if it has not been modified since the specified
413
419
  # time; otherwise, return a 412 (precondition failed) error.
414
420
  # @option options [String] :range
415
- # Because `HeadObject` returns only the metadata for an object, this
416
- # parameter has no effect.
421
+ # HeadObject returns only the metadata for an object. If the Range is
422
+ # satisfiable, only the `ContentLength` is affected in the response. If
423
+ # the Range is not satisfiable, S3 returns a `416 - Requested Range Not
424
+ # Satisfiable` error.
417
425
  # @option options [String] :sse_customer_algorithm
418
426
  # Specifies the algorithm to use to when encrypting the object (for
419
427
  # example, AES256).
@@ -460,7 +468,9 @@ module Aws::S3
460
468
  key: @object_key,
461
469
  version_id: @id
462
470
  )
463
- resp = @client.head_object(options)
471
+ resp = Aws::Plugins::UserAgent.feature('resource') do
472
+ @client.head_object(options)
473
+ end
464
474
  resp.data
465
475
  end
466
476
 
@@ -589,7 +599,9 @@ module Aws::S3
589
599
  version_id: item.id
590
600
  }
591
601
  end
592
- batch[0].client.delete_objects(params)
602
+ Aws::Plugins::UserAgent.feature('resource') do
603
+ batch[0].client.delete_objects(params)
604
+ end
593
605
  end
594
606
  nil
595
607
  end
@@ -94,7 +94,9 @@ module Aws::S3
94
94
  # equivalent form of this ACL expressed in the XML format.
95
95
  # @return [Bucket]
96
96
  def create_bucket(options = {})
97
- @client.create_bucket(options)
97
+ Aws::Plugins::UserAgent.feature('resource') do
98
+ @client.create_bucket(options)
99
+ end
98
100
  Bucket.new(
99
101
  name: options[:bucket],
100
102
  client: @client
@@ -120,7 +122,9 @@ module Aws::S3
120
122
  def buckets(options = {})
121
123
  batches = Enumerator.new do |y|
122
124
  batch = []
123
- resp = @client.list_buckets(options)
125
+ resp = Aws::Plugins::UserAgent.feature('resource') do
126
+ @client.list_buckets(options)
127
+ end
124
128
  resp.data.buckets.each do |b|
125
129
  batch << Bucket.new(
126
130
  name: b.name,