aws-sdk-s3 1.96.2 → 1.113.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 +105 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/arn/access_point_arn.rb +6 -6
- data/lib/aws-sdk-s3/arn/multi_region_access_point_arn.rb +68 -0
- data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +6 -6
- data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +7 -6
- data/lib/aws-sdk-s3/bucket.rb +126 -29
- data/lib/aws-sdk-s3/bucket_acl.rb +21 -4
- data/lib/aws-sdk-s3/bucket_cors.rb +23 -6
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +27 -8
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +28 -6
- data/lib/aws-sdk-s3/bucket_logging.rb +21 -4
- data/lib/aws-sdk-s3/bucket_notification.rb +19 -7
- data/lib/aws-sdk-s3/bucket_policy.rb +23 -6
- data/lib/aws-sdk-s3/bucket_request_payment.rb +21 -4
- data/lib/aws-sdk-s3/bucket_tagging.rb +23 -6
- data/lib/aws-sdk-s3/bucket_versioning.rb +63 -12
- data/lib/aws-sdk-s3/bucket_website.rb +23 -6
- data/lib/aws-sdk-s3/client.rb +2691 -1278
- data/lib/aws-sdk-s3/client_api.rb +390 -21
- data/lib/aws-sdk-s3/customizations/object.rb +78 -5
- data/lib/aws-sdk-s3/encryption/client.rb +1 -1
- data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +0 -4
- data/lib/aws-sdk-s3/encryptionV2/client.rb +1 -1
- data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +0 -4
- data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +0 -4
- data/lib/aws-sdk-s3/file_downloader.rb +1 -1
- data/lib/aws-sdk-s3/file_uploader.rb +6 -1
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +26 -7
- data/lib/aws-sdk-s3/multipart_upload.rb +126 -12
- data/lib/aws-sdk-s3/multipart_upload_part.rb +134 -14
- data/lib/aws-sdk-s3/object.rb +291 -115
- data/lib/aws-sdk-s3/object_acl.rb +23 -6
- data/lib/aws-sdk-s3/object_summary.rb +207 -80
- data/lib/aws-sdk-s3/object_version.rb +66 -39
- data/lib/aws-sdk-s3/plugins/accelerate.rb +7 -1
- data/lib/aws-sdk-s3/plugins/arn.rb +59 -33
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +1 -1
- data/lib/aws-sdk-s3/plugins/dualstack.rb +25 -31
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +6 -0
- data/lib/aws-sdk-s3/plugins/md5s.rb +5 -3
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +29 -5
- data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
- data/lib/aws-sdk-s3/presigned_post.rb +38 -19
- data/lib/aws-sdk-s3/presigner.rb +6 -0
- data/lib/aws-sdk-s3/resource.rb +18 -0
- data/lib/aws-sdk-s3/types.rb +2928 -920
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +9 -7
@@ -76,6 +76,62 @@ module Aws::S3
|
|
76
76
|
data[:size]
|
77
77
|
end
|
78
78
|
|
79
|
+
# This header can be used as a data integrity check to verify that the
|
80
|
+
# data received is the same data that was originally sent. This header
|
81
|
+
# specifies the base64-encoded, 32-bit CRC32 checksum of the object. For
|
82
|
+
# more information, see [Checking object integrity][1] in the *Amazon S3
|
83
|
+
# User Guide*.
|
84
|
+
#
|
85
|
+
#
|
86
|
+
#
|
87
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
88
|
+
# @return [String]
|
89
|
+
def checksum_crc32
|
90
|
+
data[:checksum_crc32]
|
91
|
+
end
|
92
|
+
|
93
|
+
# The base64-encoded, 32-bit CRC32C checksum of the object. This will
|
94
|
+
# only be present if it was uploaded with the object. With multipart
|
95
|
+
# uploads, this may not be a checksum value of the object. For more
|
96
|
+
# information about how checksums are calculated with multipart uploads,
|
97
|
+
# see [ Checking object integrity][1] in the *Amazon S3 User Guide*.
|
98
|
+
#
|
99
|
+
#
|
100
|
+
#
|
101
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums
|
102
|
+
# @return [String]
|
103
|
+
def checksum_crc32c
|
104
|
+
data[:checksum_crc32c]
|
105
|
+
end
|
106
|
+
|
107
|
+
# The base64-encoded, 160-bit SHA-1 digest of the object. This will only
|
108
|
+
# be present if it was uploaded with the object. With multipart uploads,
|
109
|
+
# this may not be a checksum value of the object. For more information
|
110
|
+
# about how checksums are calculated with multipart uploads, see [
|
111
|
+
# Checking object integrity][1] in the *Amazon S3 User Guide*.
|
112
|
+
#
|
113
|
+
#
|
114
|
+
#
|
115
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums
|
116
|
+
# @return [String]
|
117
|
+
def checksum_sha1
|
118
|
+
data[:checksum_sha1]
|
119
|
+
end
|
120
|
+
|
121
|
+
# This header can be used as a data integrity check to verify that the
|
122
|
+
# data received is the same data that was originally sent. This header
|
123
|
+
# specifies the base64-encoded, 256-bit SHA-256 digest of the object.
|
124
|
+
# For more information, see [Checking object integrity][1] in the
|
125
|
+
# *Amazon S3 User Guide*.
|
126
|
+
#
|
127
|
+
#
|
128
|
+
#
|
129
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
130
|
+
# @return [String]
|
131
|
+
def checksum_sha256
|
132
|
+
data[:checksum_sha256]
|
133
|
+
end
|
134
|
+
|
79
135
|
# @!endgroup
|
80
136
|
|
81
137
|
# @return [Client]
|
@@ -234,8 +290,8 @@ module Aws::S3
|
|
234
290
|
# of the source bucket and key of the source object, separated by a
|
235
291
|
# slash (/). For example, to copy the object `reports/january.pdf`
|
236
292
|
# from the bucket `awsexamplebucket`, use
|
237
|
-
# `awsexamplebucket/reports/january.pdf`. The value must be
|
238
|
-
# encoded.
|
293
|
+
# `awsexamplebucket/reports/january.pdf`. The value must be
|
294
|
+
# URL-encoded.
|
239
295
|
#
|
240
296
|
# * For objects accessed through access points, specify the Amazon
|
241
297
|
# Resource Name (ARN) of the object as accessed through the access
|
@@ -248,7 +304,8 @@ module Aws::S3
|
|
248
304
|
# The value must be URL encoded.
|
249
305
|
#
|
250
306
|
# <note markdown="1"> Amazon S3 supports copy operations using access points only when the
|
251
|
-
# source and destination buckets are in the same
|
307
|
+
# source and destination buckets are in the same Amazon Web Services
|
308
|
+
# Region.
|
252
309
|
#
|
253
310
|
# </note>
|
254
311
|
#
|
@@ -259,7 +316,7 @@ module Aws::S3
|
|
259
316
|
# outpost `my-outpost` owned by account `123456789012` in Region
|
260
317
|
# `us-west-2`, use the URL encoding of
|
261
318
|
# `arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf`.
|
262
|
-
# The value must be URL
|
319
|
+
# The value must be URL-encoded.
|
263
320
|
#
|
264
321
|
# To copy a specific version of an object, append
|
265
322
|
# `?versionId=<version-id>` to the value (for example,
|
@@ -315,8 +372,8 @@ module Aws::S3
|
|
315
372
|
# @option options [String] :request_payer
|
316
373
|
# Confirms that the requester knows that they will be charged for the
|
317
374
|
# request. Bucket owners need not specify this parameter in their
|
318
|
-
# requests. For information about downloading objects from
|
319
|
-
#
|
375
|
+
# requests. For information about downloading objects from Requester
|
376
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
320
377
|
# in the *Amazon S3 User Guide*.
|
321
378
|
#
|
322
379
|
#
|
@@ -324,12 +381,12 @@ module Aws::S3
|
|
324
381
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
325
382
|
# @option options [String] :expected_bucket_owner
|
326
383
|
# The account ID of the expected destination bucket owner. If the
|
327
|
-
# destination bucket is owned by a different account, the request
|
328
|
-
#
|
384
|
+
# destination bucket is owned by a different account, the request fails
|
385
|
+
# with the HTTP status code `403 Forbidden` (access denied).
|
329
386
|
# @option options [String] :expected_source_bucket_owner
|
330
387
|
# The account ID of the expected source bucket owner. If the source
|
331
|
-
# bucket is owned by a different account, the request
|
332
|
-
# HTTP `403 (
|
388
|
+
# bucket is owned by a different account, the request fails with the
|
389
|
+
# HTTP status code `403 Forbidden` (access denied).
|
333
390
|
# @return [Types::UploadPartCopyOutput]
|
334
391
|
def copy_from(options = {})
|
335
392
|
options = options.merge(
|
@@ -348,6 +405,11 @@ module Aws::S3
|
|
348
405
|
# body: source_file,
|
349
406
|
# content_length: 1,
|
350
407
|
# content_md5: "ContentMD5",
|
408
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
409
|
+
# checksum_crc32: "ChecksumCRC32",
|
410
|
+
# checksum_crc32c: "ChecksumCRC32C",
|
411
|
+
# checksum_sha1: "ChecksumSHA1",
|
412
|
+
# checksum_sha256: "ChecksumSHA256",
|
351
413
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
352
414
|
# sse_customer_key: "SSECustomerKey",
|
353
415
|
# sse_customer_key_md5: "SSECustomerKeyMD5",
|
@@ -364,6 +426,64 @@ module Aws::S3
|
|
364
426
|
# The base64-encoded 128-bit MD5 digest of the part data. This parameter
|
365
427
|
# is auto-populated when using the command from the CLI. This parameter
|
366
428
|
# is required if object lock parameters are specified.
|
429
|
+
# @option options [String] :checksum_algorithm
|
430
|
+
# Indicates the algorithm used to create the checksum for the object
|
431
|
+
# when using the SDK. This header will not provide any additional
|
432
|
+
# functionality if not using the SDK. When sending this header, there
|
433
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
434
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
435
|
+
# `400 Bad Request`. For more information, see [Checking object
|
436
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
437
|
+
#
|
438
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
439
|
+
# `ChecksumAlgorithm` parameter.
|
440
|
+
#
|
441
|
+
# This checksum algorithm must be the same for all parts and it match
|
442
|
+
# the checksum value supplied in the `CreateMultipartUpload` request.
|
443
|
+
#
|
444
|
+
#
|
445
|
+
#
|
446
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
447
|
+
# @option options [String] :checksum_crc32
|
448
|
+
# This header can be used as a data integrity check to verify that the
|
449
|
+
# data received is the same data that was originally sent. This header
|
450
|
+
# specifies the base64-encoded, 32-bit CRC32 checksum of the object. For
|
451
|
+
# more information, see [Checking object integrity][1] in the *Amazon S3
|
452
|
+
# User Guide*.
|
453
|
+
#
|
454
|
+
#
|
455
|
+
#
|
456
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
457
|
+
# @option options [String] :checksum_crc32c
|
458
|
+
# This header can be used as a data integrity check to verify that the
|
459
|
+
# data received is the same data that was originally sent. This header
|
460
|
+
# specifies the base64-encoded, 32-bit CRC32C checksum of the object.
|
461
|
+
# For more information, see [Checking object integrity][1] in the
|
462
|
+
# *Amazon S3 User Guide*.
|
463
|
+
#
|
464
|
+
#
|
465
|
+
#
|
466
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
467
|
+
# @option options [String] :checksum_sha1
|
468
|
+
# This header can be used as a data integrity check to verify that the
|
469
|
+
# data received is the same data that was originally sent. This header
|
470
|
+
# specifies the base64-encoded, 160-bit SHA-1 digest of the object. For
|
471
|
+
# more information, see [Checking object integrity][1] in the *Amazon S3
|
472
|
+
# User Guide*.
|
473
|
+
#
|
474
|
+
#
|
475
|
+
#
|
476
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
477
|
+
# @option options [String] :checksum_sha256
|
478
|
+
# This header can be used as a data integrity check to verify that the
|
479
|
+
# data received is the same data that was originally sent. This header
|
480
|
+
# specifies the base64-encoded, 256-bit SHA-256 digest of the object.
|
481
|
+
# For more information, see [Checking object integrity][1] in the
|
482
|
+
# *Amazon S3 User Guide*.
|
483
|
+
#
|
484
|
+
#
|
485
|
+
#
|
486
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
367
487
|
# @option options [String] :sse_customer_algorithm
|
368
488
|
# Specifies the algorithm to use to when encrypting the object (for
|
369
489
|
# example, AES256).
|
@@ -382,8 +502,8 @@ module Aws::S3
|
|
382
502
|
# @option options [String] :request_payer
|
383
503
|
# Confirms that the requester knows that they will be charged for the
|
384
504
|
# request. Bucket owners need not specify this parameter in their
|
385
|
-
# requests. For information about downloading objects from
|
386
|
-
#
|
505
|
+
# requests. For information about downloading objects from Requester
|
506
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
387
507
|
# in the *Amazon S3 User Guide*.
|
388
508
|
#
|
389
509
|
#
|
@@ -391,8 +511,8 @@ module Aws::S3
|
|
391
511
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
392
512
|
# @option options [String] :expected_bucket_owner
|
393
513
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
394
|
-
# a different account, the request
|
395
|
-
#
|
514
|
+
# a different account, the request fails with the HTTP status code `403
|
515
|
+
# Forbidden` (access denied).
|
396
516
|
# @return [Types::UploadPartOutput]
|
397
517
|
def upload(options = {})
|
398
518
|
options = options.merge(
|