aws-sdk-s3 1.109.0 → 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 +35 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +96 -17
- data/lib/aws-sdk-s3/bucket_acl.rb +18 -2
- data/lib/aws-sdk-s3/bucket_cors.rb +20 -4
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +20 -4
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +20 -4
- data/lib/aws-sdk-s3/bucket_logging.rb +18 -2
- data/lib/aws-sdk-s3/bucket_notification.rb +2 -2
- data/lib/aws-sdk-s3/bucket_policy.rb +20 -4
- data/lib/aws-sdk-s3/bucket_request_payment.rb +18 -2
- data/lib/aws-sdk-s3/bucket_tagging.rb +20 -4
- data/lib/aws-sdk-s3/bucket_versioning.rb +54 -6
- data/lib/aws-sdk-s3/bucket_website.rb +20 -4
- data/lib/aws-sdk-s3/client.rb +1730 -613
- data/lib/aws-sdk-s3/client_api.rb +371 -21
- data/lib/aws-sdk-s3/customizations/object.rb +2 -2
- data/lib/aws-sdk-s3/file_downloader.rb +1 -1
- data/lib/aws-sdk-s3/file_uploader.rb +5 -0
- 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 +132 -13
- data/lib/aws-sdk-s3/object.rb +245 -73
- data/lib/aws-sdk-s3/object_acl.rb +20 -4
- data/lib/aws-sdk-s3/object_summary.rb +163 -41
- data/lib/aws-sdk-s3/object_version.rb +64 -38
- 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/skip_whole_multipart_get_checksums.rb +31 -0
- data/lib/aws-sdk-s3/presigned_post.rb +38 -19
- data/lib/aws-sdk-s3/types.rb +2242 -480
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd3cdd3ce413a190558c3c4fb19b0c360e6fdc8429315addf9a99f8a4200e84f
|
4
|
+
data.tar.gz: 8ea6b6b1a93212b99871945b5deeaa90813f4aef35d55ae2c351194be17f2909
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c83d52e47d9990c34a6ffa1b0ab647e333353dc516a4105a01df1fa2d93fe5d8a7e45c48072e27d95cd4e7581adcc606fabe3afb5cfd9e41047da330910ad37
|
7
|
+
data.tar.gz: a399eff773756874118891127b2ac26592b1c780559b3900ef0f4982e6ef3286b759331507a79778725e5cb61f7f140d94d08e77bd4ba51b05eb3e23b1f7a621
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,41 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.113.0 (2022-02-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for new integrity checking capabilities in Amazon S3. You can choose from four supported checksum algorithms for data integrity checking on your upload and download requests. In addition, AWS SDK can automatically calculate a checksum as it streams data into S3
|
8
|
+
|
9
|
+
1.112.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.111.3 (2022-01-24)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - Fix starts_with fields on `PresignedPost` (#2636).
|
18
|
+
|
19
|
+
1.111.2 (2022-01-20)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Issue - Minor cleanups.
|
23
|
+
|
24
|
+
1.111.1 (2022-01-06)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Issue - Don't fail small files in `upload_file` when `:thread_count` is set. (#2628)
|
28
|
+
|
29
|
+
1.111.0 (2022-01-04)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Minor doc-based updates based on feedback bugs received.
|
33
|
+
|
34
|
+
1.110.0 (2021-12-21)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
38
|
+
|
4
39
|
1.109.0 (2021-11-30)
|
5
40
|
------------------
|
6
41
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.113.0
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -287,8 +287,8 @@ module Aws::S3
|
|
287
287
|
# @param [Hash] options ({})
|
288
288
|
# @option options [String] :expected_bucket_owner
|
289
289
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
290
|
-
# a different account, the request
|
291
|
-
#
|
290
|
+
# a different account, the request fails with the HTTP status code `403
|
291
|
+
# Forbidden` (access denied).
|
292
292
|
# @return [EmptyStructure]
|
293
293
|
def delete(options = {})
|
294
294
|
options = options.merge(bucket: @name)
|
@@ -312,6 +312,7 @@ module Aws::S3
|
|
312
312
|
# request_payer: "requester", # accepts requester
|
313
313
|
# bypass_governance_retention: false,
|
314
314
|
# expected_bucket_owner: "AccountId",
|
315
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
315
316
|
# })
|
316
317
|
# @param [Hash] options ({})
|
317
318
|
# @option options [required, Types::Delete] :delete
|
@@ -324,8 +325,8 @@ module Aws::S3
|
|
324
325
|
# @option options [String] :request_payer
|
325
326
|
# Confirms that the requester knows that they will be charged for the
|
326
327
|
# request. Bucket owners need not specify this parameter in their
|
327
|
-
# requests. For information about downloading objects from
|
328
|
-
#
|
328
|
+
# requests. For information about downloading objects from Requester
|
329
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
329
330
|
# in the *Amazon S3 User Guide*.
|
330
331
|
#
|
331
332
|
#
|
@@ -334,11 +335,29 @@ module Aws::S3
|
|
334
335
|
# @option options [Boolean] :bypass_governance_retention
|
335
336
|
# Specifies whether you want to delete this object even if it has a
|
336
337
|
# Governance-type Object Lock in place. To use this header, you must
|
337
|
-
# have the `s3:
|
338
|
+
# have the `s3:BypassGovernanceRetention` permission.
|
338
339
|
# @option options [String] :expected_bucket_owner
|
339
340
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
340
|
-
# a different account, the request
|
341
|
-
#
|
341
|
+
# a different account, the request fails with the HTTP status code `403
|
342
|
+
# Forbidden` (access denied).
|
343
|
+
# @option options [String] :checksum_algorithm
|
344
|
+
# Indicates the algorithm used to create the checksum for the object
|
345
|
+
# when using the SDK. This header will not provide any additional
|
346
|
+
# functionality if not using the SDK. When sending this header, there
|
347
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
348
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
349
|
+
# `400 Bad Request`. For more information, see [Checking object
|
350
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
351
|
+
#
|
352
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
353
|
+
# `ChecksumAlgorithm` parameter.
|
354
|
+
#
|
355
|
+
# This checksum algorithm must be the same for all parts and it match
|
356
|
+
# the checksum value supplied in the `CreateMultipartUpload` request.
|
357
|
+
#
|
358
|
+
#
|
359
|
+
#
|
360
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
342
361
|
# @return [Types::DeleteObjectsOutput]
|
343
362
|
def delete_objects(options = {})
|
344
363
|
options = options.merge(bucket: @name)
|
@@ -358,6 +377,11 @@ module Aws::S3
|
|
358
377
|
# content_length: 1,
|
359
378
|
# content_md5: "ContentMD5",
|
360
379
|
# content_type: "ContentType",
|
380
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
381
|
+
# checksum_crc32: "ChecksumCRC32",
|
382
|
+
# checksum_crc32c: "ChecksumCRC32C",
|
383
|
+
# checksum_sha1: "ChecksumSHA1",
|
384
|
+
# checksum_sha256: "ChecksumSHA256",
|
361
385
|
# expires: Time.now,
|
362
386
|
# grant_full_control: "GrantFullControl",
|
363
387
|
# grant_read: "GrantRead",
|
@@ -450,6 +474,61 @@ module Aws::S3
|
|
450
474
|
#
|
451
475
|
#
|
452
476
|
# [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
|
477
|
+
# @option options [String] :checksum_algorithm
|
478
|
+
# Indicates the algorithm used to create the checksum for the object
|
479
|
+
# when using the SDK. This header will not provide any additional
|
480
|
+
# functionality if not using the SDK. When sending this header, there
|
481
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
482
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
483
|
+
# `400 Bad Request`. For more information, see [Checking object
|
484
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
485
|
+
#
|
486
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
487
|
+
# `ChecksumAlgorithm` parameter.
|
488
|
+
#
|
489
|
+
#
|
490
|
+
#
|
491
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
492
|
+
# @option options [String] :checksum_crc32
|
493
|
+
# This header can be used as a data integrity check to verify that the
|
494
|
+
# data received is the same data that was originally sent. This header
|
495
|
+
# specifies the base64-encoded, 32-bit CRC32 checksum of the object. For
|
496
|
+
# more information, see [Checking object integrity][1] in the *Amazon S3
|
497
|
+
# User Guide*.
|
498
|
+
#
|
499
|
+
#
|
500
|
+
#
|
501
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
502
|
+
# @option options [String] :checksum_crc32c
|
503
|
+
# This header can be used as a data integrity check to verify that the
|
504
|
+
# data received is the same data that was originally sent. This header
|
505
|
+
# specifies the base64-encoded, 32-bit CRC32C checksum of the object.
|
506
|
+
# For more information, see [Checking object integrity][1] in the
|
507
|
+
# *Amazon S3 User Guide*.
|
508
|
+
#
|
509
|
+
#
|
510
|
+
#
|
511
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
512
|
+
# @option options [String] :checksum_sha1
|
513
|
+
# This header can be used as a data integrity check to verify that the
|
514
|
+
# data received is the same data that was originally sent. This header
|
515
|
+
# specifies the base64-encoded, 160-bit SHA-1 digest of the object. For
|
516
|
+
# more information, see [Checking object integrity][1] in the *Amazon S3
|
517
|
+
# User Guide*.
|
518
|
+
#
|
519
|
+
#
|
520
|
+
#
|
521
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
522
|
+
# @option options [String] :checksum_sha256
|
523
|
+
# This header can be used as a data integrity check to verify that the
|
524
|
+
# data received is the same data that was originally sent. This header
|
525
|
+
# specifies the base64-encoded, 256-bit SHA-256 digest of the object.
|
526
|
+
# For more information, see [Checking object integrity][1] in the
|
527
|
+
# *Amazon S3 User Guide*.
|
528
|
+
#
|
529
|
+
#
|
530
|
+
#
|
531
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
453
532
|
# @option options [Time,DateTime,Date,Integer,String] :expires
|
454
533
|
# The date and time at which the object is no longer cacheable. For more
|
455
534
|
# information, see
|
@@ -556,8 +635,8 @@ module Aws::S3
|
|
556
635
|
# @option options [String] :request_payer
|
557
636
|
# Confirms that the requester knows that they will be charged for the
|
558
637
|
# request. Bucket owners need not specify this parameter in their
|
559
|
-
# requests. For information about downloading objects from
|
560
|
-
#
|
638
|
+
# requests. For information about downloading objects from Requester
|
639
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
561
640
|
# in the *Amazon S3 User Guide*.
|
562
641
|
#
|
563
642
|
#
|
@@ -580,8 +659,8 @@ module Aws::S3
|
|
580
659
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
|
581
660
|
# @option options [String] :expected_bucket_owner
|
582
661
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
583
|
-
# a different account, the request
|
584
|
-
#
|
662
|
+
# a different account, the request fails with the HTTP status code `403
|
663
|
+
# Forbidden` (access denied).
|
585
664
|
# @return [Object]
|
586
665
|
def put_object(options = {})
|
587
666
|
options = options.merge(bucket: @name)
|
@@ -688,8 +767,8 @@ module Aws::S3
|
|
688
767
|
# specified `upload-id-marker`.
|
689
768
|
# @option options [String] :expected_bucket_owner
|
690
769
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
691
|
-
# a different account, the request
|
692
|
-
#
|
770
|
+
# a different account, the request fails with the HTTP status code `403
|
771
|
+
# Forbidden` (access denied).
|
693
772
|
# @return [MultipartUpload::Collection]
|
694
773
|
def multipart_uploads(options = {})
|
695
774
|
batches = Enumerator.new do |y|
|
@@ -768,8 +847,8 @@ module Aws::S3
|
|
768
847
|
# Specifies the object version you want to start listing from.
|
769
848
|
# @option options [String] :expected_bucket_owner
|
770
849
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
771
|
-
# a different account, the request
|
772
|
-
#
|
850
|
+
# a different account, the request fails with the HTTP status code `403
|
851
|
+
# Forbidden` (access denied).
|
773
852
|
# @return [ObjectVersion::Collection]
|
774
853
|
def object_versions(options = {})
|
775
854
|
batches = Enumerator.new do |y|
|
@@ -824,8 +903,8 @@ module Aws::S3
|
|
824
903
|
# this parameter in their requests.
|
825
904
|
# @option options [String] :expected_bucket_owner
|
826
905
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
827
|
-
# a different account, the request
|
828
|
-
#
|
906
|
+
# a different account, the request fails with the HTTP status code `403
|
907
|
+
# Forbidden` (access denied).
|
829
908
|
# @return [ObjectSummary::Collection]
|
830
909
|
def objects(options = {})
|
831
910
|
batches = Enumerator.new do |y|
|
@@ -203,6 +203,7 @@ module Aws::S3
|
|
203
203
|
# },
|
204
204
|
# },
|
205
205
|
# content_md5: "ContentMD5",
|
206
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
206
207
|
# grant_full_control: "GrantFullControl",
|
207
208
|
# grant_read: "GrantRead",
|
208
209
|
# grant_read_acp: "GrantReadACP",
|
@@ -228,6 +229,21 @@ module Aws::S3
|
|
228
229
|
#
|
229
230
|
#
|
230
231
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
232
|
+
# @option options [String] :checksum_algorithm
|
233
|
+
# Indicates the algorithm used to create the checksum for the object
|
234
|
+
# when using the SDK. This header will not provide any additional
|
235
|
+
# functionality if not using the SDK. When sending this header, there
|
236
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
237
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
238
|
+
# `400 Bad Request`. For more information, see [Checking object
|
239
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
240
|
+
#
|
241
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
242
|
+
# `ChecksumAlgorithm` parameter.
|
243
|
+
#
|
244
|
+
#
|
245
|
+
#
|
246
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
231
247
|
# @option options [String] :grant_full_control
|
232
248
|
# Allows grantee the read, write, read ACP, and write ACP permissions on
|
233
249
|
# the bucket.
|
@@ -244,8 +260,8 @@ module Aws::S3
|
|
244
260
|
# Allows grantee to write the ACL for the applicable bucket.
|
245
261
|
# @option options [String] :expected_bucket_owner
|
246
262
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
247
|
-
# a different account, the request
|
248
|
-
#
|
263
|
+
# a different account, the request fails with the HTTP status code `403
|
264
|
+
# Forbidden` (access denied).
|
249
265
|
# @return [EmptyStructure]
|
250
266
|
def put(options = {})
|
251
267
|
options = options.merge(bucket: @bucket_name)
|
@@ -183,8 +183,8 @@ module Aws::S3
|
|
183
183
|
# @param [Hash] options ({})
|
184
184
|
# @option options [String] :expected_bucket_owner
|
185
185
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
186
|
-
# a different account, the request
|
187
|
-
#
|
186
|
+
# a different account, the request fails with the HTTP status code `403
|
187
|
+
# Forbidden` (access denied).
|
188
188
|
# @return [EmptyStructure]
|
189
189
|
def delete(options = {})
|
190
190
|
options = options.merge(bucket: @bucket_name)
|
@@ -208,6 +208,7 @@ module Aws::S3
|
|
208
208
|
# ],
|
209
209
|
# },
|
210
210
|
# content_md5: "ContentMD5",
|
211
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
211
212
|
# expected_bucket_owner: "AccountId",
|
212
213
|
# })
|
213
214
|
# @param [Hash] options ({})
|
@@ -231,10 +232,25 @@ module Aws::S3
|
|
231
232
|
#
|
232
233
|
#
|
233
234
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
235
|
+
# @option options [String] :checksum_algorithm
|
236
|
+
# Indicates the algorithm used to create the checksum for the object
|
237
|
+
# when using the SDK. This header will not provide any additional
|
238
|
+
# functionality if not using the SDK. When sending this header, there
|
239
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
240
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
241
|
+
# `400 Bad Request`. For more information, see [Checking object
|
242
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
243
|
+
#
|
244
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
245
|
+
# `ChecksumAlgorithm` parameter.
|
246
|
+
#
|
247
|
+
#
|
248
|
+
#
|
249
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
234
250
|
# @option options [String] :expected_bucket_owner
|
235
251
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
236
|
-
# a different account, the request
|
237
|
-
#
|
252
|
+
# a different account, the request fails with the HTTP status code `403
|
253
|
+
# Forbidden` (access denied).
|
238
254
|
# @return [EmptyStructure]
|
239
255
|
def put(options = {})
|
240
256
|
options = options.merge(bucket: @bucket_name)
|
@@ -182,8 +182,8 @@ module Aws::S3
|
|
182
182
|
# @param [Hash] options ({})
|
183
183
|
# @option options [String] :expected_bucket_owner
|
184
184
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
185
|
-
# a different account, the request
|
186
|
-
#
|
185
|
+
# a different account, the request fails with the HTTP status code `403
|
186
|
+
# Forbidden` (access denied).
|
187
187
|
# @return [EmptyStructure]
|
188
188
|
def delete(options = {})
|
189
189
|
options = options.merge(bucket: @bucket_name)
|
@@ -195,6 +195,7 @@ module Aws::S3
|
|
195
195
|
#
|
196
196
|
# bucket_lifecycle.put({
|
197
197
|
# content_md5: "ContentMD5",
|
198
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
198
199
|
# lifecycle_configuration: {
|
199
200
|
# rules: [ # required
|
200
201
|
# {
|
@@ -233,11 +234,26 @@ module Aws::S3
|
|
233
234
|
# For requests made using the Amazon Web Services Command Line Interface
|
234
235
|
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
235
236
|
# automatically.
|
237
|
+
# @option options [String] :checksum_algorithm
|
238
|
+
# Indicates the algorithm used to create the checksum for the object
|
239
|
+
# when using the SDK. This header will not provide any additional
|
240
|
+
# functionality if not using the SDK. When sending this header, there
|
241
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
242
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
243
|
+
# `400 Bad Request`. For more information, see [Checking object
|
244
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
245
|
+
#
|
246
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
247
|
+
# `ChecksumAlgorithm` parameter.
|
248
|
+
#
|
249
|
+
#
|
250
|
+
#
|
251
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
236
252
|
# @option options [Types::LifecycleConfiguration] :lifecycle_configuration
|
237
253
|
# @option options [String] :expected_bucket_owner
|
238
254
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
239
|
-
# a different account, the request
|
240
|
-
#
|
255
|
+
# a different account, the request fails with the HTTP status code `403
|
256
|
+
# Forbidden` (access denied).
|
241
257
|
# @return [EmptyStructure]
|
242
258
|
def put(options = {})
|
243
259
|
options = options.merge(bucket: @bucket_name)
|
@@ -182,8 +182,8 @@ module Aws::S3
|
|
182
182
|
# @param [Hash] options ({})
|
183
183
|
# @option options [String] :expected_bucket_owner
|
184
184
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
185
|
-
# a different account, the request
|
186
|
-
#
|
185
|
+
# a different account, the request fails with the HTTP status code `403
|
186
|
+
# Forbidden` (access denied).
|
187
187
|
# @return [EmptyStructure]
|
188
188
|
def delete(options = {})
|
189
189
|
options = options.merge(bucket: @bucket_name)
|
@@ -194,6 +194,7 @@ module Aws::S3
|
|
194
194
|
# @example Request syntax with placeholder values
|
195
195
|
#
|
196
196
|
# bucket_lifecycle_configuration.put({
|
197
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
197
198
|
# lifecycle_configuration: {
|
198
199
|
# rules: [ # required
|
199
200
|
# {
|
@@ -252,12 +253,27 @@ module Aws::S3
|
|
252
253
|
# expected_bucket_owner: "AccountId",
|
253
254
|
# })
|
254
255
|
# @param [Hash] options ({})
|
256
|
+
# @option options [String] :checksum_algorithm
|
257
|
+
# Indicates the algorithm used to create the checksum for the object
|
258
|
+
# when using the SDK. This header will not provide any additional
|
259
|
+
# functionality if not using the SDK. When sending this header, there
|
260
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
261
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
262
|
+
# `400 Bad Request`. For more information, see [Checking object
|
263
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
264
|
+
#
|
265
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
266
|
+
# `ChecksumAlgorithm` parameter.
|
267
|
+
#
|
268
|
+
#
|
269
|
+
#
|
270
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
255
271
|
# @option options [Types::BucketLifecycleConfiguration] :lifecycle_configuration
|
256
272
|
# Container for lifecycle rules. You can add as many as 1,000 rules.
|
257
273
|
# @option options [String] :expected_bucket_owner
|
258
274
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
259
|
-
# a different account, the request
|
260
|
-
#
|
275
|
+
# a different account, the request fails with the HTTP status code `403
|
276
|
+
# Forbidden` (access denied).
|
261
277
|
# @return [EmptyStructure]
|
262
278
|
def put(options = {})
|
263
279
|
options = options.merge(bucket: @bucket_name)
|
@@ -202,6 +202,7 @@ module Aws::S3
|
|
202
202
|
# },
|
203
203
|
# },
|
204
204
|
# content_md5: "ContentMD5",
|
205
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
205
206
|
# expected_bucket_owner: "AccountId",
|
206
207
|
# })
|
207
208
|
# @param [Hash] options ({})
|
@@ -213,10 +214,25 @@ module Aws::S3
|
|
213
214
|
# For requests made using the Amazon Web Services Command Line Interface
|
214
215
|
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
215
216
|
# automatically.
|
217
|
+
# @option options [String] :checksum_algorithm
|
218
|
+
# Indicates the algorithm used to create the checksum for the object
|
219
|
+
# when using the SDK. This header will not provide any additional
|
220
|
+
# functionality if not using the SDK. When sending this header, there
|
221
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
222
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
223
|
+
# `400 Bad Request`. For more information, see [Checking object
|
224
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
225
|
+
#
|
226
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
227
|
+
# `ChecksumAlgorithm` parameter.
|
228
|
+
#
|
229
|
+
#
|
230
|
+
#
|
231
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
216
232
|
# @option options [String] :expected_bucket_owner
|
217
233
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
218
|
-
# a different account, the request
|
219
|
-
#
|
234
|
+
# a different account, the request fails with the HTTP status code `403
|
235
|
+
# Forbidden` (access denied).
|
220
236
|
# @return [EmptyStructure]
|
221
237
|
def put(options = {})
|
222
238
|
options = options.merge(bucket: @bucket_name)
|
@@ -263,8 +263,8 @@ module Aws::S3
|
|
263
263
|
# bucket.
|
264
264
|
# @option options [String] :expected_bucket_owner
|
265
265
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
266
|
-
# a different account, the request
|
267
|
-
#
|
266
|
+
# a different account, the request fails with the HTTP status code `403
|
267
|
+
# Forbidden` (access denied).
|
268
268
|
# @option options [Boolean] :skip_destination_validation
|
269
269
|
# Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations.
|
270
270
|
# True or false value.
|
@@ -182,8 +182,8 @@ module Aws::S3
|
|
182
182
|
# @param [Hash] options ({})
|
183
183
|
# @option options [String] :expected_bucket_owner
|
184
184
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
185
|
-
# a different account, the request
|
186
|
-
#
|
185
|
+
# a different account, the request fails with the HTTP status code `403
|
186
|
+
# Forbidden` (access denied).
|
187
187
|
# @return [EmptyStructure]
|
188
188
|
def delete(options = {})
|
189
189
|
options = options.merge(bucket: @bucket_name)
|
@@ -195,6 +195,7 @@ module Aws::S3
|
|
195
195
|
#
|
196
196
|
# bucket_policy.put({
|
197
197
|
# content_md5: "ContentMD5",
|
198
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
198
199
|
# confirm_remove_self_bucket_access: false,
|
199
200
|
# policy: "Policy", # required
|
200
201
|
# expected_bucket_owner: "AccountId",
|
@@ -206,6 +207,21 @@ module Aws::S3
|
|
206
207
|
# For requests made using the Amazon Web Services Command Line Interface
|
207
208
|
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
208
209
|
# automatically.
|
210
|
+
# @option options [String] :checksum_algorithm
|
211
|
+
# Indicates the algorithm used to create the checksum for the object
|
212
|
+
# when using the SDK. This header will not provide any additional
|
213
|
+
# functionality if not using the SDK. When sending this header, there
|
214
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
215
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
216
|
+
# `400 Bad Request`. For more information, see [Checking object
|
217
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
218
|
+
#
|
219
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
220
|
+
# `ChecksumAlgorithm` parameter.
|
221
|
+
#
|
222
|
+
#
|
223
|
+
#
|
224
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
209
225
|
# @option options [Boolean] :confirm_remove_self_bucket_access
|
210
226
|
# Set this parameter to true to confirm that you want to remove your
|
211
227
|
# permissions to change this bucket policy in the future.
|
@@ -213,8 +229,8 @@ module Aws::S3
|
|
213
229
|
# The bucket policy as a JSON document.
|
214
230
|
# @option options [String] :expected_bucket_owner
|
215
231
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
216
|
-
# a different account, the request
|
217
|
-
#
|
232
|
+
# a different account, the request fails with the HTTP status code `403
|
233
|
+
# Forbidden` (access denied).
|
218
234
|
# @return [EmptyStructure]
|
219
235
|
def put(options = {})
|
220
236
|
options = options.merge(bucket: @bucket_name)
|
@@ -178,6 +178,7 @@ module Aws::S3
|
|
178
178
|
#
|
179
179
|
# bucket_request_payment.put({
|
180
180
|
# content_md5: "ContentMD5",
|
181
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
181
182
|
# request_payment_configuration: { # required
|
182
183
|
# payer: "Requester", # required, accepts Requester, BucketOwner
|
183
184
|
# },
|
@@ -196,12 +197,27 @@ module Aws::S3
|
|
196
197
|
#
|
197
198
|
#
|
198
199
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
200
|
+
# @option options [String] :checksum_algorithm
|
201
|
+
# Indicates the algorithm used to create the checksum for the object
|
202
|
+
# when using the SDK. This header will not provide any additional
|
203
|
+
# functionality if not using the SDK. When sending this header, there
|
204
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
205
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
206
|
+
# `400 Bad Request`. For more information, see [Checking object
|
207
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
208
|
+
#
|
209
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
210
|
+
# `ChecksumAlgorithm` parameter.
|
211
|
+
#
|
212
|
+
#
|
213
|
+
#
|
214
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
199
215
|
# @option options [required, Types::RequestPaymentConfiguration] :request_payment_configuration
|
200
216
|
# Container for Payer.
|
201
217
|
# @option options [String] :expected_bucket_owner
|
202
218
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
203
|
-
# a different account, the request
|
204
|
-
#
|
219
|
+
# a different account, the request fails with the HTTP status code `403
|
220
|
+
# Forbidden` (access denied).
|
205
221
|
# @return [EmptyStructure]
|
206
222
|
def put(options = {})
|
207
223
|
options = options.merge(bucket: @bucket_name)
|
@@ -182,8 +182,8 @@ module Aws::S3
|
|
182
182
|
# @param [Hash] options ({})
|
183
183
|
# @option options [String] :expected_bucket_owner
|
184
184
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
185
|
-
# a different account, the request
|
186
|
-
#
|
185
|
+
# a different account, the request fails with the HTTP status code `403
|
186
|
+
# Forbidden` (access denied).
|
187
187
|
# @return [EmptyStructure]
|
188
188
|
def delete(options = {})
|
189
189
|
options = options.merge(bucket: @bucket_name)
|
@@ -195,6 +195,7 @@ module Aws::S3
|
|
195
195
|
#
|
196
196
|
# bucket_tagging.put({
|
197
197
|
# content_md5: "ContentMD5",
|
198
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
198
199
|
# tagging: { # required
|
199
200
|
# tag_set: [ # required
|
200
201
|
# {
|
@@ -218,12 +219,27 @@ module Aws::S3
|
|
218
219
|
#
|
219
220
|
#
|
220
221
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
222
|
+
# @option options [String] :checksum_algorithm
|
223
|
+
# Indicates the algorithm used to create the checksum for the object
|
224
|
+
# when using the SDK. This header will not provide any additional
|
225
|
+
# functionality if not using the SDK. When sending this header, there
|
226
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
227
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
228
|
+
# `400 Bad Request`. For more information, see [Checking object
|
229
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
230
|
+
#
|
231
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
232
|
+
# `ChecksumAlgorithm` parameter.
|
233
|
+
#
|
234
|
+
#
|
235
|
+
#
|
236
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
221
237
|
# @option options [required, Types::Tagging] :tagging
|
222
238
|
# Container for the `TagSet` and `Tag` elements.
|
223
239
|
# @option options [String] :expected_bucket_owner
|
224
240
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
225
|
-
# a different account, the request
|
226
|
-
#
|
241
|
+
# a different account, the request fails with the HTTP status code `403
|
242
|
+
# Forbidden` (access denied).
|
227
243
|
# @return [EmptyStructure]
|
228
244
|
def put(options = {})
|
229
245
|
options = options.merge(bucket: @bucket_name)
|