aws-sdk-s3 1.176.1 → 1.182.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 +32 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +40 -29
- data/lib/aws-sdk-s3/bucket_acl.rb +6 -5
- data/lib/aws-sdk-s3/bucket_cors.rb +6 -5
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +2 -2
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +3 -3
- data/lib/aws-sdk-s3/bucket_logging.rb +2 -2
- data/lib/aws-sdk-s3/bucket_policy.rb +6 -5
- data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -3
- data/lib/aws-sdk-s3/bucket_tagging.rb +3 -3
- data/lib/aws-sdk-s3/bucket_versioning.rb +9 -9
- data/lib/aws-sdk-s3/bucket_website.rb +3 -3
- data/lib/aws-sdk-s3/client.rb +764 -602
- data/lib/aws-sdk-s3/client_api.rb +35 -2
- data/lib/aws-sdk-s3/endpoint_provider.rb +260 -277
- 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 +46 -4
- data/lib/aws-sdk-s3/multipart_upload_part.rb +50 -34
- data/lib/aws-sdk-s3/object.rb +139 -100
- data/lib/aws-sdk-s3/object_acl.rb +4 -4
- data/lib/aws-sdk-s3/object_summary.rb +87 -70
- data/lib/aws-sdk-s3/object_version.rb +18 -14
- 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/resource.rb +1 -1
- data/lib/aws-sdk-s3/types.rb +962 -610
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +4 -3
- 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 +53 -31
- data/sig/multipart_upload.rbs +8 -1
- data/sig/multipart_upload_part.rbs +5 -1
- data/sig/object.rbs +16 -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 +3 -1
- data/sig/types.rbs +64 -34
- metadata +5 -5
- data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +0 -31
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 `CRC32 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 `CRC32C` 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 `CRC64NVME` 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 `SHA1` 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 `SHA256` 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]
|
@@ -265,6 +292,13 @@ module Aws::S3
|
|
265
292
|
data[:content_type]
|
266
293
|
end
|
267
294
|
|
295
|
+
# The portion of the object returned in the response for a `GET`
|
296
|
+
# request.
|
297
|
+
# @return [String]
|
298
|
+
def content_range
|
299
|
+
data[:content_range]
|
300
|
+
end
|
301
|
+
|
268
302
|
# The date and time at which the object is no longer cacheable.
|
269
303
|
# @return [Time]
|
270
304
|
def expires
|
@@ -676,7 +710,7 @@ module Aws::S3
|
|
676
710
|
# object.copy_from({
|
677
711
|
# acl: "private", # accepts private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, bucket-owner-full-control
|
678
712
|
# cache_control: "CacheControl",
|
679
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
713
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
680
714
|
# content_disposition: "ContentDisposition",
|
681
715
|
# content_encoding: "ContentEncoding",
|
682
716
|
# content_language: "ContentLanguage",
|
@@ -1192,20 +1226,17 @@ module Aws::S3
|
|
1192
1226
|
# Signature Version in Request Authentication][1] in the *Amazon S3 User
|
1193
1227
|
# Guide*.
|
1194
1228
|
#
|
1195
|
-
# **Directory buckets** -
|
1196
|
-
#
|
1197
|
-
#
|
1198
|
-
#
|
1199
|
-
#
|
1200
|
-
# x-amz-server-side-encryption-aws-kms-key-id` header
|
1201
|
-
#
|
1202
|
-
#
|
1203
|
-
#
|
1204
|
-
#
|
1205
|
-
#
|
1206
|
-
# support 1 [customer managed key][2] per directory bucket for the
|
1207
|
-
# lifetime of the bucket. The [Amazon Web Services managed key][3]
|
1208
|
-
# (`aws/s3`) isn't supported.
|
1229
|
+
# **Directory buckets** - To encrypt data using SSE-KMS, it's
|
1230
|
+
# recommended to specify the `x-amz-server-side-encryption` header to
|
1231
|
+
# `aws:kms`. Then, the `x-amz-server-side-encryption-aws-kms-key-id`
|
1232
|
+
# header implicitly uses the bucket's default KMS customer managed key
|
1233
|
+
# ID. If you want to explicitly set the `
|
1234
|
+
# x-amz-server-side-encryption-aws-kms-key-id` header, it must match the
|
1235
|
+
# bucket's default customer managed key (using key ID or ARN, not
|
1236
|
+
# alias). Your SSE-KMS configuration can only support 1 [customer
|
1237
|
+
# managed key][2] per directory bucket's lifetime. The [Amazon Web
|
1238
|
+
# Services managed key][3] (`aws/s3`) isn't supported. Incorrect key
|
1239
|
+
# specification results in an HTTP `400 Bad Request` error.
|
1209
1240
|
#
|
1210
1241
|
#
|
1211
1242
|
#
|
@@ -1476,7 +1507,7 @@ module Aws::S3
|
|
1476
1507
|
#
|
1477
1508
|
#
|
1478
1509
|
#
|
1479
|
-
# [1]: https://
|
1510
|
+
# [1]: https://tools.ietf.org/html/rfc7232
|
1480
1511
|
# @option options [Time,DateTime,Date,Integer,String] :if_match_last_modified_time
|
1481
1512
|
# If present, the object is deleted only if its modification times
|
1482
1513
|
# matches the provided `Timestamp`. If the `Timestamp` values do not
|
@@ -1757,15 +1788,6 @@ module Aws::S3
|
|
1757
1788
|
# fails with the HTTP status code `403 Forbidden` (access denied).
|
1758
1789
|
# @option options [String] :checksum_mode
|
1759
1790
|
# To retrieve the checksum, this mode must be enabled.
|
1760
|
-
#
|
1761
|
-
# **General purpose buckets** - In addition, if you enable checksum mode
|
1762
|
-
# and the object is uploaded with a [checksum][1] and encrypted with an
|
1763
|
-
# Key Management Service (KMS) key, you must have permission to use the
|
1764
|
-
# `kms:Decrypt` action to retrieve the checksum.
|
1765
|
-
#
|
1766
|
-
#
|
1767
|
-
#
|
1768
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html
|
1769
1791
|
# @return [Types::GetObjectOutput]
|
1770
1792
|
def get(options = {}, &block)
|
1771
1793
|
options = options.merge(
|
@@ -1810,7 +1832,8 @@ module Aws::S3
|
|
1810
1832
|
# object_lock_retain_until_date: Time.now,
|
1811
1833
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
1812
1834
|
# expected_bucket_owner: "AccountId",
|
1813
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
1835
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
1836
|
+
# checksum_type: "COMPOSITE", # accepts COMPOSITE, FULL_OBJECT
|
1814
1837
|
# })
|
1815
1838
|
# @param [Hash] options ({})
|
1816
1839
|
# @option options [String] :acl
|
@@ -2225,20 +2248,17 @@ module Aws::S3
|
|
2225
2248
|
# `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the
|
2226
2249
|
# Amazon Web Services managed key (`aws/s3`) to protect the data.
|
2227
2250
|
#
|
2228
|
-
# **Directory buckets** -
|
2229
|
-
#
|
2230
|
-
#
|
2231
|
-
#
|
2232
|
-
#
|
2233
|
-
# x-amz-server-side-encryption-aws-kms-key-id` header
|
2234
|
-
#
|
2235
|
-
#
|
2236
|
-
#
|
2237
|
-
#
|
2238
|
-
#
|
2239
|
-
# support 1 [customer managed key][1] per directory bucket for the
|
2240
|
-
# lifetime of the bucket. The [Amazon Web Services managed key][2]
|
2241
|
-
# (`aws/s3`) isn't supported.
|
2251
|
+
# **Directory buckets** - To encrypt data using SSE-KMS, it's
|
2252
|
+
# recommended to specify the `x-amz-server-side-encryption` header to
|
2253
|
+
# `aws:kms`. Then, the `x-amz-server-side-encryption-aws-kms-key-id`
|
2254
|
+
# header implicitly uses the bucket's default KMS customer managed key
|
2255
|
+
# ID. If you want to explicitly set the `
|
2256
|
+
# x-amz-server-side-encryption-aws-kms-key-id` header, it must match the
|
2257
|
+
# bucket's default customer managed key (using key ID or ARN, not
|
2258
|
+
# alias). Your SSE-KMS configuration can only support 1 [customer
|
2259
|
+
# managed key][1] per directory bucket's lifetime. The [Amazon Web
|
2260
|
+
# Services managed key][2] (`aws/s3`) isn't supported. Incorrect key
|
2261
|
+
# specification results in an HTTP `400 Bad Request` error.
|
2242
2262
|
#
|
2243
2263
|
#
|
2244
2264
|
#
|
@@ -2246,7 +2266,7 @@ module Aws::S3
|
|
2246
2266
|
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
|
2247
2267
|
# @option options [String] :ssekms_encryption_context
|
2248
2268
|
# Specifies the Amazon Web Services KMS Encryption Context to use for
|
2249
|
-
# object encryption. The value of this header is a Base64
|
2269
|
+
# object encryption. The value of this header is a Base64 encoded string
|
2250
2270
|
# of a UTF-8 encoded JSON, which contains the encryption context as
|
2251
2271
|
# key-value pairs.
|
2252
2272
|
#
|
@@ -2335,6 +2355,14 @@ module Aws::S3
|
|
2335
2355
|
#
|
2336
2356
|
#
|
2337
2357
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2358
|
+
# @option options [String] :checksum_type
|
2359
|
+
# Indicates the checksum type that you want Amazon S3 to use to
|
2360
|
+
# calculate the object’s checksum value. For more information, see
|
2361
|
+
# [Checking object integrity in the Amazon S3 User Guide][1].
|
2362
|
+
#
|
2363
|
+
#
|
2364
|
+
#
|
2365
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2338
2366
|
# @return [MultipartUpload]
|
2339
2367
|
def initiate_multipart_upload(options = {})
|
2340
2368
|
options = options.merge(
|
@@ -2364,9 +2392,10 @@ module Aws::S3
|
|
2364
2392
|
# content_length: 1,
|
2365
2393
|
# content_md5: "ContentMD5",
|
2366
2394
|
# content_type: "ContentType",
|
2367
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
2395
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
2368
2396
|
# checksum_crc32: "ChecksumCRC32",
|
2369
2397
|
# checksum_crc32c: "ChecksumCRC32C",
|
2398
|
+
# checksum_crc64nvme: "ChecksumCRC64NVME",
|
2370
2399
|
# checksum_sha1: "ChecksumSHA1",
|
2371
2400
|
# checksum_sha256: "ChecksumSHA256",
|
2372
2401
|
# expires: Time.now,
|
@@ -2472,7 +2501,7 @@ module Aws::S3
|
|
2472
2501
|
#
|
2473
2502
|
# [1]: https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length
|
2474
2503
|
# @option options [String] :content_md5
|
2475
|
-
# The
|
2504
|
+
# The Base64 encoded 128-bit `MD5` digest of the message (without the
|
2476
2505
|
# headers) according to RFC 1864. This header can be used as a message
|
2477
2506
|
# integrity check to verify that the data is the same data that was
|
2478
2507
|
# originally sent. Although it is optional, we recommend using the
|
@@ -2519,6 +2548,8 @@ module Aws::S3
|
|
2519
2548
|
#
|
2520
2549
|
# * `CRC32C`
|
2521
2550
|
#
|
2551
|
+
# * `CRC64NVME`
|
2552
|
+
#
|
2522
2553
|
# * `SHA1`
|
2523
2554
|
#
|
2524
2555
|
# * `SHA256`
|
@@ -2528,9 +2559,8 @@ module Aws::S3
|
|
2528
2559
|
#
|
2529
2560
|
# If the individual checksum value you provide through
|
2530
2561
|
# `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 `.
|
2562
|
+
# set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the
|
2563
|
+
# request with a `BadDigest` error.
|
2534
2564
|
#
|
2535
2565
|
# <note markdown="1"> The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required
|
2536
2566
|
# for any request to upload an object with a retention period configured
|
@@ -2550,7 +2580,7 @@ module Aws::S3
|
|
2550
2580
|
# @option options [String] :checksum_crc32
|
2551
2581
|
# This header can be used as a data integrity check to verify that the
|
2552
2582
|
# data received is the same data that was originally sent. This header
|
2553
|
-
# specifies the
|
2583
|
+
# specifies the Base64 encoded, 32-bit `CRC32` checksum of the object.
|
2554
2584
|
# For more information, see [Checking object integrity][1] in the
|
2555
2585
|
# *Amazon S3 User Guide*.
|
2556
2586
|
#
|
@@ -2560,17 +2590,28 @@ module Aws::S3
|
|
2560
2590
|
# @option options [String] :checksum_crc32c
|
2561
2591
|
# This header can be used as a data integrity check to verify that the
|
2562
2592
|
# data received is the same data that was originally sent. This header
|
2563
|
-
# specifies the
|
2593
|
+
# specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object.
|
2564
2594
|
# For more information, see [Checking object integrity][1] in the
|
2565
2595
|
# *Amazon S3 User Guide*.
|
2566
2596
|
#
|
2567
2597
|
#
|
2568
2598
|
#
|
2569
2599
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2600
|
+
# @option options [String] :checksum_crc64nvme
|
2601
|
+
# This header can be used as a data integrity check to verify that the
|
2602
|
+
# data received is the same data that was originally sent. This header
|
2603
|
+
# specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the
|
2604
|
+
# object. The `CRC64NVME` checksum is always a full object checksum. For
|
2605
|
+
# more information, see [Checking object integrity in the Amazon S3 User
|
2606
|
+
# Guide][1].
|
2607
|
+
#
|
2608
|
+
#
|
2609
|
+
#
|
2610
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
2570
2611
|
# @option options [String] :checksum_sha1
|
2571
2612
|
# This header can be used as a data integrity check to verify that the
|
2572
2613
|
# data received is the same data that was originally sent. This header
|
2573
|
-
# specifies the
|
2614
|
+
# specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For
|
2574
2615
|
# more information, see [Checking object integrity][1] in the *Amazon S3
|
2575
2616
|
# User Guide*.
|
2576
2617
|
#
|
@@ -2580,7 +2621,7 @@ module Aws::S3
|
|
2580
2621
|
# @option options [String] :checksum_sha256
|
2581
2622
|
# This header can be used as a data integrity check to verify that the
|
2582
2623
|
# data received is the same data that was originally sent. This header
|
2583
|
-
# specifies the
|
2624
|
+
# specifies the Base64 encoded, 256-bit `SHA256` digest of the object.
|
2584
2625
|
# For more information, see [Checking object integrity][1] in the
|
2585
2626
|
# *Amazon S3 User Guide*.
|
2586
2627
|
#
|
@@ -2827,20 +2868,17 @@ module Aws::S3
|
|
2827
2868
|
# `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the
|
2828
2869
|
# Amazon Web Services managed key (`aws/s3`) to protect the data.
|
2829
2870
|
#
|
2830
|
-
# **Directory buckets** -
|
2831
|
-
#
|
2832
|
-
#
|
2833
|
-
#
|
2834
|
-
#
|
2835
|
-
# x-amz-server-side-encryption-aws-kms-key-id` header
|
2836
|
-
#
|
2837
|
-
#
|
2838
|
-
#
|
2839
|
-
#
|
2840
|
-
#
|
2841
|
-
# support 1 [customer managed key][1] per directory bucket for the
|
2842
|
-
# lifetime of the bucket. The [Amazon Web Services managed key][2]
|
2843
|
-
# (`aws/s3`) isn't supported.
|
2871
|
+
# **Directory buckets** - To encrypt data using SSE-KMS, it's
|
2872
|
+
# recommended to specify the `x-amz-server-side-encryption` header to
|
2873
|
+
# `aws:kms`. Then, the `x-amz-server-side-encryption-aws-kms-key-id`
|
2874
|
+
# header implicitly uses the bucket's default KMS customer managed key
|
2875
|
+
# ID. If you want to explicitly set the `
|
2876
|
+
# x-amz-server-side-encryption-aws-kms-key-id` header, it must match the
|
2877
|
+
# bucket's default customer managed key (using key ID or ARN, not
|
2878
|
+
# alias). Your SSE-KMS configuration can only support 1 [customer
|
2879
|
+
# managed key][1] per directory bucket's lifetime. The [Amazon Web
|
2880
|
+
# Services managed key][2] (`aws/s3`) isn't supported. Incorrect key
|
2881
|
+
# specification results in an HTTP `400 Bad Request` error.
|
2844
2882
|
#
|
2845
2883
|
#
|
2846
2884
|
#
|
@@ -2849,7 +2887,7 @@ module Aws::S3
|
|
2849
2887
|
# @option options [String] :ssekms_encryption_context
|
2850
2888
|
# Specifies the Amazon Web Services KMS Encryption Context as an
|
2851
2889
|
# additional encryption context to use for object encryption. The value
|
2852
|
-
# of this header is a Base64
|
2890
|
+
# of this header is a Base64 encoded string of a UTF-8 encoded JSON,
|
2853
2891
|
# which contains the encryption context as key-value pairs. This value
|
2854
2892
|
# is stored as object metadata and automatically gets passed on to
|
2855
2893
|
# Amazon Web Services KMS for future `GetObject` operations on this
|
@@ -3044,7 +3082,7 @@ module Aws::S3
|
|
3044
3082
|
# },
|
3045
3083
|
# },
|
3046
3084
|
# request_payer: "requester", # accepts requester
|
3047
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
3085
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
3048
3086
|
# expected_bucket_owner: "AccountId",
|
3049
3087
|
# })
|
3050
3088
|
# @param [Hash] options ({})
|
@@ -3411,7 +3449,7 @@ module Aws::S3
|
|
3411
3449
|
# request_payer: "requester", # accepts requester
|
3412
3450
|
# bypass_governance_retention: false,
|
3413
3451
|
# expected_bucket_owner: "AccountId",
|
3414
|
-
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
3452
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
|
3415
3453
|
# })
|
3416
3454
|
# @param options ({})
|
3417
3455
|
# @option options [String] :mfa
|
@@ -3479,6 +3517,8 @@ module Aws::S3
|
|
3479
3517
|
#
|
3480
3518
|
# * `CRC32C`
|
3481
3519
|
#
|
3520
|
+
# * `CRC64NVME`
|
3521
|
+
#
|
3482
3522
|
# * `SHA1`
|
3483
3523
|
#
|
3484
3524
|
# * `SHA256`
|
@@ -3488,9 +3528,8 @@ module Aws::S3
|
|
3488
3528
|
#
|
3489
3529
|
# If the individual checksum value you provide through
|
3490
3530
|
# `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 `.
|
3531
|
+
# set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the
|
3532
|
+
# request with a `BadDigest` error.
|
3494
3533
|
#
|
3495
3534
|
# If you provide an individual checksum, Amazon S3 ignores any provided
|
3496
3535
|
# `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
|