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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +48 -25
- data/lib/aws-sdk-s3/bucket_acl.rb +9 -3
- data/lib/aws-sdk-s3/bucket_cors.rb +12 -4
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +12 -4
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +12 -4
- data/lib/aws-sdk-s3/bucket_logging.rb +9 -3
- data/lib/aws-sdk-s3/bucket_notification.rb +9 -3
- data/lib/aws-sdk-s3/bucket_policy.rb +12 -4
- data/lib/aws-sdk-s3/bucket_request_payment.rb +9 -3
- data/lib/aws-sdk-s3/bucket_tagging.rb +12 -4
- data/lib/aws-sdk-s3/bucket_versioning.rb +15 -5
- data/lib/aws-sdk-s3/bucket_website.rb +12 -4
- data/lib/aws-sdk-s3/client.rb +1547 -1300
- data/lib/aws-sdk-s3/customizations/bucket.rb +3 -1
- data/lib/aws-sdk-s3/customizations/object.rb +28 -18
- data/lib/aws-sdk-s3/encryption/client.rb +6 -2
- data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +13 -9
- data/lib/aws-sdk-s3/encryptionV2/client.rb +6 -2
- data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +10 -6
- data/lib/aws-sdk-s3/file_downloader.rb +28 -24
- data/lib/aws-sdk-s3/file_uploader.rb +8 -6
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +5 -3
- data/lib/aws-sdk-s3/multipart_upload.rb +12 -4
- data/lib/aws-sdk-s3/multipart_upload_part.rb +9 -3
- data/lib/aws-sdk-s3/object.rb +77 -48
- data/lib/aws-sdk-s3/object_acl.rb +9 -3
- data/lib/aws-sdk-s3/object_copier.rb +7 -5
- data/lib/aws-sdk-s3/object_summary.rb +63 -37
- data/lib/aws-sdk-s3/object_version.rb +21 -9
- data/lib/aws-sdk-s3/resource.rb +6 -2
- data/lib/aws-sdk-s3/types.rb +403 -263
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +4 -4
@@ -229,7 +229,9 @@ module Aws::S3
|
|
229
229
|
:retry
|
230
230
|
end
|
231
231
|
end
|
232
|
-
Aws::
|
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 =
|
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.
|
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.
|
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 =
|
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
|
-
#
|
416
|
-
#
|
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 =
|
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
|
-
|
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
|
data/lib/aws-sdk-s3/resource.rb
CHANGED
@@ -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
|
-
|
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 =
|
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,
|