aws-sdk-s3 1.166.0 → 1.168.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/bucket.rb +48 -27
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +38 -1
- data/lib/aws-sdk-s3/bucket_policy.rb +4 -4
- data/lib/aws-sdk-s3/client.rb +332 -299
- data/lib/aws-sdk-s3/client_api.rb +13 -1
- data/lib/aws-sdk-s3/multipart_upload.rb +4 -4
- data/lib/aws-sdk-s3/multipart_upload_part.rb +8 -8
- data/lib/aws-sdk-s3/object.rb +79 -56
- data/lib/aws-sdk-s3/object_summary.rb +77 -54
- data/lib/aws-sdk-s3/object_version.rb +4 -4
- data/lib/aws-sdk-s3/resource.rb +25 -1
- data/lib/aws-sdk-s3/types.rb +227 -141
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +3 -0
- data/sig/bucket_lifecycle_configuration.rbs +7 -3
- data/sig/client.rbs +13 -4
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +11 -0
- metadata +2 -2
data/lib/aws-sdk-s3/resource.rb
CHANGED
@@ -188,8 +188,32 @@ module Aws::S3
|
|
188
188
|
|
189
189
|
# @example Request syntax with placeholder values
|
190
190
|
#
|
191
|
-
# s3.buckets(
|
191
|
+
# buckets = s3.buckets({
|
192
|
+
# prefix: "Prefix",
|
193
|
+
# bucket_region: "BucketRegion",
|
194
|
+
# })
|
192
195
|
# @param [Hash] options ({})
|
196
|
+
# @option options [String] :prefix
|
197
|
+
# Limits the response to bucket names that begin with the specified
|
198
|
+
# bucket name prefix.
|
199
|
+
# @option options [String] :bucket_region
|
200
|
+
# Limits the response to buckets that are located in the specified
|
201
|
+
# Amazon Web Services Region. The Amazon Web Services Region must be
|
202
|
+
# expressed according to the Amazon Web Services Region code, such as
|
203
|
+
# `us-west-2` for the US West (Oregon) Region. For a list of the valid
|
204
|
+
# values for all of the Amazon Web Services Regions, see [Regions and
|
205
|
+
# Endpoints][1].
|
206
|
+
#
|
207
|
+
# <note markdown="1"> Requests made to a Regional endpoint that is different from the
|
208
|
+
# `bucket-region` parameter are not supported. For example, if you want
|
209
|
+
# to limit the response to your buckets in Region `us-west-2`, the
|
210
|
+
# request must be made to an endpoint in Region `us-west-2`.
|
211
|
+
#
|
212
|
+
# </note>
|
213
|
+
#
|
214
|
+
#
|
215
|
+
#
|
216
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
|
193
217
|
# @return [Bucket::Collection]
|
194
218
|
def buckets(options = {})
|
195
219
|
batches = Enumerator.new do |y|
|