aws-sdk-s3 1.229.0 → 1.243.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +111 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +24 -0
- data/lib/aws-sdk-s3/bucket_notification.rb +3 -3
- data/lib/aws-sdk-s3/client.rb +144 -29
- data/lib/aws-sdk-s3/client_api.rb +26 -0
- data/lib/aws-sdk-s3/customizations/object.rb +40 -28
- data/lib/aws-sdk-s3/default_executor.rb +65 -19
- data/lib/aws-sdk-s3/directory_downloader.rb +9 -3
- data/lib/aws-sdk-s3/directory_uploader.rb +4 -0
- data/lib/aws-sdk-s3/express_credentials.rb +4 -1
- data/lib/aws-sdk-s3/express_credentials_provider.rb +23 -12
- data/lib/aws-sdk-s3/file_downloader.rb +21 -14
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +22 -15
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +32 -17
- data/lib/aws-sdk-s3/multipart_upload_error.rb +1 -1
- data/lib/aws-sdk-s3/object.rb +105 -0
- data/lib/aws-sdk-s3/object_multipart_copier.rb +1 -0
- data/lib/aws-sdk-s3/object_summary.rb +72 -0
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +10 -2
- data/lib/aws-sdk-s3/presigned_post.rb +50 -1
- data/lib/aws-sdk-s3/presigner.rb +1 -1
- data/lib/aws-sdk-s3/transfer_manager.rb +57 -37
- data/lib/aws-sdk-s3/types.rb +211 -15
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +3 -0
- data/sig/bucket_notification.rbs +3 -3
- data/sig/client.rbs +37 -12
- data/sig/customizations/errors.rbs +17 -0
- data/sig/errors.rbs +20 -20
- data/sig/multipart_upload_error.rbs +9 -0
- data/sig/object.rbs +18 -0
- data/sig/object_summary.rbs +9 -0
- data/sig/resource.rbs +1 -0
- data/sig/transfer_manager.rbs +31 -0
- data/sig/types.rbs +34 -10
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85624d532afb2782874ceefaa7c6951280cb024fa4d32203c0850a7c2c47eb6a
|
|
4
|
+
data.tar.gz: 7944b5c1d199bed5122612902c4b28e6fe8187164aa7273b1f5498e10a83126b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95c39a0bb1c3cd2f59c499bfa82caefc3972906172041a849408114115c17136f2b66367464056b2413ac764d3630caf3854fe39bddc208109ae203f0750e0e8
|
|
7
|
+
data.tar.gz: c864fd4100ca44367f6c522f2e6ebbea2a6d2bab1bc80f7380ce63512fe8a5080602abe995a90e2591b09b9a5ca7f131ba90051798d53acb0b4a1f6d9aadcdfb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,117 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.243.0 (2026-11-16)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
8
|
+
|
|
9
|
+
1.242.0 (2026-11-11)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
14
|
+
1.241.0 (2026-11-10)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
18
|
+
|
|
19
|
+
1.240.0 (2026-11-09)
|
|
20
|
+
------------------
|
|
21
|
+
|
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
23
|
+
|
|
24
|
+
1.239.0 (2026-11-06)
|
|
25
|
+
------------------
|
|
26
|
+
|
|
27
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
28
|
+
|
|
29
|
+
1.238.0 (2026-11-04)
|
|
30
|
+
------------------
|
|
31
|
+
|
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
33
|
+
|
|
34
|
+
1.237.0 (2026-10-29)
|
|
35
|
+
------------------
|
|
36
|
+
|
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
38
|
+
|
|
39
|
+
* Feature - Add `tagging` to `Aws::S3::PresignedPost`, accepting the same tagging structure as `put_object_tagging` and serializing it to XML in the signed POST form.
|
|
40
|
+
|
|
41
|
+
* Feature - Reduce object allocation overhead when generating S3 presigned URLs.
|
|
42
|
+
|
|
43
|
+
1.236.0 (2026-10-28)
|
|
44
|
+
------------------
|
|
45
|
+
|
|
46
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
47
|
+
|
|
48
|
+
* Issue - Create and cache S3 Express sessions using the credentials of the requesting client.
|
|
49
|
+
|
|
50
|
+
1.235.0 (2026-10-20)
|
|
51
|
+
------------------
|
|
52
|
+
|
|
53
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
54
|
+
|
|
55
|
+
* Feature - Add RBS signatures for `TransferManager`, `MultipartUploadError`, `Errors::NotFound` and `Errors::SlowDown`.
|
|
56
|
+
|
|
57
|
+
* Issue - Improve object key validation in `TransferManager#download_directory` on Windows.
|
|
58
|
+
|
|
59
|
+
1.234.0 (2026-10-19)
|
|
60
|
+
------------------
|
|
61
|
+
|
|
62
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
63
|
+
|
|
64
|
+
1.233.2 (2026-10-06)
|
|
65
|
+
------------------
|
|
66
|
+
|
|
67
|
+
* Issue - Fix `download_file` on `TransferManager` and `Aws::S3::Object` leaving a corrupt file at the destination when a part raises a non-`StandardError`, and leaving a temp file behind when a caller-provided executor rejects a part.
|
|
68
|
+
|
|
69
|
+
* Issue - Prevent `upload_directory` and `download_directory` on `TransferManager` from hanging when listing files or objects raises a non-`StandardError`, such as from a `:filter_callback`.
|
|
70
|
+
|
|
71
|
+
1.233.1 (2026-10-01)
|
|
72
|
+
------------------
|
|
73
|
+
|
|
74
|
+
* Issue - Fix unbounded memory growth in `upload_stream` on `TransferManager` and `Aws::S3::Object` when the data source outpaces the upload (#3407).
|
|
75
|
+
|
|
76
|
+
* Issue - Prevent `upload_file`, `upload_stream` and `download_file` on `TransferManager` and `Aws::S3::Object` from hanging when a worker thread is terminated by a non-`StandardError`.
|
|
77
|
+
|
|
78
|
+
1.233.0 (2026-09-30)
|
|
79
|
+
------------------
|
|
80
|
+
|
|
81
|
+
* Feature - Amazon S3 adds a new optional S3 Inventory field, IntelligentTieringReferenceDate, reporting the reference date S3 Intelligent-Tiering uses to evaluate an object's tier-transition eligibility. The value is populated for objects in the Intelligent-Tiering storage class and left blank for others.
|
|
82
|
+
|
|
83
|
+
1.232.3 (2026-09-28)
|
|
84
|
+
------------------
|
|
85
|
+
|
|
86
|
+
* Issue - Remove `:thread_count` from transfer options even when a custom `:executor` is configured on `TransferManager`, fixing an `ArgumentError` raised on single-part `upload_file` calls.
|
|
87
|
+
|
|
88
|
+
* Issue - Fix `:thread_count` being ignored by the deprecated `Object#download_file`, which always used the default thread count.
|
|
89
|
+
|
|
90
|
+
1.232.2 (2026-09-25)
|
|
91
|
+
------------------
|
|
92
|
+
|
|
93
|
+
* Issue - Ensure the internally-created executor is shutdown on error in `TransferManager` and `Aws::S3::Object` resource methods, preventing leaked worker threads on multipart transfer failures (#3419).
|
|
94
|
+
|
|
95
|
+
1.232.1 (2026-09-16)
|
|
96
|
+
------------------
|
|
97
|
+
|
|
98
|
+
* Issue - Return the copy response from multipart `copy_to`/`copy_from` instead of `nil` on success.
|
|
99
|
+
|
|
100
|
+
1.232.0 (2026-09-11)
|
|
101
|
+
------------------
|
|
102
|
+
|
|
103
|
+
* Feature - Updated S3 Object Lock Default Retention documentation.
|
|
104
|
+
|
|
105
|
+
1.231.0 (2026-09-09)
|
|
106
|
+
------------------
|
|
107
|
+
|
|
108
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
109
|
+
|
|
110
|
+
1.230.0 (2026-09-08)
|
|
111
|
+
------------------
|
|
112
|
+
|
|
113
|
+
* Feature - Adds support for Amazon S3 Object Lock variable retention. Existing S3 APIs that support S3 Object Lock parameters now support two new parameters EventHold and EventHoldDuration at the object level, and DefaultEventHoldDuration at the bucket level.
|
|
114
|
+
|
|
4
115
|
1.229.0 (2026-08-06)
|
|
5
116
|
------------------
|
|
6
117
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.243.0
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
|
@@ -601,6 +601,9 @@ module Aws::S3
|
|
|
601
601
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
|
602
602
|
# object_lock_retain_until_date: Time.now,
|
|
603
603
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
|
604
|
+
# object_lock_event_hold: "ON", # accepts ON, OFF
|
|
605
|
+
# object_lock_event_hold_duration_days: 1,
|
|
606
|
+
# object_lock_event_hold_duration_years: 1,
|
|
604
607
|
# expected_bucket_owner: "AccountId",
|
|
605
608
|
# })
|
|
606
609
|
# @param [Hash] options ({})
|
|
@@ -1228,6 +1231,27 @@ module Aws::S3
|
|
|
1228
1231
|
#
|
|
1229
1232
|
#
|
|
1230
1233
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
|
|
1234
|
+
# @option options [String] :object_lock_event_hold
|
|
1235
|
+
# Specifies the event hold status to apply to this object. Set to `ON`
|
|
1236
|
+
# to enable or `OFF` to disable.
|
|
1237
|
+
#
|
|
1238
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
1239
|
+
#
|
|
1240
|
+
# </note>
|
|
1241
|
+
# @option options [Integer] :object_lock_event_hold_duration_days
|
|
1242
|
+
# Specifies the event hold duration in days to apply to this object. You
|
|
1243
|
+
# cannot specify a duration in both days and years.
|
|
1244
|
+
#
|
|
1245
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
1246
|
+
#
|
|
1247
|
+
# </note>
|
|
1248
|
+
# @option options [Integer] :object_lock_event_hold_duration_years
|
|
1249
|
+
# Specifies the event hold duration in years to apply to this object.
|
|
1250
|
+
# You cannot specify a duration in both days and years.
|
|
1251
|
+
#
|
|
1252
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
1253
|
+
#
|
|
1254
|
+
# </note>
|
|
1231
1255
|
# @option options [String] :expected_bucket_owner
|
|
1232
1256
|
# The account ID of the expected bucket owner. If the account ID that
|
|
1233
1257
|
# you provide does not match the actual owner of the bucket, the request
|
|
@@ -207,7 +207,7 @@ module Aws::S3
|
|
|
207
207
|
# {
|
|
208
208
|
# id: "NotificationId",
|
|
209
209
|
# topic_arn: "TopicArn", # required
|
|
210
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete, s3:ObjectAnnotation:*, s3:ObjectAnnotation:Put, s3:ObjectAnnotation:Delete
|
|
210
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete, s3:ObjectAnnotation:*, s3:ObjectAnnotation:Put, s3:ObjectAnnotation:Delete, s3:ObjectRetention:Put
|
|
211
211
|
# filter: {
|
|
212
212
|
# key: {
|
|
213
213
|
# filter_rules: [
|
|
@@ -224,7 +224,7 @@ module Aws::S3
|
|
|
224
224
|
# {
|
|
225
225
|
# id: "NotificationId",
|
|
226
226
|
# queue_arn: "QueueArn", # required
|
|
227
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete, s3:ObjectAnnotation:*, s3:ObjectAnnotation:Put, s3:ObjectAnnotation:Delete
|
|
227
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete, s3:ObjectAnnotation:*, s3:ObjectAnnotation:Put, s3:ObjectAnnotation:Delete, s3:ObjectRetention:Put
|
|
228
228
|
# filter: {
|
|
229
229
|
# key: {
|
|
230
230
|
# filter_rules: [
|
|
@@ -241,7 +241,7 @@ module Aws::S3
|
|
|
241
241
|
# {
|
|
242
242
|
# id: "NotificationId",
|
|
243
243
|
# lambda_function_arn: "LambdaFunctionArn", # required
|
|
244
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete, s3:ObjectAnnotation:*, s3:ObjectAnnotation:Put, s3:ObjectAnnotation:Delete
|
|
244
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete, s3:ObjectAnnotation:*, s3:ObjectAnnotation:Put, s3:ObjectAnnotation:Delete, s3:ObjectRetention:Put
|
|
245
245
|
# filter: {
|
|
246
246
|
# key: {
|
|
247
247
|
# filter_rules: [
|