aws-sdk-s3 1.76.0 → 1.80.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad990de2b05716f6116d73be9cdc33d6e1da94fe806c88f8d614242ac10718b5
4
- data.tar.gz: 7a54769829c7c767a0f8dedd8955e62878fd1fcb8edcd013f8de3511ca11c62b
3
+ metadata.gz: bc75a520a6c1b6340eb521f998e67b87e550ac1f42c9d42e231ed05888b1c6c2
4
+ data.tar.gz: 0feaa57eedfcefcbda04ef354e10527bda784dfe6fea4bdbea58a6abc3854c92
5
5
  SHA512:
6
- metadata.gz: ba2bac310409551c19f28d89b70a1f1aa830fac115051a15f565db4ff16eb261471f9fa6c4b27544d1faa1fb5b5604fe20b59c4e5c244faec5444ec4aae49c02
7
- data.tar.gz: 6e13da20ed6caad1c3bcf2025e24ccc074185f18dc115d5f30a3276077fc42c7fc782c62b43e8c8ee7ce1edf8bee47dd2758ab4f3912ebf65b1444311df0d324
6
+ metadata.gz: f50c4622b23112f93d5898b022037cf0150bb5e34760cde431842d556442a582a0a29582c6bd59fd4612b8477ed2a72cb98b334bc3ce1d3628a97585bc5bfe30
7
+ data.tar.gz: f10001ae560ef346a37246bd8c514b070e3be9fce9d99156440769f7dc1752534acffbb887945e71aeeb2b3f2c19be76b533f624e2f3e717521d0faaf31f3600
@@ -65,9 +65,9 @@ require_relative 'aws-sdk-s3/event_streams'
65
65
  #
66
66
  # See {Errors} for more information.
67
67
  #
68
- # @service
68
+ # @!group service
69
69
  module Aws::S3
70
70
 
71
- GEM_VERSION = '1.76.0'
71
+ GEM_VERSION = '1.80.0'
72
72
 
73
73
  end
@@ -222,7 +222,7 @@ module Aws::S3
222
222
  # bucket.create({
223
223
  # acl: "private", # accepts private, public-read, public-read-write, authenticated-read
224
224
  # create_bucket_configuration: {
225
- # location_constraint: "EU", # accepts EU, eu-west-1, us-west-1, us-west-2, ap-south-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1, cn-north-1, eu-central-1
225
+ # 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-southeast-1, ap-southeast-2, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-north-1, eu-south-1, 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
226
226
  # },
227
227
  # grant_full_control: "GrantFullControl",
228
228
  # grant_read: "GrantRead",
@@ -260,8 +260,14 @@ module Aws::S3
260
260
 
261
261
  # @example Request syntax with placeholder values
262
262
  #
263
- # bucket.delete()
263
+ # bucket.delete({
264
+ # expected_bucket_owner: "AccountId",
265
+ # })
264
266
  # @param [Hash] options ({})
267
+ # @option options [String] :expected_bucket_owner
268
+ # The account id of the expected bucket owner. If the bucket is owned by
269
+ # a different account, the request will fail with an HTTP `403 (Access
270
+ # Denied)` error.
265
271
  # @return [EmptyStructure]
266
272
  def delete(options = {})
267
273
  options = options.merge(bucket: @name)
@@ -284,6 +290,7 @@ module Aws::S3
284
290
  # mfa: "MFA",
285
291
  # request_payer: "requester", # accepts requester
286
292
  # bypass_governance_retention: false,
293
+ # expected_bucket_owner: "AccountId",
287
294
  # })
288
295
  # @param [Hash] options ({})
289
296
  # @option options [required, Types::Delete] :delete
@@ -307,6 +314,10 @@ module Aws::S3
307
314
  # Specifies whether you want to delete this object even if it has a
308
315
  # Governance-type Object Lock in place. You must have sufficient
309
316
  # permissions to perform this operation.
317
+ # @option options [String] :expected_bucket_owner
318
+ # The account id of the expected bucket owner. If the bucket is owned by
319
+ # a different account, the request will fail with an HTTP `403 (Access
320
+ # Denied)` error.
310
321
  # @return [Types::DeleteObjectsOutput]
311
322
  def delete_objects(options = {})
312
323
  options = options.merge(bucket: @name)
@@ -348,6 +359,7 @@ module Aws::S3
348
359
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
349
360
  # object_lock_retain_until_date: Time.now,
350
361
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
362
+ # expected_bucket_owner: "AccountId",
351
363
  # })
352
364
  # @param [Hash] options ({})
353
365
  # @option options [String] :acl
@@ -519,6 +531,10 @@ module Aws::S3
519
531
  #
520
532
  #
521
533
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
534
+ # @option options [String] :expected_bucket_owner
535
+ # The account id of the expected bucket owner. If the bucket is owned by
536
+ # a different account, the request will fail with an HTTP `403 (Access
537
+ # Denied)` error.
522
538
  # @return [Object]
523
539
  def put_object(options = {})
524
540
  options = options.merge(bucket: @name)
@@ -580,6 +596,7 @@ module Aws::S3
580
596
  # key_marker: "KeyMarker",
581
597
  # prefix: "Prefix",
582
598
  # upload_id_marker: "UploadIdMarker",
599
+ # expected_bucket_owner: "AccountId",
583
600
  # })
584
601
  # @param [Hash] options ({})
585
602
  # @option options [String] :delimiter
@@ -622,6 +639,10 @@ module Aws::S3
622
639
  # uploads for a key equal to the key-marker might be included in the
623
640
  # list only if they have an upload ID lexicographically greater than the
624
641
  # specified `upload-id-marker`.
642
+ # @option options [String] :expected_bucket_owner
643
+ # The account id of the expected bucket owner. If the bucket is owned by
644
+ # a different account, the request will fail with an HTTP `403 (Access
645
+ # Denied)` error.
625
646
  # @return [MultipartUpload::Collection]
626
647
  def multipart_uploads(options = {})
627
648
  batches = Enumerator.new do |y|
@@ -670,6 +691,7 @@ module Aws::S3
670
691
  # key_marker: "KeyMarker",
671
692
  # prefix: "Prefix",
672
693
  # version_id_marker: "VersionIdMarker",
694
+ # expected_bucket_owner: "AccountId",
673
695
  # })
674
696
  # @param [Hash] options ({})
675
697
  # @option options [String] :delimiter
@@ -697,6 +719,10 @@ module Aws::S3
697
719
  # result under CommonPrefixes.
698
720
  # @option options [String] :version_id_marker
699
721
  # Specifies the object version you want to start listing from.
722
+ # @option options [String] :expected_bucket_owner
723
+ # The account id of the expected bucket owner. If the bucket is owned by
724
+ # a different account, the request will fail with an HTTP `403 (Access
725
+ # Denied)` error.
700
726
  # @return [ObjectVersion::Collection]
701
727
  def object_versions(options = {})
702
728
  batches = Enumerator.new do |y|
@@ -728,6 +754,7 @@ module Aws::S3
728
754
  # fetch_owner: false,
729
755
  # start_after: "StartAfter",
730
756
  # request_payer: "requester", # accepts requester
757
+ # expected_bucket_owner: "AccountId",
731
758
  # })
732
759
  # @param [Hash] options ({})
733
760
  # @option options [String] :delimiter
@@ -748,6 +775,10 @@ module Aws::S3
748
775
  # Confirms that the requester knows that she or he will be charged for
749
776
  # the list objects request in V2 style. Bucket owners need not specify
750
777
  # this parameter in their requests.
778
+ # @option options [String] :expected_bucket_owner
779
+ # The account id of the expected bucket owner. If the bucket is owned by
780
+ # a different account, the request will fail with an HTTP `403 (Access
781
+ # Denied)` error.
751
782
  # @return [ObjectSummary::Collection]
752
783
  def objects(options = {})
753
784
  batches = Enumerator.new do |y|
@@ -208,6 +208,7 @@ module Aws::S3
208
208
  # grant_read_acp: "GrantReadACP",
209
209
  # grant_write: "GrantWrite",
210
210
  # grant_write_acp: "GrantWriteACP",
211
+ # expected_bucket_owner: "AccountId",
211
212
  # })
212
213
  # @param [Hash] options ({})
213
214
  # @option options [String] :acl
@@ -235,6 +236,10 @@ module Aws::S3
235
236
  # bucket.
236
237
  # @option options [String] :grant_write_acp
237
238
  # Allows grantee to write the ACL for the applicable bucket.
239
+ # @option options [String] :expected_bucket_owner
240
+ # The account id of the expected bucket owner. If the bucket is owned by
241
+ # a different account, the request will fail with an HTTP `403 (Access
242
+ # Denied)` error.
238
243
  # @return [EmptyStructure]
239
244
  def put(options = {})
240
245
  options = options.merge(bucket: @bucket_name)
@@ -177,8 +177,14 @@ module Aws::S3
177
177
 
178
178
  # @example Request syntax with placeholder values
179
179
  #
180
- # bucket_cors.delete()
180
+ # bucket_cors.delete({
181
+ # expected_bucket_owner: "AccountId",
182
+ # })
181
183
  # @param [Hash] options ({})
184
+ # @option options [String] :expected_bucket_owner
185
+ # The account id of the expected bucket owner. If the bucket is owned by
186
+ # a different account, the request will fail with an HTTP `403 (Access
187
+ # Denied)` error.
182
188
  # @return [EmptyStructure]
183
189
  def delete(options = {})
184
190
  options = options.merge(bucket: @bucket_name)
@@ -201,6 +207,7 @@ module Aws::S3
201
207
  # ],
202
208
  # },
203
209
  # content_md5: "ContentMD5",
210
+ # expected_bucket_owner: "AccountId",
204
211
  # })
205
212
  # @param [Hash] options ({})
206
213
  # @option options [required, Types::CORSConfiguration] :cors_configuration
@@ -220,6 +227,10 @@ module Aws::S3
220
227
  #
221
228
  #
222
229
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
230
+ # @option options [String] :expected_bucket_owner
231
+ # The account id of the expected bucket owner. If the bucket is owned by
232
+ # a different account, the request will fail with an HTTP `403 (Access
233
+ # Denied)` error.
223
234
  # @return [EmptyStructure]
224
235
  def put(options = {})
225
236
  options = options.merge(bucket: @bucket_name)
@@ -176,8 +176,14 @@ module Aws::S3
176
176
 
177
177
  # @example Request syntax with placeholder values
178
178
  #
179
- # bucket_lifecycle.delete()
179
+ # bucket_lifecycle.delete({
180
+ # expected_bucket_owner: "AccountId",
181
+ # })
180
182
  # @param [Hash] options ({})
183
+ # @option options [String] :expected_bucket_owner
184
+ # The account id of the expected bucket owner. If the bucket is owned by
185
+ # a different account, the request will fail with an HTTP `403 (Access
186
+ # Denied)` error.
181
187
  # @return [EmptyStructure]
182
188
  def delete(options = {})
183
189
  options = options.merge(bucket: @bucket_name)
@@ -218,10 +224,15 @@ module Aws::S3
218
224
  # },
219
225
  # ],
220
226
  # },
227
+ # expected_bucket_owner: "AccountId",
221
228
  # })
222
229
  # @param [Hash] options ({})
223
230
  # @option options [String] :content_md5
224
231
  # @option options [Types::LifecycleConfiguration] :lifecycle_configuration
232
+ # @option options [String] :expected_bucket_owner
233
+ # The account id of the expected bucket owner. If the bucket is owned by
234
+ # a different account, the request will fail with an HTTP `403 (Access
235
+ # Denied)` error.
225
236
  # @return [EmptyStructure]
226
237
  def put(options = {})
227
238
  options = options.merge(bucket: @bucket_name)
@@ -176,8 +176,14 @@ module Aws::S3
176
176
 
177
177
  # @example Request syntax with placeholder values
178
178
  #
179
- # bucket_lifecycle_configuration.delete()
179
+ # bucket_lifecycle_configuration.delete({
180
+ # expected_bucket_owner: "AccountId",
181
+ # })
180
182
  # @param [Hash] options ({})
183
+ # @option options [String] :expected_bucket_owner
184
+ # The account id of the expected bucket owner. If the bucket is owned by
185
+ # a different account, the request will fail with an HTTP `403 (Access
186
+ # Denied)` error.
181
187
  # @return [EmptyStructure]
182
188
  def delete(options = {})
183
189
  options = options.merge(bucket: @bucket_name)
@@ -237,10 +243,15 @@ module Aws::S3
237
243
  # },
238
244
  # ],
239
245
  # },
246
+ # expected_bucket_owner: "AccountId",
240
247
  # })
241
248
  # @param [Hash] options ({})
242
249
  # @option options [Types::BucketLifecycleConfiguration] :lifecycle_configuration
243
250
  # Container for lifecycle rules. You can add as many as 1,000 rules.
251
+ # @option options [String] :expected_bucket_owner
252
+ # The account id of the expected bucket owner. If the bucket is owned by
253
+ # a different account, the request will fail with an HTTP `403 (Access
254
+ # Denied)` error.
244
255
  # @return [EmptyStructure]
245
256
  def put(options = {})
246
257
  options = options.merge(bucket: @bucket_name)
@@ -203,12 +203,17 @@ module Aws::S3
203
203
  # },
204
204
  # },
205
205
  # content_md5: "ContentMD5",
206
+ # expected_bucket_owner: "AccountId",
206
207
  # })
207
208
  # @param [Hash] options ({})
208
209
  # @option options [required, Types::BucketLoggingStatus] :bucket_logging_status
209
210
  # Container for logging status information.
210
211
  # @option options [String] :content_md5
211
212
  # The MD5 hash of the `PutBucketLogging` request body.
213
+ # @option options [String] :expected_bucket_owner
214
+ # The account id of the expected bucket owner. If the bucket is owned by
215
+ # a different account, the request will fail with an HTTP `403 (Access
216
+ # Denied)` error.
212
217
  # @return [EmptyStructure]
213
218
  def put(options = {})
214
219
  options = options.merge(bucket: @bucket_name)
@@ -245,12 +245,17 @@ module Aws::S3
245
245
  # },
246
246
  # ],
247
247
  # },
248
+ # expected_bucket_owner: "AccountId",
248
249
  # })
249
250
  # @param [Hash] options ({})
250
251
  # @option options [required, Types::NotificationConfiguration] :notification_configuration
251
252
  # A container for specifying the notification configuration of the
252
253
  # bucket. If this element is empty, notifications are turned off for the
253
254
  # bucket.
255
+ # @option options [String] :expected_bucket_owner
256
+ # The account id of the expected bucket owner. If the bucket is owned by
257
+ # a different account, the request will fail with an HTTP `403 (Access
258
+ # Denied)` error.
254
259
  # @return [EmptyStructure]
255
260
  def put(options = {})
256
261
  options = options.merge(bucket: @bucket_name)
@@ -176,8 +176,14 @@ module Aws::S3
176
176
 
177
177
  # @example Request syntax with placeholder values
178
178
  #
179
- # bucket_policy.delete()
179
+ # bucket_policy.delete({
180
+ # expected_bucket_owner: "AccountId",
181
+ # })
180
182
  # @param [Hash] options ({})
183
+ # @option options [String] :expected_bucket_owner
184
+ # The account id of the expected bucket owner. If the bucket is owned by
185
+ # a different account, the request will fail with an HTTP `403 (Access
186
+ # Denied)` error.
181
187
  # @return [EmptyStructure]
182
188
  def delete(options = {})
183
189
  options = options.merge(bucket: @bucket_name)
@@ -191,6 +197,7 @@ module Aws::S3
191
197
  # content_md5: "ContentMD5",
192
198
  # confirm_remove_self_bucket_access: false,
193
199
  # policy: "Policy", # required
200
+ # expected_bucket_owner: "AccountId",
194
201
  # })
195
202
  # @param [Hash] options ({})
196
203
  # @option options [String] :content_md5
@@ -200,6 +207,10 @@ module Aws::S3
200
207
  # permissions to change this bucket policy in the future.
201
208
  # @option options [required, String] :policy
202
209
  # The bucket policy as a JSON document.
210
+ # @option options [String] :expected_bucket_owner
211
+ # The account id of the expected bucket owner. If the bucket is owned by
212
+ # a different account, the request will fail with an HTTP `403 (Access
213
+ # Denied)` error.
203
214
  # @return [EmptyStructure]
204
215
  def put(options = {})
205
216
  options = options.merge(bucket: @bucket_name)
@@ -181,6 +181,7 @@ module Aws::S3
181
181
  # request_payment_configuration: { # required
182
182
  # payer: "Requester", # required, accepts Requester, BucketOwner
183
183
  # },
184
+ # expected_bucket_owner: "AccountId",
184
185
  # })
185
186
  # @param [Hash] options ({})
186
187
  # @option options [String] :content_md5
@@ -194,6 +195,10 @@ module Aws::S3
194
195
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
195
196
  # @option options [required, Types::RequestPaymentConfiguration] :request_payment_configuration
196
197
  # Container for Payer.
198
+ # @option options [String] :expected_bucket_owner
199
+ # The account id of the expected bucket owner. If the bucket is owned by
200
+ # a different account, the request will fail with an HTTP `403 (Access
201
+ # Denied)` error.
197
202
  # @return [EmptyStructure]
198
203
  def put(options = {})
199
204
  options = options.merge(bucket: @bucket_name)
@@ -176,8 +176,14 @@ module Aws::S3
176
176
 
177
177
  # @example Request syntax with placeholder values
178
178
  #
179
- # bucket_tagging.delete()
179
+ # bucket_tagging.delete({
180
+ # expected_bucket_owner: "AccountId",
181
+ # })
180
182
  # @param [Hash] options ({})
183
+ # @option options [String] :expected_bucket_owner
184
+ # The account id of the expected bucket owner. If the bucket is owned by
185
+ # a different account, the request will fail with an HTTP `403 (Access
186
+ # Denied)` error.
181
187
  # @return [EmptyStructure]
182
188
  def delete(options = {})
183
189
  options = options.merge(bucket: @bucket_name)
@@ -197,6 +203,7 @@ module Aws::S3
197
203
  # },
198
204
  # ],
199
205
  # },
206
+ # expected_bucket_owner: "AccountId",
200
207
  # })
201
208
  # @param [Hash] options ({})
202
209
  # @option options [String] :content_md5
@@ -209,6 +216,10 @@ module Aws::S3
209
216
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
210
217
  # @option options [required, Types::Tagging] :tagging
211
218
  # Container for the `TagSet` and `Tag` elements.
219
+ # @option options [String] :expected_bucket_owner
220
+ # The account id of the expected bucket owner. If the bucket is owned by
221
+ # a different account, the request will fail with an HTTP `403 (Access
222
+ # Denied)` error.
212
223
  # @return [EmptyStructure]
213
224
  def put(options = {})
214
225
  options = options.merge(bucket: @bucket_name)
@@ -188,6 +188,7 @@ module Aws::S3
188
188
  # bucket_versioning.enable({
189
189
  # content_md5: "ContentMD5",
190
190
  # mfa: "MFA",
191
+ # expected_bucket_owner: "AccountId",
191
192
  # })
192
193
  # @param [Hash] options ({})
193
194
  # @option options [String] :content_md5
@@ -202,6 +203,10 @@ module Aws::S3
202
203
  # @option options [String] :mfa
203
204
  # The concatenation of the authentication device's serial number, a
204
205
  # space, and the value that is displayed on your authentication device.
206
+ # @option options [String] :expected_bucket_owner
207
+ # The account id of the expected bucket owner. If the bucket is owned by
208
+ # a different account, the request will fail with an HTTP `403 (Access
209
+ # Denied)` error.
205
210
  # @return [EmptyStructure]
206
211
  def enable(options = {})
207
212
  options = Aws::Util.deep_merge(options,
@@ -223,6 +228,7 @@ module Aws::S3
223
228
  # mfa_delete: "Enabled", # accepts Enabled, Disabled
224
229
  # status: "Enabled", # accepts Enabled, Suspended
225
230
  # },
231
+ # expected_bucket_owner: "AccountId",
226
232
  # })
227
233
  # @param [Hash] options ({})
228
234
  # @option options [String] :content_md5
@@ -239,6 +245,10 @@ module Aws::S3
239
245
  # space, and the value that is displayed on your authentication device.
240
246
  # @option options [required, Types::VersioningConfiguration] :versioning_configuration
241
247
  # Container for setting the versioning state.
248
+ # @option options [String] :expected_bucket_owner
249
+ # The account id of the expected bucket owner. If the bucket is owned by
250
+ # a different account, the request will fail with an HTTP `403 (Access
251
+ # Denied)` error.
242
252
  # @return [EmptyStructure]
243
253
  def put(options = {})
244
254
  options = options.merge(bucket: @bucket_name)
@@ -251,6 +261,7 @@ module Aws::S3
251
261
  # bucket_versioning.suspend({
252
262
  # content_md5: "ContentMD5",
253
263
  # mfa: "MFA",
264
+ # expected_bucket_owner: "AccountId",
254
265
  # })
255
266
  # @param [Hash] options ({})
256
267
  # @option options [String] :content_md5
@@ -265,6 +276,10 @@ module Aws::S3
265
276
  # @option options [String] :mfa
266
277
  # The concatenation of the authentication device's serial number, a
267
278
  # space, and the value that is displayed on your authentication device.
279
+ # @option options [String] :expected_bucket_owner
280
+ # The account id of the expected bucket owner. If the bucket is owned by
281
+ # a different account, the request will fail with an HTTP `403 (Access
282
+ # Denied)` error.
268
283
  # @return [EmptyStructure]
269
284
  def suspend(options = {})
270
285
  options = Aws::Util.deep_merge(options,
@@ -198,8 +198,14 @@ module Aws::S3
198
198
 
199
199
  # @example Request syntax with placeholder values
200
200
  #
201
- # bucket_website.delete()
201
+ # bucket_website.delete({
202
+ # expected_bucket_owner: "AccountId",
203
+ # })
202
204
  # @param [Hash] options ({})
205
+ # @option options [String] :expected_bucket_owner
206
+ # The account id of the expected bucket owner. If the bucket is owned by
207
+ # a different account, the request will fail with an HTTP `403 (Access
208
+ # Denied)` error.
203
209
  # @return [EmptyStructure]
204
210
  def delete(options = {})
205
211
  options = options.merge(bucket: @bucket_name)
@@ -238,6 +244,7 @@ module Aws::S3
238
244
  # },
239
245
  # ],
240
246
  # },
247
+ # expected_bucket_owner: "AccountId",
241
248
  # })
242
249
  # @param [Hash] options ({})
243
250
  # @option options [String] :content_md5
@@ -250,6 +257,10 @@ module Aws::S3
250
257
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
251
258
  # @option options [required, Types::WebsiteConfiguration] :website_configuration
252
259
  # Container for the request.
260
+ # @option options [String] :expected_bucket_owner
261
+ # The account id of the expected bucket owner. If the bucket is owned by
262
+ # a different account, the request will fail with an HTTP `403 (Access
263
+ # Denied)` error.
253
264
  # @return [EmptyStructure]
254
265
  def put(options = {})
255
266
  options = options.merge(bucket: @bucket_name)