aws-sdk-s3 1.156.0 → 1.158.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 444d8fbcdc8d19b75228bdec52d8e1651f4d35459866847055b0d7e16d56371a
4
- data.tar.gz: 785d49ecff3a7441d4f3c196ed64d7cfbe79330627c585fc7108a4a7b11d6d2b
3
+ metadata.gz: 3cd7d48f474f9368e9b022dcb25d9497dbc102849379782b40aa2fdb8245d6b3
4
+ data.tar.gz: 27dfa74ee67a4769a1d2929eeaeb4e375ad761bb4ca8f5f65ba29b87f153cba4
5
5
  SHA512:
6
- metadata.gz: e60cb04b18ce10ec62f4b63f28cf8ed7adf206a22910c7251ed9d1c2040a3466cb2d09a0987d6fc8d2361b4c15dfa0b764877b5c7bdedd03146383b5a11a79ae
7
- data.tar.gz: 2e5654d95f462359aebeae89f2b855211b95acbe1820ad354a7a8c0e8261ff1188715e469637aea8c647124a7672f102a08e5fa78d73ed27253fcb886cfa13b8
6
+ metadata.gz: a5e931567268e634602ba495848437f976e770edb20ef109b99e498d379752b6c27b5a589a546a1f0cd5b340c530ba741a84144ae9a8311b6cbb6785b4935a67
7
+ data.tar.gz: '078d2653cc3749e681f378021c47e245c1de30ff7d46edc55bb226907208982b2ff988ff528d3c55d38a2df2159592578b5f9ab77faade5f0b6537676bfeac3b'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.158.0 (2024-08-15)
5
+ ------------------
6
+
7
+ * Feature - Amazon Simple Storage Service / Features : Adds support for pagination in the S3 ListBuckets API.
8
+
9
+ 1.157.0 (2024-08-01)
10
+ ------------------
11
+
12
+ * Feature - Support `head_bucket`, `get_object_attributes`, `delete_objects`, and `copy_object` for Access Grants.
13
+
4
14
  1.156.0 (2024-07-02)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.156.0
1
+ 1.158.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
@@ -1018,12 +1018,26 @@ module Aws::S3
1018
1018
  #
1019
1019
  # </note>
1020
1020
  # @option options [String] :encoding_type
1021
- # Requests Amazon S3 to encode the object keys in the response and
1022
- # specifies the encoding method to use. An object key can contain any
1023
- # Unicode character; however, the XML 1.0 parser cannot parse some
1024
- # characters, such as characters with an ASCII value from 0 to 10. For
1025
- # characters that are not supported in XML 1.0, you can add this
1026
- # parameter to request that Amazon S3 encode the keys in the response.
1021
+ # Encoding type used by Amazon S3 to encode the [object keys][1] in the
1022
+ # response. Responses are encoded only in UTF-8. An object key can
1023
+ # contain any Unicode character. However, the XML 1.0 parser can't
1024
+ # parse certain characters, such as characters with an ASCII value from
1025
+ # 0 to 10. For characters that aren't supported in XML 1.0, you can add
1026
+ # this parameter to request that Amazon S3 encode the keys in the
1027
+ # response. For more information about characters to avoid in object key
1028
+ # names, see [Object key naming guidelines][2].
1029
+ #
1030
+ # <note markdown="1"> When using the URL encoding type, non-ASCII characters that are used
1031
+ # in an object's key name will be percent-encoded according to UTF-8
1032
+ # code values. For example, the object `test_file(3).png` will appear as
1033
+ # `test_file%283%29.png`.
1034
+ #
1035
+ # </note>
1036
+ #
1037
+ #
1038
+ #
1039
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
1040
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines
1027
1041
  # @option options [String] :key_marker
1028
1042
  # Specifies the multipart upload after which listing should begin.
1029
1043
  #
@@ -1156,12 +1170,26 @@ module Aws::S3
1156
1170
  # the `max-keys` limitation. These keys are not returned elsewhere in
1157
1171
  # the response.
1158
1172
  # @option options [String] :encoding_type
1159
- # Requests Amazon S3 to encode the object keys in the response and
1160
- # specifies the encoding method to use. An object key can contain any
1161
- # Unicode character; however, the XML 1.0 parser cannot parse some
1162
- # characters, such as characters with an ASCII value from 0 to 10. For
1163
- # characters that are not supported in XML 1.0, you can add this
1164
- # parameter to request that Amazon S3 encode the keys in the response.
1173
+ # Encoding type used by Amazon S3 to encode the [object keys][1] in the
1174
+ # response. Responses are encoded only in UTF-8. An object key can
1175
+ # contain any Unicode character. However, the XML 1.0 parser can't
1176
+ # parse certain characters, such as characters with an ASCII value from
1177
+ # 0 to 10. For characters that aren't supported in XML 1.0, you can add
1178
+ # this parameter to request that Amazon S3 encode the keys in the
1179
+ # response. For more information about characters to avoid in object key
1180
+ # names, see [Object key naming guidelines][2].
1181
+ #
1182
+ # <note markdown="1"> When using the URL encoding type, non-ASCII characters that are used
1183
+ # in an object's key name will be percent-encoded according to UTF-8
1184
+ # code values. For example, the object `test_file(3).png` will appear as
1185
+ # `test_file%283%29.png`.
1186
+ #
1187
+ # </note>
1188
+ #
1189
+ #
1190
+ #
1191
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
1192
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines
1165
1193
  # @option options [String] :key_marker
1166
1194
  # Specifies the key to start with when listing objects in a bucket.
1167
1195
  # @option options [String] :prefix
@@ -1252,10 +1280,26 @@ module Aws::S3
1252
1280
  #
1253
1281
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html
1254
1282
  # @option options [String] :encoding_type
1255
- # Encoding type used by Amazon S3 to encode object keys in the response.
1256
- # If using `url`, non-ASCII characters used in an object's key name
1257
- # will be URL encoded. For example, the object `test_file(3).png` will
1258
- # appear as `test_file%283%29.png`.
1283
+ # Encoding type used by Amazon S3 to encode the [object keys][1] in the
1284
+ # response. Responses are encoded only in UTF-8. An object key can
1285
+ # contain any Unicode character. However, the XML 1.0 parser can't
1286
+ # parse certain characters, such as characters with an ASCII value from
1287
+ # 0 to 10. For characters that aren't supported in XML 1.0, you can add
1288
+ # this parameter to request that Amazon S3 encode the keys in the
1289
+ # response. For more information about characters to avoid in object key
1290
+ # names, see [Object key naming guidelines][2].
1291
+ #
1292
+ # <note markdown="1"> When using the URL encoding type, non-ASCII characters that are used
1293
+ # in an object's key name will be percent-encoded according to UTF-8
1294
+ # code values. For example, the object `test_file(3).png` will appear as
1295
+ # `test_file%283%29.png`.
1296
+ #
1297
+ # </note>
1298
+ #
1299
+ #
1300
+ #
1301
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
1302
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines
1259
1303
  # @option options [String] :prefix
1260
1304
  # Limits the response to keys that begin with the specified prefix.
1261
1305
  #