aws-sdk-s3 1.96.2 → 1.117.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +147 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +127 -30
- 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 +2776 -1341
- data/lib/aws-sdk-s3/client_api.rb +577 -208
- data/lib/aws-sdk-s3/customizations/bucket.rb +20 -46
- 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/endpoint_parameters.rb +142 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +2020 -0
- data/lib/aws-sdk-s3/endpoints.rb +2149 -0
- 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_stream_uploader.rb +36 -10
- 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 +210 -81
- data/lib/aws-sdk-s3/object_version.rb +66 -39
- data/lib/aws-sdk-s3/plugins/accelerate.rb +3 -44
- data/lib/aws-sdk-s3/plugins/arn.rb +22 -180
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +3 -39
- data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +1 -6
- data/lib/aws-sdk-s3/plugins/dualstack.rb +1 -55
- data/lib/aws-sdk-s3/plugins/endpoints.rb +262 -0
- data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +2 -1
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +6 -29
- data/lib/aws-sdk-s3/plugins/md5s.rb +5 -3
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +33 -100
- data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
- data/lib/aws-sdk-s3/plugins/streaming_retry.rb +23 -2
- data/lib/aws-sdk-s3/presigned_post.rb +47 -35
- data/lib/aws-sdk-s3/presigner.rb +20 -27
- data/lib/aws-sdk-s3/resource.rb +19 -1
- data/lib/aws-sdk-s3/types.rb +2759 -4389
- data/lib/aws-sdk-s3.rb +5 -1
- metadata +12 -11
- data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -69
- data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +0 -69
- data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -73
- data/lib/aws-sdk-s3/plugins/object_lambda_endpoint.rb +0 -25
@@ -221,6 +221,7 @@ module Aws::S3
|
|
221
221
|
# },
|
222
222
|
# },
|
223
223
|
# content_md5: "ContentMD5",
|
224
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
224
225
|
# grant_full_control: "GrantFullControl",
|
225
226
|
# grant_read: "GrantRead",
|
226
227
|
# grant_read_acp: "GrantReadACP",
|
@@ -247,12 +248,28 @@ module Aws::S3
|
|
247
248
|
# not corrupted in transit. For more information, go to [RFC
|
248
249
|
# 1864.>][1]
|
249
250
|
#
|
250
|
-
# For requests made using the
|
251
|
-
# SDKs, this field is calculated
|
251
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
252
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
253
|
+
# automatically.
|
252
254
|
#
|
253
255
|
#
|
254
256
|
#
|
255
257
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
258
|
+
# @option options [String] :checksum_algorithm
|
259
|
+
# Indicates the algorithm used to create the checksum for the object
|
260
|
+
# when using the SDK. This header will not provide any additional
|
261
|
+
# functionality if not using the SDK. When sending this header, there
|
262
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
263
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
264
|
+
# `400 Bad Request`. For more information, see [Checking object
|
265
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
266
|
+
#
|
267
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
268
|
+
# `ChecksumAlgorithm` parameter.
|
269
|
+
#
|
270
|
+
#
|
271
|
+
#
|
272
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
256
273
|
# @option options [String] :grant_full_control
|
257
274
|
# Allows grantee the read, write, read ACP, and write ACP permissions on
|
258
275
|
# the bucket.
|
@@ -278,8 +295,8 @@ module Aws::S3
|
|
278
295
|
# @option options [String] :request_payer
|
279
296
|
# Confirms that the requester knows that they will be charged for the
|
280
297
|
# request. Bucket owners need not specify this parameter in their
|
281
|
-
# requests. For information about downloading objects from
|
282
|
-
#
|
298
|
+
# requests. For information about downloading objects from Requester
|
299
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
283
300
|
# in the *Amazon S3 User Guide*.
|
284
301
|
#
|
285
302
|
#
|
@@ -289,8 +306,8 @@ module Aws::S3
|
|
289
306
|
# VersionId used to reference a specific version of the object.
|
290
307
|
# @option options [String] :expected_bucket_owner
|
291
308
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
292
|
-
# a different account, the request
|
293
|
-
#
|
309
|
+
# a different account, the request fails with the HTTP status code `403
|
310
|
+
# Forbidden` (access denied).
|
294
311
|
# @return [Types::PutObjectAclOutput]
|
295
312
|
def put(options = {})
|
296
313
|
options = options.merge(
|
@@ -55,22 +55,31 @@ module Aws::S3
|
|
55
55
|
# below:
|
56
56
|
#
|
57
57
|
# * Objects created by the PUT Object, POST Object, or Copy operation,
|
58
|
-
# or through the
|
59
|
-
# or plaintext, have ETags that are an MD5 digest
|
60
|
-
# data.
|
58
|
+
# or through the Amazon Web Services Management Console, and are
|
59
|
+
# encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest
|
60
|
+
# of their object data.
|
61
61
|
#
|
62
62
|
# * Objects created by the PUT Object, POST Object, or Copy operation,
|
63
|
-
# or through the
|
64
|
-
# SSE-KMS, have ETags that are not an MD5 digest
|
63
|
+
# or through the Amazon Web Services Management Console, and are
|
64
|
+
# encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest
|
65
|
+
# of their object data.
|
65
66
|
#
|
66
67
|
# * If an object is created by either the Multipart Upload or Part Copy
|
67
68
|
# operation, the ETag is not an MD5 digest, regardless of the method
|
68
|
-
# of encryption.
|
69
|
+
# of encryption. If an object is larger than 16 MB, the Amazon Web
|
70
|
+
# Services Management Console will upload or copy that object as a
|
71
|
+
# Multipart Upload, and therefore the ETag will not be an MD5 digest.
|
69
72
|
# @return [String]
|
70
73
|
def etag
|
71
74
|
data[:etag]
|
72
75
|
end
|
73
76
|
|
77
|
+
# The algorithm that was used to create a checksum of the object.
|
78
|
+
# @return [Array<String>]
|
79
|
+
def checksum_algorithm
|
80
|
+
data[:checksum_algorithm]
|
81
|
+
end
|
82
|
+
|
74
83
|
# Size in bytes of the object
|
75
84
|
# @return [Integer]
|
76
85
|
def size
|
@@ -275,6 +284,7 @@ module Aws::S3
|
|
275
284
|
# object_summary.copy_from({
|
276
285
|
# acl: "private", # accepts private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, bucket-owner-full-control
|
277
286
|
# cache_control: "CacheControl",
|
287
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
278
288
|
# content_disposition: "ContentDisposition",
|
279
289
|
# content_encoding: "ContentEncoding",
|
280
290
|
# content_language: "ContentLanguage",
|
@@ -295,7 +305,7 @@ module Aws::S3
|
|
295
305
|
# metadata_directive: "COPY", # accepts COPY, REPLACE
|
296
306
|
# tagging_directive: "COPY", # accepts COPY, REPLACE
|
297
307
|
# server_side_encryption: "AES256", # accepts AES256, aws:kms
|
298
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
|
308
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
|
299
309
|
# website_redirect_location: "WebsiteRedirectLocation",
|
300
310
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
301
311
|
# sse_customer_key: "SSECustomerKey",
|
@@ -321,6 +331,14 @@ module Aws::S3
|
|
321
331
|
# This action is not supported by Amazon S3 on Outposts.
|
322
332
|
# @option options [String] :cache_control
|
323
333
|
# Specifies caching behavior along the request/reply chain.
|
334
|
+
# @option options [String] :checksum_algorithm
|
335
|
+
# Indicates the algorithm you want Amazon S3 to use to create the
|
336
|
+
# checksum for the object. For more information, see [Checking object
|
337
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
338
|
+
#
|
339
|
+
#
|
340
|
+
#
|
341
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
324
342
|
# @option options [String] :content_disposition
|
325
343
|
# Specifies presentational information for the object.
|
326
344
|
# @option options [String] :content_encoding
|
@@ -340,8 +358,8 @@ module Aws::S3
|
|
340
358
|
# of the source bucket and the key of the source object, separated by
|
341
359
|
# a slash (/). For example, to copy the object `reports/january.pdf`
|
342
360
|
# from the bucket `awsexamplebucket`, use
|
343
|
-
# `awsexamplebucket/reports/january.pdf`. The value must be
|
344
|
-
# encoded.
|
361
|
+
# `awsexamplebucket/reports/january.pdf`. The value must be
|
362
|
+
# URL-encoded.
|
345
363
|
#
|
346
364
|
# * For objects accessed through access points, specify the Amazon
|
347
365
|
# Resource Name (ARN) of the object as accessed through the access
|
@@ -354,7 +372,8 @@ module Aws::S3
|
|
354
372
|
# The value must be URL encoded.
|
355
373
|
#
|
356
374
|
# <note markdown="1"> Amazon S3 supports copy operations using access points only when the
|
357
|
-
# source and destination buckets are in the same
|
375
|
+
# source and destination buckets are in the same Amazon Web Services
|
376
|
+
# Region.
|
358
377
|
#
|
359
378
|
# </note>
|
360
379
|
#
|
@@ -365,7 +384,7 @@ module Aws::S3
|
|
365
384
|
# outpost `my-outpost` owned by account `123456789012` in Region
|
366
385
|
# `us-west-2`, use the URL encoding of
|
367
386
|
# `arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf`.
|
368
|
-
# The value must be URL
|
387
|
+
# The value must be URL-encoded.
|
369
388
|
#
|
370
389
|
# To copy a specific version of an object, append
|
371
390
|
# `?versionId=<version-id>` to the value (for example,
|
@@ -445,20 +464,21 @@ module Aws::S3
|
|
445
464
|
# RFC 1321. Amazon S3 uses this header for a message integrity check to
|
446
465
|
# ensure that the encryption key was transmitted without error.
|
447
466
|
# @option options [String] :ssekms_key_id
|
448
|
-
# Specifies the
|
449
|
-
# PUT requests for an object protected by
|
450
|
-
# via SSL or using SigV4. For
|
451
|
-
#
|
452
|
-
#
|
453
|
-
#
|
467
|
+
# Specifies the Amazon Web Services KMS key ID to use for object
|
468
|
+
# encryption. All GET and PUT requests for an object protected by Amazon
|
469
|
+
# Web Services KMS will fail if not made via SSL or using SigV4. For
|
470
|
+
# information about configuring using any of the officially supported
|
471
|
+
# Amazon Web Services SDKs and Amazon Web Services CLI, see [Specifying
|
472
|
+
# the Signature Version in Request Authentication][1] in the *Amazon S3
|
473
|
+
# User Guide*.
|
454
474
|
#
|
455
475
|
#
|
456
476
|
#
|
457
477
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
|
458
478
|
# @option options [String] :ssekms_encryption_context
|
459
|
-
# Specifies the
|
460
|
-
# The value of this header is a base64-encoded UTF-8
|
461
|
-
# with the encryption context key-value pairs.
|
479
|
+
# Specifies the Amazon Web Services KMS Encryption Context to use for
|
480
|
+
# object encryption. The value of this header is a base64-encoded UTF-8
|
481
|
+
# string holding JSON with the encryption context key-value pairs.
|
462
482
|
# @option options [Boolean] :bucket_key_enabled
|
463
483
|
# Specifies whether Amazon S3 should use an S3 Bucket Key for object
|
464
484
|
# encryption with server-side encryption using AWS KMS (SSE-KMS).
|
@@ -481,8 +501,8 @@ module Aws::S3
|
|
481
501
|
# @option options [String] :request_payer
|
482
502
|
# Confirms that the requester knows that they will be charged for the
|
483
503
|
# request. Bucket owners need not specify this parameter in their
|
484
|
-
# requests. For information about downloading objects from
|
485
|
-
#
|
504
|
+
# requests. For information about downloading objects from Requester
|
505
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
486
506
|
# in the *Amazon S3 User Guide*.
|
487
507
|
#
|
488
508
|
#
|
@@ -498,15 +518,15 @@ module Aws::S3
|
|
498
518
|
# The date and time when you want the copied object's Object Lock to
|
499
519
|
# expire.
|
500
520
|
# @option options [String] :object_lock_legal_hold_status
|
501
|
-
# Specifies whether you want to apply a
|
521
|
+
# Specifies whether you want to apply a legal hold to the copied object.
|
502
522
|
# @option options [String] :expected_bucket_owner
|
503
523
|
# The account ID of the expected destination bucket owner. If the
|
504
|
-
# destination bucket is owned by a different account, the request
|
505
|
-
#
|
524
|
+
# destination bucket is owned by a different account, the request fails
|
525
|
+
# with the HTTP status code `403 Forbidden` (access denied).
|
506
526
|
# @option options [String] :expected_source_bucket_owner
|
507
527
|
# The account ID of the expected source bucket owner. If the source
|
508
|
-
# bucket is owned by a different account, the request
|
509
|
-
# HTTP `403 (
|
528
|
+
# bucket is owned by a different account, the request fails with the
|
529
|
+
# HTTP status code `403 Forbidden` (access denied).
|
510
530
|
# @return [Types::CopyObjectOutput]
|
511
531
|
def copy_from(options = {})
|
512
532
|
options = options.merge(
|
@@ -537,8 +557,8 @@ module Aws::S3
|
|
537
557
|
# @option options [String] :request_payer
|
538
558
|
# Confirms that the requester knows that they will be charged for the
|
539
559
|
# request. Bucket owners need not specify this parameter in their
|
540
|
-
# requests. For information about downloading objects from
|
541
|
-
#
|
560
|
+
# requests. For information about downloading objects from Requester
|
561
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
542
562
|
# in the *Amazon S3 User Guide*.
|
543
563
|
#
|
544
564
|
#
|
@@ -546,11 +566,12 @@ module Aws::S3
|
|
546
566
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
547
567
|
# @option options [Boolean] :bypass_governance_retention
|
548
568
|
# Indicates whether S3 Object Lock should bypass Governance-mode
|
549
|
-
# restrictions to process this operation.
|
569
|
+
# restrictions to process this operation. To use this header, you must
|
570
|
+
# have the `s3:BypassGovernanceRetention` permission.
|
550
571
|
# @option options [String] :expected_bucket_owner
|
551
572
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
552
|
-
# a different account, the request
|
553
|
-
#
|
573
|
+
# a different account, the request fails with the HTTP status code `403
|
574
|
+
# Forbidden` (access denied).
|
554
575
|
# @return [Types::DeleteObjectOutput]
|
555
576
|
def delete(options = {})
|
556
577
|
options = options.merge(
|
@@ -582,20 +603,21 @@ module Aws::S3
|
|
582
603
|
# request_payer: "requester", # accepts requester
|
583
604
|
# part_number: 1,
|
584
605
|
# expected_bucket_owner: "AccountId",
|
606
|
+
# checksum_mode: "ENABLED", # accepts ENABLED
|
585
607
|
# })
|
586
608
|
# @param [Hash] options ({})
|
587
609
|
# @option options [String] :if_match
|
588
610
|
# Return the object only if its entity tag (ETag) is the same as the one
|
589
|
-
# specified
|
611
|
+
# specified; otherwise, return a 412 (precondition failed) error.
|
590
612
|
# @option options [Time,DateTime,Date,Integer,String] :if_modified_since
|
591
613
|
# Return the object only if it has been modified since the specified
|
592
|
-
# time
|
614
|
+
# time; otherwise, return a 304 (not modified) error.
|
593
615
|
# @option options [String] :if_none_match
|
594
616
|
# Return the object only if its entity tag (ETag) is different from the
|
595
|
-
# one specified
|
617
|
+
# one specified; otherwise, return a 304 (not modified) error.
|
596
618
|
# @option options [Time,DateTime,Date,Integer,String] :if_unmodified_since
|
597
619
|
# Return the object only if it has not been modified since the specified
|
598
|
-
# time
|
620
|
+
# time; otherwise, return a 412 (precondition failed) error.
|
599
621
|
# @option options [String] :range
|
600
622
|
# Downloads the specified range bytes of an object. For more information
|
601
623
|
# about the HTTP Range header, see
|
@@ -639,8 +661,8 @@ module Aws::S3
|
|
639
661
|
# @option options [String] :request_payer
|
640
662
|
# Confirms that the requester knows that they will be charged for the
|
641
663
|
# request. Bucket owners need not specify this parameter in their
|
642
|
-
# requests. For information about downloading objects from
|
643
|
-
#
|
664
|
+
# requests. For information about downloading objects from Requester
|
665
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
644
666
|
# in the *Amazon S3 User Guide*.
|
645
667
|
#
|
646
668
|
#
|
@@ -653,8 +675,10 @@ module Aws::S3
|
|
653
675
|
# object.
|
654
676
|
# @option options [String] :expected_bucket_owner
|
655
677
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
656
|
-
# a different account, the request
|
657
|
-
#
|
678
|
+
# a different account, the request fails with the HTTP status code `403
|
679
|
+
# Forbidden` (access denied).
|
680
|
+
# @option options [String] :checksum_mode
|
681
|
+
# To retrieve the checksum, this mode must be enabled.
|
658
682
|
# @return [Types::GetObjectOutput]
|
659
683
|
def get(options = {}, &block)
|
660
684
|
options = options.merge(
|
@@ -683,7 +707,7 @@ module Aws::S3
|
|
683
707
|
# "MetadataKey" => "MetadataValue",
|
684
708
|
# },
|
685
709
|
# server_side_encryption: "AES256", # accepts AES256, aws:kms
|
686
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
|
710
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
|
687
711
|
# website_redirect_location: "WebsiteRedirectLocation",
|
688
712
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
689
713
|
# sse_customer_key: "SSECustomerKey",
|
@@ -697,6 +721,7 @@ module Aws::S3
|
|
697
721
|
# object_lock_retain_until_date: Time.now,
|
698
722
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
699
723
|
# expected_bucket_owner: "AccountId",
|
724
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
700
725
|
# })
|
701
726
|
# @param [Hash] options ({})
|
702
727
|
# @option options [String] :acl
|
@@ -768,20 +793,21 @@ module Aws::S3
|
|
768
793
|
# RFC 1321. Amazon S3 uses this header for a message integrity check to
|
769
794
|
# ensure that the encryption key was transmitted without error.
|
770
795
|
# @option options [String] :ssekms_key_id
|
771
|
-
# Specifies the ID of the symmetric customer managed
|
772
|
-
#
|
773
|
-
#
|
774
|
-
# information about configuring using any of the officially
|
775
|
-
#
|
776
|
-
# Authentication][1] in the
|
796
|
+
# Specifies the ID of the symmetric customer managed key to use for
|
797
|
+
# object encryption. All GET and PUT requests for an object protected by
|
798
|
+
# Amazon Web Services KMS will fail if not made via SSL or using SigV4.
|
799
|
+
# For information about configuring using any of the officially
|
800
|
+
# supported Amazon Web Services SDKs and Amazon Web Services CLI, see
|
801
|
+
# [Specifying the Signature Version in Request Authentication][1] in the
|
802
|
+
# *Amazon S3 User Guide*.
|
777
803
|
#
|
778
804
|
#
|
779
805
|
#
|
780
806
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
|
781
807
|
# @option options [String] :ssekms_encryption_context
|
782
|
-
# Specifies the
|
783
|
-
# The value of this header is a base64-encoded UTF-8
|
784
|
-
# with the encryption context key-value pairs.
|
808
|
+
# Specifies the Amazon Web Services KMS Encryption Context to use for
|
809
|
+
# object encryption. The value of this header is a base64-encoded UTF-8
|
810
|
+
# string holding JSON with the encryption context key-value pairs.
|
785
811
|
# @option options [Boolean] :bucket_key_enabled
|
786
812
|
# Specifies whether Amazon S3 should use an S3 Bucket Key for object
|
787
813
|
# encryption with server-side encryption using AWS KMS (SSE-KMS).
|
@@ -793,8 +819,8 @@ module Aws::S3
|
|
793
819
|
# @option options [String] :request_payer
|
794
820
|
# Confirms that the requester knows that they will be charged for the
|
795
821
|
# request. Bucket owners need not specify this parameter in their
|
796
|
-
# requests. For information about downloading objects from
|
797
|
-
#
|
822
|
+
# requests. For information about downloading objects from Requester
|
823
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
798
824
|
# in the *Amazon S3 User Guide*.
|
799
825
|
#
|
800
826
|
#
|
@@ -809,12 +835,20 @@ module Aws::S3
|
|
809
835
|
# @option options [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
|
810
836
|
# Specifies the date and time when you want the Object Lock to expire.
|
811
837
|
# @option options [String] :object_lock_legal_hold_status
|
812
|
-
# Specifies whether you want to apply a
|
838
|
+
# Specifies whether you want to apply a legal hold to the uploaded
|
813
839
|
# object.
|
814
840
|
# @option options [String] :expected_bucket_owner
|
815
841
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
816
|
-
# a different account, the request
|
817
|
-
#
|
842
|
+
# a different account, the request fails with the HTTP status code `403
|
843
|
+
# Forbidden` (access denied).
|
844
|
+
# @option options [String] :checksum_algorithm
|
845
|
+
# Indicates the algorithm you want Amazon S3 to use to create the
|
846
|
+
# checksum for the object. For more information, see [Checking object
|
847
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
848
|
+
#
|
849
|
+
#
|
850
|
+
#
|
851
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
818
852
|
# @return [MultipartUpload]
|
819
853
|
def initiate_multipart_upload(options = {})
|
820
854
|
options = options.merge(
|
@@ -842,6 +876,11 @@ module Aws::S3
|
|
842
876
|
# content_length: 1,
|
843
877
|
# content_md5: "ContentMD5",
|
844
878
|
# content_type: "ContentType",
|
879
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
880
|
+
# checksum_crc32: "ChecksumCRC32",
|
881
|
+
# checksum_crc32c: "ChecksumCRC32C",
|
882
|
+
# checksum_sha1: "ChecksumSHA1",
|
883
|
+
# checksum_sha256: "ChecksumSHA256",
|
845
884
|
# expires: Time.now,
|
846
885
|
# grant_full_control: "GrantFullControl",
|
847
886
|
# grant_read: "GrantRead",
|
@@ -851,7 +890,7 @@ module Aws::S3
|
|
851
890
|
# "MetadataKey" => "MetadataValue",
|
852
891
|
# },
|
853
892
|
# server_side_encryption: "AES256", # accepts AES256, aws:kms
|
854
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
|
893
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
|
855
894
|
# website_redirect_location: "WebsiteRedirectLocation",
|
856
895
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
857
896
|
# sse_customer_key: "SSECustomerKey",
|
@@ -933,6 +972,61 @@ module Aws::S3
|
|
933
972
|
#
|
934
973
|
#
|
935
974
|
# [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
|
975
|
+
# @option options [String] :checksum_algorithm
|
976
|
+
# Indicates the algorithm used to create the checksum for the object
|
977
|
+
# when using the SDK. This header will not provide any additional
|
978
|
+
# functionality if not using the SDK. When sending this header, there
|
979
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
980
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
981
|
+
# `400 Bad Request`. For more information, see [Checking object
|
982
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
983
|
+
#
|
984
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
985
|
+
# `ChecksumAlgorithm` parameter.
|
986
|
+
#
|
987
|
+
#
|
988
|
+
#
|
989
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
990
|
+
# @option options [String] :checksum_crc32
|
991
|
+
# This header can be used as a data integrity check to verify that the
|
992
|
+
# data received is the same data that was originally sent. This header
|
993
|
+
# specifies the base64-encoded, 32-bit CRC32 checksum of the object. For
|
994
|
+
# more information, see [Checking object integrity][1] in the *Amazon S3
|
995
|
+
# User Guide*.
|
996
|
+
#
|
997
|
+
#
|
998
|
+
#
|
999
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
1000
|
+
# @option options [String] :checksum_crc32c
|
1001
|
+
# This header can be used as a data integrity check to verify that the
|
1002
|
+
# data received is the same data that was originally sent. This header
|
1003
|
+
# specifies the base64-encoded, 32-bit CRC32C checksum of the object.
|
1004
|
+
# For more information, see [Checking object integrity][1] in the
|
1005
|
+
# *Amazon S3 User Guide*.
|
1006
|
+
#
|
1007
|
+
#
|
1008
|
+
#
|
1009
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
1010
|
+
# @option options [String] :checksum_sha1
|
1011
|
+
# This header can be used as a data integrity check to verify that the
|
1012
|
+
# data received is the same data that was originally sent. This header
|
1013
|
+
# specifies the base64-encoded, 160-bit SHA-1 digest of the object. For
|
1014
|
+
# more information, see [Checking object integrity][1] in the *Amazon S3
|
1015
|
+
# User Guide*.
|
1016
|
+
#
|
1017
|
+
#
|
1018
|
+
#
|
1019
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
1020
|
+
# @option options [String] :checksum_sha256
|
1021
|
+
# This header can be used as a data integrity check to verify that the
|
1022
|
+
# data received is the same data that was originally sent. This header
|
1023
|
+
# specifies the base64-encoded, 256-bit SHA-256 digest of the object.
|
1024
|
+
# For more information, see [Checking object integrity][1] in the
|
1025
|
+
# *Amazon S3 User Guide*.
|
1026
|
+
#
|
1027
|
+
#
|
1028
|
+
#
|
1029
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
936
1030
|
# @option options [Time,DateTime,Date,Integer,String] :expires
|
937
1031
|
# The date and time at which the object is no longer cacheable. For more
|
938
1032
|
# information, see
|
@@ -1014,18 +1108,18 @@ module Aws::S3
|
|
1014
1108
|
# ensure that the encryption key was transmitted without error.
|
1015
1109
|
# @option options [String] :ssekms_key_id
|
1016
1110
|
# If `x-amz-server-side-encryption` is present and has the value of
|
1017
|
-
# `aws:kms`, this header specifies the ID of the
|
1018
|
-
# Service (
|
1019
|
-
#
|
1111
|
+
# `aws:kms`, this header specifies the ID of the Amazon Web Services Key
|
1112
|
+
# Management Service (Amazon Web Services KMS) symmetrical customer
|
1113
|
+
# managed key that was used for the object. If you specify
|
1020
1114
|
# `x-amz-server-side-encryption:aws:kms`, but do not provide`
|
1021
|
-
# x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the
|
1022
|
-
#
|
1023
|
-
# in the same account issuing the command, you must use
|
1024
|
-
# not just the ID.
|
1115
|
+
# x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the
|
1116
|
+
# Amazon Web Services managed key to protect the data. If the KMS key
|
1117
|
+
# does not exist in the same account issuing the command, you must use
|
1118
|
+
# the full ARN and not just the ID.
|
1025
1119
|
# @option options [String] :ssekms_encryption_context
|
1026
|
-
# Specifies the
|
1027
|
-
# The value of this header is a base64-encoded UTF-8
|
1028
|
-
# with the encryption context key-value pairs.
|
1120
|
+
# Specifies the Amazon Web Services KMS Encryption Context to use for
|
1121
|
+
# object encryption. The value of this header is a base64-encoded UTF-8
|
1122
|
+
# string holding JSON with the encryption context key-value pairs.
|
1029
1123
|
# @option options [Boolean] :bucket_key_enabled
|
1030
1124
|
# Specifies whether Amazon S3 should use an S3 Bucket Key for object
|
1031
1125
|
# encryption with server-side encryption using AWS KMS (SSE-KMS).
|
@@ -1037,8 +1131,8 @@ module Aws::S3
|
|
1037
1131
|
# @option options [String] :request_payer
|
1038
1132
|
# Confirms that the requester knows that they will be charged for the
|
1039
1133
|
# request. Bucket owners need not specify this parameter in their
|
1040
|
-
# requests. For information about downloading objects from
|
1041
|
-
#
|
1134
|
+
# requests. For information about downloading objects from Requester
|
1135
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
1042
1136
|
# in the *Amazon S3 User Guide*.
|
1043
1137
|
#
|
1044
1138
|
#
|
@@ -1061,8 +1155,8 @@ module Aws::S3
|
|
1061
1155
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
|
1062
1156
|
# @option options [String] :expected_bucket_owner
|
1063
1157
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
1064
|
-
# a different account, the request
|
1065
|
-
#
|
1158
|
+
# a different account, the request fails with the HTTP status code `403
|
1159
|
+
# Forbidden` (access denied).
|
1066
1160
|
# @return [Types::PutObjectOutput]
|
1067
1161
|
def put(options = {})
|
1068
1162
|
options = options.merge(
|
@@ -1154,11 +1248,12 @@ module Aws::S3
|
|
1154
1248
|
# value: "MetadataValue",
|
1155
1249
|
# },
|
1156
1250
|
# ],
|
1157
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
|
1251
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
|
1158
1252
|
# },
|
1159
1253
|
# },
|
1160
1254
|
# },
|
1161
1255
|
# request_payer: "requester", # accepts requester
|
1256
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
1162
1257
|
# expected_bucket_owner: "AccountId",
|
1163
1258
|
# })
|
1164
1259
|
# @param [Hash] options ({})
|
@@ -1169,17 +1264,32 @@ module Aws::S3
|
|
1169
1264
|
# @option options [String] :request_payer
|
1170
1265
|
# Confirms that the requester knows that they will be charged for the
|
1171
1266
|
# request. Bucket owners need not specify this parameter in their
|
1172
|
-
# requests. For information about downloading objects from
|
1173
|
-
#
|
1267
|
+
# requests. For information about downloading objects from Requester
|
1268
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
1174
1269
|
# in the *Amazon S3 User Guide*.
|
1175
1270
|
#
|
1176
1271
|
#
|
1177
1272
|
#
|
1178
1273
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
1274
|
+
# @option options [String] :checksum_algorithm
|
1275
|
+
# Indicates the algorithm used to create the checksum for the object
|
1276
|
+
# when using the SDK. This header will not provide any additional
|
1277
|
+
# functionality if not using the SDK. When sending this header, there
|
1278
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
1279
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
1280
|
+
# `400 Bad Request`. For more information, see [Checking object
|
1281
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
1282
|
+
#
|
1283
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
1284
|
+
# `ChecksumAlgorithm` parameter.
|
1285
|
+
#
|
1286
|
+
#
|
1287
|
+
#
|
1288
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
1179
1289
|
# @option options [String] :expected_bucket_owner
|
1180
1290
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
1181
|
-
# a different account, the request
|
1182
|
-
#
|
1291
|
+
# a different account, the request fails with the HTTP status code `403
|
1292
|
+
# Forbidden` (access denied).
|
1183
1293
|
# @return [Types::RestoreObjectOutput]
|
1184
1294
|
def restore_object(options = {})
|
1185
1295
|
options = options.merge(
|
@@ -1312,6 +1422,7 @@ module Aws::S3
|
|
1312
1422
|
# request_payer: "requester", # accepts requester
|
1313
1423
|
# bypass_governance_retention: false,
|
1314
1424
|
# expected_bucket_owner: "AccountId",
|
1425
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
1315
1426
|
# })
|
1316
1427
|
# @param options ({})
|
1317
1428
|
# @option options [String] :mfa
|
@@ -1322,8 +1433,8 @@ module Aws::S3
|
|
1322
1433
|
# @option options [String] :request_payer
|
1323
1434
|
# Confirms that the requester knows that they will be charged for the
|
1324
1435
|
# request. Bucket owners need not specify this parameter in their
|
1325
|
-
# requests. For information about downloading objects from
|
1326
|
-
#
|
1436
|
+
# requests. For information about downloading objects from Requester
|
1437
|
+
# Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
|
1327
1438
|
# in the *Amazon S3 User Guide*.
|
1328
1439
|
#
|
1329
1440
|
#
|
@@ -1331,12 +1442,30 @@ module Aws::S3
|
|
1331
1442
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
1332
1443
|
# @option options [Boolean] :bypass_governance_retention
|
1333
1444
|
# Specifies whether you want to delete this object even if it has a
|
1334
|
-
# Governance-type Object Lock in place.
|
1335
|
-
#
|
1445
|
+
# Governance-type Object Lock in place. To use this header, you must
|
1446
|
+
# have the `s3:BypassGovernanceRetention` permission.
|
1336
1447
|
# @option options [String] :expected_bucket_owner
|
1337
1448
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
1338
|
-
# a different account, the request
|
1339
|
-
#
|
1449
|
+
# a different account, the request fails with the HTTP status code `403
|
1450
|
+
# Forbidden` (access denied).
|
1451
|
+
# @option options [String] :checksum_algorithm
|
1452
|
+
# Indicates the algorithm used to create the checksum for the object
|
1453
|
+
# when using the SDK. This header will not provide any additional
|
1454
|
+
# functionality if not using the SDK. When sending this header, there
|
1455
|
+
# must be a corresponding `x-amz-checksum` or `x-amz-trailer` header
|
1456
|
+
# sent. Otherwise, Amazon S3 fails the request with the HTTP status code
|
1457
|
+
# `400 Bad Request`. For more information, see [Checking object
|
1458
|
+
# integrity][1] in the *Amazon S3 User Guide*.
|
1459
|
+
#
|
1460
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
1461
|
+
# `ChecksumAlgorithm` parameter.
|
1462
|
+
#
|
1463
|
+
# This checksum algorithm must be the same for all parts and it match
|
1464
|
+
# the checksum value supplied in the `CreateMultipartUpload` request.
|
1465
|
+
#
|
1466
|
+
#
|
1467
|
+
#
|
1468
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
1340
1469
|
# @return [void]
|
1341
1470
|
def batch_delete!(options = {})
|
1342
1471
|
batch_enum.each do |batch|
|