aws-sdk-s3 1.182.0 → 1.198.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +106 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +46 -6
  5. data/lib/aws-sdk-s3/client.rb +1693 -591
  6. data/lib/aws-sdk-s3/client_api.rb +396 -162
  7. data/lib/aws-sdk-s3/customizations/object.rb +57 -76
  8. data/lib/aws-sdk-s3/customizations.rb +2 -1
  9. data/lib/aws-sdk-s3/endpoint_provider.rb +234 -129
  10. data/lib/aws-sdk-s3/endpoints.rb +84 -0
  11. data/lib/aws-sdk-s3/errors.rb +11 -0
  12. data/lib/aws-sdk-s3/file_downloader.rb +65 -82
  13. data/lib/aws-sdk-s3/file_uploader.rb +3 -5
  14. data/lib/aws-sdk-s3/legacy_signer.rb +2 -1
  15. data/lib/aws-sdk-s3/multipart_download_error.rb +8 -0
  16. data/lib/aws-sdk-s3/multipart_file_uploader.rb +34 -65
  17. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +80 -88
  18. data/lib/aws-sdk-s3/multipart_upload.rb +4 -2
  19. data/lib/aws-sdk-s3/multipart_upload_error.rb +3 -4
  20. data/lib/aws-sdk-s3/object.rb +85 -26
  21. data/lib/aws-sdk-s3/object_acl.rb +7 -1
  22. data/lib/aws-sdk-s3/object_multipart_copier.rb +2 -1
  23. data/lib/aws-sdk-s3/object_summary.rb +54 -24
  24. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +5 -7
  25. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -1
  26. data/lib/aws-sdk-s3/resource.rb +6 -0
  27. data/lib/aws-sdk-s3/transfer_manager.rb +246 -0
  28. data/lib/aws-sdk-s3/types.rb +1627 -295
  29. data/lib/aws-sdk-s3.rb +1 -1
  30. data/sig/bucket.rbs +12 -3
  31. data/sig/client.rbs +143 -31
  32. data/sig/errors.rbs +2 -0
  33. data/sig/multipart_upload.rbs +1 -1
  34. data/sig/object.rbs +13 -10
  35. data/sig/object_summary.rbs +9 -9
  36. data/sig/resource.rbs +8 -1
  37. data/sig/types.rbs +183 -29
  38. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3266d24c11f6499b7372ca6e5ebcb22f444c292ab9c9b35e22d05b80f56c0e43
4
- data.tar.gz: 06ddf6610aa82ac9953076588e609cffe852a34c9325950e90a36b1e19a72a1c
3
+ metadata.gz: 8f8abf2a326b6ebef3c9c9ceac08c2378c4e0d9bc3e187a4a3dd89bb81fb8154
4
+ data.tar.gz: 6186fe037f7fc5541c2a8e1006c9cb0a34630c69fb4a0bdebc40a63b872c9189
5
5
  SHA512:
6
- metadata.gz: 25a1a9cfd1f6e022587c487eed3bdd434adb3f0fba1d1279988d607e9fdf397764d33b7c7d3785355a70b800d417d057b2026c4f5590188c6da06f476af16450
7
- data.tar.gz: 4c49d1153ab59ad2f15818588be71547ed7ba37d31798966ea1130ca6ff5d234139954738b9210003f94c29bd07926fdebcaa7192db466b743924a7f1581801f
6
+ metadata.gz: 5aade0fd0688cee874c30704211d6f166ea8aaca4838adcdd2ad139fd0cb51b24f97e6715394c3aa484ac601628204d47c057b11d448f15c5d1bf1e90760d10f
7
+ data.tar.gz: 245ada14810d09437af36e44f02898129f259902281a10cf0b870c6654ad1525c1b74d4f34138cdcfdf1920c4602a4880cc78194d18a8c5912db67d386f1ab99
data/CHANGELOG.md CHANGED
@@ -1,6 +1,112 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.198.0 (2025-08-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Fix multipart `download_file` to support `Pathname`, `File` and `Tempfile` objects as download destinations.
10
+
11
+ 1.197.0 (2025-08-19)
12
+ ------------------
13
+
14
+ * Issue - When multipart stream uploader fails to complete multipart upload, it calls abort multipart upload.
15
+
16
+ * Issue - For `Aws::S3::Object` class, the following methods have been deprecated: `download_file`, `upload_file` and `upload_stream`. Use `Aws::S3::TransferManager` instead.
17
+
18
+ * Feature - Add `Aws::S3::TransferManager`, a S3 transfer utility that provides upload/download capabilities with automatic multipart handling, progress tracking, and handling of large files.
19
+
20
+ 1.196.1 (2025-08-05)
21
+ ------------------
22
+
23
+ * Issue - Add range validation to multipart download to ensure all parts are successfully processed.
24
+
25
+ * Issue - When multipart uploader fails to complete multipart upload, it calls abort multipart upload.
26
+
27
+ * Issue - Clean up partially downloaded file on multipart `download_file` failure while preserving existing file.
28
+
29
+ 1.196.0 (2025-08-04)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.195.0 (2025-07-31)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.194.0 (2025-07-21)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.193.0 (2025-07-15)
45
+ ------------------
46
+
47
+ * Feature - Amazon S3 Metadata live inventory tables provide a queryable inventory of all the objects in your general purpose bucket so that you can determine the latest state of your data. To help minimize your storage costs, use journal table record expiration to set a retention period for your records.
48
+
49
+ 1.192.0 (2025-07-02)
50
+ ------------------
51
+
52
+ * Feature - Added support for directory bucket creation with tags and bucket ARN retrieval in CreateBucket, ListDirectoryBuckets, and HeadBucket operations
53
+
54
+ 1.191.0 (2025-06-25)
55
+ ------------------
56
+
57
+ * Feature - Adds support for additional server-side encryption mode and storage class values for accessing Amazon FSx data from Amazon S3 using S3 Access Points
58
+
59
+ 1.190.0 (2025-06-18)
60
+ ------------------
61
+
62
+ * Feature - Added support for renaming objects within the same bucket using the new RenameObject API.
63
+
64
+ 1.189.1 (2025-06-10)
65
+ ------------------
66
+
67
+ * Issue - Only load required `cgi` modules for Ruby 3.5.
68
+
69
+ 1.189.0 (2025-06-02)
70
+ ------------------
71
+
72
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
73
+
74
+ 1.188.0 (2025-05-29)
75
+ ------------------
76
+
77
+ * Feature - Adding checksum support for S3 PutBucketOwnershipControls API.
78
+
79
+ 1.187.0 (2025-05-28)
80
+ ------------------
81
+
82
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
83
+
84
+ * Issue - Signal data in http response listeners prior to writing, so that data can be inspected or verified before potential mutation.
85
+
86
+ 1.186.1 (2025-05-15)
87
+ ------------------
88
+ * Issue - Abort multipart download if object is modified during download.
89
+
90
+ 1.186.0 (2025-05-12)
91
+ ------------------
92
+
93
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
94
+
95
+ 1.185.0 (2025-05-01)
96
+ ------------------
97
+
98
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
99
+
100
+ 1.184.0 (2025-04-28)
101
+ ------------------
102
+
103
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
104
+
105
+ 1.183.0 (2025-03-31)
106
+ ------------------
107
+
108
+ * Feature - Amazon S3 adds support for S3 Access Points for directory buckets in AWS Dedicated Local Zones
109
+
4
110
  1.182.0 (2025-02-18)
5
111
  ------------------
6
112
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.182.0
1
+ 1.198.0
@@ -49,6 +49,23 @@ module Aws::S3
49
49
  data[:bucket_region]
50
50
  end
51
51
 
52
+ # The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely
53
+ # identify Amazon Web Services resources across all of Amazon Web
54
+ # Services.
55
+ #
56
+ # <note markdown="1"> This parameter is only supported for S3 directory buckets. For more
57
+ # information, see [Using tags with directory buckets][1].
58
+ #
59
+ # </note>
60
+ #
61
+ #
62
+ #
63
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html
64
+ # @return [String]
65
+ def bucket_arn
66
+ data[:bucket_arn]
67
+ end
68
+
52
69
  # @!endgroup
53
70
 
54
71
  # @return [Client]
@@ -246,6 +263,12 @@ module Aws::S3
246
263
  # data_redundancy: "SingleAvailabilityZone", # accepts SingleAvailabilityZone, SingleLocalZone
247
264
  # type: "Directory", # accepts Directory
248
265
  # },
266
+ # tags: [
267
+ # {
268
+ # key: "ObjectKey", # required
269
+ # value: "Value", # required
270
+ # },
271
+ # ],
249
272
  # },
250
273
  # grant_full_control: "GrantFullControl",
251
274
  # grant_read: "GrantRead",
@@ -521,8 +544,8 @@ module Aws::S3
521
544
  # metadata: {
522
545
  # "MetadataKey" => "MetadataValue",
523
546
  # },
524
- # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
525
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE
547
+ # server_side_encryption: "AES256", # accepts AES256, aws:fsx, aws:kms, aws:kms:dsse
548
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
526
549
  # website_redirect_location: "WebsiteRedirectLocation",
527
550
  # sse_customer_algorithm: "SSECustomerAlgorithm",
528
551
  # sse_customer_key: "SSECustomerKey",
@@ -834,8 +857,7 @@ module Aws::S3
834
857
  # A map of metadata to store with the object in S3.
835
858
  # @option options [String] :server_side_encryption
836
859
  # The server-side encryption algorithm that was used when you store this
837
- # object in Amazon S3 (for example, `AES256`, `aws:kms`,
838
- # `aws:kms:dsse`).
860
+ # object in Amazon S3 or Amazon FSx.
839
861
  #
840
862
  # * <b>General purpose buckets </b> - You have four mutually exclusive
841
863
  # options to protect data using server-side encryption in Amazon S3,
@@ -889,6 +911,14 @@ module Aws::S3
889
911
  #
890
912
  # </note>
891
913
  #
914
+ # * <b>S3 access points for Amazon FSx </b> - When accessing data stored
915
+ # in Amazon FSx file systems using S3 access points, the only valid
916
+ # server side encryption option is `aws:fsx`. All Amazon FSx file
917
+ # systems have encryption configured by default and are encrypted at
918
+ # rest. Data is automatically encrypted before being written to the
919
+ # file system, and automatically decrypted as it is read. These
920
+ # processes are handled transparently by Amazon FSx.
921
+ #
892
922
  #
893
923
  #
894
924
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
@@ -903,8 +933,9 @@ module Aws::S3
903
933
  # a different Storage Class. For more information, see [Storage
904
934
  # Classes][1] in the *Amazon S3 User Guide*.
905
935
  #
906
- # <note markdown="1"> * For directory buckets, only the S3 Express One Zone storage class is
907
- # supported to store newly created objects.
936
+ # <note markdown="1"> * Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One
937
+ # Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3
938
+ # One Zone-Infrequent Access storage class) in Dedicated Local Zones.
908
939
  #
909
940
  # * Amazon S3 on Outposts only uses the OUTPOSTS Storage Class.
910
941
  #
@@ -1175,6 +1206,9 @@ module Aws::S3
1175
1206
  # beginning of the key. The keys that are grouped under `CommonPrefixes`
1176
1207
  # result element are not returned elsewhere in the response.
1177
1208
  #
1209
+ # `CommonPrefixes` is filtered out from results if it is not
1210
+ # lexicographically greater than the key-marker.
1211
+ #
1178
1212
  # <note markdown="1"> **Directory buckets** - For directory buckets, `/` is the only
1179
1213
  # supported delimiter.
1180
1214
  #
@@ -1331,6 +1365,9 @@ module Aws::S3
1331
1365
  # in `CommonPrefixes`. These groups are counted as one result against
1332
1366
  # the `max-keys` limitation. These keys are not returned elsewhere in
1333
1367
  # the response.
1368
+ #
1369
+ # `CommonPrefixes` is filtered out from results if it is not
1370
+ # lexicographically greater than the key-marker.
1334
1371
  # @option options [String] :encoding_type
1335
1372
  # Encoding type used by Amazon S3 to encode the [object keys][1] in the
1336
1373
  # response. Responses are encoded only in UTF-8. An object key can
@@ -1426,6 +1463,9 @@ module Aws::S3
1426
1463
  # @option options [String] :delimiter
1427
1464
  # A delimiter is a character that you use to group keys.
1428
1465
  #
1466
+ # `CommonPrefixes` is filtered out from results if it is not
1467
+ # lexicographically greater than the `StartAfter` value.
1468
+ #
1429
1469
  # <note markdown="1"> * **Directory buckets** - For directory buckets, `/` is the only
1430
1470
  # supported delimiter.
1431
1471
  #