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
|
|
@@ -48,13 +48,19 @@ module Aws::S3
|
|
48
48
|
data[:queue_configurations]
|
49
49
|
end
|
50
50
|
|
51
|
-
# Describes the
|
52
|
-
#
|
51
|
+
# Describes the Lambda functions to invoke and the events for which to
|
52
|
+
# invoke them.
|
53
53
|
# @return [Array<Types::LambdaFunctionConfiguration>]
|
54
54
|
def lambda_function_configurations
|
55
55
|
data[:lambda_function_configurations]
|
56
56
|
end
|
57
57
|
|
58
|
+
# Enables delivery of events to Amazon EventBridge.
|
59
|
+
# @return [Types::EventBridgeConfiguration]
|
60
|
+
def event_bridge_configuration
|
61
|
+
data[:event_bridge_configuration]
|
62
|
+
end
|
63
|
+
|
58
64
|
# @!endgroup
|
59
65
|
|
60
66
|
# @return [Client]
|
@@ -69,7 +75,9 @@ module Aws::S3
|
|
69
75
|
#
|
70
76
|
# @return [self]
|
71
77
|
def load
|
72
|
-
resp =
|
78
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
79
|
+
@client.get_bucket_notification_configuration(bucket: @bucket_name)
|
80
|
+
end
|
73
81
|
@data = resp.data
|
74
82
|
self
|
75
83
|
end
|
@@ -184,7 +192,9 @@ module Aws::S3
|
|
184
192
|
:retry
|
185
193
|
end
|
186
194
|
end
|
187
|
-
Aws::
|
195
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
196
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
197
|
+
end
|
188
198
|
end
|
189
199
|
|
190
200
|
# @!group Actions
|
@@ -197,7 +207,7 @@ module Aws::S3
|
|
197
207
|
# {
|
198
208
|
# id: "NotificationId",
|
199
209
|
# topic_arn: "TopicArn", # required
|
200
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold
|
210
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
|
201
211
|
# filter: {
|
202
212
|
# key: {
|
203
213
|
# filter_rules: [
|
@@ -214,7 +224,7 @@ module Aws::S3
|
|
214
224
|
# {
|
215
225
|
# id: "NotificationId",
|
216
226
|
# queue_arn: "QueueArn", # required
|
217
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold
|
227
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
|
218
228
|
# filter: {
|
219
229
|
# key: {
|
220
230
|
# filter_rules: [
|
@@ -231,7 +241,7 @@ module Aws::S3
|
|
231
241
|
# {
|
232
242
|
# id: "NotificationId",
|
233
243
|
# lambda_function_arn: "LambdaFunctionArn", # required
|
234
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold
|
244
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
|
235
245
|
# filter: {
|
236
246
|
# key: {
|
237
247
|
# filter_rules: [
|
@@ -244,8 +254,11 @@ module Aws::S3
|
|
244
254
|
# },
|
245
255
|
# },
|
246
256
|
# ],
|
257
|
+
# event_bridge_configuration: {
|
258
|
+
# },
|
247
259
|
# },
|
248
260
|
# expected_bucket_owner: "AccountId",
|
261
|
+
# skip_destination_validation: false,
|
249
262
|
# })
|
250
263
|
# @param [Hash] options ({})
|
251
264
|
# @option options [required, Types::NotificationConfiguration] :notification_configuration
|
@@ -253,13 +266,18 @@ module Aws::S3
|
|
253
266
|
# bucket. If this element is empty, notifications are turned off for the
|
254
267
|
# bucket.
|
255
268
|
# @option options [String] :expected_bucket_owner
|
256
|
-
# The account
|
257
|
-
#
|
258
|
-
#
|
269
|
+
# The account ID of the expected bucket owner. If the account ID that
|
270
|
+
# you provide does not match the actual owner of the bucket, the request
|
271
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
272
|
+
# @option options [Boolean] :skip_destination_validation
|
273
|
+
# Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations.
|
274
|
+
# True or false value.
|
259
275
|
# @return [EmptyStructure]
|
260
276
|
def put(options = {})
|
261
277
|
options = options.merge(bucket: @bucket_name)
|
262
|
-
resp =
|
278
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
279
|
+
@client.put_bucket_notification_configuration(options)
|
280
|
+
end
|
263
281
|
resp.data
|
264
282
|
end
|
265
283
|
|
@@ -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
|
|
@@ -54,7 +54,9 @@ module Aws::S3
|
|
54
54
|
#
|
55
55
|
# @return [self]
|
56
56
|
def load
|
57
|
-
resp =
|
57
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
58
|
+
@client.get_bucket_policy(bucket: @bucket_name)
|
59
|
+
end
|
58
60
|
@data = resp.data
|
59
61
|
self
|
60
62
|
end
|
@@ -169,7 +171,9 @@ module Aws::S3
|
|
169
171
|
:retry
|
170
172
|
end
|
171
173
|
end
|
172
|
-
Aws::
|
174
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
175
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
176
|
+
end
|
173
177
|
end
|
174
178
|
|
175
179
|
# @!group Actions
|
@@ -181,13 +185,21 @@ module Aws::S3
|
|
181
185
|
# })
|
182
186
|
# @param [Hash] options ({})
|
183
187
|
# @option options [String] :expected_bucket_owner
|
184
|
-
# The account
|
185
|
-
#
|
186
|
-
#
|
188
|
+
# The account ID of the expected bucket owner. If the account ID that
|
189
|
+
# you provide does not match the actual owner of the bucket, the request
|
190
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
191
|
+
#
|
192
|
+
# <note markdown="1"> For directory buckets, this header is not supported in this API
|
193
|
+
# operation. If you specify this header, the request fails with the HTTP
|
194
|
+
# status code `501 Not Implemented`.
|
195
|
+
#
|
196
|
+
# </note>
|
187
197
|
# @return [EmptyStructure]
|
188
198
|
def delete(options = {})
|
189
199
|
options = options.merge(bucket: @bucket_name)
|
190
|
-
resp =
|
200
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
201
|
+
@client.delete_bucket_policy(options)
|
202
|
+
end
|
191
203
|
resp.data
|
192
204
|
end
|
193
205
|
|
@@ -195,6 +207,7 @@ module Aws::S3
|
|
195
207
|
#
|
196
208
|
# bucket_policy.put({
|
197
209
|
# content_md5: "ContentMD5",
|
210
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
198
211
|
# confirm_remove_self_bucket_access: false,
|
199
212
|
# policy: "Policy", # required
|
200
213
|
# expected_bucket_owner: "AccountId",
|
@@ -203,21 +216,77 @@ module Aws::S3
|
|
203
216
|
# @option options [String] :content_md5
|
204
217
|
# The MD5 hash of the request body.
|
205
218
|
#
|
206
|
-
# For requests made using the
|
207
|
-
# SDKs, this field is calculated
|
219
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
220
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
221
|
+
# automatically.
|
222
|
+
#
|
223
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
224
|
+
#
|
225
|
+
# </note>
|
226
|
+
# @option options [String] :checksum_algorithm
|
227
|
+
# Indicates the algorithm used to create the checksum for the object
|
228
|
+
# when you use the SDK. This header will not provide any additional
|
229
|
+
# functionality if you don't use the SDK. When you send this header,
|
230
|
+
# there must be a corresponding `x-amz-checksum-algorithm ` or
|
231
|
+
# `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request
|
232
|
+
# with the HTTP status code `400 Bad Request`.
|
233
|
+
#
|
234
|
+
# For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
|
235
|
+
# the supported algorithm from the following list:
|
236
|
+
#
|
237
|
+
# * CRC32
|
238
|
+
#
|
239
|
+
# * CRC32C
|
240
|
+
#
|
241
|
+
# * SHA1
|
242
|
+
#
|
243
|
+
# * SHA256
|
244
|
+
#
|
245
|
+
# For more information, see [Checking object integrity][1] in the
|
246
|
+
# *Amazon S3 User Guide*.
|
247
|
+
#
|
248
|
+
# If the individual checksum value you provide through
|
249
|
+
# `x-amz-checksum-algorithm ` doesn't match the checksum algorithm you
|
250
|
+
# set through `x-amz-sdk-checksum-algorithm`, Amazon S3 ignores any
|
251
|
+
# provided `ChecksumAlgorithm` parameter and uses the checksum algorithm
|
252
|
+
# that matches the provided value in `x-amz-checksum-algorithm `.
|
253
|
+
#
|
254
|
+
# <note markdown="1"> For directory buckets, when you use Amazon Web Services SDKs, `CRC32`
|
255
|
+
# is the default checksum algorithm that's used for performance.
|
256
|
+
#
|
257
|
+
# </note>
|
258
|
+
#
|
259
|
+
#
|
260
|
+
#
|
261
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
208
262
|
# @option options [Boolean] :confirm_remove_self_bucket_access
|
209
263
|
# Set this parameter to true to confirm that you want to remove your
|
210
264
|
# permissions to change this bucket policy in the future.
|
265
|
+
#
|
266
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
267
|
+
#
|
268
|
+
# </note>
|
211
269
|
# @option options [required, String] :policy
|
212
270
|
# The bucket policy as a JSON document.
|
271
|
+
#
|
272
|
+
# For directory buckets, the only IAM action supported in the bucket
|
273
|
+
# policy is `s3express:CreateSession`.
|
213
274
|
# @option options [String] :expected_bucket_owner
|
214
|
-
# The account
|
215
|
-
#
|
216
|
-
#
|
275
|
+
# The account ID of the expected bucket owner. If the account ID that
|
276
|
+
# you provide does not match the actual owner of the bucket, the request
|
277
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
278
|
+
#
|
279
|
+
# <note markdown="1"> For directory buckets, this header is not supported in this API
|
280
|
+
# operation. If you specify this header, the request fails with the HTTP
|
281
|
+
# status code `501 Not Implemented`.
|
282
|
+
#
|
283
|
+
# </note>
|
217
284
|
# @return [EmptyStructure]
|
218
285
|
def put(options = {})
|
219
286
|
options = options.merge(bucket: @bucket_name)
|
220
|
-
resp =
|
287
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
288
|
+
@client.put_bucket_policy(options)
|
289
|
+
end
|
221
290
|
resp.data
|
222
291
|
end
|
223
292
|
|
@@ -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
|
|
@@ -54,7 +54,9 @@ module Aws::S3
|
|
54
54
|
#
|
55
55
|
# @return [self]
|
56
56
|
def load
|
57
|
-
resp =
|
57
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
58
|
+
@client.get_bucket_request_payment(bucket: @bucket_name)
|
59
|
+
end
|
58
60
|
@data = resp.data
|
59
61
|
self
|
60
62
|
end
|
@@ -169,7 +171,9 @@ module Aws::S3
|
|
169
171
|
:retry
|
170
172
|
end
|
171
173
|
end
|
172
|
-
Aws::
|
174
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
175
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
176
|
+
end
|
173
177
|
end
|
174
178
|
|
175
179
|
# @!group Actions
|
@@ -178,6 +182,7 @@ module Aws::S3
|
|
178
182
|
#
|
179
183
|
# bucket_request_payment.put({
|
180
184
|
# content_md5: "ContentMD5",
|
185
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
181
186
|
# request_payment_configuration: { # required
|
182
187
|
# payer: "Requester", # required, accepts Requester, BucketOwner
|
183
188
|
# },
|
@@ -185,27 +190,44 @@ module Aws::S3
|
|
185
190
|
# })
|
186
191
|
# @param [Hash] options ({})
|
187
192
|
# @option options [String] :content_md5
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
# 1864][1].
|
193
|
+
# The base64-encoded 128-bit MD5 digest of the data. You must use this
|
194
|
+
# header as a message integrity check to verify that the request body
|
195
|
+
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
192
196
|
#
|
193
|
-
# For requests made using the
|
194
|
-
# SDKs, this field is calculated
|
197
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
198
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
199
|
+
# automatically.
|
195
200
|
#
|
196
201
|
#
|
197
202
|
#
|
198
203
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
204
|
+
# @option options [String] :checksum_algorithm
|
205
|
+
# Indicates the algorithm used to create the checksum for the object
|
206
|
+
# when you use the SDK. This header will not provide any additional
|
207
|
+
# functionality if you don't use the SDK. When you send this header,
|
208
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
209
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
210
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
211
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
212
|
+
#
|
213
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
214
|
+
# `ChecksumAlgorithm` parameter.
|
215
|
+
#
|
216
|
+
#
|
217
|
+
#
|
218
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
199
219
|
# @option options [required, Types::RequestPaymentConfiguration] :request_payment_configuration
|
200
220
|
# Container for Payer.
|
201
221
|
# @option options [String] :expected_bucket_owner
|
202
|
-
# The account
|
203
|
-
#
|
204
|
-
#
|
222
|
+
# The account ID of the expected bucket owner. If the account ID that
|
223
|
+
# you provide does not match the actual owner of the bucket, the request
|
224
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
205
225
|
# @return [EmptyStructure]
|
206
226
|
def put(options = {})
|
207
227
|
options = options.merge(bucket: @bucket_name)
|
208
|
-
resp =
|
228
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
229
|
+
@client.put_bucket_request_payment(options)
|
230
|
+
end
|
209
231
|
resp.data
|
210
232
|
end
|
211
233
|
|
@@ -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
|
|
@@ -54,7 +54,9 @@ module Aws::S3
|
|
54
54
|
#
|
55
55
|
# @return [self]
|
56
56
|
def load
|
57
|
-
resp =
|
57
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
58
|
+
@client.get_bucket_tagging(bucket: @bucket_name)
|
59
|
+
end
|
58
60
|
@data = resp.data
|
59
61
|
self
|
60
62
|
end
|
@@ -169,7 +171,9 @@ module Aws::S3
|
|
169
171
|
:retry
|
170
172
|
end
|
171
173
|
end
|
172
|
-
Aws::
|
174
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
175
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
176
|
+
end
|
173
177
|
end
|
174
178
|
|
175
179
|
# @!group Actions
|
@@ -181,13 +185,15 @@ module Aws::S3
|
|
181
185
|
# })
|
182
186
|
# @param [Hash] options ({})
|
183
187
|
# @option options [String] :expected_bucket_owner
|
184
|
-
# The account
|
185
|
-
#
|
186
|
-
#
|
188
|
+
# The account ID of the expected bucket owner. If the account ID that
|
189
|
+
# you provide does not match the actual owner of the bucket, the request
|
190
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
187
191
|
# @return [EmptyStructure]
|
188
192
|
def delete(options = {})
|
189
193
|
options = options.merge(bucket: @bucket_name)
|
190
|
-
resp =
|
194
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
195
|
+
@client.delete_bucket_tagging(options)
|
196
|
+
end
|
191
197
|
resp.data
|
192
198
|
end
|
193
199
|
|
@@ -195,6 +201,7 @@ module Aws::S3
|
|
195
201
|
#
|
196
202
|
# bucket_tagging.put({
|
197
203
|
# content_md5: "ContentMD5",
|
204
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
198
205
|
# tagging: { # required
|
199
206
|
# tag_set: [ # required
|
200
207
|
# {
|
@@ -211,22 +218,40 @@ module Aws::S3
|
|
211
218
|
# header as a message integrity check to verify that the request body
|
212
219
|
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
213
220
|
#
|
214
|
-
# For requests made using the
|
215
|
-
# SDKs, this field is calculated
|
221
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
222
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
223
|
+
# automatically.
|
216
224
|
#
|
217
225
|
#
|
218
226
|
#
|
219
227
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
228
|
+
# @option options [String] :checksum_algorithm
|
229
|
+
# Indicates the algorithm used to create the checksum for the object
|
230
|
+
# when you use the SDK. This header will not provide any additional
|
231
|
+
# functionality if you don't use the SDK. When you send this header,
|
232
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
233
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
234
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
235
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
236
|
+
#
|
237
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
238
|
+
# `ChecksumAlgorithm` parameter.
|
239
|
+
#
|
240
|
+
#
|
241
|
+
#
|
242
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
220
243
|
# @option options [required, Types::Tagging] :tagging
|
221
244
|
# Container for the `TagSet` and `Tag` elements.
|
222
245
|
# @option options [String] :expected_bucket_owner
|
223
|
-
# The account
|
224
|
-
#
|
225
|
-
#
|
246
|
+
# The account ID of the expected bucket owner. If the account ID that
|
247
|
+
# you provide does not match the actual owner of the bucket, the request
|
248
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
226
249
|
# @return [EmptyStructure]
|
227
250
|
def put(options = {})
|
228
251
|
options = options.merge(bucket: @bucket_name)
|
229
|
-
resp =
|
252
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
253
|
+
@client.put_bucket_tagging(options)
|
254
|
+
end
|
230
255
|
resp.data
|
231
256
|
end
|
232
257
|
|
@@ -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
|
|
@@ -63,7 +63,9 @@ module Aws::S3
|
|
63
63
|
#
|
64
64
|
# @return [self]
|
65
65
|
def load
|
66
|
-
resp =
|
66
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
67
|
+
@client.get_bucket_versioning(bucket: @bucket_name)
|
68
|
+
end
|
67
69
|
@data = resp.data
|
68
70
|
self
|
69
71
|
end
|
@@ -178,7 +180,9 @@ module Aws::S3
|
|
178
180
|
:retry
|
179
181
|
end
|
180
182
|
end
|
181
|
-
Aws::
|
183
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
184
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
185
|
+
end
|
182
186
|
end
|
183
187
|
|
184
188
|
# @!group Actions
|
@@ -187,6 +191,7 @@ module Aws::S3
|
|
187
191
|
#
|
188
192
|
# bucket_versioning.enable({
|
189
193
|
# content_md5: "ContentMD5",
|
194
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
190
195
|
# mfa: "MFA",
|
191
196
|
# expected_bucket_owner: "AccountId",
|
192
197
|
# })
|
@@ -197,19 +202,35 @@ module Aws::S3
|
|
197
202
|
# body was not corrupted in transit. For more information, see [RFC
|
198
203
|
# 1864][1].
|
199
204
|
#
|
200
|
-
# For requests made using the
|
201
|
-
# SDKs, this field is calculated
|
205
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
206
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
207
|
+
# automatically.
|
202
208
|
#
|
203
209
|
#
|
204
210
|
#
|
205
211
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
212
|
+
# @option options [String] :checksum_algorithm
|
213
|
+
# Indicates the algorithm used to create the checksum for the object
|
214
|
+
# when you use the SDK. This header will not provide any additional
|
215
|
+
# functionality if you don't use the SDK. When you send this header,
|
216
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
217
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
218
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
219
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
220
|
+
#
|
221
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
222
|
+
# `ChecksumAlgorithm` parameter.
|
223
|
+
#
|
224
|
+
#
|
225
|
+
#
|
226
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
206
227
|
# @option options [String] :mfa
|
207
228
|
# The concatenation of the authentication device's serial number, a
|
208
229
|
# space, and the value that is displayed on your authentication device.
|
209
230
|
# @option options [String] :expected_bucket_owner
|
210
|
-
# The account
|
211
|
-
#
|
212
|
-
#
|
231
|
+
# The account ID of the expected bucket owner. If the account ID that
|
232
|
+
# you provide does not match the actual owner of the bucket, the request
|
233
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
213
234
|
# @return [EmptyStructure]
|
214
235
|
def enable(options = {})
|
215
236
|
options = Aws::Util.deep_merge(options,
|
@@ -218,7 +239,9 @@ module Aws::S3
|
|
218
239
|
status: "Enabled"
|
219
240
|
}
|
220
241
|
)
|
221
|
-
resp =
|
242
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
243
|
+
@client.put_bucket_versioning(options)
|
244
|
+
end
|
222
245
|
resp.data
|
223
246
|
end
|
224
247
|
|
@@ -226,6 +249,7 @@ module Aws::S3
|
|
226
249
|
#
|
227
250
|
# bucket_versioning.put({
|
228
251
|
# content_md5: "ContentMD5",
|
252
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
229
253
|
# mfa: "MFA",
|
230
254
|
# versioning_configuration: { # required
|
231
255
|
# mfa_delete: "Enabled", # accepts Enabled, Disabled
|
@@ -240,25 +264,43 @@ module Aws::S3
|
|
240
264
|
# body was not corrupted in transit. For more information, see [RFC
|
241
265
|
# 1864][1].
|
242
266
|
#
|
243
|
-
# For requests made using the
|
244
|
-
# SDKs, this field is calculated
|
267
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
268
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
269
|
+
# automatically.
|
245
270
|
#
|
246
271
|
#
|
247
272
|
#
|
248
273
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
274
|
+
# @option options [String] :checksum_algorithm
|
275
|
+
# Indicates the algorithm used to create the checksum for the object
|
276
|
+
# when you use the SDK. This header will not provide any additional
|
277
|
+
# functionality if you don't use the SDK. When you send this header,
|
278
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
279
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
280
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
281
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
282
|
+
#
|
283
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
284
|
+
# `ChecksumAlgorithm` parameter.
|
285
|
+
#
|
286
|
+
#
|
287
|
+
#
|
288
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
249
289
|
# @option options [String] :mfa
|
250
290
|
# The concatenation of the authentication device's serial number, a
|
251
291
|
# space, and the value that is displayed on your authentication device.
|
252
292
|
# @option options [required, Types::VersioningConfiguration] :versioning_configuration
|
253
293
|
# Container for setting the versioning state.
|
254
294
|
# @option options [String] :expected_bucket_owner
|
255
|
-
# The account
|
256
|
-
#
|
257
|
-
#
|
295
|
+
# The account ID of the expected bucket owner. If the account ID that
|
296
|
+
# you provide does not match the actual owner of the bucket, the request
|
297
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
258
298
|
# @return [EmptyStructure]
|
259
299
|
def put(options = {})
|
260
300
|
options = options.merge(bucket: @bucket_name)
|
261
|
-
resp =
|
301
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
302
|
+
@client.put_bucket_versioning(options)
|
303
|
+
end
|
262
304
|
resp.data
|
263
305
|
end
|
264
306
|
|
@@ -266,6 +308,7 @@ module Aws::S3
|
|
266
308
|
#
|
267
309
|
# bucket_versioning.suspend({
|
268
310
|
# content_md5: "ContentMD5",
|
311
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
269
312
|
# mfa: "MFA",
|
270
313
|
# expected_bucket_owner: "AccountId",
|
271
314
|
# })
|
@@ -276,19 +319,35 @@ module Aws::S3
|
|
276
319
|
# body was not corrupted in transit. For more information, see [RFC
|
277
320
|
# 1864][1].
|
278
321
|
#
|
279
|
-
# For requests made using the
|
280
|
-
# SDKs, this field is calculated
|
322
|
+
# For requests made using the Amazon Web Services Command Line Interface
|
323
|
+
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
324
|
+
# automatically.
|
281
325
|
#
|
282
326
|
#
|
283
327
|
#
|
284
328
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
329
|
+
# @option options [String] :checksum_algorithm
|
330
|
+
# Indicates the algorithm used to create the checksum for the object
|
331
|
+
# when you use the SDK. This header will not provide any additional
|
332
|
+
# functionality if you don't use the SDK. When you send this header,
|
333
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
334
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
335
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
336
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
337
|
+
#
|
338
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
339
|
+
# `ChecksumAlgorithm` parameter.
|
340
|
+
#
|
341
|
+
#
|
342
|
+
#
|
343
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
285
344
|
# @option options [String] :mfa
|
286
345
|
# The concatenation of the authentication device's serial number, a
|
287
346
|
# space, and the value that is displayed on your authentication device.
|
288
347
|
# @option options [String] :expected_bucket_owner
|
289
|
-
# The account
|
290
|
-
#
|
291
|
-
#
|
348
|
+
# The account ID of the expected bucket owner. If the account ID that
|
349
|
+
# you provide does not match the actual owner of the bucket, the request
|
350
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
292
351
|
# @return [EmptyStructure]
|
293
352
|
def suspend(options = {})
|
294
353
|
options = Aws::Util.deep_merge(options,
|
@@ -297,7 +356,9 @@ module Aws::S3
|
|
297
356
|
status: "Suspended"
|
298
357
|
}
|
299
358
|
)
|
300
|
-
resp =
|
359
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
360
|
+
@client.put_bucket_versioning(options)
|
361
|
+
end
|
301
362
|
resp.data
|
302
363
|
end
|
303
364
|
|