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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/access_grants_credentials_provider.rb +12 -3
- data/lib/aws-sdk-s3/bucket.rb +60 -16
- data/lib/aws-sdk-s3/client.rb +301 -170
- data/lib/aws-sdk-s3/client_api.rb +14 -1
- data/lib/aws-sdk-s3/plugins/access_grants.rb +68 -4
- data/lib/aws-sdk-s3/resource.rb +10 -8
- data/lib/aws-sdk-s3/types.rb +188 -41
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/client.rbs +5 -1
- data/sig/resource.rbs +2 -1
- data/sig/types.rbs +7 -0
- 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: 3cd7d48f474f9368e9b022dcb25d9497dbc102849379782b40aa2fdb8245d6b3
|
4
|
+
data.tar.gz: 27dfa74ee67a4769a1d2929eeaeb4e375ad761bb4ca8f5f65ba29b87f153cba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
@
|
199
|
-
|
200
|
-
|
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
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -1018,12 +1018,26 @@ module Aws::S3
|
|
1018
1018
|
#
|
1019
1019
|
# </note>
|
1020
1020
|
# @option options [String] :encoding_type
|
1021
|
-
#
|
1022
|
-
#
|
1023
|
-
# Unicode character
|
1024
|
-
# characters, such as characters with an ASCII value from
|
1025
|
-
# characters that
|
1026
|
-
# parameter to request that Amazon S3 encode the keys in the
|
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
|
-
#
|
1160
|
-
#
|
1161
|
-
# Unicode character
|
1162
|
-
# characters, such as characters with an ASCII value from
|
1163
|
-
# characters that
|
1164
|
-
# parameter to request that Amazon S3 encode the keys in the
|
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
|
1256
|
-
#
|
1257
|
-
#
|
1258
|
-
#
|
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
|
#
|