aws-sdk-s3 1.122.0 → 1.136.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 +94 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +108 -49
- 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 +727 -626
- data/lib/aws-sdk-s3/client_api.rb +24 -0
- data/lib/aws-sdk-s3/customizations/bucket.rb +3 -1
- data/lib/aws-sdk-s3/customizations/errors.rb +1 -1
- data/lib/aws-sdk-s3/customizations/object.rb +91 -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/decrypt_handler.rb +1 -0
- data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +10 -6
- data/lib/aws-sdk-s3/endpoint_parameters.rb +4 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +22 -246
- data/lib/aws-sdk-s3/endpoints.rb +1 -0
- data/lib/aws-sdk-s3/file_downloader.rb +170 -44
- 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 +27 -13
- data/lib/aws-sdk-s3/multipart_upload_part.rb +19 -9
- data/lib/aws-sdk-s3/object.rb +125 -84
- data/lib/aws-sdk-s3/object_acl.rb +14 -6
- data/lib/aws-sdk-s3/object_copier.rb +7 -5
- data/lib/aws-sdk-s3/object_multipart_copier.rb +33 -17
- data/lib/aws-sdk-s3/object_summary.rb +123 -74
- data/lib/aws-sdk-s3/object_version.rb +49 -17
- data/lib/aws-sdk-s3/presigned_post.rb +52 -43
- data/lib/aws-sdk-s3/presigner.rb +4 -2
- data/lib/aws-sdk-s3/resource.rb +7 -3
- data/lib/aws-sdk-s3/types.rb +529 -299
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +6 -6
@@ -75,7 +75,9 @@ module Aws::S3
|
|
75
75
|
#
|
76
76
|
# @return [self]
|
77
77
|
def load
|
78
|
-
resp =
|
78
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
79
|
+
@client.get_bucket_notification_configuration(bucket: @bucket_name)
|
80
|
+
end
|
79
81
|
@data = resp.data
|
80
82
|
self
|
81
83
|
end
|
@@ -190,7 +192,9 @@ module Aws::S3
|
|
190
192
|
:retry
|
191
193
|
end
|
192
194
|
end
|
193
|
-
Aws::
|
195
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
196
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
197
|
+
end
|
194
198
|
end
|
195
199
|
|
196
200
|
# @!group Actions
|
@@ -271,7 +275,9 @@ module Aws::S3
|
|
271
275
|
# @return [EmptyStructure]
|
272
276
|
def put(options = {})
|
273
277
|
options = options.merge(bucket: @bucket_name)
|
274
|
-
resp =
|
278
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
279
|
+
@client.put_bucket_notification_configuration(options)
|
280
|
+
end
|
275
281
|
resp.data
|
276
282
|
end
|
277
283
|
|
@@ -54,7 +54,9 @@ module Aws::S3
|
|
54
54
|
#
|
55
55
|
# @return [self]
|
56
56
|
def load
|
57
|
-
resp =
|
57
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
58
|
+
@client.get_bucket_policy(bucket: @bucket_name)
|
59
|
+
end
|
58
60
|
@data = resp.data
|
59
61
|
self
|
60
62
|
end
|
@@ -169,7 +171,9 @@ module Aws::S3
|
|
169
171
|
:retry
|
170
172
|
end
|
171
173
|
end
|
172
|
-
Aws::
|
174
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
175
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
176
|
+
end
|
173
177
|
end
|
174
178
|
|
175
179
|
# @!group Actions
|
@@ -187,7 +191,9 @@ module Aws::S3
|
|
187
191
|
# @return [EmptyStructure]
|
188
192
|
def delete(options = {})
|
189
193
|
options = options.merge(bucket: @bucket_name)
|
190
|
-
resp =
|
194
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
195
|
+
@client.delete_bucket_policy(options)
|
196
|
+
end
|
191
197
|
resp.data
|
192
198
|
end
|
193
199
|
|
@@ -234,7 +240,9 @@ module Aws::S3
|
|
234
240
|
# @return [EmptyStructure]
|
235
241
|
def put(options = {})
|
236
242
|
options = options.merge(bucket: @bucket_name)
|
237
|
-
resp =
|
243
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
244
|
+
@client.put_bucket_policy(options)
|
245
|
+
end
|
238
246
|
resp.data
|
239
247
|
end
|
240
248
|
|
@@ -54,7 +54,9 @@ module Aws::S3
|
|
54
54
|
#
|
55
55
|
# @return [self]
|
56
56
|
def load
|
57
|
-
resp =
|
57
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
58
|
+
@client.get_bucket_request_payment(bucket: @bucket_name)
|
59
|
+
end
|
58
60
|
@data = resp.data
|
59
61
|
self
|
60
62
|
end
|
@@ -169,7 +171,9 @@ module Aws::S3
|
|
169
171
|
:retry
|
170
172
|
end
|
171
173
|
end
|
172
|
-
Aws::
|
174
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
175
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
176
|
+
end
|
173
177
|
end
|
174
178
|
|
175
179
|
# @!group Actions
|
@@ -221,7 +225,9 @@ module Aws::S3
|
|
221
225
|
# @return [EmptyStructure]
|
222
226
|
def put(options = {})
|
223
227
|
options = options.merge(bucket: @bucket_name)
|
224
|
-
resp =
|
228
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
229
|
+
@client.put_bucket_request_payment(options)
|
230
|
+
end
|
225
231
|
resp.data
|
226
232
|
end
|
227
233
|
|
@@ -54,7 +54,9 @@ module Aws::S3
|
|
54
54
|
#
|
55
55
|
# @return [self]
|
56
56
|
def load
|
57
|
-
resp =
|
57
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
58
|
+
@client.get_bucket_tagging(bucket: @bucket_name)
|
59
|
+
end
|
58
60
|
@data = resp.data
|
59
61
|
self
|
60
62
|
end
|
@@ -169,7 +171,9 @@ module Aws::S3
|
|
169
171
|
:retry
|
170
172
|
end
|
171
173
|
end
|
172
|
-
Aws::
|
174
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
175
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
176
|
+
end
|
173
177
|
end
|
174
178
|
|
175
179
|
# @!group Actions
|
@@ -187,7 +191,9 @@ module Aws::S3
|
|
187
191
|
# @return [EmptyStructure]
|
188
192
|
def delete(options = {})
|
189
193
|
options = options.merge(bucket: @bucket_name)
|
190
|
-
resp =
|
194
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
195
|
+
@client.delete_bucket_tagging(options)
|
196
|
+
end
|
191
197
|
resp.data
|
192
198
|
end
|
193
199
|
|
@@ -243,7 +249,9 @@ module Aws::S3
|
|
243
249
|
# @return [EmptyStructure]
|
244
250
|
def put(options = {})
|
245
251
|
options = options.merge(bucket: @bucket_name)
|
246
|
-
resp =
|
252
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
253
|
+
@client.put_bucket_tagging(options)
|
254
|
+
end
|
247
255
|
resp.data
|
248
256
|
end
|
249
257
|
|
@@ -63,7 +63,9 @@ module Aws::S3
|
|
63
63
|
#
|
64
64
|
# @return [self]
|
65
65
|
def load
|
66
|
-
resp =
|
66
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
67
|
+
@client.get_bucket_versioning(bucket: @bucket_name)
|
68
|
+
end
|
67
69
|
@data = resp.data
|
68
70
|
self
|
69
71
|
end
|
@@ -178,7 +180,9 @@ module Aws::S3
|
|
178
180
|
:retry
|
179
181
|
end
|
180
182
|
end
|
181
|
-
Aws::
|
183
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
184
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
185
|
+
end
|
182
186
|
end
|
183
187
|
|
184
188
|
# @!group Actions
|
@@ -235,7 +239,9 @@ module Aws::S3
|
|
235
239
|
status: "Enabled"
|
236
240
|
}
|
237
241
|
)
|
238
|
-
resp =
|
242
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
243
|
+
@client.put_bucket_versioning(options)
|
244
|
+
end
|
239
245
|
resp.data
|
240
246
|
end
|
241
247
|
|
@@ -292,7 +298,9 @@ module Aws::S3
|
|
292
298
|
# @return [EmptyStructure]
|
293
299
|
def put(options = {})
|
294
300
|
options = options.merge(bucket: @bucket_name)
|
295
|
-
resp =
|
301
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
302
|
+
@client.put_bucket_versioning(options)
|
303
|
+
end
|
296
304
|
resp.data
|
297
305
|
end
|
298
306
|
|
@@ -348,7 +356,9 @@ module Aws::S3
|
|
348
356
|
status: "Suspended"
|
349
357
|
}
|
350
358
|
)
|
351
|
-
resp =
|
359
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
360
|
+
@client.put_bucket_versioning(options)
|
361
|
+
end
|
352
362
|
resp.data
|
353
363
|
end
|
354
364
|
|
@@ -76,7 +76,9 @@ module Aws::S3
|
|
76
76
|
#
|
77
77
|
# @return [self]
|
78
78
|
def load
|
79
|
-
resp =
|
79
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
80
|
+
@client.get_bucket_website(bucket: @bucket_name)
|
81
|
+
end
|
80
82
|
@data = resp.data
|
81
83
|
self
|
82
84
|
end
|
@@ -191,7 +193,9 @@ module Aws::S3
|
|
191
193
|
:retry
|
192
194
|
end
|
193
195
|
end
|
194
|
-
Aws::
|
196
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
197
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
198
|
+
end
|
195
199
|
end
|
196
200
|
|
197
201
|
# @!group Actions
|
@@ -209,7 +213,9 @@ module Aws::S3
|
|
209
213
|
# @return [EmptyStructure]
|
210
214
|
def delete(options = {})
|
211
215
|
options = options.merge(bucket: @bucket_name)
|
212
|
-
resp =
|
216
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
217
|
+
@client.delete_bucket_website(options)
|
218
|
+
end
|
213
219
|
resp.data
|
214
220
|
end
|
215
221
|
|
@@ -284,7 +290,9 @@ module Aws::S3
|
|
284
290
|
# @return [EmptyStructure]
|
285
291
|
def put(options = {})
|
286
292
|
options = options.merge(bucket: @bucket_name)
|
287
|
-
resp =
|
293
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
294
|
+
@client.put_bucket_website(options)
|
295
|
+
end
|
288
296
|
resp.data
|
289
297
|
end
|
290
298
|
|