aws-sdk-s3 1.167.0 → 1.194.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 (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +158 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +145 -39
  5. data/lib/aws-sdk-s3/bucket_acl.rb +6 -5
  6. data/lib/aws-sdk-s3/bucket_cors.rb +6 -5
  7. data/lib/aws-sdk-s3/bucket_lifecycle.rb +7 -2
  8. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +22 -2
  9. data/lib/aws-sdk-s3/bucket_logging.rb +2 -2
  10. data/lib/aws-sdk-s3/bucket_policy.rb +6 -5
  11. data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -3
  12. data/lib/aws-sdk-s3/bucket_tagging.rb +3 -3
  13. data/lib/aws-sdk-s3/bucket_versioning.rb +9 -9
  14. data/lib/aws-sdk-s3/bucket_website.rb +3 -3
  15. data/lib/aws-sdk-s3/client.rb +3670 -1773
  16. data/lib/aws-sdk-s3/client_api.rb +558 -160
  17. data/lib/aws-sdk-s3/endpoint_parameters.rb +13 -18
  18. data/lib/aws-sdk-s3/endpoint_provider.rb +400 -276
  19. data/lib/aws-sdk-s3/endpoints.rb +529 -1403
  20. data/lib/aws-sdk-s3/errors.rb +55 -0
  21. data/lib/aws-sdk-s3/file_downloader.rb +14 -31
  22. data/lib/aws-sdk-s3/legacy_signer.rb +2 -1
  23. data/lib/aws-sdk-s3/multipart_file_uploader.rb +31 -13
  24. data/lib/aws-sdk-s3/multipart_upload.rb +83 -6
  25. data/lib/aws-sdk-s3/multipart_upload_part.rb +50 -34
  26. data/lib/aws-sdk-s3/object.rb +326 -129
  27. data/lib/aws-sdk-s3/object_acl.rb +11 -5
  28. data/lib/aws-sdk-s3/object_multipart_copier.rb +2 -1
  29. data/lib/aws-sdk-s3/object_summary.rb +240 -96
  30. data/lib/aws-sdk-s3/object_version.rb +60 -13
  31. data/lib/aws-sdk-s3/plugins/checksum_algorithm.rb +31 -0
  32. data/lib/aws-sdk-s3/plugins/endpoints.rb +1 -204
  33. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +11 -20
  34. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +3 -3
  35. data/lib/aws-sdk-s3/plugins/md5s.rb +10 -71
  36. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +5 -7
  37. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -1
  38. data/lib/aws-sdk-s3/presigner.rb +5 -5
  39. data/lib/aws-sdk-s3/resource.rb +41 -10
  40. data/lib/aws-sdk-s3/types.rb +3423 -1093
  41. data/lib/aws-sdk-s3.rb +1 -1
  42. data/sig/bucket.rbs +27 -9
  43. data/sig/bucket_acl.rbs +1 -1
  44. data/sig/bucket_cors.rbs +1 -1
  45. data/sig/bucket_lifecycle.rbs +1 -1
  46. data/sig/bucket_lifecycle_configuration.rbs +1 -1
  47. data/sig/bucket_logging.rbs +1 -1
  48. data/sig/bucket_policy.rbs +1 -1
  49. data/sig/bucket_request_payment.rbs +1 -1
  50. data/sig/bucket_tagging.rbs +1 -1
  51. data/sig/bucket_versioning.rbs +3 -3
  52. data/sig/bucket_website.rbs +1 -1
  53. data/sig/client.rbs +249 -68
  54. data/sig/errors.rbs +10 -0
  55. data/sig/multipart_upload.rbs +12 -3
  56. data/sig/multipart_upload_part.rbs +5 -1
  57. data/sig/object.rbs +35 -16
  58. data/sig/object_acl.rbs +1 -1
  59. data/sig/object_summary.rbs +26 -16
  60. data/sig/object_version.rbs +9 -3
  61. data/sig/resource.rbs +15 -4
  62. data/sig/types.rbs +339 -65
  63. metadata +7 -10
  64. data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +0 -31
@@ -41,15 +41,21 @@ module Aws::S3
41
41
  # acl: "private", # accepts private, public-read, public-read-write, authenticated-read
42
42
  # bucket: "BucketName", # required
43
43
  # create_bucket_configuration: {
44
- # location_constraint: "af-south-1", # accepts af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, me-south-1, sa-east-1, us-east-2, us-gov-east-1, us-gov-west-1, us-west-1, us-west-2
44
+ # location_constraint: "af-south-1", # accepts af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-4, ap-southeast-5, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-central-2, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, il-central-1, me-central-1, me-south-1, sa-east-1, us-east-2, us-gov-east-1, us-gov-west-1, us-west-1, us-west-2
45
45
  # location: {
46
- # type: "AvailabilityZone", # accepts AvailabilityZone
46
+ # type: "AvailabilityZone", # accepts AvailabilityZone, LocalZone
47
47
  # name: "LocationNameAsString",
48
48
  # },
49
49
  # bucket: {
50
- # data_redundancy: "SingleAvailabilityZone", # accepts SingleAvailabilityZone
50
+ # data_redundancy: "SingleAvailabilityZone", # accepts SingleAvailabilityZone, SingleLocalZone
51
51
  # type: "Directory", # accepts Directory
52
52
  # },
53
+ # tags: [
54
+ # {
55
+ # key: "ObjectKey", # required
56
+ # value: "Value", # required
57
+ # },
58
+ # ],
53
59
  # },
54
60
  # grant_full_control: "GrantFullControl",
55
61
  # grant_read: "GrantRead",
@@ -75,13 +81,14 @@ module Aws::S3
75
81
  #
76
82
  # <b>Directory buckets </b> - When you use this operation with a
77
83
  # directory bucket, you must use path-style requests in the format
78
- # `https://s3express-control.region_code.amazonaws.com/bucket-name `.
84
+ # `https://s3express-control.region-code.amazonaws.com/bucket-name `.
79
85
  # Virtual-hosted-style requests aren't supported. Directory bucket
80
- # names must be unique in the chosen Availability Zone. Bucket names
81
- # must also follow the format ` bucket_base_name--az_id--x-s3` (for
82
- # example, ` DOC-EXAMPLE-BUCKET--usw2-az1--x-s3`). For information about
83
- # bucket naming restrictions, see [Directory bucket naming rules][2] in
84
- # the *Amazon S3 User Guide*
86
+ # names must be unique in the chosen Zone (Availability Zone or Local
87
+ # Zone). Bucket names must also follow the format `
88
+ # bucket-base-name--zone-id--x-s3` (for example, `
89
+ # DOC-EXAMPLE-BUCKET--usw2-az1--x-s3`). For information about bucket
90
+ # naming restrictions, see [Directory bucket naming rules][2] in the
91
+ # *Amazon S3 User Guide*
85
92
  #
86
93
  #
87
94
  #
@@ -188,8 +195,32 @@ module Aws::S3
188
195
 
189
196
  # @example Request syntax with placeholder values
190
197
  #
191
- # s3.buckets()
198
+ # buckets = s3.buckets({
199
+ # prefix: "Prefix",
200
+ # bucket_region: "BucketRegion",
201
+ # })
192
202
  # @param [Hash] options ({})
203
+ # @option options [String] :prefix
204
+ # Limits the response to bucket names that begin with the specified
205
+ # bucket name prefix.
206
+ # @option options [String] :bucket_region
207
+ # Limits the response to buckets that are located in the specified
208
+ # Amazon Web Services Region. The Amazon Web Services Region must be
209
+ # expressed according to the Amazon Web Services Region code, such as
210
+ # `us-west-2` for the US West (Oregon) Region. For a list of the valid
211
+ # values for all of the Amazon Web Services Regions, see [Regions and
212
+ # Endpoints][1].
213
+ #
214
+ # <note markdown="1"> Requests made to a Regional endpoint that is different from the
215
+ # `bucket-region` parameter are not supported. For example, if you want
216
+ # to limit the response to your buckets in Region `us-west-2`, the
217
+ # request must be made to an endpoint in Region `us-west-2`.
218
+ #
219
+ # </note>
220
+ #
221
+ #
222
+ #
223
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
193
224
  # @return [Bucket::Collection]
194
225
  def buckets(options = {})
195
226
  batches = Enumerator.new do |y|