aws-sdk-s3 1.122.0 → 1.123.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -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 +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 +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
@@ -152,8 +152,10 @@ module Aws::S3
|
|
152
152
|
options, params = separate_params_and_options(options)
|
153
153
|
waiter = Waiters::ObjectExists.new(options)
|
154
154
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
155
|
-
|
155
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
156
|
+
waiter.wait(params.merge(bucket: @bucket_name,
|
156
157
|
key: @key))
|
158
|
+
end
|
157
159
|
ObjectSummary.new({
|
158
160
|
bucket_name: @bucket_name,
|
159
161
|
key: @key,
|
@@ -171,8 +173,10 @@ module Aws::S3
|
|
171
173
|
options, params = separate_params_and_options(options)
|
172
174
|
waiter = Waiters::ObjectNotExists.new(options)
|
173
175
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
174
|
-
|
176
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
177
|
+
waiter.wait(params.merge(bucket: @bucket_name,
|
175
178
|
key: @key))
|
179
|
+
end
|
176
180
|
ObjectSummary.new({
|
177
181
|
bucket_name: @bucket_name,
|
178
182
|
key: @key,
|
@@ -274,7 +278,9 @@ module Aws::S3
|
|
274
278
|
:retry
|
275
279
|
end
|
276
280
|
end
|
277
|
-
Aws::
|
281
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
282
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
283
|
+
end
|
278
284
|
end
|
279
285
|
|
280
286
|
# @!group Actions
|
@@ -536,7 +542,9 @@ module Aws::S3
|
|
536
542
|
bucket: @bucket_name,
|
537
543
|
key: @key
|
538
544
|
)
|
539
|
-
resp =
|
545
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
546
|
+
@client.copy_object(options)
|
547
|
+
end
|
540
548
|
resp.data
|
541
549
|
end
|
542
550
|
|
@@ -581,7 +589,9 @@ module Aws::S3
|
|
581
589
|
bucket: @bucket_name,
|
582
590
|
key: @key
|
583
591
|
)
|
584
|
-
resp =
|
592
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
593
|
+
@client.delete_object(options)
|
594
|
+
end
|
585
595
|
resp.data
|
586
596
|
end
|
587
597
|
|
@@ -688,7 +698,9 @@ module Aws::S3
|
|
688
698
|
bucket: @bucket_name,
|
689
699
|
key: @key
|
690
700
|
)
|
691
|
-
resp =
|
701
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
702
|
+
@client.get_object(options, &block)
|
703
|
+
end
|
692
704
|
resp.data
|
693
705
|
end
|
694
706
|
|
@@ -858,7 +870,9 @@ module Aws::S3
|
|
858
870
|
bucket: @bucket_name,
|
859
871
|
key: @key
|
860
872
|
)
|
861
|
-
resp =
|
873
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
874
|
+
@client.create_multipart_upload(options)
|
875
|
+
end
|
862
876
|
MultipartUpload.new(
|
863
877
|
bucket_name: @bucket_name,
|
864
878
|
object_key: @key,
|
@@ -1169,7 +1183,9 @@ module Aws::S3
|
|
1169
1183
|
bucket: @bucket_name,
|
1170
1184
|
key: @key
|
1171
1185
|
)
|
1172
|
-
resp =
|
1186
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1187
|
+
@client.put_object(options)
|
1188
|
+
end
|
1173
1189
|
resp.data
|
1174
1190
|
end
|
1175
1191
|
|
@@ -1302,7 +1318,9 @@ module Aws::S3
|
|
1302
1318
|
bucket: @bucket_name,
|
1303
1319
|
key: @key
|
1304
1320
|
)
|
1305
|
-
resp =
|
1321
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1322
|
+
@client.restore_object(options)
|
1323
|
+
end
|
1306
1324
|
resp.data
|
1307
1325
|
end
|
1308
1326
|
|
@@ -1484,7 +1502,9 @@ module Aws::S3
|
|
1484
1502
|
key: item.key
|
1485
1503
|
}
|
1486
1504
|
end
|
1487
|
-
|
1505
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
1506
|
+
batch[0].client.delete_objects(params)
|
1507
|
+
end
|
1488
1508
|
end
|
1489
1509
|
nil
|
1490
1510
|
end
|
@@ -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.1
|
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-
|
11
|
+
date: 2023-06-02 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:
|