aws-sdk-s3 1.87.0 → 1.143.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 +1106 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-s3/bucket.rb +605 -114
- data/lib/aws-sdk-s3/bucket_acl.rb +36 -11
- data/lib/aws-sdk-s3/bucket_cors.rb +40 -15
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +42 -15
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +43 -13
- data/lib/aws-sdk-s3/bucket_logging.rb +40 -11
- data/lib/aws-sdk-s3/bucket_notification.rb +30 -12
- data/lib/aws-sdk-s3/bucket_policy.rb +82 -13
- data/lib/aws-sdk-s3/bucket_request_payment.rb +35 -13
- data/lib/aws-sdk-s3/bucket_tagging.rb +38 -13
- data/lib/aws-sdk-s3/bucket_versioning.rb +82 -21
- data/lib/aws-sdk-s3/bucket_website.rb +38 -13
- data/lib/aws-sdk-s3/client.rb +8666 -3425
- data/lib/aws-sdk-s3/client_api.rb +774 -225
- data/lib/aws-sdk-s3/customizations/bucket.rb +31 -50
- data/lib/aws-sdk-s3/customizations/errors.rb +27 -0
- data/lib/aws-sdk-s3/customizations/object.rb +211 -37
- data/lib/aws-sdk-s3/customizations/types/permanent_redirect.rb +26 -0
- data/lib/aws-sdk-s3/customizations.rb +7 -0
- data/lib/aws-sdk-s3/encryption/client.rb +7 -3
- data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +0 -4
- data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +13 -9
- data/lib/aws-sdk-s3/encryptionV2/client.rb +7 -3
- data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +1 -4
- data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +3 -3
- data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +0 -4
- data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +10 -6
- data/lib/aws-sdk-s3/endpoint_parameters.rb +178 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +591 -0
- data/lib/aws-sdk-s3/endpoints.rb +2590 -0
- data/lib/aws-sdk-s3/errors.rb +1 -1
- data/lib/aws-sdk-s3/event_streams.rb +1 -1
- data/lib/aws-sdk-s3/express_credentials.rb +55 -0
- data/lib/aws-sdk-s3/express_credentials_cache.rb +30 -0
- data/lib/aws-sdk-s3/express_credentials_provider.rb +36 -0
- data/lib/aws-sdk-s3/file_downloader.rb +171 -41
- data/lib/aws-sdk-s3/file_uploader.rb +14 -7
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +26 -8
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +41 -14
- data/lib/aws-sdk-s3/multipart_upload.rb +198 -23
- data/lib/aws-sdk-s3/multipart_upload_part.rb +285 -34
- data/lib/aws-sdk-s3/object.rb +1824 -266
- data/lib/aws-sdk-s3/object_acl.rb +58 -19
- data/lib/aws-sdk-s3/object_copier.rb +7 -5
- data/lib/aws-sdk-s3/object_multipart_copier.rb +41 -19
- data/lib/aws-sdk-s3/object_summary.rb +1579 -299
- data/lib/aws-sdk-s3/object_version.rb +372 -64
- data/lib/aws-sdk-s3/plugins/accelerate.rb +1 -39
- data/lib/aws-sdk-s3/plugins/arn.rb +25 -142
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +3 -39
- data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +1 -6
- data/lib/aws-sdk-s3/plugins/dualstack.rb +2 -49
- data/lib/aws-sdk-s3/plugins/endpoints.rb +274 -0
- data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +3 -1
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +91 -0
- data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +1 -1
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +8 -31
- data/lib/aws-sdk-s3/plugins/location_constraint.rb +3 -1
- data/lib/aws-sdk-s3/plugins/md5s.rb +6 -3
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +35 -102
- data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
- data/lib/aws-sdk-s3/plugins/streaming_retry.rb +23 -2
- data/lib/aws-sdk-s3/presigned_post.rb +99 -78
- data/lib/aws-sdk-s3/presigner.rb +43 -51
- data/lib/aws-sdk-s3/resource.rb +102 -6
- data/lib/aws-sdk-s3/types.rb +7404 -5114
- data/lib/aws-sdk-s3/waiters.rb +1 -1
- data/lib/aws-sdk-s3.rb +6 -2
- data/sig/bucket.rbs +212 -0
- data/sig/bucket_acl.rbs +78 -0
- data/sig/bucket_cors.rbs +69 -0
- data/sig/bucket_lifecycle.rbs +88 -0
- data/sig/bucket_lifecycle_configuration.rbs +111 -0
- data/sig/bucket_logging.rbs +76 -0
- data/sig/bucket_notification.rbs +114 -0
- data/sig/bucket_policy.rbs +59 -0
- data/sig/bucket_request_payment.rbs +54 -0
- data/sig/bucket_tagging.rbs +65 -0
- data/sig/bucket_versioning.rbs +77 -0
- data/sig/bucket_website.rbs +93 -0
- data/sig/client.rbs +2360 -0
- data/sig/errors.rbs +34 -0
- data/sig/multipart_upload.rbs +110 -0
- data/sig/multipart_upload_part.rbs +105 -0
- data/sig/object.rbs +436 -0
- data/sig/object_acl.rbs +86 -0
- data/sig/object_summary.rbs +334 -0
- data/sig/object_version.rbs +131 -0
- data/sig/resource.rbs +124 -0
- data/sig/types.rbs +2562 -0
- data/sig/waiters.rbs +83 -0
- metadata +51 -17
- data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -62
- data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -71
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -76,7 +76,9 @@ module Aws::S3
|
|
76
76
|
#
|
77
77
|
# @return [self]
|
78
78
|
def load
|
79
|
-
resp =
|
79
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
80
|
+
@client.get_bucket_website(bucket: @bucket_name)
|
81
|
+
end
|
80
82
|
@data = resp.data
|
81
83
|
self
|
82
84
|
end
|
@@ -191,7 +193,9 @@ module Aws::S3
|
|
191
193
|
:retry
|
192
194
|
end
|
193
195
|
end
|
194
|
-
Aws::
|
196
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
197
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
198
|
+
end
|
195
199
|
end
|
196
200
|
|
197
201
|
# @!group Actions
|
@@ -203,13 +207,15 @@ module Aws::S3
|
|
203
207
|
# })
|
204
208
|
# @param [Hash] options ({})
|
205
209
|
# @option options [String] :expected_bucket_owner
|
206
|
-
# The account
|
207
|
-
#
|
208
|
-
#
|
210
|
+
# The account ID of the expected bucket owner. If the account ID that
|
211
|
+
# you provide does not match the actual owner of the bucket, the request
|
212
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
209
213
|
# @return [EmptyStructure]
|
210
214
|
def delete(options = {})
|
211
215
|
options = options.merge(bucket: @bucket_name)
|
212
|
-
resp =
|
216
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
217
|
+
@client.delete_bucket_website(options)
|
218
|
+
end
|
213
219
|
resp.data
|
214
220
|
end
|
215
221
|
|
@@ -217,6 +223,7 @@ module Aws::S3
|
|
217
223
|
#
|
218
224
|
# bucket_website.put({
|
219
225
|
# content_md5: "ContentMD5",
|
226
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
220
227
|
# website_configuration: { # required
|
221
228
|
# error_document: {
|
222
229
|
# key: "ObjectKey", # required
|
@@ -252,22 +259,40 @@ module Aws::S3
|
|
252
259
|
# header as a message integrity check to verify that the request body
|
253
260
|
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
254
261
|
#
|
255
|
-
# For requests made using the
|
256
|
-
# SDKs, this field is calculated
|
262
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
263
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
264
|
+
# automatically.
|
257
265
|
#
|
258
266
|
#
|
259
267
|
#
|
260
268
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
269
|
+
# @option options [String] :checksum_algorithm
|
270
|
+
# Indicates the algorithm used to create the checksum for the object
|
271
|
+
# when you use the SDK. This header will not provide any additional
|
272
|
+
# functionality if you don't use the SDK. When you send this header,
|
273
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
274
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
275
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
276
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
277
|
+
#
|
278
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
279
|
+
# `ChecksumAlgorithm` parameter.
|
280
|
+
#
|
281
|
+
#
|
282
|
+
#
|
283
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
261
284
|
# @option options [required, Types::WebsiteConfiguration] :website_configuration
|
262
285
|
# Container for the request.
|
263
286
|
# @option options [String] :expected_bucket_owner
|
264
|
-
# The account
|
265
|
-
#
|
266
|
-
#
|
287
|
+
# The account ID of the expected bucket owner. If the account ID that
|
288
|
+
# you provide does not match the actual owner of the bucket, the request
|
289
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
267
290
|
# @return [EmptyStructure]
|
268
291
|
def put(options = {})
|
269
292
|
options = options.merge(bucket: @bucket_name)
|
270
|
-
resp =
|
293
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
294
|
+
@client.put_bucket_website(options)
|
295
|
+
end
|
271
296
|
resp.data
|
272
297
|
end
|
273
298
|
|