aws-sdk-s3 1.103.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 +288 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +590 -100
- data/lib/aws-sdk-s3/bucket_acl.rb +28 -6
- data/lib/aws-sdk-s3/bucket_cors.rb +34 -10
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +38 -12
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +42 -12
- data/lib/aws-sdk-s3/bucket_logging.rb +35 -6
- data/lib/aws-sdk-s3/bucket_notification.rb +27 -9
- data/lib/aws-sdk-s3/bucket_policy.rb +78 -10
- data/lib/aws-sdk-s3/bucket_request_payment.rb +28 -6
- data/lib/aws-sdk-s3/bucket_tagging.rb +34 -10
- data/lib/aws-sdk-s3/bucket_versioning.rb +72 -14
- data/lib/aws-sdk-s3/bucket_website.rb +34 -10
- data/lib/aws-sdk-s3/client.rb +7917 -3171
- data/lib/aws-sdk-s3/client_api.rb +709 -224
- data/lib/aws-sdk-s3/customizations/bucket.rb +23 -47
- data/lib/aws-sdk-s3/customizations/errors.rb +27 -0
- data/lib/aws-sdk-s3/customizations/object.rb +171 -22
- 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 +6 -2
- data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +13 -9
- data/lib/aws-sdk-s3/encryptionV2/client.rb +6 -2
- data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +1 -0
- 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/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 +170 -45
- data/lib/aws-sdk-s3/file_uploader.rb +11 -4
- 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 +194 -19
- data/lib/aws-sdk-s3/multipart_upload_part.rb +280 -30
- data/lib/aws-sdk-s3/object.rb +1735 -266
- data/lib/aws-sdk-s3/object_acl.rb +49 -13
- 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 +1497 -221
- data/lib/aws-sdk-s3/object_version.rb +365 -58
- data/lib/aws-sdk-s3/plugins/accelerate.rb +3 -44
- data/lib/aws-sdk-s3/plugins/arn.rb +0 -197
- 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 +1 -55
- data/lib/aws-sdk-s3/plugins/endpoints.rb +274 -0
- data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +2 -1
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +91 -0
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +6 -29
- 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 -109
- 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 +26 -37
- data/lib/aws-sdk-s3/resource.rb +97 -3
- data/lib/aws-sdk-s3/types.rb +6618 -4880
- data/lib/aws-sdk-s3.rb +5 -1
- 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 +45 -16
- data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -69
- data/lib/aws-sdk-s3/arn/multi_region_access_point_arn.rb +0 -69
- data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +0 -69
- data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -73
- data/lib/aws-sdk-s3/plugins/object_lambda_endpoint.rb +0 -25
@@ -60,7 +60,9 @@ module Aws::S3
|
|
60
60
|
#
|
61
61
|
# @return [self]
|
62
62
|
def load
|
63
|
-
resp =
|
63
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
64
|
+
@client.get_bucket_acl(bucket: @bucket_name)
|
65
|
+
end
|
64
66
|
@data = resp.data
|
65
67
|
self
|
66
68
|
end
|
@@ -175,7 +177,9 @@ module Aws::S3
|
|
175
177
|
:retry
|
176
178
|
end
|
177
179
|
end
|
178
|
-
Aws::
|
180
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
181
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
182
|
+
end
|
179
183
|
end
|
180
184
|
|
181
185
|
# @!group Actions
|
@@ -203,6 +207,7 @@ module Aws::S3
|
|
203
207
|
# },
|
204
208
|
# },
|
205
209
|
# content_md5: "ContentMD5",
|
210
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
206
211
|
# grant_full_control: "GrantFullControl",
|
207
212
|
# grant_read: "GrantRead",
|
208
213
|
# grant_read_acp: "GrantReadACP",
|
@@ -228,6 +233,21 @@ module Aws::S3
|
|
228
233
|
#
|
229
234
|
#
|
230
235
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
236
|
+
# @option options [String] :checksum_algorithm
|
237
|
+
# Indicates the algorithm used to create the checksum for the object
|
238
|
+
# when you use the SDK. This header will not provide any additional
|
239
|
+
# functionality if you don't use the SDK. When you send this header,
|
240
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
241
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
242
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
243
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
244
|
+
#
|
245
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
246
|
+
# `ChecksumAlgorithm` parameter.
|
247
|
+
#
|
248
|
+
#
|
249
|
+
#
|
250
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
231
251
|
# @option options [String] :grant_full_control
|
232
252
|
# Allows grantee the read, write, read ACP, and write ACP permissions on
|
233
253
|
# the bucket.
|
@@ -243,13 +263,15 @@ module Aws::S3
|
|
243
263
|
# @option options [String] :grant_write_acp
|
244
264
|
# Allows grantee to write the ACL for the applicable bucket.
|
245
265
|
# @option options [String] :expected_bucket_owner
|
246
|
-
# The account ID of the expected bucket owner. If the
|
247
|
-
#
|
248
|
-
#
|
266
|
+
# The account ID of the expected bucket owner. If the account ID that
|
267
|
+
# you provide does not match the actual owner of the bucket, the request
|
268
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
249
269
|
# @return [EmptyStructure]
|
250
270
|
def put(options = {})
|
251
271
|
options = options.merge(bucket: @bucket_name)
|
252
|
-
resp =
|
272
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
273
|
+
@client.put_bucket_acl(options)
|
274
|
+
end
|
253
275
|
resp.data
|
254
276
|
end
|
255
277
|
|
@@ -55,7 +55,9 @@ module Aws::S3
|
|
55
55
|
#
|
56
56
|
# @return [self]
|
57
57
|
def load
|
58
|
-
resp =
|
58
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
59
|
+
@client.get_bucket_cors(bucket: @bucket_name)
|
60
|
+
end
|
59
61
|
@data = resp.data
|
60
62
|
self
|
61
63
|
end
|
@@ -170,7 +172,9 @@ module Aws::S3
|
|
170
172
|
:retry
|
171
173
|
end
|
172
174
|
end
|
173
|
-
Aws::
|
175
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
176
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
177
|
+
end
|
174
178
|
end
|
175
179
|
|
176
180
|
# @!group Actions
|
@@ -182,13 +186,15 @@ module Aws::S3
|
|
182
186
|
# })
|
183
187
|
# @param [Hash] options ({})
|
184
188
|
# @option options [String] :expected_bucket_owner
|
185
|
-
# The account ID of the expected bucket owner. If the
|
186
|
-
#
|
187
|
-
#
|
189
|
+
# The account ID of the expected bucket owner. If the account ID that
|
190
|
+
# you provide does not match the actual owner of the bucket, the request
|
191
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
188
192
|
# @return [EmptyStructure]
|
189
193
|
def delete(options = {})
|
190
194
|
options = options.merge(bucket: @bucket_name)
|
191
|
-
resp =
|
195
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
196
|
+
@client.delete_bucket_cors(options)
|
197
|
+
end
|
192
198
|
resp.data
|
193
199
|
end
|
194
200
|
|
@@ -208,6 +214,7 @@ module Aws::S3
|
|
208
214
|
# ],
|
209
215
|
# },
|
210
216
|
# content_md5: "ContentMD5",
|
217
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
211
218
|
# expected_bucket_owner: "AccountId",
|
212
219
|
# })
|
213
220
|
# @param [Hash] options ({})
|
@@ -231,14 +238,31 @@ module Aws::S3
|
|
231
238
|
#
|
232
239
|
#
|
233
240
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
241
|
+
# @option options [String] :checksum_algorithm
|
242
|
+
# Indicates the algorithm used to create the checksum for the object
|
243
|
+
# when you use the SDK. This header will not provide any additional
|
244
|
+
# functionality if you don't use the SDK. When you send this header,
|
245
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
246
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
247
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
248
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
249
|
+
#
|
250
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
251
|
+
# `ChecksumAlgorithm` parameter.
|
252
|
+
#
|
253
|
+
#
|
254
|
+
#
|
255
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
234
256
|
# @option options [String] :expected_bucket_owner
|
235
|
-
# The account ID of the expected bucket owner. If the
|
236
|
-
#
|
237
|
-
#
|
257
|
+
# The account ID of the expected bucket owner. If the account ID that
|
258
|
+
# you provide does not match the actual owner of the bucket, the request
|
259
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
238
260
|
# @return [EmptyStructure]
|
239
261
|
def put(options = {})
|
240
262
|
options = options.merge(bucket: @bucket_name)
|
241
|
-
resp =
|
263
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
264
|
+
@client.put_bucket_cors(options)
|
265
|
+
end
|
242
266
|
resp.data
|
243
267
|
end
|
244
268
|
|
@@ -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_lifecycle(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 ID of the expected bucket owner. If the
|
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_lifecycle(options)
|
196
|
+
end
|
191
197
|
resp.data
|
192
198
|
end
|
193
199
|
|
@@ -195,6 +201,7 @@ module Aws::S3
|
|
195
201
|
#
|
196
202
|
# bucket_lifecycle.put({
|
197
203
|
# content_md5: "ContentMD5",
|
204
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
198
205
|
# lifecycle_configuration: {
|
199
206
|
# rules: [ # required
|
200
207
|
# {
|
@@ -209,14 +216,16 @@ module Aws::S3
|
|
209
216
|
# transition: {
|
210
217
|
# date: Time.now,
|
211
218
|
# days: 1,
|
212
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
219
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
213
220
|
# },
|
214
221
|
# noncurrent_version_transition: {
|
215
222
|
# noncurrent_days: 1,
|
216
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
223
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
224
|
+
# newer_noncurrent_versions: 1,
|
217
225
|
# },
|
218
226
|
# noncurrent_version_expiration: {
|
219
227
|
# noncurrent_days: 1,
|
228
|
+
# newer_noncurrent_versions: 1,
|
220
229
|
# },
|
221
230
|
# abort_incomplete_multipart_upload: {
|
222
231
|
# days_after_initiation: 1,
|
@@ -231,15 +240,32 @@ module Aws::S3
|
|
231
240
|
# For requests made using the Amazon Web Services Command Line Interface
|
232
241
|
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
233
242
|
# automatically.
|
243
|
+
# @option options [String] :checksum_algorithm
|
244
|
+
# Indicates the algorithm used to create the checksum for the object
|
245
|
+
# when you use the SDK. This header will not provide any additional
|
246
|
+
# functionality if you don't use the SDK. When you send this header,
|
247
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
248
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
249
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
250
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
251
|
+
#
|
252
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
253
|
+
# `ChecksumAlgorithm` parameter.
|
254
|
+
#
|
255
|
+
#
|
256
|
+
#
|
257
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
234
258
|
# @option options [Types::LifecycleConfiguration] :lifecycle_configuration
|
235
259
|
# @option options [String] :expected_bucket_owner
|
236
|
-
# The account ID of the expected bucket owner. If the
|
237
|
-
#
|
238
|
-
#
|
260
|
+
# The account ID of the expected bucket owner. If the account ID that
|
261
|
+
# you provide does not match the actual owner of the bucket, the request
|
262
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
239
263
|
# @return [EmptyStructure]
|
240
264
|
def put(options = {})
|
241
265
|
options = options.merge(bucket: @bucket_name)
|
242
|
-
resp =
|
266
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
267
|
+
@client.put_bucket_lifecycle(options)
|
268
|
+
end
|
243
269
|
resp.data
|
244
270
|
end
|
245
271
|
|
@@ -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_lifecycle_configuration(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,19 +185,22 @@ module Aws::S3
|
|
181
185
|
# })
|
182
186
|
# @param [Hash] options ({})
|
183
187
|
# @option options [String] :expected_bucket_owner
|
184
|
-
# The account ID of the expected bucket owner. If the
|
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_lifecycle(options)
|
196
|
+
end
|
191
197
|
resp.data
|
192
198
|
end
|
193
199
|
|
194
200
|
# @example Request syntax with placeholder values
|
195
201
|
#
|
196
202
|
# bucket_lifecycle_configuration.put({
|
203
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
197
204
|
# lifecycle_configuration: {
|
198
205
|
# rules: [ # required
|
199
206
|
# {
|
@@ -210,6 +217,8 @@ module Aws::S3
|
|
210
217
|
# key: "ObjectKey", # required
|
211
218
|
# value: "Value", # required
|
212
219
|
# },
|
220
|
+
# object_size_greater_than: 1,
|
221
|
+
# object_size_less_than: 1,
|
213
222
|
# and: {
|
214
223
|
# prefix: "Prefix",
|
215
224
|
# tags: [
|
@@ -218,6 +227,8 @@ module Aws::S3
|
|
218
227
|
# value: "Value", # required
|
219
228
|
# },
|
220
229
|
# ],
|
230
|
+
# object_size_greater_than: 1,
|
231
|
+
# object_size_less_than: 1,
|
221
232
|
# },
|
222
233
|
# },
|
223
234
|
# status: "Enabled", # required, accepts Enabled, Disabled
|
@@ -225,17 +236,19 @@ module Aws::S3
|
|
225
236
|
# {
|
226
237
|
# date: Time.now,
|
227
238
|
# days: 1,
|
228
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
239
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
229
240
|
# },
|
230
241
|
# ],
|
231
242
|
# noncurrent_version_transitions: [
|
232
243
|
# {
|
233
244
|
# noncurrent_days: 1,
|
234
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
245
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
246
|
+
# newer_noncurrent_versions: 1,
|
235
247
|
# },
|
236
248
|
# ],
|
237
249
|
# noncurrent_version_expiration: {
|
238
250
|
# noncurrent_days: 1,
|
251
|
+
# newer_noncurrent_versions: 1,
|
239
252
|
# },
|
240
253
|
# abort_incomplete_multipart_upload: {
|
241
254
|
# days_after_initiation: 1,
|
@@ -246,16 +259,33 @@ module Aws::S3
|
|
246
259
|
# expected_bucket_owner: "AccountId",
|
247
260
|
# })
|
248
261
|
# @param [Hash] options ({})
|
262
|
+
# @option options [String] :checksum_algorithm
|
263
|
+
# Indicates the algorithm used to create the checksum for the object
|
264
|
+
# when you use the SDK. This header will not provide any additional
|
265
|
+
# functionality if you don't use the SDK. When you send this header,
|
266
|
+
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
267
|
+
# header sent. Otherwise, Amazon S3 fails the request with the HTTP
|
268
|
+
# status code `400 Bad Request`. For more information, see [Checking
|
269
|
+
# object integrity][1] in the *Amazon S3 User Guide*.
|
270
|
+
#
|
271
|
+
# If you provide an individual checksum, Amazon S3 ignores any provided
|
272
|
+
# `ChecksumAlgorithm` parameter.
|
273
|
+
#
|
274
|
+
#
|
275
|
+
#
|
276
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
249
277
|
# @option options [Types::BucketLifecycleConfiguration] :lifecycle_configuration
|
250
278
|
# Container for lifecycle rules. You can add as many as 1,000 rules.
|
251
279
|
# @option options [String] :expected_bucket_owner
|
252
|
-
# The account ID of the expected bucket owner. If the
|
253
|
-
#
|
254
|
-
#
|
280
|
+
# The account ID of the expected bucket owner. If the account ID that
|
281
|
+
# you provide does not match the actual owner of the bucket, the request
|
282
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
255
283
|
# @return [EmptyStructure]
|
256
284
|
def put(options = {})
|
257
285
|
options = options.merge(bucket: @bucket_name)
|
258
|
-
resp =
|
286
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
287
|
+
@client.put_bucket_lifecycle_configuration(options)
|
288
|
+
end
|
259
289
|
resp.data
|
260
290
|
end
|
261
291
|
|
@@ -60,7 +60,9 @@ module Aws::S3
|
|
60
60
|
#
|
61
61
|
# @return [self]
|
62
62
|
def load
|
63
|
-
resp =
|
63
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
64
|
+
@client.get_bucket_logging(bucket: @bucket_name)
|
65
|
+
end
|
64
66
|
@data = resp.data
|
65
67
|
self
|
66
68
|
end
|
@@ -175,7 +177,9 @@ module Aws::S3
|
|
175
177
|
:retry
|
176
178
|
end
|
177
179
|
end
|
178
|
-
Aws::
|
180
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
181
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
182
|
+
end
|
179
183
|
end
|
180
184
|
|
181
185
|
# @!group Actions
|
@@ -199,9 +203,17 @@ module Aws::S3
|
|
199
203
|
# },
|
200
204
|
# ],
|
201
205
|
# target_prefix: "TargetPrefix", # required
|
206
|
+
# target_object_key_format: {
|
207
|
+
# simple_prefix: {
|
208
|
+
# },
|
209
|
+
# partitioned_prefix: {
|
210
|
+
# partition_date_source: "EventTime", # accepts EventTime, DeliveryTime
|
211
|
+
# },
|
212
|
+
# },
|
202
213
|
# },
|
203
214
|
# },
|
204
215
|
# content_md5: "ContentMD5",
|
216
|
+
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256
|
205
217
|
# expected_bucket_owner: "AccountId",
|
206
218
|
# })
|
207
219
|
# @param [Hash] options ({})
|
@@ -213,14 +225,31 @@ module Aws::S3
|
|
213
225
|
# For requests made using the Amazon Web Services Command Line Interface
|
214
226
|
# (CLI) or Amazon Web Services SDKs, this field is calculated
|
215
227
|
# automatically.
|
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
|
216
243
|
# @option options [String] :expected_bucket_owner
|
217
|
-
# The account ID of the expected bucket owner. If the
|
218
|
-
#
|
219
|
-
#
|
244
|
+
# The account ID of the expected bucket owner. If the account ID that
|
245
|
+
# you provide does not match the actual owner of the bucket, the request
|
246
|
+
# fails with the HTTP status code `403 Forbidden` (access denied).
|
220
247
|
# @return [EmptyStructure]
|
221
248
|
def put(options = {})
|
222
249
|
options = options.merge(bucket: @bucket_name)
|
223
|
-
resp =
|
250
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
251
|
+
@client.put_bucket_logging(options)
|
252
|
+
end
|
224
253
|
resp.data
|
225
254
|
end
|
226
255
|
|
@@ -55,6 +55,12 @@ module Aws::S3
|
|
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 ID of the expected bucket owner. If the
|
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
|
|