aws-sdk-s3 1.177.0 → 1.178.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/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +38 -24
- data/lib/aws-sdk-s3/bucket_acl.rb +5 -4
- data/lib/aws-sdk-s3/bucket_cors.rb +5 -4
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +1 -1
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +2 -2
- data/lib/aws-sdk-s3/bucket_logging.rb +1 -1
- data/lib/aws-sdk-s3/bucket_policy.rb +9 -8
- data/lib/aws-sdk-s3/bucket_request_payment.rb +2 -2
- data/lib/aws-sdk-s3/bucket_tagging.rb +2 -2
- data/lib/aws-sdk-s3/bucket_versioning.rb +6 -6
- data/lib/aws-sdk-s3/bucket_website.rb +2 -2
- data/lib/aws-sdk-s3/client.rb +379 -237
- data/lib/aws-sdk-s3/client_api.rb +34 -2
- data/lib/aws-sdk-s3/file_downloader.rb +4 -21
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +31 -13
- data/lib/aws-sdk-s3/multipart_upload.rb +48 -6
- data/lib/aws-sdk-s3/multipart_upload_part.rb +52 -36
- data/lib/aws-sdk-s3/object.rb +108 -58
- data/lib/aws-sdk-s3/object_acl.rb +4 -4
- data/lib/aws-sdk-s3/object_summary.rb +63 -28
- data/lib/aws-sdk-s3/object_version.rb +21 -8
- data/lib/aws-sdk-s3/plugins/checksum_algorithm.rb +31 -0
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +11 -20
- data/lib/aws-sdk-s3/plugins/md5s.rb +10 -71
- data/lib/aws-sdk-s3/presigner.rb +4 -5
- data/lib/aws-sdk-s3/types.rb +734 -416
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +3 -2
- data/sig/bucket_acl.rbs +1 -1
- data/sig/bucket_cors.rbs +1 -1
- data/sig/bucket_lifecycle.rbs +1 -1
- data/sig/bucket_lifecycle_configuration.rbs +1 -1
- data/sig/bucket_logging.rbs +1 -1
- data/sig/bucket_policy.rbs +1 -1
- data/sig/bucket_request_payment.rbs +1 -1
- data/sig/bucket_tagging.rbs +1 -1
- data/sig/bucket_versioning.rbs +3 -3
- data/sig/bucket_website.rbs +1 -1
- data/sig/client.rbs +50 -29
- data/sig/multipart_upload.rbs +8 -1
- data/sig/multipart_upload_part.rbs +5 -1
- data/sig/object.rbs +13 -5
- data/sig/object_acl.rbs +1 -1
- data/sig/object_summary.rbs +11 -6
- data/sig/object_version.rbs +5 -2
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +61 -32
- metadata +5 -5
- data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +0 -31
@@ -76,11 +76,10 @@ module Aws::S3
|
|
76
76
|
data[:size]
|
77
77
|
end
|
78
78
|
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
# *Amazon S3 User Guide*.
|
79
|
+
# The Base64 encoded, 32-bit `CRC-32` checksum of the part. This
|
80
|
+
# checksum is present if the object was uploaded with the `CRC-32`
|
81
|
+
# checksum algorithm. For more information, see [Checking object
|
82
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
84
83
|
#
|
85
84
|
#
|
86
85
|
#
|
@@ -90,45 +89,51 @@ module Aws::S3
|
|
90
89
|
data[:checksum_crc32]
|
91
90
|
end
|
92
91
|
|
93
|
-
# The
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# Instead, it's a calculation based on the checksum values of each
|
98
|
-
# individual part. For more information about how checksums are
|
99
|
-
# calculated with multipart uploads, see [ Checking object integrity][1]
|
100
|
-
# in the *Amazon S3 User Guide*.
|
92
|
+
# The Base64 encoded, 32-bit `CRC-32C` checksum of the part. This
|
93
|
+
# checksum is present if the object was uploaded with the `CRC-32C`
|
94
|
+
# checksum algorithm. For more information, see [Checking object
|
95
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
101
96
|
#
|
102
97
|
#
|
103
98
|
#
|
104
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
99
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
105
100
|
# @return [String]
|
106
101
|
def checksum_crc32c
|
107
102
|
data[:checksum_crc32c]
|
108
103
|
end
|
109
104
|
|
110
|
-
# The
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
# multipart uploads, see [ Checking object integrity][1] in the *Amazon
|
117
|
-
# S3 User Guide*.
|
105
|
+
# The Base64 encoded, 64-bit `CRC-64NVME` checksum of the part. This
|
106
|
+
# checksum is present if the multipart upload request was created with
|
107
|
+
# the `CRC-64NVME` checksum algorithm, or if the object was uploaded
|
108
|
+
# without a checksum (and Amazon S3 added the default checksum,
|
109
|
+
# `CRC-64NVME`, to the uploaded object). For more information, see
|
110
|
+
# [Checking object integrity][1] in the *Amazon S3 User Guide*.
|
118
111
|
#
|
119
112
|
#
|
120
113
|
#
|
121
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
114
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
115
|
+
# @return [String]
|
116
|
+
def checksum_crc64nvme
|
117
|
+
data[:checksum_crc64nvme]
|
118
|
+
end
|
119
|
+
|
120
|
+
# The Base64 encoded, 160-bit `SHA-1` checksum of the part. This
|
121
|
+
# checksum is present if the object was uploaded with the `SHA-1`
|
122
|
+
# checksum algorithm. For more information, see [Checking object
|
123
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
124
|
+
#
|
125
|
+
#
|
126
|
+
#
|
127
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
122
128
|
# @return [String]
|
123
129
|
def checksum_sha1
|
124
130
|
data[:checksum_sha1]
|
125
131
|
end
|
126
132
|
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
# *Amazon S3 User Guide*.
|
133
|
+
# The Base64 encoded, 256-bit `SHA-256` checksum of the part. This
|
134
|
+
# checksum is present if the object was uploaded with the `SHA-256`
|
135
|
+
# checksum algorithm. For more information, see [Checking object
|
136
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
132
137
|
#
|
133
138
|
#
|
134
139
|
#
|
@@ -512,9 +517,10 @@ module Aws::S3
|
|
512
517
|
# body: source_file,
|
513
518
|
# content_length: 1,
|
514
519
|
# content_md5: "ContentMD5",
|
515
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
520
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
516
521
|
# checksum_crc32: "ChecksumCRC32",
|
517
522
|
# checksum_crc32c: "ChecksumCRC32C",
|
523
|
+
# checksum_crc64nvme: "ChecksumCRC64NVME",
|
518
524
|
# checksum_sha1: "ChecksumSHA1",
|
519
525
|
# checksum_sha256: "ChecksumSHA256",
|
520
526
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
@@ -530,7 +536,7 @@ module Aws::S3
|
|
530
536
|
# Size of the body in bytes. This parameter is useful when the size of
|
531
537
|
# the body cannot be determined automatically.
|
532
538
|
# @option options [String] :content_md5
|
533
|
-
# The
|
539
|
+
# The Base64 encoded 128-bit MD5 digest of the part data. This parameter
|
534
540
|
# is auto-populated when using the command from the CLI. This parameter
|
535
541
|
# is required if object lock parameters are specified.
|
536
542
|
#
|
@@ -558,7 +564,7 @@ module Aws::S3
|
|
558
564
|
# @option options [String] :checksum_crc32
|
559
565
|
# This header can be used as a data integrity check to verify that the
|
560
566
|
# data received is the same data that was originally sent. This header
|
561
|
-
# specifies the
|
567
|
+
# specifies the Base64 encoded, 32-bit `CRC-32` checksum of the object.
|
562
568
|
# For more information, see [Checking object integrity][1] in the
|
563
569
|
# *Amazon S3 User Guide*.
|
564
570
|
#
|
@@ -568,19 +574,29 @@ module Aws::S3
|
|
568
574
|
# @option options [String] :checksum_crc32c
|
569
575
|
# This header can be used as a data integrity check to verify that the
|
570
576
|
# data received is the same data that was originally sent. This header
|
571
|
-
# specifies the
|
577
|
+
# specifies the Base64 encoded, 32-bit `CRC-32C` checksum of the object.
|
572
578
|
# For more information, see [Checking object integrity][1] in the
|
573
579
|
# *Amazon S3 User Guide*.
|
574
580
|
#
|
575
581
|
#
|
576
582
|
#
|
577
583
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
584
|
+
# @option options [String] :checksum_crc64nvme
|
585
|
+
# This header can be used as a data integrity check to verify that the
|
586
|
+
# data received is the same data that was originally sent. This header
|
587
|
+
# specifies the Base64 encoded, 64-bit `CRC-64NVME` checksum of the
|
588
|
+
# part. For more information, see [Checking object integrity][1] in the
|
589
|
+
# *Amazon S3 User Guide*.
|
590
|
+
#
|
591
|
+
#
|
592
|
+
#
|
593
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
578
594
|
# @option options [String] :checksum_sha1
|
579
595
|
# This header can be used as a data integrity check to verify that the
|
580
596
|
# data received is the same data that was originally sent. This header
|
581
|
-
# specifies the
|
582
|
-
# more information, see [Checking object integrity][1] in the
|
583
|
-
# User Guide*.
|
597
|
+
# specifies the Base64 encoded, 160-bit `SHA-1` digest of the object.
|
598
|
+
# For more information, see [Checking object integrity][1] in the
|
599
|
+
# *Amazon S3 User Guide*.
|
584
600
|
#
|
585
601
|
#
|
586
602
|
#
|
@@ -588,7 +604,7 @@ module Aws::S3
|
|
588
604
|
# @option options [String] :checksum_sha256
|
589
605
|
# This header can be used as a data integrity check to verify that the
|
590
606
|
# data received is the same data that was originally sent. This header
|
591
|
-
# specifies the
|
607
|
+
# specifies the Base64 encoded, 256-bit `SHA-256` digest of the object.
|
592
608
|
# For more information, see [Checking object integrity][1] in the
|
593
609
|
# *Amazon S3 User Guide*.
|
594
610
|
#
|
data/lib/aws-sdk-s3/object.rb
CHANGED
@@ -134,14 +134,14 @@ module Aws::S3
|
|
134
134
|
data[:content_length]
|
135
135
|
end
|
136
136
|
|
137
|
-
# The
|
138
|
-
# only be present if
|
139
|
-
# API operation on an object that was uploaded
|
140
|
-
# this value may not be a direct checksum value
|
141
|
-
# Instead, it's a calculation based on the checksum
|
142
|
-
# individual part. For more information about how
|
143
|
-
# calculated with multipart uploads, see [ Checking object
|
144
|
-
# in the *Amazon S3 User Guide*.
|
137
|
+
# The Base64 encoded, 32-bit `CRC-32 checksum` of the object. This
|
138
|
+
# checksum is only be present if the checksum was uploaded with the
|
139
|
+
# object. When you use an API operation on an object that was uploaded
|
140
|
+
# using multipart uploads, this value may not be a direct checksum value
|
141
|
+
# of the full object. Instead, it's a calculation based on the checksum
|
142
|
+
# values of each individual part. For more information about how
|
143
|
+
# checksums are calculated with multipart uploads, see [ Checking object
|
144
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
145
145
|
#
|
146
146
|
#
|
147
147
|
#
|
@@ -151,14 +151,14 @@ module Aws::S3
|
|
151
151
|
data[:checksum_crc32]
|
152
152
|
end
|
153
153
|
|
154
|
-
# The
|
155
|
-
# only
|
156
|
-
# API operation on an object that was uploaded using
|
157
|
-
# this value may not be a direct checksum value of
|
158
|
-
# Instead, it's a calculation based on the checksum
|
159
|
-
# individual part. For more information about how
|
160
|
-
# calculated with multipart uploads, see [ Checking object
|
161
|
-
# in the *Amazon S3 User Guide*.
|
154
|
+
# The Base64 encoded, 32-bit `CRC-32C` checksum of the object. This
|
155
|
+
# checksum is only present if the checksum was uploaded with the object.
|
156
|
+
# When you use an API operation on an object that was uploaded using
|
157
|
+
# multipart uploads, this value may not be a direct checksum value of
|
158
|
+
# the full object. Instead, it's a calculation based on the checksum
|
159
|
+
# values of each individual part. For more information about how
|
160
|
+
# checksums are calculated with multipart uploads, see [ Checking object
|
161
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
162
162
|
#
|
163
163
|
#
|
164
164
|
#
|
@@ -168,14 +168,26 @@ module Aws::S3
|
|
168
168
|
data[:checksum_crc32c]
|
169
169
|
end
|
170
170
|
|
171
|
-
# The
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
171
|
+
# The Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. For
|
172
|
+
# more information, see [Checking object integrity in the Amazon S3 User
|
173
|
+
# Guide][1].
|
174
|
+
#
|
175
|
+
#
|
176
|
+
#
|
177
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
178
|
+
# @return [String]
|
179
|
+
def checksum_crc64nvme
|
180
|
+
data[:checksum_crc64nvme]
|
181
|
+
end
|
182
|
+
|
183
|
+
# The Base64 encoded, 160-bit `SHA-1` digest of the object. This will
|
184
|
+
# only be present if the object was uploaded with the object. When you
|
185
|
+
# use the API operation on an object that was uploaded using multipart
|
186
|
+
# uploads, this value may not be a direct checksum value of the full
|
187
|
+
# object. Instead, it's a calculation based on the checksum values of
|
188
|
+
# each individual part. For more information about how checksums are
|
189
|
+
# calculated with multipart uploads, see [ Checking object integrity][1]
|
190
|
+
# in the *Amazon S3 User Guide*.
|
179
191
|
#
|
180
192
|
#
|
181
193
|
#
|
@@ -185,12 +197,12 @@ module Aws::S3
|
|
185
197
|
data[:checksum_sha1]
|
186
198
|
end
|
187
199
|
|
188
|
-
# The
|
189
|
-
# only be present if
|
190
|
-
# API operation on an object that was uploaded using multipart
|
191
|
-
# this value may not be a direct checksum value of the full
|
192
|
-
# Instead, it's a calculation based on the checksum values of
|
193
|
-
# individual part. For more information about how checksums are
|
200
|
+
# The Base64 encoded, 256-bit `SHA-256` digest of the object. This will
|
201
|
+
# only be present if the object was uploaded with the object. When you
|
202
|
+
# use an API operation on an object that was uploaded using multipart
|
203
|
+
# uploads, this value may not be a direct checksum value of the full
|
204
|
+
# object. Instead, it's a calculation based on the checksum values of
|
205
|
+
# each individual part. For more information about how checksums are
|
194
206
|
# calculated with multipart uploads, see [ Checking object integrity][1]
|
195
207
|
# in the *Amazon S3 User Guide*.
|
196
208
|
#
|
@@ -202,6 +214,21 @@ module Aws::S3
|
|
202
214
|
data[:checksum_sha256]
|
203
215
|
end
|
204
216
|
|
217
|
+
# The checksum type, which determines how part-level checksums are
|
218
|
+
# combined to create an object-level checksum for multipart objects. You
|
219
|
+
# can use this header response to verify that the checksum type that is
|
220
|
+
# received is the same checksum type that was specified in
|
221
|
+
# `CreateMultipartUpload` request. For more information, see [Checking
|
222
|
+
# object integrity in the Amazon S3 User Guide][1].
|
223
|
+
#
|
224
|
+
#
|
225
|
+
#
|
226
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
227
|
+
# @return [String]
|
228
|
+
def checksum_type
|
229
|
+
data[:checksum_type]
|
230
|
+
end
|
231
|
+
|
205
232
|
# An entity tag (ETag) is an opaque identifier assigned by a web server
|
206
233
|
# to a specific version of a resource found at a URL.
|
207
234
|
# @return [String]
|
@@ -676,7 +703,7 @@ module Aws::S3
|
|
676
703
|
# object.copy_from({
|
677
704
|
# acl: "private", # accepts private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, bucket-owner-full-control
|
678
705
|
# cache_control: "CacheControl",
|
679
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
706
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
680
707
|
# content_disposition: "ContentDisposition",
|
681
708
|
# content_encoding: "ContentEncoding",
|
682
709
|
# content_language: "ContentLanguage",
|
@@ -1810,7 +1837,8 @@ module Aws::S3
|
|
1810
1837
|
# object_lock_retain_until_date: Time.now,
|
1811
1838
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
1812
1839
|
# expected_bucket_owner: "AccountId",
|
1813
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
1840
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
1841
|
+
# checksum_type: "COMPOSITE", # accepts COMPOSITE, FULL_OBJECT
|
1814
1842
|
# })
|
1815
1843
|
# @param [Hash] options ({})
|
1816
1844
|
# @option options [String] :acl
|
@@ -2246,7 +2274,7 @@ module Aws::S3
|
|
2246
2274
|
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
|
2247
2275
|
# @option options [String] :ssekms_encryption_context
|
2248
2276
|
# Specifies the Amazon Web Services KMS Encryption Context to use for
|
2249
|
-
# object encryption. The value of this header is a Base64
|
2277
|
+
# object encryption. The value of this header is a Base64 encoded string
|
2250
2278
|
# of a UTF-8 encoded JSON, which contains the encryption context as
|
2251
2279
|
# key-value pairs.
|
2252
2280
|
#
|
@@ -2335,6 +2363,14 @@ module Aws::S3
|
|
2335
2363
|
#
|
2336
2364
|
#
|
2337
2365
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2366
|
+
# @option options [String] :checksum_type
|
2367
|
+
# Indicates the checksum type that you want Amazon S3 to use to
|
2368
|
+
# calculate the object’s checksum value. For more information, see
|
2369
|
+
# [Checking object integrity in the Amazon S3 User Guide][1].
|
2370
|
+
#
|
2371
|
+
#
|
2372
|
+
#
|
2373
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2338
2374
|
# @return [MultipartUpload]
|
2339
2375
|
def initiate_multipart_upload(options = {})
|
2340
2376
|
options = options.merge(
|
@@ -2364,9 +2400,10 @@ module Aws::S3
|
|
2364
2400
|
# content_length: 1,
|
2365
2401
|
# content_md5: "ContentMD5",
|
2366
2402
|
# content_type: "ContentType",
|
2367
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
2403
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
2368
2404
|
# checksum_crc32: "ChecksumCRC32",
|
2369
2405
|
# checksum_crc32c: "ChecksumCRC32C",
|
2406
|
+
# checksum_crc64nvme: "ChecksumCRC64NVME",
|
2370
2407
|
# checksum_sha1: "ChecksumSHA1",
|
2371
2408
|
# checksum_sha256: "ChecksumSHA256",
|
2372
2409
|
# expires: Time.now,
|
@@ -2472,7 +2509,7 @@ module Aws::S3
|
|
2472
2509
|
#
|
2473
2510
|
# [1]: https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length
|
2474
2511
|
# @option options [String] :content_md5
|
2475
|
-
# The
|
2512
|
+
# The Base64 encoded 128-bit `MD5` digest of the message (without the
|
2476
2513
|
# headers) according to RFC 1864. This header can be used as a message
|
2477
2514
|
# integrity check to verify that the data is the same data that was
|
2478
2515
|
# originally sent. Although it is optional, we recommend using the
|
@@ -2515,22 +2552,23 @@ module Aws::S3
|
|
2515
2552
|
# For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
|
2516
2553
|
# the supported algorithm from the following list:
|
2517
2554
|
#
|
2518
|
-
# * `
|
2555
|
+
# * `CRC-32`
|
2556
|
+
#
|
2557
|
+
# * `CRC-32C`
|
2519
2558
|
#
|
2520
|
-
# * `
|
2559
|
+
# * `CRC-64NVME`
|
2521
2560
|
#
|
2522
|
-
# * `
|
2561
|
+
# * `SHA-1`
|
2523
2562
|
#
|
2524
|
-
# * `
|
2563
|
+
# * `SHA-256`
|
2525
2564
|
#
|
2526
2565
|
# For more information, see [Checking object integrity][1] in the
|
2527
2566
|
# *Amazon S3 User Guide*.
|
2528
2567
|
#
|
2529
2568
|
# If the individual checksum value you provide through
|
2530
2569
|
# `x-amz-checksum-algorithm ` doesn't match the checksum algorithm you
|
2531
|
-
# set through `x-amz-sdk-checksum-algorithm`, Amazon S3
|
2532
|
-
#
|
2533
|
-
# that matches the provided value in `x-amz-checksum-algorithm `.
|
2570
|
+
# set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the
|
2571
|
+
# request with a `BadDigest` error.
|
2534
2572
|
#
|
2535
2573
|
# <note markdown="1"> The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required
|
2536
2574
|
# for any request to upload an object with a retention period configured
|
@@ -2550,7 +2588,7 @@ module Aws::S3
|
|
2550
2588
|
# @option options [String] :checksum_crc32
|
2551
2589
|
# This header can be used as a data integrity check to verify that the
|
2552
2590
|
# data received is the same data that was originally sent. This header
|
2553
|
-
# specifies the
|
2591
|
+
# specifies the Base64 encoded, 32-bit `CRC-32` checksum of the object.
|
2554
2592
|
# For more information, see [Checking object integrity][1] in the
|
2555
2593
|
# *Amazon S3 User Guide*.
|
2556
2594
|
#
|
@@ -2560,19 +2598,30 @@ module Aws::S3
|
|
2560
2598
|
# @option options [String] :checksum_crc32c
|
2561
2599
|
# This header can be used as a data integrity check to verify that the
|
2562
2600
|
# data received is the same data that was originally sent. This header
|
2563
|
-
# specifies the
|
2601
|
+
# specifies the Base64 encoded, 32-bit `CRC-32C` checksum of the object.
|
2564
2602
|
# For more information, see [Checking object integrity][1] in the
|
2565
2603
|
# *Amazon S3 User Guide*.
|
2566
2604
|
#
|
2567
2605
|
#
|
2568
2606
|
#
|
2569
2607
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2608
|
+
# @option options [String] :checksum_crc64nvme
|
2609
|
+
# This header can be used as a data integrity check to verify that the
|
2610
|
+
# data received is the same data that was originally sent. This header
|
2611
|
+
# specifies the Base64 encoded, 64-bit `CRC-64NVME` checksum of the
|
2612
|
+
# object. The `CRC-64NVME` checksum is always a full object checksum.
|
2613
|
+
# For more information, see [Checking object integrity in the Amazon S3
|
2614
|
+
# User Guide][1].
|
2615
|
+
#
|
2616
|
+
#
|
2617
|
+
#
|
2618
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2570
2619
|
# @option options [String] :checksum_sha1
|
2571
2620
|
# This header can be used as a data integrity check to verify that the
|
2572
2621
|
# data received is the same data that was originally sent. This header
|
2573
|
-
# specifies the
|
2574
|
-
# more information, see [Checking object integrity][1] in the
|
2575
|
-
# User Guide*.
|
2622
|
+
# specifies the Base64 encoded, 160-bit `SHA-1` digest of the object.
|
2623
|
+
# For more information, see [Checking object integrity][1] in the
|
2624
|
+
# *Amazon S3 User Guide*.
|
2576
2625
|
#
|
2577
2626
|
#
|
2578
2627
|
#
|
@@ -2580,7 +2629,7 @@ module Aws::S3
|
|
2580
2629
|
# @option options [String] :checksum_sha256
|
2581
2630
|
# This header can be used as a data integrity check to verify that the
|
2582
2631
|
# data received is the same data that was originally sent. This header
|
2583
|
-
# specifies the
|
2632
|
+
# specifies the Base64 encoded, 256-bit `SHA-256` digest of the object.
|
2584
2633
|
# For more information, see [Checking object integrity][1] in the
|
2585
2634
|
# *Amazon S3 User Guide*.
|
2586
2635
|
#
|
@@ -2849,7 +2898,7 @@ module Aws::S3
|
|
2849
2898
|
# @option options [String] :ssekms_encryption_context
|
2850
2899
|
# Specifies the Amazon Web Services KMS Encryption Context as an
|
2851
2900
|
# additional encryption context to use for object encryption. The value
|
2852
|
-
# of this header is a Base64
|
2901
|
+
# of this header is a Base64 encoded string of a UTF-8 encoded JSON,
|
2853
2902
|
# which contains the encryption context as key-value pairs. This value
|
2854
2903
|
# is stored as object metadata and automatically gets passed on to
|
2855
2904
|
# Amazon Web Services KMS for future `GetObject` operations on this
|
@@ -3044,7 +3093,7 @@ module Aws::S3
|
|
3044
3093
|
# },
|
3045
3094
|
# },
|
3046
3095
|
# request_payer: "requester", # accepts requester
|
3047
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
3096
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
3048
3097
|
# expected_bucket_owner: "AccountId",
|
3049
3098
|
# })
|
3050
3099
|
# @param [Hash] options ({})
|
@@ -3411,7 +3460,7 @@ module Aws::S3
|
|
3411
3460
|
# request_payer: "requester", # accepts requester
|
3412
3461
|
# bypass_governance_retention: false,
|
3413
3462
|
# expected_bucket_owner: "AccountId",
|
3414
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
3463
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
3415
3464
|
# })
|
3416
3465
|
# @param options ({})
|
3417
3466
|
# @option options [String] :mfa
|
@@ -3475,22 +3524,23 @@ module Aws::S3
|
|
3475
3524
|
# For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
|
3476
3525
|
# the supported algorithm from the following list:
|
3477
3526
|
#
|
3478
|
-
# * `
|
3527
|
+
# * `CRC-32`
|
3528
|
+
#
|
3529
|
+
# * `CRC-32C`
|
3479
3530
|
#
|
3480
|
-
# * `
|
3531
|
+
# * `CRC-64NVME`
|
3481
3532
|
#
|
3482
|
-
# * `
|
3533
|
+
# * `SHA-1`
|
3483
3534
|
#
|
3484
|
-
# * `
|
3535
|
+
# * `SHA-256`
|
3485
3536
|
#
|
3486
3537
|
# For more information, see [Checking object integrity][1] in the
|
3487
3538
|
# *Amazon S3 User Guide*.
|
3488
3539
|
#
|
3489
3540
|
# If the individual checksum value you provide through
|
3490
3541
|
# `x-amz-checksum-algorithm ` doesn't match the checksum algorithm you
|
3491
|
-
# set through `x-amz-sdk-checksum-algorithm`, Amazon S3
|
3492
|
-
#
|
3493
|
-
# that matches the provided value in `x-amz-checksum-algorithm `.
|
3542
|
+
# set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the
|
3543
|
+
# request with a `BadDigest` error.
|
3494
3544
|
#
|
3495
3545
|
# If you provide an individual checksum, Amazon S3 ignores any provided
|
3496
3546
|
# `ChecksumAlgorithm` parameter.
|
@@ -229,7 +229,7 @@ module Aws::S3
|
|
229
229
|
# },
|
230
230
|
# },
|
231
231
|
# content_md5: "ContentMD5",
|
232
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
232
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
233
233
|
# grant_full_control: "GrantFullControl",
|
234
234
|
# grant_read: "GrantRead",
|
235
235
|
# grant_read_acp: "GrantReadACP",
|
@@ -251,9 +251,9 @@ module Aws::S3
|
|
251
251
|
# Contains the elements that set the ACL permissions for an object per
|
252
252
|
# grantee.
|
253
253
|
# @option options [String] :content_md5
|
254
|
-
# The
|
255
|
-
# used as a message integrity check to verify that the request body
|
256
|
-
# not corrupted in transit. For more information, go to [RFC
|
254
|
+
# The Base64 encoded 128-bit `MD5` digest of the data. This header must
|
255
|
+
# be used as a message integrity check to verify that the request body
|
256
|
+
# was not corrupted in transit. For more information, go to [RFC
|
257
257
|
# 1864.>][1]
|
258
258
|
#
|
259
259
|
# For requests made using the Amazon Web Services Command Line Interface
|