aws-sdk-s3 1.122.0 → 1.123.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +30 -10
- 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 +6 -1
- 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 +14 -12
- 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 +36 -12
- 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 +30 -10
- data/lib/aws-sdk-s3/object_version.rb +15 -5
- data/lib/aws-sdk-s3/resource.rb +6 -2
- 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
|
|
@@ -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
|
|
@@ -462,7 +468,9 @@ module Aws::S3
|
|
462
468
|
key: @object_key,
|
463
469
|
version_id: @id
|
464
470
|
)
|
465
|
-
resp =
|
471
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
472
|
+
@client.head_object(options)
|
473
|
+
end
|
466
474
|
resp.data
|
467
475
|
end
|
468
476
|
|
@@ -591,7 +599,9 @@ module Aws::S3
|
|
591
599
|
version_id: item.id
|
592
600
|
}
|
593
601
|
end
|
594
|
-
|
602
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
603
|
+
batch[0].client.delete_objects(params)
|
604
|
+
end
|
595
605
|
end
|
596
606
|
nil
|
597
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,
|
data/lib/aws-sdk-s3.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.123.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: '3'
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 3.
|
50
|
+
version: 3.174.0
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: '3'
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 3.
|
60
|
+
version: 3.174.0
|
61
61
|
description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
|
62
62
|
This gem is part of the AWS SDK for Ruby.
|
63
63
|
email:
|