aws-sdk-s3 1.150.0 → 1.169.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +110 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/access_grants_credentials_provider.rb +12 -3
  5. data/lib/aws-sdk-s3/bucket.rb +252 -88
  6. data/lib/aws-sdk-s3/bucket_acl.rb +3 -3
  7. data/lib/aws-sdk-s3/bucket_cors.rb +4 -4
  8. data/lib/aws-sdk-s3/bucket_lifecycle.rb +4 -4
  9. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +42 -5
  10. data/lib/aws-sdk-s3/bucket_logging.rb +3 -3
  11. data/lib/aws-sdk-s3/bucket_notification.rb +3 -3
  12. data/lib/aws-sdk-s3/bucket_policy.rb +8 -8
  13. data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -3
  14. data/lib/aws-sdk-s3/bucket_tagging.rb +4 -4
  15. data/lib/aws-sdk-s3/bucket_versioning.rb +5 -5
  16. data/lib/aws-sdk-s3/bucket_website.rb +4 -4
  17. data/lib/aws-sdk-s3/client.rb +1685 -668
  18. data/lib/aws-sdk-s3/client_api.rb +49 -4
  19. data/lib/aws-sdk-s3/customizations/bucket.rb +1 -1
  20. data/lib/aws-sdk-s3/customizations/object.rb +11 -5
  21. data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
  22. data/lib/aws-sdk-s3/customizations/object_version.rb +13 -0
  23. data/lib/aws-sdk-s3/customizations.rb +24 -38
  24. data/lib/aws-sdk-s3/encryption/client.rb +2 -2
  25. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +2 -2
  26. data/lib/aws-sdk-s3/encryptionV2/client.rb +2 -2
  27. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +2 -2
  28. data/lib/aws-sdk-s3/endpoint_parameters.rb +21 -18
  29. data/lib/aws-sdk-s3/endpoint_provider.rb +1 -0
  30. data/lib/aws-sdk-s3/endpoints.rb +416 -1614
  31. data/lib/aws-sdk-s3/errors.rb +3 -0
  32. data/lib/aws-sdk-s3/file_downloader.rb +1 -1
  33. data/lib/aws-sdk-s3/file_uploader.rb +1 -1
  34. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +1 -1
  35. data/lib/aws-sdk-s3/multipart_upload.rb +31 -8
  36. data/lib/aws-sdk-s3/multipart_upload_part.rb +11 -11
  37. data/lib/aws-sdk-s3/object.rb +441 -158
  38. data/lib/aws-sdk-s3/object_acl.rb +3 -3
  39. data/lib/aws-sdk-s3/object_copier.rb +1 -1
  40. data/lib/aws-sdk-s3/object_summary.rb +403 -134
  41. data/lib/aws-sdk-s3/object_version.rb +53 -13
  42. data/lib/aws-sdk-s3/plugins/access_grants.rb +75 -5
  43. data/lib/aws-sdk-s3/plugins/endpoints.rb +24 -212
  44. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +7 -1
  45. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +53 -16
  46. data/lib/aws-sdk-s3/resource.rb +37 -11
  47. data/lib/aws-sdk-s3/types.rb +1106 -401
  48. data/lib/aws-sdk-s3.rb +35 -31
  49. data/sig/bucket.rbs +4 -0
  50. data/sig/bucket_lifecycle_configuration.rbs +7 -3
  51. data/sig/client.rbs +49 -5
  52. data/sig/multipart_upload.rbs +1 -0
  53. data/sig/object.rbs +7 -0
  54. data/sig/object_summary.rbs +1 -0
  55. data/sig/object_version.rbs +6 -0
  56. data/sig/resource.rbs +7 -1
  57. data/sig/types.rbs +36 -2
  58. data/sig/waiters.rbs +12 -0
  59. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41399520da04f62c1599a7b75b76f20c7870f86d864e85e5d9c2d03a54c249e6
4
- data.tar.gz: 3ca62b88c0db37447b083618ca31ba41c9311cf079b89a1713c100fed8236da2
3
+ metadata.gz: 9d015103eeb47bf30a6af433aebe62191650329d2bff8259d20a3dbe6c6ad4e6
4
+ data.tar.gz: 8dc0a363c75d83d7347b4c367b3d86607fb290d435e29a9f0f3236e220002f5f
5
5
  SHA512:
6
- metadata.gz: 0cb666a3f9dbddee3fa0026806badc816d666a8a76bd870439b7acce710c463aa9deef8b592665df6a7691c060ea5d80ca65c8c784342e6085f1da398a7491d8
7
- data.tar.gz: 75831cc1a6cafa8c7fc9f48fe1bb8c59a6ddaf8d7f469498840e1040e9e20416960c3f76c7e44002408736550d3af6888663e120f777920d2062e30b4d1cff2e
6
+ metadata.gz: 67351d730ed219a3fab72e10dd6877b7b5851b5e76ce1ceb2faab336f9cf912852502b1ee129bafbbc4fe529ff8c2b43d21b47289388236f4f18f648600c96f4
7
+ data.tar.gz: b10db38f2dc2e72f26cc76bfa58893ada9b3316692ece2fe0b00869c60175620a306bee5a2bf289a700cdee8035b253473459f25bb638d9dbbd35ecb6cb25a1c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,116 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.169.0 (2024-10-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.168.0 (2024-10-16)
10
+ ------------------
11
+
12
+ * 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.
13
+
14
+ 1.167.0 (2024-10-02)
15
+ ------------------
16
+
17
+ * Feature - This release introduces a header representing the minimum object size limit for Lifecycle transitions.
18
+
19
+ 1.166.0 (2024-09-24)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.165.0 (2024-09-23)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.164.0 (2024-09-20)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.163.0 (2024-09-18)
35
+ ------------------
36
+
37
+ * Feature - Added SSE-KMS support for directory buckets.
38
+
39
+ 1.162.0 (2024-09-11)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.161.0 (2024-09-10)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
49
+ 1.160.0 (2024-09-03)
50
+ ------------------
51
+
52
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
53
+
54
+ 1.159.0 (2024-08-20)
55
+ ------------------
56
+
57
+ * Feature - Amazon Simple Storage Service / Features : Add support for conditional writes for PutObject and CompleteMultipartUpload APIs.
58
+
59
+ 1.158.0 (2024-08-15)
60
+ ------------------
61
+
62
+ * Feature - Amazon Simple Storage Service / Features : Adds support for pagination in the S3 ListBuckets API.
63
+
64
+ 1.157.0 (2024-08-01)
65
+ ------------------
66
+
67
+ * Feature - Support `head_bucket`, `get_object_attributes`, `delete_objects`, and `copy_object` for Access Grants.
68
+
69
+ 1.156.0 (2024-07-02)
70
+ ------------------
71
+
72
+ * Feature - Added response overrides to Head Object requests.
73
+
74
+ 1.155.0 (2024-06-28)
75
+ ------------------
76
+
77
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
78
+
79
+ 1.154.0 (2024-06-25)
80
+ ------------------
81
+
82
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
83
+
84
+ 1.153.0 (2024-06-24)
85
+ ------------------
86
+
87
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
88
+
89
+ 1.152.3 (2024-06-13)
90
+ ------------------
91
+
92
+ * Issue - Handle 200 errors for all S3 operations that do not have streaming responses.
93
+
94
+ 1.152.2 (2024-06-12)
95
+ ------------------
96
+
97
+ * Issue - Revert Handling of 200 errors for all S3 operations.
98
+
99
+ 1.152.1 (2024-06-10)
100
+ ------------------
101
+
102
+ * Issue - Handle 200 errors for all S3 operations that do not have streaming responses.
103
+
104
+ 1.152.0 (2024-06-05)
105
+ ------------------
106
+
107
+ * Feature - Added new params copySource and key to copyObject API for supporting S3 Access Grants plugin. These changes will not change any of the existing S3 API functionality.
108
+
109
+ 1.151.0 (2024-05-14)
110
+ ------------------
111
+
112
+ * Feature - Updated a few x-id in the http uri traits
113
+
4
114
  1.150.0 (2024-05-13)
5
115
  ------------------
6
116
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.150.0
1
+ 1.169.0
@@ -47,6 +47,8 @@ module Aws
47
47
  @caching = options.delete(:caching) != false
48
48
  @s3_control_clients = {}
49
49
  @bucket_region_cache = Aws::S3.bucket_region_cache
50
+ @head_bucket_mutex = Mutex.new
51
+ @head_bucket_call = false
50
52
  return unless @caching
51
53
 
52
54
  @credentials_cache = Aws::S3.access_grants_credentials_cache
@@ -195,9 +197,16 @@ module Aws
195
197
  end
196
198
 
197
199
  def new_bucket_region_for(bucket)
198
- @s3_client.head_bucket(bucket: bucket).bucket_region
199
- rescue Aws::S3::Errors::Http301Error => e
200
- e.data.region
200
+ @head_bucket_mutex.synchronize do
201
+ begin
202
+ @head_bucket_call = true
203
+ @s3_client.head_bucket(bucket: bucket).bucket_region
204
+ rescue Aws::S3::Errors::Http301Error => e
205
+ e.data.region
206
+ ensure
207
+ @head_bucket_call = false
208
+ end
209
+ end
201
210
  end
202
211
 
203
212
  # returns the account id for the configured credentials