aws-sdk-s3 1.172.0 → 1.176.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +36 -2
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +5 -0
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +20 -0
- data/lib/aws-sdk-s3/client.rb +1525 -892
- data/lib/aws-sdk-s3/client_api.rb +126 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +36 -0
- data/lib/aws-sdk-s3/endpoints.rb +42 -0
- data/lib/aws-sdk-s3/errors.rb +44 -0
- data/lib/aws-sdk-s3/multipart_upload.rb +33 -0
- data/lib/aws-sdk-s3/object.rb +77 -1
- data/lib/aws-sdk-s3/object_summary.rb +74 -0
- data/lib/aws-sdk-s3/object_version.rb +43 -0
- data/lib/aws-sdk-s3/presigner.rb +1 -0
- data/lib/aws-sdk-s3/resource.rb +9 -8
- data/lib/aws-sdk-s3/types.rb +823 -120
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +8 -3
- data/sig/client.rbs +50 -6
- data/sig/errors.rbs +8 -0
- data/sig/multipart_upload.rbs +3 -1
- data/sig/object.rbs +6 -1
- data/sig/object_summary.rbs +6 -1
- data/sig/object_version.rbs +4 -1
- data/sig/resource.rbs +2 -2
- data/sig/types.rbs +89 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6549eea72ce7643897ce882d77e1c563d04d8bc64c31195eea0692eba98a9771
|
4
|
+
data.tar.gz: 7662c9e60f2f3cc42f03c2dfd300426a0c57f199ca2e8d0a88239c95a6b7fc99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bb6e5e889aa5031deaf66f795f0ad211295064bb850464944ad88c33d4f4660db8abf42fdd10816dee17fc2d99f3c221334ff7dcf87a3efb34073f4090a8ac7
|
7
|
+
data.tar.gz: 6f76df44f96c1ab0fd5c5a4ee372ed5c659ed326362cfdce7cd7ead1919df5dffcf6ff947c4595e94064a3fdc20a51247da6c03b98203d0e95ecf74cd1ec9aae
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.176.1 (2024-12-12)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Do not normalize object keys when calling `presigned_url` or `presigned_request`.
|
8
|
+
|
9
|
+
1.176.0 (2024-12-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Amazon S3 Metadata stores object metadata in read-only, fully managed Apache Iceberg metadata tables that you can query. You can create metadata table configurations for S3 general purpose buckets.
|
13
|
+
|
14
|
+
1.175.0 (2024-12-02)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Amazon S3 introduces support for AWS Dedicated Local Zones
|
18
|
+
|
19
|
+
1.174.0 (2024-11-25)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Amazon Simple Storage Service / Features: Add support for ETag based conditional writes in PutObject and CompleteMultiPartUpload APIs to prevent unintended object modifications.
|
23
|
+
|
24
|
+
1.173.0 (2024-11-21)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* 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.
|
28
|
+
|
4
29
|
1.172.0 (2024-11-18)
|
5
30
|
------------------
|
6
31
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.176.1
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -239,11 +239,11 @@ module Aws::S3
|
|
239
239
|
# create_bucket_configuration: {
|
240
240
|
# location_constraint: "af-south-1", # accepts af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, me-south-1, sa-east-1, us-east-2, us-gov-east-1, us-gov-west-1, us-west-1, us-west-2
|
241
241
|
# location: {
|
242
|
-
# type: "AvailabilityZone", # accepts AvailabilityZone
|
242
|
+
# type: "AvailabilityZone", # accepts AvailabilityZone, LocalZone
|
243
243
|
# name: "LocationNameAsString",
|
244
244
|
# },
|
245
245
|
# bucket: {
|
246
|
-
# data_redundancy: "SingleAvailabilityZone", # accepts SingleAvailabilityZone
|
246
|
+
# data_redundancy: "SingleAvailabilityZone", # accepts SingleAvailabilityZone, SingleLocalZone
|
247
247
|
# type: "Directory", # accepts Directory
|
248
248
|
# },
|
249
249
|
# },
|
@@ -381,6 +381,9 @@ module Aws::S3
|
|
381
381
|
# {
|
382
382
|
# key: "ObjectKey", # required
|
383
383
|
# version_id: "ObjectVersionId",
|
384
|
+
# etag: "ETag",
|
385
|
+
# last_modified_time: Time.now,
|
386
|
+
# size: 1,
|
384
387
|
# },
|
385
388
|
# ],
|
386
389
|
# quiet: false,
|
@@ -505,12 +508,14 @@ module Aws::S3
|
|
505
508
|
# checksum_sha1: "ChecksumSHA1",
|
506
509
|
# checksum_sha256: "ChecksumSHA256",
|
507
510
|
# expires: Time.now,
|
511
|
+
# if_match: "IfMatch",
|
508
512
|
# if_none_match: "IfNoneMatch",
|
509
513
|
# grant_full_control: "GrantFullControl",
|
510
514
|
# grant_read: "GrantRead",
|
511
515
|
# grant_read_acp: "GrantReadACP",
|
512
516
|
# grant_write_acp: "GrantWriteACP",
|
513
517
|
# key: "ObjectKey", # required
|
518
|
+
# write_offset_bytes: 1,
|
514
519
|
# metadata: {
|
515
520
|
# "MetadataKey" => "MetadataValue",
|
516
521
|
# },
|
@@ -729,6 +734,25 @@ module Aws::S3
|
|
729
734
|
#
|
730
735
|
#
|
731
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
|
732
756
|
# @option options [String] :if_none_match
|
733
757
|
# Uploads the object only if the object key name does not already exist
|
734
758
|
# in the bucket specified. Otherwise, Amazon S3 returns a `412
|
@@ -782,6 +806,16 @@ module Aws::S3
|
|
782
806
|
# </note>
|
783
807
|
# @option options [required, String] :key
|
784
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>
|
785
819
|
# @option options [Hash<String,String>] :metadata
|
786
820
|
# A map of metadata to store with the object in S3.
|
787
821
|
# @option options [String] :server_side_encryption
|
@@ -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)
|
@@ -43,6 +43,11 @@ module Aws::S3
|
|
43
43
|
# Indicates which default minimum object size behavior is applied to the
|
44
44
|
# lifecycle configuration.
|
45
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
|
+
#
|
46
51
|
# * `all_storage_classes_128K` - Objects smaller than 128 KB will not
|
47
52
|
# transition to any storage class by default.
|
48
53
|
#
|
@@ -208,6 +213,11 @@ module Aws::S3
|
|
208
213
|
# The account ID of the expected bucket owner. If the account ID that
|
209
214
|
# you provide does not match the actual owner of the bucket, the request
|
210
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>
|
211
221
|
# @return [EmptyStructure]
|
212
222
|
def delete(options = {})
|
213
223
|
options = options.merge(bucket: @bucket_name)
|
@@ -301,10 +311,20 @@ module Aws::S3
|
|
301
311
|
# The account ID of the expected bucket owner. If the account ID that
|
302
312
|
# you provide does not match the actual owner of the bucket, the request
|
303
313
|
# fails with the HTTP status code `403 Forbidden` (access denied).
|
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>
|
304
319
|
# @option options [String] :transition_default_minimum_object_size
|
305
320
|
# Indicates which default minimum object size behavior is applied to the
|
306
321
|
# lifecycle configuration.
|
307
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
|
+
#
|
308
328
|
# * `all_storage_classes_128K` - Objects smaller than 128 KB will not
|
309
329
|
# transition to any storage class by default.
|
310
330
|
#
|