aws-sdk-s3 1.48.0 → 1.60.0
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/lib/aws-sdk-s3/bucket.rb +183 -54
- data/lib/aws-sdk-s3/bucket_acl.rb +9 -1
- data/lib/aws-sdk-s3/bucket_cors.rb +18 -1
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +2 -1
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +3 -1
- data/lib/aws-sdk-s3/bucket_logging.rb +11 -1
- data/lib/aws-sdk-s3/bucket_notification.rb +7 -3
- data/lib/aws-sdk-s3/bucket_policy.rb +2 -0
- data/lib/aws-sdk-s3/bucket_request_payment.rb +10 -0
- data/lib/aws-sdk-s3/bucket_tagging.rb +10 -1
- data/lib/aws-sdk-s3/bucket_versioning.rb +26 -0
- data/lib/aws-sdk-s3/bucket_website.rb +15 -4
- data/lib/aws-sdk-s3/client.rb +5133 -519
- data/lib/aws-sdk-s3/client_api.rb +33 -0
- data/lib/aws-sdk-s3/customizations/bucket.rb +44 -13
- data/lib/aws-sdk-s3/customizations/object.rb +65 -43
- data/lib/aws-sdk-s3/encryption/client.rb +4 -0
- data/lib/aws-sdk-s3/file_part.rb +9 -6
- data/lib/aws-sdk-s3/file_uploader.rb +13 -12
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +14 -11
- data/lib/aws-sdk-s3/multipart_upload.rb +31 -16
- data/lib/aws-sdk-s3/multipart_upload_part.rb +38 -29
- data/lib/aws-sdk-s3/object.rb +330 -129
- data/lib/aws-sdk-s3/object_acl.rb +25 -7
- data/lib/aws-sdk-s3/object_summary.rb +243 -117
- data/lib/aws-sdk-s3/object_version.rb +67 -46
- data/lib/aws-sdk-s3/plugins/bucket_arn.rb +211 -0
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +7 -7
- data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +23 -3
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +59 -0
- data/lib/aws-sdk-s3/plugins/md5s.rb +3 -4
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +16 -6
- data/lib/aws-sdk-s3/presigned_post.rb +4 -0
- data/lib/aws-sdk-s3/presigner.rb +6 -2
- data/lib/aws-sdk-s3/resource.rb +4 -2
- data/lib/aws-sdk-s3/types.rb +3027 -635
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +6 -4
|
@@ -27,6 +27,7 @@ module Aws::S3
|
|
|
27
27
|
@id = extract_id(args, options)
|
|
28
28
|
@data = options.delete(:data)
|
|
29
29
|
@client = options.delete(:client) || Client.new(options)
|
|
30
|
+
@waiter_block_warned = false
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
# @!group Read-Only Attributes
|
|
@@ -70,7 +71,8 @@ module Aws::S3
|
|
|
70
71
|
data[:storage_class]
|
|
71
72
|
end
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
# Specifies the owner of the object that is part of the multipart
|
|
75
|
+
# upload.
|
|
74
76
|
# @return [Types::Owner]
|
|
75
77
|
def owner
|
|
76
78
|
data[:owner]
|
|
@@ -216,11 +218,15 @@ module Aws::S3
|
|
|
216
218
|
# })
|
|
217
219
|
# @param [Hash] options ({})
|
|
218
220
|
# @option options [String] :request_payer
|
|
219
|
-
# Confirms that the requester knows that
|
|
220
|
-
#
|
|
221
|
-
# requests.
|
|
222
|
-
# buckets
|
|
223
|
-
#
|
|
221
|
+
# Confirms that the requester knows that they will be charged for the
|
|
222
|
+
# request. Bucket owners need not specify this parameter in their
|
|
223
|
+
# requests. For information about downloading objects from requester
|
|
224
|
+
# pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
|
|
225
|
+
# in the *Amazon S3 Developer Guide*.
|
|
226
|
+
#
|
|
227
|
+
#
|
|
228
|
+
#
|
|
229
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
|
224
230
|
# @return [Types::AbortMultipartUploadOutput]
|
|
225
231
|
def abort(options = {})
|
|
226
232
|
options = options.merge(
|
|
@@ -247,12 +253,17 @@ module Aws::S3
|
|
|
247
253
|
# })
|
|
248
254
|
# @param [Hash] options ({})
|
|
249
255
|
# @option options [Types::CompletedMultipartUpload] :multipart_upload
|
|
256
|
+
# The container for the multipart upload request information.
|
|
250
257
|
# @option options [String] :request_payer
|
|
251
|
-
# Confirms that the requester knows that
|
|
252
|
-
#
|
|
253
|
-
# requests.
|
|
254
|
-
# buckets
|
|
255
|
-
#
|
|
258
|
+
# Confirms that the requester knows that they will be charged for the
|
|
259
|
+
# request. Bucket owners need not specify this parameter in their
|
|
260
|
+
# requests. For information about downloading objects from requester
|
|
261
|
+
# pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
|
|
262
|
+
# in the *Amazon S3 Developer Guide*.
|
|
263
|
+
#
|
|
264
|
+
#
|
|
265
|
+
#
|
|
266
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
|
256
267
|
# @return [Object]
|
|
257
268
|
def complete(options = {})
|
|
258
269
|
options = options.merge(
|
|
@@ -298,11 +309,15 @@ module Aws::S3
|
|
|
298
309
|
# })
|
|
299
310
|
# @param [Hash] options ({})
|
|
300
311
|
# @option options [String] :request_payer
|
|
301
|
-
# Confirms that the requester knows that
|
|
302
|
-
#
|
|
303
|
-
# requests.
|
|
304
|
-
# buckets
|
|
305
|
-
#
|
|
312
|
+
# Confirms that the requester knows that they will be charged for the
|
|
313
|
+
# request. Bucket owners need not specify this parameter in their
|
|
314
|
+
# requests. For information about downloading objects from requester
|
|
315
|
+
# pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
|
|
316
|
+
# in the *Amazon S3 Developer Guide*.
|
|
317
|
+
#
|
|
318
|
+
#
|
|
319
|
+
#
|
|
320
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
|
306
321
|
# @return [MultipartUploadPart::Collection]
|
|
307
322
|
def parts(options = {})
|
|
308
323
|
batches = Enumerator.new do |y|
|
|
@@ -30,6 +30,7 @@ module Aws::S3
|
|
|
30
30
|
@part_number = extract_part_number(args, options)
|
|
31
31
|
@data = options.delete(:data)
|
|
32
32
|
@client = options.delete(:client) || Client.new(options)
|
|
33
|
+
@waiter_block_warned = false
|
|
33
34
|
end
|
|
34
35
|
|
|
35
36
|
# @!group Read-Only Attributes
|
|
@@ -234,26 +235,26 @@ module Aws::S3
|
|
|
234
235
|
# The range of bytes to copy from the source object. The range value
|
|
235
236
|
# must use the form bytes=first-last, where the first and last are the
|
|
236
237
|
# zero-based byte offsets to copy. For example, bytes=0-9 indicates that
|
|
237
|
-
# you want to copy the first
|
|
238
|
+
# you want to copy the first 10 bytes of the source. You can copy a
|
|
238
239
|
# range only if the source object is greater than 5 MB.
|
|
239
240
|
# @option options [String] :sse_customer_algorithm
|
|
240
|
-
# Specifies the algorithm to use to when encrypting the object (
|
|
241
|
-
# AES256).
|
|
241
|
+
# Specifies the algorithm to use to when encrypting the object (for
|
|
242
|
+
# example, AES256).
|
|
242
243
|
# @option options [String] :sse_customer_key
|
|
243
244
|
# Specifies the customer-provided encryption key for Amazon S3 to use in
|
|
244
245
|
# encrypting data. This value is used to store the object and then it is
|
|
245
|
-
# discarded; Amazon does not store the encryption key. The key must
|
|
246
|
-
# appropriate for use with the algorithm specified in the
|
|
247
|
-
# x-amz-server-side-encryption-customer-algorithm header. This must
|
|
248
|
-
# the same encryption key specified in the initiate multipart upload
|
|
246
|
+
# discarded; Amazon S3 does not store the encryption key. The key must
|
|
247
|
+
# be appropriate for use with the algorithm specified in the
|
|
248
|
+
# `x-amz-server-side-encryption-customer-algorithm` header. This must
|
|
249
|
+
# be the same encryption key specified in the initiate multipart upload
|
|
249
250
|
# request.
|
|
250
251
|
# @option options [String] :sse_customer_key_md5
|
|
251
252
|
# Specifies the 128-bit MD5 digest of the encryption key according to
|
|
252
253
|
# RFC 1321. Amazon S3 uses this header for a message integrity check to
|
|
253
|
-
# ensure the encryption key was transmitted without error.
|
|
254
|
+
# ensure that the encryption key was transmitted without error.
|
|
254
255
|
# @option options [String] :copy_source_sse_customer_algorithm
|
|
255
|
-
# Specifies the algorithm to use when decrypting the source object
|
|
256
|
-
#
|
|
256
|
+
# Specifies the algorithm to use when decrypting the source object (for
|
|
257
|
+
# example, AES256).
|
|
257
258
|
# @option options [String] :copy_source_sse_customer_key
|
|
258
259
|
# Specifies the customer-provided encryption key for Amazon S3 to use to
|
|
259
260
|
# decrypt the source object. The encryption key provided in this header
|
|
@@ -261,13 +262,17 @@ module Aws::S3
|
|
|
261
262
|
# @option options [String] :copy_source_sse_customer_key_md5
|
|
262
263
|
# Specifies the 128-bit MD5 digest of the encryption key according to
|
|
263
264
|
# RFC 1321. Amazon S3 uses this header for a message integrity check to
|
|
264
|
-
# ensure the encryption key was transmitted without error.
|
|
265
|
+
# ensure that the encryption key was transmitted without error.
|
|
265
266
|
# @option options [String] :request_payer
|
|
266
|
-
# Confirms that the requester knows that
|
|
267
|
-
#
|
|
268
|
-
# requests.
|
|
269
|
-
# buckets
|
|
270
|
-
#
|
|
267
|
+
# Confirms that the requester knows that they will be charged for the
|
|
268
|
+
# request. Bucket owners need not specify this parameter in their
|
|
269
|
+
# requests. For information about downloading objects from requester
|
|
270
|
+
# pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
|
|
271
|
+
# in the *Amazon S3 Developer Guide*.
|
|
272
|
+
#
|
|
273
|
+
#
|
|
274
|
+
#
|
|
275
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
|
271
276
|
# @return [Types::UploadPartCopyOutput]
|
|
272
277
|
def copy_from(options = {})
|
|
273
278
|
options = options.merge(
|
|
@@ -299,29 +304,33 @@ module Aws::S3
|
|
|
299
304
|
# the body cannot be determined automatically.
|
|
300
305
|
# @option options [String] :content_md5
|
|
301
306
|
# The base64-encoded 128-bit MD5 digest of the part data. This parameter
|
|
302
|
-
# is auto-populated when using the command from the CLI. This
|
|
307
|
+
# is auto-populated when using the command from the CLI. This parameter
|
|
303
308
|
# is required if object lock parameters are specified.
|
|
304
309
|
# @option options [String] :sse_customer_algorithm
|
|
305
|
-
# Specifies the algorithm to use to when encrypting the object (
|
|
306
|
-
# AES256).
|
|
310
|
+
# Specifies the algorithm to use to when encrypting the object (for
|
|
311
|
+
# example, AES256).
|
|
307
312
|
# @option options [String] :sse_customer_key
|
|
308
313
|
# Specifies the customer-provided encryption key for Amazon S3 to use in
|
|
309
314
|
# encrypting data. This value is used to store the object and then it is
|
|
310
|
-
# discarded; Amazon does not store the encryption key. The key must
|
|
311
|
-
# appropriate for use with the algorithm specified in the
|
|
312
|
-
# x-amz-server-side-encryption-customer-algorithm header
|
|
313
|
-
# the same encryption key specified in the initiate multipart upload
|
|
315
|
+
# discarded; Amazon S3 does not store the encryption key. The key must
|
|
316
|
+
# be appropriate for use with the algorithm specified in the
|
|
317
|
+
# `x-amz-server-side-encryption-customer-algorithm header`. This must
|
|
318
|
+
# be the same encryption key specified in the initiate multipart upload
|
|
314
319
|
# request.
|
|
315
320
|
# @option options [String] :sse_customer_key_md5
|
|
316
321
|
# Specifies the 128-bit MD5 digest of the encryption key according to
|
|
317
322
|
# RFC 1321. Amazon S3 uses this header for a message integrity check to
|
|
318
|
-
# ensure the encryption key was transmitted without error.
|
|
323
|
+
# ensure that the encryption key was transmitted without error.
|
|
319
324
|
# @option options [String] :request_payer
|
|
320
|
-
# Confirms that the requester knows that
|
|
321
|
-
#
|
|
322
|
-
# requests.
|
|
323
|
-
# buckets
|
|
324
|
-
#
|
|
325
|
+
# Confirms that the requester knows that they will be charged for the
|
|
326
|
+
# request. Bucket owners need not specify this parameter in their
|
|
327
|
+
# requests. For information about downloading objects from requester
|
|
328
|
+
# pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
|
|
329
|
+
# in the *Amazon S3 Developer Guide*.
|
|
330
|
+
#
|
|
331
|
+
#
|
|
332
|
+
#
|
|
333
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
|
325
334
|
# @return [Types::UploadPartOutput]
|
|
326
335
|
def upload(options = {})
|
|
327
336
|
options = options.merge(
|