aws-sdk-s3 1.48.0 → 1.60.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aws-sdk-s3/bucket.rb +183 -54
  3. data/lib/aws-sdk-s3/bucket_acl.rb +9 -1
  4. data/lib/aws-sdk-s3/bucket_cors.rb +18 -1
  5. data/lib/aws-sdk-s3/bucket_lifecycle.rb +2 -1
  6. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +3 -1
  7. data/lib/aws-sdk-s3/bucket_logging.rb +11 -1
  8. data/lib/aws-sdk-s3/bucket_notification.rb +7 -3
  9. data/lib/aws-sdk-s3/bucket_policy.rb +2 -0
  10. data/lib/aws-sdk-s3/bucket_request_payment.rb +10 -0
  11. data/lib/aws-sdk-s3/bucket_tagging.rb +10 -1
  12. data/lib/aws-sdk-s3/bucket_versioning.rb +26 -0
  13. data/lib/aws-sdk-s3/bucket_website.rb +15 -4
  14. data/lib/aws-sdk-s3/client.rb +5133 -519
  15. data/lib/aws-sdk-s3/client_api.rb +33 -0
  16. data/lib/aws-sdk-s3/customizations/bucket.rb +44 -13
  17. data/lib/aws-sdk-s3/customizations/object.rb +65 -43
  18. data/lib/aws-sdk-s3/encryption/client.rb +4 -0
  19. data/lib/aws-sdk-s3/file_part.rb +9 -6
  20. data/lib/aws-sdk-s3/file_uploader.rb +13 -12
  21. data/lib/aws-sdk-s3/multipart_file_uploader.rb +14 -11
  22. data/lib/aws-sdk-s3/multipart_upload.rb +31 -16
  23. data/lib/aws-sdk-s3/multipart_upload_part.rb +38 -29
  24. data/lib/aws-sdk-s3/object.rb +330 -129
  25. data/lib/aws-sdk-s3/object_acl.rb +25 -7
  26. data/lib/aws-sdk-s3/object_summary.rb +243 -117
  27. data/lib/aws-sdk-s3/object_version.rb +67 -46
  28. data/lib/aws-sdk-s3/plugins/bucket_arn.rb +211 -0
  29. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +7 -7
  30. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +23 -3
  31. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +59 -0
  32. data/lib/aws-sdk-s3/plugins/md5s.rb +3 -4
  33. data/lib/aws-sdk-s3/plugins/s3_signer.rb +16 -6
  34. data/lib/aws-sdk-s3/presigned_post.rb +4 -0
  35. data/lib/aws-sdk-s3/presigner.rb +6 -2
  36. data/lib/aws-sdk-s3/resource.rb +4 -2
  37. data/lib/aws-sdk-s3/types.rb +3027 -635
  38. data/lib/aws-sdk-s3.rb +1 -1
  39. metadata +6 -4
@@ -21,6 +21,7 @@ module Aws::S3
21
21
  @bucket_name = extract_bucket_name(args, options)
22
22
  @data = options.delete(:data)
23
23
  @client = options.delete(:client) || Client.new(options)
24
+ @waiter_block_warned = false
24
25
  end
25
26
 
26
27
  # @!group Read-Only Attributes
@@ -185,6 +186,14 @@ module Aws::S3
185
186
  # })
186
187
  # @param [Hash] options ({})
187
188
  # @option options [String] :content_md5
189
+ # >The base64-encoded 128-bit MD5 digest of the data. You must use
190
+ # this header as a message integrity check to verify that the request
191
+ # body was not corrupted in transit. For more information, see [RFC
192
+ # 1864][1].
193
+ #
194
+ #
195
+ #
196
+ # [1]: http://www.ietf.org/rfc/rfc1864.txt
188
197
  # @option options [String] :mfa
189
198
  # The concatenation of the authentication device's serial number, a
190
199
  # space, and the value that is displayed on your authentication device.
@@ -212,10 +221,19 @@ module Aws::S3
212
221
  # })
213
222
  # @param [Hash] options ({})
214
223
  # @option options [String] :content_md5
224
+ # >The base64-encoded 128-bit MD5 digest of the data. You must use
225
+ # this header as a message integrity check to verify that the request
226
+ # body was not corrupted in transit. For more information, see [RFC
227
+ # 1864][1].
228
+ #
229
+ #
230
+ #
231
+ # [1]: http://www.ietf.org/rfc/rfc1864.txt
215
232
  # @option options [String] :mfa
216
233
  # The concatenation of the authentication device's serial number, a
217
234
  # space, and the value that is displayed on your authentication device.
218
235
  # @option options [required, Types::VersioningConfiguration] :versioning_configuration
236
+ # Container for setting the versioning state.
219
237
  # @return [EmptyStructure]
220
238
  def put(options = {})
221
239
  options = options.merge(bucket: @bucket_name)
@@ -231,6 +249,14 @@ module Aws::S3
231
249
  # })
232
250
  # @param [Hash] options ({})
233
251
  # @option options [String] :content_md5
252
+ # >The base64-encoded 128-bit MD5 digest of the data. You must use
253
+ # this header as a message integrity check to verify that the request
254
+ # body was not corrupted in transit. For more information, see [RFC
255
+ # 1864][1].
256
+ #
257
+ #
258
+ #
259
+ # [1]: http://www.ietf.org/rfc/rfc1864.txt
234
260
  # @option options [String] :mfa
235
261
  # The concatenation of the authentication device's serial number, a
236
262
  # space, and the value that is displayed on your authentication device.
@@ -21,6 +21,7 @@ module Aws::S3
21
21
  @bucket_name = extract_bucket_name(args, options)
22
22
  @data = options.delete(:data)
23
23
  @client = options.delete(:client) || Client.new(options)
24
+ @waiter_block_warned = false
24
25
  end
25
26
 
26
27
  # @!group Read-Only Attributes
@@ -30,25 +31,27 @@ module Aws::S3
30
31
  @bucket_name
31
32
  end
32
33
 
33
-
34
+ # Specifies the redirect behavior of all requests to a website endpoint
35
+ # of an Amazon S3 bucket.
34
36
  # @return [Types::RedirectAllRequestsTo]
35
37
  def redirect_all_requests_to
36
38
  data[:redirect_all_requests_to]
37
39
  end
38
40
 
39
-
41
+ # The name of the index document for the website.
40
42
  # @return [Types::IndexDocument]
41
43
  def index_document
42
44
  data[:index_document]
43
45
  end
44
46
 
45
-
47
+ # The name of the error document for the website.
46
48
  # @return [Types::ErrorDocument]
47
49
  def error_document
48
50
  data[:error_document]
49
51
  end
50
52
 
51
-
53
+ # Rules that define when a redirect is applied and the redirect
54
+ # behavior.
52
55
  # @return [Array<Types::RoutingRule>]
53
56
  def routing_rules
54
57
  data[:routing_rules]
@@ -231,7 +234,15 @@ module Aws::S3
231
234
  # })
232
235
  # @param [Hash] options ({})
233
236
  # @option options [String] :content_md5
237
+ # The base64-encoded 128-bit MD5 digest of the data. You must use this
238
+ # header as a message integrity check to verify that the request body
239
+ # was not corrupted in transit. For more information, see [RFC 1864][1].
240
+ #
241
+ #
242
+ #
243
+ # [1]: http://www.ietf.org/rfc/rfc1864.txt
234
244
  # @option options [required, Types::WebsiteConfiguration] :website_configuration
245
+ # Container for the request.
235
246
  # @return [EmptyStructure]
236
247
  def put(options = {})
237
248
  options = options.merge(bucket: @bucket_name)