aws-sdk-s3 1.166.0 → 1.174.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23940562598b8073e4e1e7fb5f300a75ccedfa51af9fba10603af1537c2e50e9
4
- data.tar.gz: b741a11a7fe934ae6b0e5e263a99075191296916b8aceecbfdeecaa57ec10bf1
3
+ metadata.gz: 41708b9731d7e419a0ba0c0b1055eb898262787bbbb863ac9fc263dea923ab39
4
+ data.tar.gz: 7b234e13747a166c717b53e12f10c68c46f095a6c80a595729b2bf45bd26559d
5
5
  SHA512:
6
- metadata.gz: 1442957d392d64949c12f0c9f8e6f409c90486538987aa4d9d5e738b4065e050104761522bcd8a38b413ca3bf554e6e328b0cbf3f43d4f79440c7e339162c4d2
7
- data.tar.gz: e415e5c21aa9e5942b353e84372fbccb727e76deb7f3ecc4124a2ad4a680b856e1988f950e0ba7c5468102a269aa3b47214d5777a172004f789525a27d5eff3c
6
+ metadata.gz: ea9f2984fef0721818c9fd89578fec1607717f0997a4eef687438b0b1c8ee5d7dc9e97e7eb88f61de09639f960a26263f364a7058e2cd9177ab21c796bfd6387
7
+ data.tar.gz: 2abdd8f68b8d314356c8d94be450302c871ab278249deaedf5369760ef69b460999ec1e570902f5070795e9d3238170814be085263235239499ed599aa42a0e4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,51 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.174.0 (2024-11-25)
5
+ ------------------
6
+
7
+ * Feature - Amazon Simple Storage Service / Features: Add support for ETag based conditional writes in PutObject and CompleteMultiPartUpload APIs to prevent unintended object modifications.
8
+
9
+ 1.173.0 (2024-11-21)
10
+ ------------------
11
+
12
+ * Feature - Add support for conditional deletes for the S3 DeleteObject and DeleteObjects APIs. Add support for write offset bytes option used to append to objects with the S3 PutObject API.
13
+
14
+ 1.172.0 (2024-11-18)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.171.0 (2024-11-14)
20
+ ------------------
21
+
22
+ * Feature - This release updates the ListBuckets API Reference documentation in support of the new 10,000 general purpose bucket default quota on all AWS accounts. To increase your bucket quota from 10,000 to up to 1 million buckets, simply request a quota increase via Service Quotas.
23
+
24
+ 1.170.1 (2024-11-11)
25
+ ------------------
26
+
27
+ * Issue - Tighten regex used to check for S3 200 errors.
28
+
29
+ 1.170.0 (2024-11-06)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.169.0 (2024-10-18)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.168.0 (2024-10-16)
40
+ ------------------
41
+
42
+ * Feature - Add support for the new optional bucket-region and prefix query parameters in the ListBuckets API. For ListBuckets requests that express pagination, Amazon S3 will now return both the bucket names and associated AWS regions in the response.
43
+
44
+ 1.167.0 (2024-10-02)
45
+ ------------------
46
+
47
+ * Feature - This release introduces a header representing the minimum object size limit for Lifecycle transitions.
48
+
4
49
  1.166.0 (2024-09-24)
5
50
  ------------------
6
51
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.166.0
1
+ 1.174.0
@@ -41,6 +41,14 @@ module Aws::S3
41
41
  data[:creation_date]
42
42
  end
43
43
 
44
+ # `BucketRegion` indicates the Amazon Web Services region where the
45
+ # bucket is located. If the request contains at least one valid
46
+ # parameter, it is included in the response.
47
+ # @return [String]
48
+ def bucket_region
49
+ data[:bucket_region]
50
+ end
51
+
44
52
  # @!endgroup
45
53
 
46
54
  # @return [Client]
@@ -373,6 +381,9 @@ module Aws::S3
373
381
  # {
374
382
  # key: "ObjectKey", # required
375
383
  # version_id: "ObjectVersionId",
384
+ # etag: "ETag",
385
+ # last_modified_time: Time.now,
386
+ # size: 1,
376
387
  # },
377
388
  # ],
378
389
  # quiet: false,
@@ -447,13 +458,13 @@ module Aws::S3
447
458
  # For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
448
459
  # the supported algorithm from the following list:
449
460
  #
450
- # * CRC32
461
+ # * `CRC32`
451
462
  #
452
- # * CRC32C
463
+ # * `CRC32C`
453
464
  #
454
- # * SHA1
465
+ # * `SHA1`
455
466
  #
456
- # * SHA256
467
+ # * `SHA256`
457
468
  #
458
469
  # For more information, see [Checking object integrity][1] in the
459
470
  # *Amazon S3 User Guide*.
@@ -497,12 +508,14 @@ module Aws::S3
497
508
  # checksum_sha1: "ChecksumSHA1",
498
509
  # checksum_sha256: "ChecksumSHA256",
499
510
  # expires: Time.now,
511
+ # if_match: "IfMatch",
500
512
  # if_none_match: "IfNoneMatch",
501
513
  # grant_full_control: "GrantFullControl",
502
514
  # grant_read: "GrantRead",
503
515
  # grant_read_acp: "GrantReadACP",
504
516
  # grant_write_acp: "GrantWriteACP",
505
517
  # key: "ObjectKey", # required
518
+ # write_offset_bytes: 1,
506
519
  # metadata: {
507
520
  # "MetadataKey" => "MetadataValue",
508
521
  # },
@@ -606,10 +619,11 @@ module Aws::S3
606
619
  # information about REST request authentication, see [REST
607
620
  # Authentication][1].
608
621
  #
609
- # <note markdown="1"> The `Content-MD5` header is required for any request to upload an
610
- # object with a retention period configured using Amazon S3 Object Lock.
611
- # For more information about Amazon S3 Object Lock, see [Amazon S3
612
- # Object Lock Overview][2] in the *Amazon S3 User Guide*.
622
+ # <note markdown="1"> The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required
623
+ # for any request to upload an object with a retention period configured
624
+ # using Amazon S3 Object Lock. For more information, see [Uploading
625
+ # objects to an Object Lock enabled bucket ][2] in the *Amazon S3 User
626
+ # Guide*.
613
627
  #
614
628
  # </note>
615
629
  #
@@ -620,7 +634,7 @@ module Aws::S3
620
634
  #
621
635
  #
622
636
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
623
- # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html
637
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object
624
638
  # @option options [String] :content_type
625
639
  # A standard MIME type describing the format of the contents. For more
626
640
  # information, see
@@ -640,13 +654,13 @@ module Aws::S3
640
654
  # For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
641
655
  # the supported algorithm from the following list:
642
656
  #
643
- # * CRC32
657
+ # * `CRC32`
644
658
  #
645
- # * CRC32C
659
+ # * `CRC32C`
646
660
  #
647
- # * SHA1
661
+ # * `SHA1`
648
662
  #
649
- # * SHA256
663
+ # * `SHA256`
650
664
  #
651
665
  # For more information, see [Checking object integrity][1] in the
652
666
  # *Amazon S3 User Guide*.
@@ -657,20 +671,27 @@ module Aws::S3
657
671
  # provided `ChecksumAlgorithm` parameter and uses the checksum algorithm
658
672
  # that matches the provided value in `x-amz-checksum-algorithm `.
659
673
  #
660
- # <note markdown="1"> For directory buckets, when you use Amazon Web Services SDKs, `CRC32`
661
- # is the default checksum algorithm that's used for performance.
674
+ # <note markdown="1"> The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required
675
+ # for any request to upload an object with a retention period configured
676
+ # using Amazon S3 Object Lock. For more information, see [Uploading
677
+ # objects to an Object Lock enabled bucket ][2] in the *Amazon S3 User
678
+ # Guide*.
662
679
  #
663
680
  # </note>
664
681
  #
682
+ # For directory buckets, when you use Amazon Web Services SDKs, `CRC32`
683
+ # is the default checksum algorithm that's used for performance.
684
+ #
665
685
  #
666
686
  #
667
687
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
688
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object
668
689
  # @option options [String] :checksum_crc32
669
690
  # This header can be used as a data integrity check to verify that the
670
691
  # data received is the same data that was originally sent. This header
671
- # specifies the base64-encoded, 32-bit CRC32 checksum of the object. For
672
- # more information, see [Checking object integrity][1] in the *Amazon S3
673
- # User Guide*.
692
+ # specifies the base64-encoded, 32-bit CRC-32 checksum of the object.
693
+ # For more information, see [Checking object integrity][1] in the
694
+ # *Amazon S3 User Guide*.
674
695
  #
675
696
  #
676
697
  #
@@ -678,7 +699,7 @@ module Aws::S3
678
699
  # @option options [String] :checksum_crc32c
679
700
  # This header can be used as a data integrity check to verify that the
680
701
  # data received is the same data that was originally sent. This header
681
- # specifies the base64-encoded, 32-bit CRC32C checksum of the object.
702
+ # specifies the base64-encoded, 32-bit CRC-32C checksum of the object.
682
703
  # For more information, see [Checking object integrity][1] in the
683
704
  # *Amazon S3 User Guide*.
684
705
  #
@@ -713,6 +734,25 @@ module Aws::S3
713
734
  #
714
735
  #
715
736
  # [1]: https://www.rfc-editor.org/rfc/rfc7234#section-5.3
737
+ # @option options [String] :if_match
738
+ # Uploads the object only if the ETag (entity tag) value provided during
739
+ # the WRITE operation matches the ETag of the object in S3. If the ETag
740
+ # values do not match, the operation returns a `412 Precondition Failed`
741
+ # error.
742
+ #
743
+ # If a conflicting operation occurs during the upload S3 returns a `409
744
+ # ConditionalRequestConflict` response. On a 409 failure you should
745
+ # fetch the object's ETag and retry the upload.
746
+ #
747
+ # Expects the ETag value as a string.
748
+ #
749
+ # For more information about conditional requests, see [RFC 7232][1], or
750
+ # [Conditional requests][2] in the *Amazon S3 User Guide*.
751
+ #
752
+ #
753
+ #
754
+ # [1]: https://tools.ietf.org/html/rfc7232
755
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html
716
756
  # @option options [String] :if_none_match
717
757
  # Uploads the object only if the object key name does not already exist
718
758
  # in the bucket specified. Otherwise, Amazon S3 returns a `412
@@ -766,6 +806,16 @@ module Aws::S3
766
806
  # </note>
767
807
  # @option options [required, String] :key
768
808
  # Object key for which the PUT action was initiated.
809
+ # @option options [Integer] :write_offset_bytes
810
+ # Specifies the offset for appending data to existing objects in bytes.
811
+ # The offset must be equal to the size of the existing object being
812
+ # appended to. If no object exists, setting this header to 0 will create
813
+ # a new object.
814
+ #
815
+ # <note markdown="1"> This functionality is only supported for objects in the Amazon S3
816
+ # Express One Zone storage class in directory buckets.
817
+ #
818
+ # </note>
769
819
  # @option options [Hash<String,String>] :metadata
770
820
  # A map of metadata to store with the object in S3.
771
821
  # @option options [String] :server_side_encryption
@@ -919,14 +969,19 @@ module Aws::S3
919
969
  # Amazon Web Services managed key (`aws/s3`) to protect the data.
920
970
  #
921
971
  # **Directory buckets** - If you specify `x-amz-server-side-encryption`
922
- # with `aws:kms`, you must specify the `
923
- # x-amz-server-side-encryption-aws-kms-key-id` header with the ID (Key
924
- # ID or Key ARN) of the KMS symmetric encryption customer managed key to
925
- # use. Otherwise, you get an HTTP `400 Bad Request` error. Only use the
926
- # key ID or key ARN. The key alias format of the KMS key isn't
927
- # supported. Your SSE-KMS configuration can only support 1 [customer
928
- # managed key][1] per directory bucket for the lifetime of the bucket.
929
- # [Amazon Web Services managed key][2] (`aws/s3`) isn't supported.
972
+ # with `aws:kms`, the ` x-amz-server-side-encryption-aws-kms-key-id`
973
+ # header is implicitly assigned the ID of the KMS symmetric encryption
974
+ # customer managed key that's configured for your directory bucket's
975
+ # default encryption setting. If you want to specify the `
976
+ # x-amz-server-side-encryption-aws-kms-key-id` header explicitly, you
977
+ # can only specify it with the ID (Key ID or Key ARN) of the KMS
978
+ # customer managed key that's configured for your directory bucket's
979
+ # default encryption setting. Otherwise, you get an HTTP `400 Bad
980
+ # Request` error. Only use the key ID or key ARN. The key alias format
981
+ # of the KMS key isn't supported. Your SSE-KMS configuration can only
982
+ # support 1 [customer managed key][1] per directory bucket for the
983
+ # lifetime of the bucket. The [Amazon Web Services managed key][2]
984
+ # (`aws/s3`) isn't supported.
930
985
  #
931
986
  #
932
987
  #
@@ -188,6 +188,11 @@ module Aws::S3
188
188
  # The account ID of the expected bucket owner. If the account ID that
189
189
  # you provide does not match the actual owner of the bucket, the request
190
190
  # fails with the HTTP status code `403 Forbidden` (access denied).
191
+ #
192
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
193
+ # supported for directory bucket lifecycle configurations.
194
+ #
195
+ # </note>
191
196
  # @return [EmptyStructure]
192
197
  def delete(options = {})
193
198
  options = options.merge(bucket: @bucket_name)
@@ -40,6 +40,31 @@ module Aws::S3
40
40
  data[:rules]
41
41
  end
42
42
 
43
+ # Indicates which default minimum object size behavior is applied to the
44
+ # lifecycle configuration.
45
+ #
46
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
47
+ # supported for directory bucket lifecycle configurations.
48
+ #
49
+ # </note>
50
+ #
51
+ # * `all_storage_classes_128K` - Objects smaller than 128 KB will not
52
+ # transition to any storage class by default.
53
+ #
54
+ # * `varies_by_storage_class` - Objects smaller than 128 KB will
55
+ # transition to Glacier Flexible Retrieval or Glacier Deep Archive
56
+ # storage classes. By default, all other storage classes will prevent
57
+ # transitions smaller than 128 KB.
58
+ #
59
+ # To customize the minimum object size for any transition you can add a
60
+ # filter that specifies a custom `ObjectSizeGreaterThan` or
61
+ # `ObjectSizeLessThan` in the body of your transition rule. Custom
62
+ # filters always take precedence over the default transition behavior.
63
+ # @return [String]
64
+ def transition_default_minimum_object_size
65
+ data[:transition_default_minimum_object_size]
66
+ end
67
+
43
68
  # @!endgroup
44
69
 
45
70
  # @return [Client]
@@ -188,6 +213,11 @@ module Aws::S3
188
213
  # The account ID of the expected bucket owner. If the account ID that
189
214
  # you provide does not match the actual owner of the bucket, the request
190
215
  # fails with the HTTP status code `403 Forbidden` (access denied).
216
+ #
217
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
218
+ # supported for directory bucket lifecycle configurations.
219
+ #
220
+ # </note>
191
221
  # @return [EmptyStructure]
192
222
  def delete(options = {})
193
223
  options = options.merge(bucket: @bucket_name)
@@ -257,6 +287,7 @@ module Aws::S3
257
287
  # ],
258
288
  # },
259
289
  # expected_bucket_owner: "AccountId",
290
+ # transition_default_minimum_object_size: "varies_by_storage_class", # accepts varies_by_storage_class, all_storage_classes_128K
260
291
  # })
261
292
  # @param [Hash] options ({})
262
293
  # @option options [String] :checksum_algorithm
@@ -280,7 +311,33 @@ module Aws::S3
280
311
  # The account ID of the expected bucket owner. If the account ID that
281
312
  # you provide does not match the actual owner of the bucket, the request
282
313
  # fails with the HTTP status code `403 Forbidden` (access denied).
283
- # @return [EmptyStructure]
314
+ #
315
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
316
+ # supported for directory bucket lifecycle configurations.
317
+ #
318
+ # </note>
319
+ # @option options [String] :transition_default_minimum_object_size
320
+ # Indicates which default minimum object size behavior is applied to the
321
+ # lifecycle configuration.
322
+ #
323
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
324
+ # supported for directory bucket lifecycle configurations.
325
+ #
326
+ # </note>
327
+ #
328
+ # * `all_storage_classes_128K` - Objects smaller than 128 KB will not
329
+ # transition to any storage class by default.
330
+ #
331
+ # * `varies_by_storage_class` - Objects smaller than 128 KB will
332
+ # transition to Glacier Flexible Retrieval or Glacier Deep Archive
333
+ # storage classes. By default, all other storage classes will prevent
334
+ # transitions smaller than 128 KB.
335
+ #
336
+ # To customize the minimum object size for any transition you can add a
337
+ # filter that specifies a custom `ObjectSizeGreaterThan` or
338
+ # `ObjectSizeLessThan` in the body of your transition rule. Custom
339
+ # filters always take precedence over the default transition behavior.
340
+ # @return [Types::PutBucketLifecycleConfigurationOutput]
284
341
  def put(options = {})
285
342
  options = options.merge(bucket: @bucket_name)
286
343
  resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
@@ -234,13 +234,13 @@ module Aws::S3
234
234
  # For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
235
235
  # the supported algorithm from the following list:
236
236
  #
237
- # * CRC32
237
+ # * `CRC32`
238
238
  #
239
- # * CRC32C
239
+ # * `CRC32C`
240
240
  #
241
- # * SHA1
241
+ # * `SHA1`
242
242
  #
243
- # * SHA256
243
+ # * `SHA256`
244
244
  #
245
245
  # For more information, see [Checking object integrity][1] in the
246
246
  # *Amazon S3 User Guide*.