aws-sdk-s3 1.169.0 → 1.177.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 +50 -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 +1575 -949
- 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/plugins/http_200_errors.rb +3 -3
- 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 +837 -211
- 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: 5527258c2438f5ef4cc29b1b11fc3b3a1515cf49c092297703f213e8ee3f062f
|
4
|
+
data.tar.gz: 1048ada03491ba3f3dbf9b13df205ecc31845f02536ddae56c1d1b050a06b191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ec9bf1db9d3d31412426263b5cde0acd230e459f0c5e301709cc937dea986c93ea4c9bc70fe1b2d58928466834cbaf0ebd928e7f579b7063148a83dfcdc3b31
|
7
|
+
data.tar.gz: 61e1af6426a99179cebbda1b97b435917e77af54cac150b0211af1146aa12f9bbcb41f7226aaf453a943c3ec9566265646bf0fa7f1aa8fd42382c0b8107070bd
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,56 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.177.0 (2025-01-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This change is only for updating the model regexp of CopySource which is not for validation but only for documentation and user guide change.
|
8
|
+
|
9
|
+
1.176.1 (2024-12-12)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Do not normalize object keys when calling `presigned_url` or `presigned_request`.
|
13
|
+
|
14
|
+
1.176.0 (2024-12-03)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* 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.
|
18
|
+
|
19
|
+
1.175.0 (2024-12-02)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Amazon S3 introduces support for AWS Dedicated Local Zones
|
23
|
+
|
24
|
+
1.174.0 (2024-11-25)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Amazon Simple Storage Service / Features: Add support for ETag based conditional writes in PutObject and CompleteMultiPartUpload APIs to prevent unintended object modifications.
|
28
|
+
|
29
|
+
1.173.0 (2024-11-21)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* 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.
|
33
|
+
|
34
|
+
1.172.0 (2024-11-18)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
38
|
+
|
39
|
+
1.171.0 (2024-11-14)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* 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.
|
43
|
+
|
44
|
+
1.170.1 (2024-11-11)
|
45
|
+
------------------
|
46
|
+
|
47
|
+
* Issue - Tighten regex used to check for S3 200 errors.
|
48
|
+
|
49
|
+
1.170.0 (2024-11-06)
|
50
|
+
------------------
|
51
|
+
|
52
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
53
|
+
|
4
54
|
1.169.0 (2024-10-18)
|
5
55
|
------------------
|
6
56
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.177.0
|
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
|
#
|