aws-sdk-s3 1.76.0 → 1.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -234,6 +234,7 @@ module Aws::S3
234
234
  # mfa: "MFA",
235
235
  # request_payer: "requester", # accepts requester
236
236
  # bypass_governance_retention: false,
237
+ # expected_bucket_owner: "AccountId",
237
238
  # })
238
239
  # @param [Hash] options ({})
239
240
  # @option options [String] :mfa
@@ -254,6 +255,10 @@ module Aws::S3
254
255
  # @option options [Boolean] :bypass_governance_retention
255
256
  # Indicates whether S3 Object Lock should bypass Governance-mode
256
257
  # restrictions to process this operation.
258
+ # @option options [String] :expected_bucket_owner
259
+ # The account id of the expected bucket owner. If the bucket is owned by
260
+ # a different account, the request will fail with an HTTP `403 (Access
261
+ # Denied)` error.
257
262
  # @return [Types::DeleteObjectOutput]
258
263
  def delete(options = {})
259
264
  options = options.merge(
@@ -284,6 +289,7 @@ module Aws::S3
284
289
  # sse_customer_key_md5: "SSECustomerKeyMD5",
285
290
  # request_payer: "requester", # accepts requester
286
291
  # part_number: 1,
292
+ # expected_bucket_owner: "AccountId",
287
293
  # })
288
294
  # @param [Hash] options ({})
289
295
  # @option options [String] :if_match
@@ -351,6 +357,10 @@ module Aws::S3
351
357
  # between 1 and 10,000. Effectively performs a 'ranged' GET request
352
358
  # for the part specified. Useful for downloading just a part of an
353
359
  # object.
360
+ # @option options [String] :expected_bucket_owner
361
+ # The account id of the expected bucket owner. If the bucket is owned by
362
+ # a different account, the request will fail with an HTTP `403 (Access
363
+ # Denied)` error.
354
364
  # @return [Types::GetObjectOutput]
355
365
  def get(options = {}, &block)
356
366
  options = options.merge(
@@ -375,6 +385,7 @@ module Aws::S3
375
385
  # sse_customer_key_md5: "SSECustomerKeyMD5",
376
386
  # request_payer: "requester", # accepts requester
377
387
  # part_number: 1,
388
+ # expected_bucket_owner: "AccountId",
378
389
  # })
379
390
  # @param [Hash] options ({})
380
391
  # @option options [String] :if_match
@@ -426,6 +437,10 @@ module Aws::S3
426
437
  # between 1 and 10,000. Effectively performs a 'ranged' HEAD request
427
438
  # for the part specified. Useful querying about the size of the part and
428
439
  # the number of parts in this object.
440
+ # @option options [String] :expected_bucket_owner
441
+ # The account id of the expected bucket owner. If the bucket is owned by
442
+ # a different account, the request will fail with an HTTP `403 (Access
443
+ # Denied)` error.
429
444
  # @return [Types::HeadObjectOutput]
430
445
  def head(options = {})
431
446
  options = options.merge(
@@ -504,6 +519,7 @@ module Aws::S3
504
519
  # mfa: "MFA",
505
520
  # request_payer: "requester", # accepts requester
506
521
  # bypass_governance_retention: false,
522
+ # expected_bucket_owner: "AccountId",
507
523
  # })
508
524
  # @param options ({})
509
525
  # @option options [String] :mfa
@@ -525,6 +541,10 @@ module Aws::S3
525
541
  # Specifies whether you want to delete this object even if it has a
526
542
  # Governance-type Object Lock in place. You must have sufficient
527
543
  # permissions to perform this operation.
544
+ # @option options [String] :expected_bucket_owner
545
+ # The account id of the expected bucket owner. If the bucket is owned by
546
+ # a different account, the request will fail with an HTTP `403 (Access
547
+ # Denied)` error.
528
548
  # @return [void]
529
549
  def batch_delete!(options = {})
530
550
  batch_enum.each do |batch|
@@ -237,6 +237,7 @@ module Aws
237
237
  @bucket_region = bucket_region
238
238
  @bucket_name = bucket_name
239
239
  @accelerate = !!options.delete(:use_accelerate_endpoint)
240
+ options.delete(:url) if @accelerate # resource methods pass url
240
241
  @url = options.delete(:url) || bucket_url
241
242
  @fields = {}
242
243
  @key_set = false
@@ -41,7 +41,7 @@ module Aws::S3
41
41
  # acl: "private", # accepts private, public-read, public-read-write, authenticated-read
42
42
  # bucket: "BucketName", # required
43
43
  # create_bucket_configuration: {
44
- # 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
44
+ # 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
45
45
  # },
46
46
  # grant_full_control: "GrantFullControl",
47
47
  # grant_read: "GrantRead",
@@ -61,6 +61,7 @@ module Aws::S3
61
61
  # key: "ObjectKey", # required
62
62
  # upload_id: "MultipartUploadId", # required
63
63
  # request_payer: "requester", # accepts requester
64
+ # expected_bucket_owner: "AccountId",
64
65
  # }
65
66
  #
66
67
  # @!attribute [rw] bucket
@@ -100,13 +101,20 @@ module Aws::S3
100
101
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
101
102
  # @return [String]
102
103
  #
104
+ # @!attribute [rw] expected_bucket_owner
105
+ # The account id of the expected bucket owner. If the bucket is owned
106
+ # by a different account, the request will fail with an HTTP `403
107
+ # (Access Denied)` error.
108
+ # @return [String]
109
+ #
103
110
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUploadRequest AWS API Documentation
104
111
  #
105
112
  class AbortMultipartUploadRequest < Struct.new(
106
113
  :bucket,
107
114
  :key,
108
115
  :upload_id,
109
- :request_payer)
116
+ :request_payer,
117
+ :expected_bucket_owner)
110
118
  SENSITIVE = []
111
119
  include Aws::Structure
112
120
  end
@@ -969,6 +977,7 @@ module Aws::S3
969
977
  # },
970
978
  # upload_id: "MultipartUploadId", # required
971
979
  # request_payer: "requester", # accepts requester
980
+ # expected_bucket_owner: "AccountId",
972
981
  # }
973
982
  #
974
983
  # @!attribute [rw] bucket
@@ -999,6 +1008,12 @@ module Aws::S3
999
1008
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
1000
1009
  # @return [String]
1001
1010
  #
1011
+ # @!attribute [rw] expected_bucket_owner
1012
+ # The account id of the expected bucket owner. If the bucket is owned
1013
+ # by a different account, the request will fail with an HTTP `403
1014
+ # (Access Denied)` error.
1015
+ # @return [String]
1016
+ #
1002
1017
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUploadRequest AWS API Documentation
1003
1018
  #
1004
1019
  class CompleteMultipartUploadRequest < Struct.new(
@@ -1006,7 +1021,8 @@ module Aws::S3
1006
1021
  :key,
1007
1022
  :multipart_upload,
1008
1023
  :upload_id,
1009
- :request_payer)
1024
+ :request_payer,
1025
+ :expected_bucket_owner)
1010
1026
  SENSITIVE = []
1011
1027
  include Aws::Structure
1012
1028
  end
@@ -1229,6 +1245,8 @@ module Aws::S3
1229
1245
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
1230
1246
  # object_lock_retain_until_date: Time.now,
1231
1247
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
1248
+ # expected_bucket_owner: "AccountId",
1249
+ # expected_source_bucket_owner: "AccountId",
1232
1250
  # }
1233
1251
  #
1234
1252
  # @!attribute [rw] acl
@@ -1262,8 +1280,41 @@ module Aws::S3
1262
1280
  # @return [String]
1263
1281
  #
1264
1282
  # @!attribute [rw] copy_source
1265
- # The name of the source bucket and key name of the source object,
1266
- # separated by a slash (/). Must be URL-encoded.
1283
+ # Specifies the source object for the copy operation. You specify the
1284
+ # value in one of two formats, depending on whether you want to access
1285
+ # the source object through an [access point][1]\:
1286
+ #
1287
+ # * For objects not accessed through an access point, specify the name
1288
+ # of the source bucket and the key of the source object, separated
1289
+ # by a slash (/). For example, to copy the object
1290
+ # `reports/january.pdf` from the bucket `awsexamplebucket`, use
1291
+ # `awsexamplebucket/reports/january.pdf`. The value must be URL
1292
+ # encoded.
1293
+ #
1294
+ # * For objects accessed through access points, specify the Amazon
1295
+ # Resource Name (ARN) of the object as accessed through the access
1296
+ # point, in the format
1297
+ # `arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key>`.
1298
+ # For example, to copy the object `reports/january.pdf` through
1299
+ # access point `my-access-point` owned by account `123456789012` in
1300
+ # Region `us-west-2`, use the URL encoding of
1301
+ # `arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf`.
1302
+ # The value must be URL encoded.
1303
+ #
1304
+ # <note markdown="1"> Amazon S3 supports copy operations using access points only when
1305
+ # the source and destination buckets are in the same AWS Region.
1306
+ #
1307
+ # </note>
1308
+ #
1309
+ # To copy a specific version of an object, append
1310
+ # `?versionId=<version-id>` to the value (for example,
1311
+ # `awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893`).
1312
+ # If you don't specify a version ID, Amazon S3 copies the latest
1313
+ # version of the source object.
1314
+ #
1315
+ #
1316
+ #
1317
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html
1267
1318
  # @return [String]
1268
1319
  #
1269
1320
  # @!attribute [rw] copy_source_if_match
@@ -1427,6 +1478,18 @@ module Aws::S3
1427
1478
  # object.
1428
1479
  # @return [String]
1429
1480
  #
1481
+ # @!attribute [rw] expected_bucket_owner
1482
+ # The account id of the expected destination bucket owner. If the
1483
+ # destination bucket is owned by a different account, the request will
1484
+ # fail with an HTTP `403 (Access Denied)` error.
1485
+ # @return [String]
1486
+ #
1487
+ # @!attribute [rw] expected_source_bucket_owner
1488
+ # The account id of the expected source bucket owner. If the source
1489
+ # bucket is owned by a different account, the request will fail with
1490
+ # an HTTP `403 (Access Denied)` error.
1491
+ # @return [String]
1492
+ #
1430
1493
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObjectRequest AWS API Documentation
1431
1494
  #
1432
1495
  class CopyObjectRequest < Struct.new(
@@ -1466,7 +1529,9 @@ module Aws::S3
1466
1529
  :tagging,
1467
1530
  :object_lock_mode,
1468
1531
  :object_lock_retain_until_date,
1469
- :object_lock_legal_hold_status)
1532
+ :object_lock_legal_hold_status,
1533
+ :expected_bucket_owner,
1534
+ :expected_source_bucket_owner)
1470
1535
  SENSITIVE = [:sse_customer_key, :ssekms_key_id, :ssekms_encryption_context, :copy_source_sse_customer_key]
1471
1536
  include Aws::Structure
1472
1537
  end
@@ -1517,7 +1582,7 @@ module Aws::S3
1517
1582
  # data as a hash:
1518
1583
  #
1519
1584
  # {
1520
- # 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
1585
+ # 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
1521
1586
  # }
1522
1587
  #
1523
1588
  # @!attribute [rw] location_constraint
@@ -1555,7 +1620,7 @@ module Aws::S3
1555
1620
  # acl: "private", # accepts private, public-read, public-read-write, authenticated-read
1556
1621
  # bucket: "BucketName", # required
1557
1622
  # create_bucket_configuration: {
1558
- # 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
1623
+ # 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
1559
1624
  # },
1560
1625
  # grant_full_control: "GrantFullControl",
1561
1626
  # grant_read: "GrantRead",
@@ -1756,6 +1821,7 @@ module Aws::S3
1756
1821
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
1757
1822
  # object_lock_retain_until_date: Time.now,
1758
1823
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
1824
+ # expected_bucket_owner: "AccountId",
1759
1825
  # }
1760
1826
  #
1761
1827
  # @!attribute [rw] acl
@@ -1903,6 +1969,12 @@ module Aws::S3
1903
1969
  # object.
1904
1970
  # @return [String]
1905
1971
  #
1972
+ # @!attribute [rw] expected_bucket_owner
1973
+ # The account id of the expected bucket owner. If the bucket is owned
1974
+ # by a different account, the request will fail with an HTTP `403
1975
+ # (Access Denied)` error.
1976
+ # @return [String]
1977
+ #
1906
1978
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUploadRequest AWS API Documentation
1907
1979
  #
1908
1980
  class CreateMultipartUploadRequest < Struct.new(
@@ -1932,7 +2004,8 @@ module Aws::S3
1932
2004
  :tagging,
1933
2005
  :object_lock_mode,
1934
2006
  :object_lock_retain_until_date,
1935
- :object_lock_legal_hold_status)
2007
+ :object_lock_legal_hold_status,
2008
+ :expected_bucket_owner)
1936
2009
  SENSITIVE = [:sse_customer_key, :ssekms_key_id, :ssekms_encryption_context]
1937
2010
  include Aws::Structure
1938
2011
  end
@@ -2013,6 +2086,7 @@ module Aws::S3
2013
2086
  # {
2014
2087
  # bucket: "BucketName", # required
2015
2088
  # id: "AnalyticsId", # required
2089
+ # expected_bucket_owner: "AccountId",
2016
2090
  # }
2017
2091
  #
2018
2092
  # @!attribute [rw] bucket
@@ -2024,11 +2098,18 @@ module Aws::S3
2024
2098
  # The ID that identifies the analytics configuration.
2025
2099
  # @return [String]
2026
2100
  #
2101
+ # @!attribute [rw] expected_bucket_owner
2102
+ # The account id of the expected bucket owner. If the bucket is owned
2103
+ # by a different account, the request will fail with an HTTP `403
2104
+ # (Access Denied)` error.
2105
+ # @return [String]
2106
+ #
2027
2107
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfigurationRequest AWS API Documentation
2028
2108
  #
2029
2109
  class DeleteBucketAnalyticsConfigurationRequest < Struct.new(
2030
2110
  :bucket,
2031
- :id)
2111
+ :id,
2112
+ :expected_bucket_owner)
2032
2113
  SENSITIVE = []
2033
2114
  include Aws::Structure
2034
2115
  end
@@ -2038,16 +2119,24 @@ module Aws::S3
2038
2119
  #
2039
2120
  # {
2040
2121
  # bucket: "BucketName", # required
2122
+ # expected_bucket_owner: "AccountId",
2041
2123
  # }
2042
2124
  #
2043
2125
  # @!attribute [rw] bucket
2044
2126
  # Specifies the bucket whose `cors` configuration is being deleted.
2045
2127
  # @return [String]
2046
2128
  #
2129
+ # @!attribute [rw] expected_bucket_owner
2130
+ # The account id of the expected bucket owner. If the bucket is owned
2131
+ # by a different account, the request will fail with an HTTP `403
2132
+ # (Access Denied)` error.
2133
+ # @return [String]
2134
+ #
2047
2135
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCorsRequest AWS API Documentation
2048
2136
  #
2049
2137
  class DeleteBucketCorsRequest < Struct.new(
2050
- :bucket)
2138
+ :bucket,
2139
+ :expected_bucket_owner)
2051
2140
  SENSITIVE = []
2052
2141
  include Aws::Structure
2053
2142
  end
@@ -2057,6 +2146,7 @@ module Aws::S3
2057
2146
  #
2058
2147
  # {
2059
2148
  # bucket: "BucketName", # required
2149
+ # expected_bucket_owner: "AccountId",
2060
2150
  # }
2061
2151
  #
2062
2152
  # @!attribute [rw] bucket
@@ -2064,10 +2154,17 @@ module Aws::S3
2064
2154
  # configuration to delete.
2065
2155
  # @return [String]
2066
2156
  #
2157
+ # @!attribute [rw] expected_bucket_owner
2158
+ # The account id of the expected bucket owner. If the bucket is owned
2159
+ # by a different account, the request will fail with an HTTP `403
2160
+ # (Access Denied)` error.
2161
+ # @return [String]
2162
+ #
2067
2163
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketEncryptionRequest AWS API Documentation
2068
2164
  #
2069
2165
  class DeleteBucketEncryptionRequest < Struct.new(
2070
- :bucket)
2166
+ :bucket,
2167
+ :expected_bucket_owner)
2071
2168
  SENSITIVE = []
2072
2169
  include Aws::Structure
2073
2170
  end
@@ -2078,6 +2175,7 @@ module Aws::S3
2078
2175
  # {
2079
2176
  # bucket: "BucketName", # required
2080
2177
  # id: "InventoryId", # required
2178
+ # expected_bucket_owner: "AccountId",
2081
2179
  # }
2082
2180
  #
2083
2181
  # @!attribute [rw] bucket
@@ -2089,11 +2187,18 @@ module Aws::S3
2089
2187
  # The ID used to identify the inventory configuration.
2090
2188
  # @return [String]
2091
2189
  #
2190
+ # @!attribute [rw] expected_bucket_owner
2191
+ # The account id of the expected bucket owner. If the bucket is owned
2192
+ # by a different account, the request will fail with an HTTP `403
2193
+ # (Access Denied)` error.
2194
+ # @return [String]
2195
+ #
2092
2196
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfigurationRequest AWS API Documentation
2093
2197
  #
2094
2198
  class DeleteBucketInventoryConfigurationRequest < Struct.new(
2095
2199
  :bucket,
2096
- :id)
2200
+ :id,
2201
+ :expected_bucket_owner)
2097
2202
  SENSITIVE = []
2098
2203
  include Aws::Structure
2099
2204
  end
@@ -2103,16 +2208,24 @@ module Aws::S3
2103
2208
  #
2104
2209
  # {
2105
2210
  # bucket: "BucketName", # required
2211
+ # expected_bucket_owner: "AccountId",
2106
2212
  # }
2107
2213
  #
2108
2214
  # @!attribute [rw] bucket
2109
2215
  # The bucket name of the lifecycle to delete.
2110
2216
  # @return [String]
2111
2217
  #
2218
+ # @!attribute [rw] expected_bucket_owner
2219
+ # The account id of the expected bucket owner. If the bucket is owned
2220
+ # by a different account, the request will fail with an HTTP `403
2221
+ # (Access Denied)` error.
2222
+ # @return [String]
2223
+ #
2112
2224
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycleRequest AWS API Documentation
2113
2225
  #
2114
2226
  class DeleteBucketLifecycleRequest < Struct.new(
2115
- :bucket)
2227
+ :bucket,
2228
+ :expected_bucket_owner)
2116
2229
  SENSITIVE = []
2117
2230
  include Aws::Structure
2118
2231
  end
@@ -2123,6 +2236,7 @@ module Aws::S3
2123
2236
  # {
2124
2237
  # bucket: "BucketName", # required
2125
2238
  # id: "MetricsId", # required
2239
+ # expected_bucket_owner: "AccountId",
2126
2240
  # }
2127
2241
  #
2128
2242
  # @!attribute [rw] bucket
@@ -2134,11 +2248,18 @@ module Aws::S3
2134
2248
  # The ID used to identify the metrics configuration.
2135
2249
  # @return [String]
2136
2250
  #
2251
+ # @!attribute [rw] expected_bucket_owner
2252
+ # The account id of the expected bucket owner. If the bucket is owned
2253
+ # by a different account, the request will fail with an HTTP `403
2254
+ # (Access Denied)` error.
2255
+ # @return [String]
2256
+ #
2137
2257
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfigurationRequest AWS API Documentation
2138
2258
  #
2139
2259
  class DeleteBucketMetricsConfigurationRequest < Struct.new(
2140
2260
  :bucket,
2141
- :id)
2261
+ :id,
2262
+ :expected_bucket_owner)
2142
2263
  SENSITIVE = []
2143
2264
  include Aws::Structure
2144
2265
  end
@@ -2148,16 +2269,24 @@ module Aws::S3
2148
2269
  #
2149
2270
  # {
2150
2271
  # bucket: "BucketName", # required
2272
+ # expected_bucket_owner: "AccountId",
2151
2273
  # }
2152
2274
  #
2153
2275
  # @!attribute [rw] bucket
2154
2276
  # The bucket name.
2155
2277
  # @return [String]
2156
2278
  #
2279
+ # @!attribute [rw] expected_bucket_owner
2280
+ # The account id of the expected bucket owner. If the bucket is owned
2281
+ # by a different account, the request will fail with an HTTP `403
2282
+ # (Access Denied)` error.
2283
+ # @return [String]
2284
+ #
2157
2285
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicyRequest AWS API Documentation
2158
2286
  #
2159
2287
  class DeleteBucketPolicyRequest < Struct.new(
2160
- :bucket)
2288
+ :bucket,
2289
+ :expected_bucket_owner)
2161
2290
  SENSITIVE = []
2162
2291
  include Aws::Structure
2163
2292
  end
@@ -2167,16 +2296,24 @@ module Aws::S3
2167
2296
  #
2168
2297
  # {
2169
2298
  # bucket: "BucketName", # required
2299
+ # expected_bucket_owner: "AccountId",
2170
2300
  # }
2171
2301
  #
2172
2302
  # @!attribute [rw] bucket
2173
2303
  # The bucket name.
2174
2304
  # @return [String]
2175
2305
  #
2306
+ # @!attribute [rw] expected_bucket_owner
2307
+ # The account id of the expected bucket owner. If the bucket is owned
2308
+ # by a different account, the request will fail with an HTTP `403
2309
+ # (Access Denied)` error.
2310
+ # @return [String]
2311
+ #
2176
2312
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplicationRequest AWS API Documentation
2177
2313
  #
2178
2314
  class DeleteBucketReplicationRequest < Struct.new(
2179
- :bucket)
2315
+ :bucket,
2316
+ :expected_bucket_owner)
2180
2317
  SENSITIVE = []
2181
2318
  include Aws::Structure
2182
2319
  end
@@ -2186,16 +2323,24 @@ module Aws::S3
2186
2323
  #
2187
2324
  # {
2188
2325
  # bucket: "BucketName", # required
2326
+ # expected_bucket_owner: "AccountId",
2189
2327
  # }
2190
2328
  #
2191
2329
  # @!attribute [rw] bucket
2192
2330
  # Specifies the bucket being deleted.
2193
2331
  # @return [String]
2194
2332
  #
2333
+ # @!attribute [rw] expected_bucket_owner
2334
+ # The account id of the expected bucket owner. If the bucket is owned
2335
+ # by a different account, the request will fail with an HTTP `403
2336
+ # (Access Denied)` error.
2337
+ # @return [String]
2338
+ #
2195
2339
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketRequest AWS API Documentation
2196
2340
  #
2197
2341
  class DeleteBucketRequest < Struct.new(
2198
- :bucket)
2342
+ :bucket,
2343
+ :expected_bucket_owner)
2199
2344
  SENSITIVE = []
2200
2345
  include Aws::Structure
2201
2346
  end
@@ -2205,16 +2350,24 @@ module Aws::S3
2205
2350
  #
2206
2351
  # {
2207
2352
  # bucket: "BucketName", # required
2353
+ # expected_bucket_owner: "AccountId",
2208
2354
  # }
2209
2355
  #
2210
2356
  # @!attribute [rw] bucket
2211
2357
  # The bucket that has the tag set to be removed.
2212
2358
  # @return [String]
2213
2359
  #
2360
+ # @!attribute [rw] expected_bucket_owner
2361
+ # The account id of the expected bucket owner. If the bucket is owned
2362
+ # by a different account, the request will fail with an HTTP `403
2363
+ # (Access Denied)` error.
2364
+ # @return [String]
2365
+ #
2214
2366
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTaggingRequest AWS API Documentation
2215
2367
  #
2216
2368
  class DeleteBucketTaggingRequest < Struct.new(
2217
- :bucket)
2369
+ :bucket,
2370
+ :expected_bucket_owner)
2218
2371
  SENSITIVE = []
2219
2372
  include Aws::Structure
2220
2373
  end
@@ -2224,6 +2377,7 @@ module Aws::S3
2224
2377
  #
2225
2378
  # {
2226
2379
  # bucket: "BucketName", # required
2380
+ # expected_bucket_owner: "AccountId",
2227
2381
  # }
2228
2382
  #
2229
2383
  # @!attribute [rw] bucket
@@ -2231,10 +2385,17 @@ module Aws::S3
2231
2385
  # configuration.
2232
2386
  # @return [String]
2233
2387
  #
2388
+ # @!attribute [rw] expected_bucket_owner
2389
+ # The account id of the expected bucket owner. If the bucket is owned
2390
+ # by a different account, the request will fail with an HTTP `403
2391
+ # (Access Denied)` error.
2392
+ # @return [String]
2393
+ #
2234
2394
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsiteRequest AWS API Documentation
2235
2395
  #
2236
2396
  class DeleteBucketWebsiteRequest < Struct.new(
2237
- :bucket)
2397
+ :bucket,
2398
+ :expected_bucket_owner)
2238
2399
  SENSITIVE = []
2239
2400
  include Aws::Structure
2240
2401
  end
@@ -2353,6 +2514,7 @@ module Aws::S3
2353
2514
  # version_id: "ObjectVersionId",
2354
2515
  # request_payer: "requester", # accepts requester
2355
2516
  # bypass_governance_retention: false,
2517
+ # expected_bucket_owner: "AccountId",
2356
2518
  # }
2357
2519
  #
2358
2520
  # @!attribute [rw] bucket
@@ -2404,6 +2566,12 @@ module Aws::S3
2404
2566
  # restrictions to process this operation.
2405
2567
  # @return [Boolean]
2406
2568
  #
2569
+ # @!attribute [rw] expected_bucket_owner
2570
+ # The account id of the expected bucket owner. If the bucket is owned
2571
+ # by a different account, the request will fail with an HTTP `403
2572
+ # (Access Denied)` error.
2573
+ # @return [String]
2574
+ #
2407
2575
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectRequest AWS API Documentation
2408
2576
  #
2409
2577
  class DeleteObjectRequest < Struct.new(
@@ -2412,7 +2580,8 @@ module Aws::S3
2412
2580
  :mfa,
2413
2581
  :version_id,
2414
2582
  :request_payer,
2415
- :bypass_governance_retention)
2583
+ :bypass_governance_retention,
2584
+ :expected_bucket_owner)
2416
2585
  SENSITIVE = []
2417
2586
  include Aws::Structure
2418
2587
  end
@@ -2436,6 +2605,7 @@ module Aws::S3
2436
2605
  # bucket: "BucketName", # required
2437
2606
  # key: "ObjectKey", # required
2438
2607
  # version_id: "ObjectVersionId",
2608
+ # expected_bucket_owner: "AccountId",
2439
2609
  # }
2440
2610
  #
2441
2611
  # @!attribute [rw] bucket
@@ -2464,12 +2634,19 @@ module Aws::S3
2464
2634
  # The versionId of the object that the tag-set will be removed from.
2465
2635
  # @return [String]
2466
2636
  #
2637
+ # @!attribute [rw] expected_bucket_owner
2638
+ # The account id of the expected bucket owner. If the bucket is owned
2639
+ # by a different account, the request will fail with an HTTP `403
2640
+ # (Access Denied)` error.
2641
+ # @return [String]
2642
+ #
2467
2643
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTaggingRequest AWS API Documentation
2468
2644
  #
2469
2645
  class DeleteObjectTaggingRequest < Struct.new(
2470
2646
  :bucket,
2471
2647
  :key,
2472
- :version_id)
2648
+ :version_id,
2649
+ :expected_bucket_owner)
2473
2650
  SENSITIVE = []
2474
2651
  include Aws::Structure
2475
2652
  end
@@ -2516,6 +2693,7 @@ module Aws::S3
2516
2693
  # mfa: "MFA",
2517
2694
  # request_payer: "requester", # accepts requester
2518
2695
  # bypass_governance_retention: false,
2696
+ # expected_bucket_owner: "AccountId",
2519
2697
  # }
2520
2698
  #
2521
2699
  # @!attribute [rw] bucket
@@ -2564,6 +2742,12 @@ module Aws::S3
2564
2742
  # permissions to perform this operation.
2565
2743
  # @return [Boolean]
2566
2744
  #
2745
+ # @!attribute [rw] expected_bucket_owner
2746
+ # The account id of the expected bucket owner. If the bucket is owned
2747
+ # by a different account, the request will fail with an HTTP `403
2748
+ # (Access Denied)` error.
2749
+ # @return [String]
2750
+ #
2567
2751
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectsRequest AWS API Documentation
2568
2752
  #
2569
2753
  class DeleteObjectsRequest < Struct.new(
@@ -2571,7 +2755,8 @@ module Aws::S3
2571
2755
  :delete,
2572
2756
  :mfa,
2573
2757
  :request_payer,
2574
- :bypass_governance_retention)
2758
+ :bypass_governance_retention,
2759
+ :expected_bucket_owner)
2575
2760
  SENSITIVE = []
2576
2761
  include Aws::Structure
2577
2762
  end
@@ -2581,6 +2766,7 @@ module Aws::S3
2581
2766
  #
2582
2767
  # {
2583
2768
  # bucket: "BucketName", # required
2769
+ # expected_bucket_owner: "AccountId",
2584
2770
  # }
2585
2771
  #
2586
2772
  # @!attribute [rw] bucket
@@ -2588,10 +2774,17 @@ module Aws::S3
2588
2774
  # want to delete.
2589
2775
  # @return [String]
2590
2776
  #
2777
+ # @!attribute [rw] expected_bucket_owner
2778
+ # The account id of the expected bucket owner. If the bucket is owned
2779
+ # by a different account, the request will fail with an HTTP `403
2780
+ # (Access Denied)` error.
2781
+ # @return [String]
2782
+ #
2591
2783
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeletePublicAccessBlockRequest AWS API Documentation
2592
2784
  #
2593
2785
  class DeletePublicAccessBlockRequest < Struct.new(
2594
- :bucket)
2786
+ :bucket,
2787
+ :expected_bucket_owner)
2595
2788
  SENSITIVE = []
2596
2789
  include Aws::Structure
2597
2790
  end
@@ -3750,6 +3943,7 @@ module Aws::S3
3750
3943
  #
3751
3944
  # {
3752
3945
  # bucket: "BucketName", # required
3946
+ # expected_bucket_owner: "AccountId",
3753
3947
  # }
3754
3948
  #
3755
3949
  # @!attribute [rw] bucket
@@ -3757,10 +3951,17 @@ module Aws::S3
3757
3951
  # retrieved.
3758
3952
  # @return [String]
3759
3953
  #
3954
+ # @!attribute [rw] expected_bucket_owner
3955
+ # The account id of the expected bucket owner. If the bucket is owned
3956
+ # by a different account, the request will fail with an HTTP `403
3957
+ # (Access Denied)` error.
3958
+ # @return [String]
3959
+ #
3760
3960
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfigurationRequest AWS API Documentation
3761
3961
  #
3762
3962
  class GetBucketAccelerateConfigurationRequest < Struct.new(
3763
- :bucket)
3963
+ :bucket,
3964
+ :expected_bucket_owner)
3764
3965
  SENSITIVE = []
3765
3966
  include Aws::Structure
3766
3967
  end
@@ -3787,16 +3988,24 @@ module Aws::S3
3787
3988
  #
3788
3989
  # {
3789
3990
  # bucket: "BucketName", # required
3991
+ # expected_bucket_owner: "AccountId",
3790
3992
  # }
3791
3993
  #
3792
3994
  # @!attribute [rw] bucket
3793
3995
  # Specifies the S3 bucket whose ACL is being requested.
3794
3996
  # @return [String]
3795
3997
  #
3998
+ # @!attribute [rw] expected_bucket_owner
3999
+ # The account id of the expected bucket owner. If the bucket is owned
4000
+ # by a different account, the request will fail with an HTTP `403
4001
+ # (Access Denied)` error.
4002
+ # @return [String]
4003
+ #
3796
4004
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAclRequest AWS API Documentation
3797
4005
  #
3798
4006
  class GetBucketAclRequest < Struct.new(
3799
- :bucket)
4007
+ :bucket,
4008
+ :expected_bucket_owner)
3800
4009
  SENSITIVE = []
3801
4010
  include Aws::Structure
3802
4011
  end
@@ -3819,6 +4028,7 @@ module Aws::S3
3819
4028
  # {
3820
4029
  # bucket: "BucketName", # required
3821
4030
  # id: "AnalyticsId", # required
4031
+ # expected_bucket_owner: "AccountId",
3822
4032
  # }
3823
4033
  #
3824
4034
  # @!attribute [rw] bucket
@@ -3830,11 +4040,18 @@ module Aws::S3
3830
4040
  # The ID that identifies the analytics configuration.
3831
4041
  # @return [String]
3832
4042
  #
4043
+ # @!attribute [rw] expected_bucket_owner
4044
+ # The account id of the expected bucket owner. If the bucket is owned
4045
+ # by a different account, the request will fail with an HTTP `403
4046
+ # (Access Denied)` error.
4047
+ # @return [String]
4048
+ #
3833
4049
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfigurationRequest AWS API Documentation
3834
4050
  #
3835
4051
  class GetBucketAnalyticsConfigurationRequest < Struct.new(
3836
4052
  :bucket,
3837
- :id)
4053
+ :id,
4054
+ :expected_bucket_owner)
3838
4055
  SENSITIVE = []
3839
4056
  include Aws::Structure
3840
4057
  end
@@ -3857,16 +4074,24 @@ module Aws::S3
3857
4074
  #
3858
4075
  # {
3859
4076
  # bucket: "BucketName", # required
4077
+ # expected_bucket_owner: "AccountId",
3860
4078
  # }
3861
4079
  #
3862
4080
  # @!attribute [rw] bucket
3863
4081
  # The bucket name for which to get the cors configuration.
3864
4082
  # @return [String]
3865
4083
  #
4084
+ # @!attribute [rw] expected_bucket_owner
4085
+ # The account id of the expected bucket owner. If the bucket is owned
4086
+ # by a different account, the request will fail with an HTTP `403
4087
+ # (Access Denied)` error.
4088
+ # @return [String]
4089
+ #
3866
4090
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCorsRequest AWS API Documentation
3867
4091
  #
3868
4092
  class GetBucketCorsRequest < Struct.new(
3869
- :bucket)
4093
+ :bucket,
4094
+ :expected_bucket_owner)
3870
4095
  SENSITIVE = []
3871
4096
  include Aws::Structure
3872
4097
  end
@@ -3888,6 +4113,7 @@ module Aws::S3
3888
4113
  #
3889
4114
  # {
3890
4115
  # bucket: "BucketName", # required
4116
+ # expected_bucket_owner: "AccountId",
3891
4117
  # }
3892
4118
  #
3893
4119
  # @!attribute [rw] bucket
@@ -3895,10 +4121,17 @@ module Aws::S3
3895
4121
  # configuration is retrieved.
3896
4122
  # @return [String]
3897
4123
  #
4124
+ # @!attribute [rw] expected_bucket_owner
4125
+ # The account id of the expected bucket owner. If the bucket is owned
4126
+ # by a different account, the request will fail with an HTTP `403
4127
+ # (Access Denied)` error.
4128
+ # @return [String]
4129
+ #
3898
4130
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketEncryptionRequest AWS API Documentation
3899
4131
  #
3900
4132
  class GetBucketEncryptionRequest < Struct.new(
3901
- :bucket)
4133
+ :bucket,
4134
+ :expected_bucket_owner)
3902
4135
  SENSITIVE = []
3903
4136
  include Aws::Structure
3904
4137
  end
@@ -3921,6 +4154,7 @@ module Aws::S3
3921
4154
  # {
3922
4155
  # bucket: "BucketName", # required
3923
4156
  # id: "InventoryId", # required
4157
+ # expected_bucket_owner: "AccountId",
3924
4158
  # }
3925
4159
  #
3926
4160
  # @!attribute [rw] bucket
@@ -3932,11 +4166,18 @@ module Aws::S3
3932
4166
  # The ID used to identify the inventory configuration.
3933
4167
  # @return [String]
3934
4168
  #
4169
+ # @!attribute [rw] expected_bucket_owner
4170
+ # The account id of the expected bucket owner. If the bucket is owned
4171
+ # by a different account, the request will fail with an HTTP `403
4172
+ # (Access Denied)` error.
4173
+ # @return [String]
4174
+ #
3935
4175
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfigurationRequest AWS API Documentation
3936
4176
  #
3937
4177
  class GetBucketInventoryConfigurationRequest < Struct.new(
3938
4178
  :bucket,
3939
- :id)
4179
+ :id,
4180
+ :expected_bucket_owner)
3940
4181
  SENSITIVE = []
3941
4182
  include Aws::Structure
3942
4183
  end
@@ -3958,16 +4199,24 @@ module Aws::S3
3958
4199
  #
3959
4200
  # {
3960
4201
  # bucket: "BucketName", # required
4202
+ # expected_bucket_owner: "AccountId",
3961
4203
  # }
3962
4204
  #
3963
4205
  # @!attribute [rw] bucket
3964
4206
  # The name of the bucket for which to get the lifecycle information.
3965
4207
  # @return [String]
3966
4208
  #
4209
+ # @!attribute [rw] expected_bucket_owner
4210
+ # The account id of the expected bucket owner. If the bucket is owned
4211
+ # by a different account, the request will fail with an HTTP `403
4212
+ # (Access Denied)` error.
4213
+ # @return [String]
4214
+ #
3967
4215
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfigurationRequest AWS API Documentation
3968
4216
  #
3969
4217
  class GetBucketLifecycleConfigurationRequest < Struct.new(
3970
- :bucket)
4218
+ :bucket,
4219
+ :expected_bucket_owner)
3971
4220
  SENSITIVE = []
3972
4221
  include Aws::Structure
3973
4222
  end
@@ -3989,16 +4238,24 @@ module Aws::S3
3989
4238
  #
3990
4239
  # {
3991
4240
  # bucket: "BucketName", # required
4241
+ # expected_bucket_owner: "AccountId",
3992
4242
  # }
3993
4243
  #
3994
4244
  # @!attribute [rw] bucket
3995
4245
  # The name of the bucket for which to get the lifecycle information.
3996
4246
  # @return [String]
3997
4247
  #
4248
+ # @!attribute [rw] expected_bucket_owner
4249
+ # The account id of the expected bucket owner. If the bucket is owned
4250
+ # by a different account, the request will fail with an HTTP `403
4251
+ # (Access Denied)` error.
4252
+ # @return [String]
4253
+ #
3998
4254
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleRequest AWS API Documentation
3999
4255
  #
4000
4256
  class GetBucketLifecycleRequest < Struct.new(
4001
- :bucket)
4257
+ :bucket,
4258
+ :expected_bucket_owner)
4002
4259
  SENSITIVE = []
4003
4260
  include Aws::Structure
4004
4261
  end
@@ -4027,16 +4284,24 @@ module Aws::S3
4027
4284
  #
4028
4285
  # {
4029
4286
  # bucket: "BucketName", # required
4287
+ # expected_bucket_owner: "AccountId",
4030
4288
  # }
4031
4289
  #
4032
4290
  # @!attribute [rw] bucket
4033
4291
  # The name of the bucket for which to get the location.
4034
4292
  # @return [String]
4035
4293
  #
4294
+ # @!attribute [rw] expected_bucket_owner
4295
+ # The account id of the expected bucket owner. If the bucket is owned
4296
+ # by a different account, the request will fail with an HTTP `403
4297
+ # (Access Denied)` error.
4298
+ # @return [String]
4299
+ #
4036
4300
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocationRequest AWS API Documentation
4037
4301
  #
4038
4302
  class GetBucketLocationRequest < Struct.new(
4039
- :bucket)
4303
+ :bucket,
4304
+ :expected_bucket_owner)
4040
4305
  SENSITIVE = []
4041
4306
  include Aws::Structure
4042
4307
  end
@@ -4065,16 +4330,24 @@ module Aws::S3
4065
4330
  #
4066
4331
  # {
4067
4332
  # bucket: "BucketName", # required
4333
+ # expected_bucket_owner: "AccountId",
4068
4334
  # }
4069
4335
  #
4070
4336
  # @!attribute [rw] bucket
4071
4337
  # The bucket name for which to get the logging information.
4072
4338
  # @return [String]
4073
4339
  #
4340
+ # @!attribute [rw] expected_bucket_owner
4341
+ # The account id of the expected bucket owner. If the bucket is owned
4342
+ # by a different account, the request will fail with an HTTP `403
4343
+ # (Access Denied)` error.
4344
+ # @return [String]
4345
+ #
4074
4346
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLoggingRequest AWS API Documentation
4075
4347
  #
4076
4348
  class GetBucketLoggingRequest < Struct.new(
4077
- :bucket)
4349
+ :bucket,
4350
+ :expected_bucket_owner)
4078
4351
  SENSITIVE = []
4079
4352
  include Aws::Structure
4080
4353
  end
@@ -4097,6 +4370,7 @@ module Aws::S3
4097
4370
  # {
4098
4371
  # bucket: "BucketName", # required
4099
4372
  # id: "MetricsId", # required
4373
+ # expected_bucket_owner: "AccountId",
4100
4374
  # }
4101
4375
  #
4102
4376
  # @!attribute [rw] bucket
@@ -4108,11 +4382,18 @@ module Aws::S3
4108
4382
  # The ID used to identify the metrics configuration.
4109
4383
  # @return [String]
4110
4384
  #
4385
+ # @!attribute [rw] expected_bucket_owner
4386
+ # The account id of the expected bucket owner. If the bucket is owned
4387
+ # by a different account, the request will fail with an HTTP `403
4388
+ # (Access Denied)` error.
4389
+ # @return [String]
4390
+ #
4111
4391
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfigurationRequest AWS API Documentation
4112
4392
  #
4113
4393
  class GetBucketMetricsConfigurationRequest < Struct.new(
4114
4394
  :bucket,
4115
- :id)
4395
+ :id,
4396
+ :expected_bucket_owner)
4116
4397
  SENSITIVE = []
4117
4398
  include Aws::Structure
4118
4399
  end
@@ -4122,16 +4403,24 @@ module Aws::S3
4122
4403
  #
4123
4404
  # {
4124
4405
  # bucket: "BucketName", # required
4406
+ # expected_bucket_owner: "AccountId",
4125
4407
  # }
4126
4408
  #
4127
4409
  # @!attribute [rw] bucket
4128
4410
  # Name of the bucket for which to get the notification configuration.
4129
4411
  # @return [String]
4130
4412
  #
4413
+ # @!attribute [rw] expected_bucket_owner
4414
+ # The account id of the expected bucket owner. If the bucket is owned
4415
+ # by a different account, the request will fail with an HTTP `403
4416
+ # (Access Denied)` error.
4417
+ # @return [String]
4418
+ #
4131
4419
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotificationConfigurationRequest AWS API Documentation
4132
4420
  #
4133
4421
  class GetBucketNotificationConfigurationRequest < Struct.new(
4134
- :bucket)
4422
+ :bucket,
4423
+ :expected_bucket_owner)
4135
4424
  SENSITIVE = []
4136
4425
  include Aws::Structure
4137
4426
  end
@@ -4153,16 +4442,24 @@ module Aws::S3
4153
4442
  #
4154
4443
  # {
4155
4444
  # bucket: "BucketName", # required
4445
+ # expected_bucket_owner: "AccountId",
4156
4446
  # }
4157
4447
  #
4158
4448
  # @!attribute [rw] bucket
4159
4449
  # The bucket name for which to get the bucket policy.
4160
4450
  # @return [String]
4161
4451
  #
4452
+ # @!attribute [rw] expected_bucket_owner
4453
+ # The account id of the expected bucket owner. If the bucket is owned
4454
+ # by a different account, the request will fail with an HTTP `403
4455
+ # (Access Denied)` error.
4456
+ # @return [String]
4457
+ #
4162
4458
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyRequest AWS API Documentation
4163
4459
  #
4164
4460
  class GetBucketPolicyRequest < Struct.new(
4165
- :bucket)
4461
+ :bucket,
4462
+ :expected_bucket_owner)
4166
4463
  SENSITIVE = []
4167
4464
  include Aws::Structure
4168
4465
  end
@@ -4184,6 +4481,7 @@ module Aws::S3
4184
4481
  #
4185
4482
  # {
4186
4483
  # bucket: "BucketName", # required
4484
+ # expected_bucket_owner: "AccountId",
4187
4485
  # }
4188
4486
  #
4189
4487
  # @!attribute [rw] bucket
@@ -4191,10 +4489,17 @@ module Aws::S3
4191
4489
  # retrieve.
4192
4490
  # @return [String]
4193
4491
  #
4492
+ # @!attribute [rw] expected_bucket_owner
4493
+ # The account id of the expected bucket owner. If the bucket is owned
4494
+ # by a different account, the request will fail with an HTTP `403
4495
+ # (Access Denied)` error.
4496
+ # @return [String]
4497
+ #
4194
4498
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyStatusRequest AWS API Documentation
4195
4499
  #
4196
4500
  class GetBucketPolicyStatusRequest < Struct.new(
4197
- :bucket)
4501
+ :bucket,
4502
+ :expected_bucket_owner)
4198
4503
  SENSITIVE = []
4199
4504
  include Aws::Structure
4200
4505
  end
@@ -4217,16 +4522,24 @@ module Aws::S3
4217
4522
  #
4218
4523
  # {
4219
4524
  # bucket: "BucketName", # required
4525
+ # expected_bucket_owner: "AccountId",
4220
4526
  # }
4221
4527
  #
4222
4528
  # @!attribute [rw] bucket
4223
4529
  # The bucket name for which to get the replication information.
4224
4530
  # @return [String]
4225
4531
  #
4532
+ # @!attribute [rw] expected_bucket_owner
4533
+ # The account id of the expected bucket owner. If the bucket is owned
4534
+ # by a different account, the request will fail with an HTTP `403
4535
+ # (Access Denied)` error.
4536
+ # @return [String]
4537
+ #
4226
4538
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplicationRequest AWS API Documentation
4227
4539
  #
4228
4540
  class GetBucketReplicationRequest < Struct.new(
4229
- :bucket)
4541
+ :bucket,
4542
+ :expected_bucket_owner)
4230
4543
  SENSITIVE = []
4231
4544
  include Aws::Structure
4232
4545
  end
@@ -4248,6 +4561,7 @@ module Aws::S3
4248
4561
  #
4249
4562
  # {
4250
4563
  # bucket: "BucketName", # required
4564
+ # expected_bucket_owner: "AccountId",
4251
4565
  # }
4252
4566
  #
4253
4567
  # @!attribute [rw] bucket
@@ -4255,10 +4569,17 @@ module Aws::S3
4255
4569
  # configuration
4256
4570
  # @return [String]
4257
4571
  #
4572
+ # @!attribute [rw] expected_bucket_owner
4573
+ # The account id of the expected bucket owner. If the bucket is owned
4574
+ # by a different account, the request will fail with an HTTP `403
4575
+ # (Access Denied)` error.
4576
+ # @return [String]
4577
+ #
4258
4578
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPaymentRequest AWS API Documentation
4259
4579
  #
4260
4580
  class GetBucketRequestPaymentRequest < Struct.new(
4261
- :bucket)
4581
+ :bucket,
4582
+ :expected_bucket_owner)
4262
4583
  SENSITIVE = []
4263
4584
  include Aws::Structure
4264
4585
  end
@@ -4280,16 +4601,24 @@ module Aws::S3
4280
4601
  #
4281
4602
  # {
4282
4603
  # bucket: "BucketName", # required
4604
+ # expected_bucket_owner: "AccountId",
4283
4605
  # }
4284
4606
  #
4285
4607
  # @!attribute [rw] bucket
4286
4608
  # The name of the bucket for which to get the tagging information.
4287
4609
  # @return [String]
4288
4610
  #
4611
+ # @!attribute [rw] expected_bucket_owner
4612
+ # The account id of the expected bucket owner. If the bucket is owned
4613
+ # by a different account, the request will fail with an HTTP `403
4614
+ # (Access Denied)` error.
4615
+ # @return [String]
4616
+ #
4289
4617
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTaggingRequest AWS API Documentation
4290
4618
  #
4291
4619
  class GetBucketTaggingRequest < Struct.new(
4292
- :bucket)
4620
+ :bucket,
4621
+ :expected_bucket_owner)
4293
4622
  SENSITIVE = []
4294
4623
  include Aws::Structure
4295
4624
  end
@@ -4319,16 +4648,24 @@ module Aws::S3
4319
4648
  #
4320
4649
  # {
4321
4650
  # bucket: "BucketName", # required
4651
+ # expected_bucket_owner: "AccountId",
4322
4652
  # }
4323
4653
  #
4324
4654
  # @!attribute [rw] bucket
4325
4655
  # The name of the bucket for which to get the versioning information.
4326
4656
  # @return [String]
4327
4657
  #
4658
+ # @!attribute [rw] expected_bucket_owner
4659
+ # The account id of the expected bucket owner. If the bucket is owned
4660
+ # by a different account, the request will fail with an HTTP `403
4661
+ # (Access Denied)` error.
4662
+ # @return [String]
4663
+ #
4328
4664
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioningRequest AWS API Documentation
4329
4665
  #
4330
4666
  class GetBucketVersioningRequest < Struct.new(
4331
- :bucket)
4667
+ :bucket,
4668
+ :expected_bucket_owner)
4332
4669
  SENSITIVE = []
4333
4670
  include Aws::Structure
4334
4671
  end
@@ -4369,16 +4706,24 @@ module Aws::S3
4369
4706
  #
4370
4707
  # {
4371
4708
  # bucket: "BucketName", # required
4709
+ # expected_bucket_owner: "AccountId",
4372
4710
  # }
4373
4711
  #
4374
4712
  # @!attribute [rw] bucket
4375
4713
  # The bucket name for which to get the website configuration.
4376
4714
  # @return [String]
4377
4715
  #
4716
+ # @!attribute [rw] expected_bucket_owner
4717
+ # The account id of the expected bucket owner. If the bucket is owned
4718
+ # by a different account, the request will fail with an HTTP `403
4719
+ # (Access Denied)` error.
4720
+ # @return [String]
4721
+ #
4378
4722
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsiteRequest AWS API Documentation
4379
4723
  #
4380
4724
  class GetBucketWebsiteRequest < Struct.new(
4381
- :bucket)
4725
+ :bucket,
4726
+ :expected_bucket_owner)
4382
4727
  SENSITIVE = []
4383
4728
  include Aws::Structure
4384
4729
  end
@@ -4414,6 +4759,7 @@ module Aws::S3
4414
4759
  # key: "ObjectKey", # required
4415
4760
  # version_id: "ObjectVersionId",
4416
4761
  # request_payer: "requester", # accepts requester
4762
+ # expected_bucket_owner: "AccountId",
4417
4763
  # }
4418
4764
  #
4419
4765
  # @!attribute [rw] bucket
@@ -4454,13 +4800,20 @@ module Aws::S3
4454
4800
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
4455
4801
  # @return [String]
4456
4802
  #
4803
+ # @!attribute [rw] expected_bucket_owner
4804
+ # The account id of the expected bucket owner. If the bucket is owned
4805
+ # by a different account, the request will fail with an HTTP `403
4806
+ # (Access Denied)` error.
4807
+ # @return [String]
4808
+ #
4457
4809
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAclRequest AWS API Documentation
4458
4810
  #
4459
4811
  class GetObjectAclRequest < Struct.new(
4460
4812
  :bucket,
4461
4813
  :key,
4462
4814
  :version_id,
4463
- :request_payer)
4815
+ :request_payer,
4816
+ :expected_bucket_owner)
4464
4817
  SENSITIVE = []
4465
4818
  include Aws::Structure
4466
4819
  end
@@ -4485,6 +4838,7 @@ module Aws::S3
4485
4838
  # key: "ObjectKey", # required
4486
4839
  # version_id: "ObjectVersionId",
4487
4840
  # request_payer: "requester", # accepts requester
4841
+ # expected_bucket_owner: "AccountId",
4488
4842
  # }
4489
4843
  #
4490
4844
  # @!attribute [rw] bucket
@@ -4527,13 +4881,20 @@ module Aws::S3
4527
4881
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
4528
4882
  # @return [String]
4529
4883
  #
4884
+ # @!attribute [rw] expected_bucket_owner
4885
+ # The account id of the expected bucket owner. If the bucket is owned
4886
+ # by a different account, the request will fail with an HTTP `403
4887
+ # (Access Denied)` error.
4888
+ # @return [String]
4889
+ #
4530
4890
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectLegalHoldRequest AWS API Documentation
4531
4891
  #
4532
4892
  class GetObjectLegalHoldRequest < Struct.new(
4533
4893
  :bucket,
4534
4894
  :key,
4535
4895
  :version_id,
4536
- :request_payer)
4896
+ :request_payer,
4897
+ :expected_bucket_owner)
4537
4898
  SENSITIVE = []
4538
4899
  include Aws::Structure
4539
4900
  end
@@ -4555,16 +4916,24 @@ module Aws::S3
4555
4916
  #
4556
4917
  # {
4557
4918
  # bucket: "BucketName", # required
4919
+ # expected_bucket_owner: "AccountId",
4558
4920
  # }
4559
4921
  #
4560
4922
  # @!attribute [rw] bucket
4561
4923
  # The bucket whose Object Lock configuration you want to retrieve.
4562
4924
  # @return [String]
4563
4925
  #
4926
+ # @!attribute [rw] expected_bucket_owner
4927
+ # The account id of the expected bucket owner. If the bucket is owned
4928
+ # by a different account, the request will fail with an HTTP `403
4929
+ # (Access Denied)` error.
4930
+ # @return [String]
4931
+ #
4564
4932
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectLockConfigurationRequest AWS API Documentation
4565
4933
  #
4566
4934
  class GetObjectLockConfigurationRequest < Struct.new(
4567
- :bucket)
4935
+ :bucket,
4936
+ :expected_bucket_owner)
4568
4937
  SENSITIVE = []
4569
4938
  include Aws::Structure
4570
4939
  end
@@ -4788,6 +5157,7 @@ module Aws::S3
4788
5157
  # sse_customer_key_md5: "SSECustomerKeyMD5",
4789
5158
  # request_payer: "requester", # accepts requester
4790
5159
  # part_number: 1,
5160
+ # expected_bucket_owner: "AccountId",
4791
5161
  # }
4792
5162
  #
4793
5163
  # @!attribute [rw] bucket
@@ -4912,6 +5282,12 @@ module Aws::S3
4912
5282
  # object.
4913
5283
  # @return [Integer]
4914
5284
  #
5285
+ # @!attribute [rw] expected_bucket_owner
5286
+ # The account id of the expected bucket owner. If the bucket is owned
5287
+ # by a different account, the request will fail with an HTTP `403
5288
+ # (Access Denied)` error.
5289
+ # @return [String]
5290
+ #
4915
5291
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectRequest AWS API Documentation
4916
5292
  #
4917
5293
  class GetObjectRequest < Struct.new(
@@ -4933,7 +5309,8 @@ module Aws::S3
4933
5309
  :sse_customer_key,
4934
5310
  :sse_customer_key_md5,
4935
5311
  :request_payer,
4936
- :part_number)
5312
+ :part_number,
5313
+ :expected_bucket_owner)
4937
5314
  SENSITIVE = [:sse_customer_key]
4938
5315
  include Aws::Structure
4939
5316
  end
@@ -4958,6 +5335,7 @@ module Aws::S3
4958
5335
  # key: "ObjectKey", # required
4959
5336
  # version_id: "ObjectVersionId",
4960
5337
  # request_payer: "requester", # accepts requester
5338
+ # expected_bucket_owner: "AccountId",
4961
5339
  # }
4962
5340
  #
4963
5341
  # @!attribute [rw] bucket
@@ -5000,13 +5378,20 @@ module Aws::S3
5000
5378
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
5001
5379
  # @return [String]
5002
5380
  #
5381
+ # @!attribute [rw] expected_bucket_owner
5382
+ # The account id of the expected bucket owner. If the bucket is owned
5383
+ # by a different account, the request will fail with an HTTP `403
5384
+ # (Access Denied)` error.
5385
+ # @return [String]
5386
+ #
5003
5387
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectRetentionRequest AWS API Documentation
5004
5388
  #
5005
5389
  class GetObjectRetentionRequest < Struct.new(
5006
5390
  :bucket,
5007
5391
  :key,
5008
5392
  :version_id,
5009
- :request_payer)
5393
+ :request_payer,
5394
+ :expected_bucket_owner)
5010
5395
  SENSITIVE = []
5011
5396
  include Aws::Structure
5012
5397
  end
@@ -5036,6 +5421,7 @@ module Aws::S3
5036
5421
  # bucket: "BucketName", # required
5037
5422
  # key: "ObjectKey", # required
5038
5423
  # version_id: "ObjectVersionId",
5424
+ # expected_bucket_owner: "AccountId",
5039
5425
  # }
5040
5426
  #
5041
5427
  # @!attribute [rw] bucket
@@ -5065,12 +5451,19 @@ module Aws::S3
5065
5451
  # information.
5066
5452
  # @return [String]
5067
5453
  #
5454
+ # @!attribute [rw] expected_bucket_owner
5455
+ # The account id of the expected bucket owner. If the bucket is owned
5456
+ # by a different account, the request will fail with an HTTP `403
5457
+ # (Access Denied)` error.
5458
+ # @return [String]
5459
+ #
5068
5460
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTaggingRequest AWS API Documentation
5069
5461
  #
5070
5462
  class GetObjectTaggingRequest < Struct.new(
5071
5463
  :bucket,
5072
5464
  :key,
5073
- :version_id)
5465
+ :version_id,
5466
+ :expected_bucket_owner)
5074
5467
  SENSITIVE = []
5075
5468
  include Aws::Structure
5076
5469
  end
@@ -5100,6 +5493,7 @@ module Aws::S3
5100
5493
  # bucket: "BucketName", # required
5101
5494
  # key: "ObjectKey", # required
5102
5495
  # request_payer: "requester", # accepts requester
5496
+ # expected_bucket_owner: "AccountId",
5103
5497
  # }
5104
5498
  #
5105
5499
  # @!attribute [rw] bucket
@@ -5123,12 +5517,19 @@ module Aws::S3
5123
5517
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
5124
5518
  # @return [String]
5125
5519
  #
5520
+ # @!attribute [rw] expected_bucket_owner
5521
+ # The account id of the expected bucket owner. If the bucket is owned
5522
+ # by a different account, the request will fail with an HTTP `403
5523
+ # (Access Denied)` error.
5524
+ # @return [String]
5525
+ #
5126
5526
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrentRequest AWS API Documentation
5127
5527
  #
5128
5528
  class GetObjectTorrentRequest < Struct.new(
5129
5529
  :bucket,
5130
5530
  :key,
5131
- :request_payer)
5531
+ :request_payer,
5532
+ :expected_bucket_owner)
5132
5533
  SENSITIVE = []
5133
5534
  include Aws::Structure
5134
5535
  end
@@ -5151,6 +5552,7 @@ module Aws::S3
5151
5552
  #
5152
5553
  # {
5153
5554
  # bucket: "BucketName", # required
5555
+ # expected_bucket_owner: "AccountId",
5154
5556
  # }
5155
5557
  #
5156
5558
  # @!attribute [rw] bucket
@@ -5158,10 +5560,17 @@ module Aws::S3
5158
5560
  # configuration you want to retrieve.
5159
5561
  # @return [String]
5160
5562
  #
5563
+ # @!attribute [rw] expected_bucket_owner
5564
+ # The account id of the expected bucket owner. If the bucket is owned
5565
+ # by a different account, the request will fail with an HTTP `403
5566
+ # (Access Denied)` error.
5567
+ # @return [String]
5568
+ #
5161
5569
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetPublicAccessBlockRequest AWS API Documentation
5162
5570
  #
5163
5571
  class GetPublicAccessBlockRequest < Struct.new(
5164
- :bucket)
5572
+ :bucket,
5573
+ :expected_bucket_owner)
5165
5574
  SENSITIVE = []
5166
5575
  include Aws::Structure
5167
5576
  end
@@ -5298,16 +5707,24 @@ module Aws::S3
5298
5707
  #
5299
5708
  # {
5300
5709
  # bucket: "BucketName", # required
5710
+ # expected_bucket_owner: "AccountId",
5301
5711
  # }
5302
5712
  #
5303
5713
  # @!attribute [rw] bucket
5304
5714
  # The bucket name.
5305
5715
  # @return [String]
5306
5716
  #
5717
+ # @!attribute [rw] expected_bucket_owner
5718
+ # The account id of the expected bucket owner. If the bucket is owned
5719
+ # by a different account, the request will fail with an HTTP `403
5720
+ # (Access Denied)` error.
5721
+ # @return [String]
5722
+ #
5307
5723
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucketRequest AWS API Documentation
5308
5724
  #
5309
5725
  class HeadBucketRequest < Struct.new(
5310
- :bucket)
5726
+ :bucket,
5727
+ :expected_bucket_owner)
5311
5728
  SENSITIVE = []
5312
5729
  include Aws::Structure
5313
5730
  end
@@ -5584,6 +6001,7 @@ module Aws::S3
5584
6001
  # sse_customer_key_md5: "SSECustomerKeyMD5",
5585
6002
  # request_payer: "requester", # accepts requester
5586
6003
  # part_number: 1,
6004
+ # expected_bucket_owner: "AccountId",
5587
6005
  # }
5588
6006
  #
5589
6007
  # @!attribute [rw] bucket
@@ -5667,6 +6085,12 @@ module Aws::S3
5667
6085
  # and the number of parts in this object.
5668
6086
  # @return [Integer]
5669
6087
  #
6088
+ # @!attribute [rw] expected_bucket_owner
6089
+ # The account id of the expected bucket owner. If the bucket is owned
6090
+ # by a different account, the request will fail with an HTTP `403
6091
+ # (Access Denied)` error.
6092
+ # @return [String]
6093
+ #
5670
6094
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectRequest AWS API Documentation
5671
6095
  #
5672
6096
  class HeadObjectRequest < Struct.new(
@@ -5682,7 +6106,8 @@ module Aws::S3
5682
6106
  :sse_customer_key,
5683
6107
  :sse_customer_key_md5,
5684
6108
  :request_payer,
5685
- :part_number)
6109
+ :part_number,
6110
+ :expected_bucket_owner)
5686
6111
  SENSITIVE = [:sse_customer_key]
5687
6112
  include Aws::Structure
5688
6113
  end
@@ -6487,6 +6912,7 @@ module Aws::S3
6487
6912
  # {
6488
6913
  # bucket: "BucketName", # required
6489
6914
  # continuation_token: "Token",
6915
+ # expected_bucket_owner: "AccountId",
6490
6916
  # }
6491
6917
  #
6492
6918
  # @!attribute [rw] bucket
@@ -6499,11 +6925,18 @@ module Aws::S3
6499
6925
  # request should begin.
6500
6926
  # @return [String]
6501
6927
  #
6928
+ # @!attribute [rw] expected_bucket_owner
6929
+ # The account id of the expected bucket owner. If the bucket is owned
6930
+ # by a different account, the request will fail with an HTTP `403
6931
+ # (Access Denied)` error.
6932
+ # @return [String]
6933
+ #
6502
6934
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurationsRequest AWS API Documentation
6503
6935
  #
6504
6936
  class ListBucketAnalyticsConfigurationsRequest < Struct.new(
6505
6937
  :bucket,
6506
- :continuation_token)
6938
+ :continuation_token,
6939
+ :expected_bucket_owner)
6507
6940
  SENSITIVE = []
6508
6941
  include Aws::Structure
6509
6942
  end
@@ -6547,6 +6980,7 @@ module Aws::S3
6547
6980
  # {
6548
6981
  # bucket: "BucketName", # required
6549
6982
  # continuation_token: "Token",
6983
+ # expected_bucket_owner: "AccountId",
6550
6984
  # }
6551
6985
  #
6552
6986
  # @!attribute [rw] bucket
@@ -6561,11 +6995,18 @@ module Aws::S3
6561
6995
  # token is an opaque value that Amazon S3 understands.
6562
6996
  # @return [String]
6563
6997
  #
6998
+ # @!attribute [rw] expected_bucket_owner
6999
+ # The account id of the expected bucket owner. If the bucket is owned
7000
+ # by a different account, the request will fail with an HTTP `403
7001
+ # (Access Denied)` error.
7002
+ # @return [String]
7003
+ #
6564
7004
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurationsRequest AWS API Documentation
6565
7005
  #
6566
7006
  class ListBucketInventoryConfigurationsRequest < Struct.new(
6567
7007
  :bucket,
6568
- :continuation_token)
7008
+ :continuation_token,
7009
+ :expected_bucket_owner)
6569
7010
  SENSITIVE = []
6570
7011
  include Aws::Structure
6571
7012
  end
@@ -6611,6 +7052,7 @@ module Aws::S3
6611
7052
  # {
6612
7053
  # bucket: "BucketName", # required
6613
7054
  # continuation_token: "Token",
7055
+ # expected_bucket_owner: "AccountId",
6614
7056
  # }
6615
7057
  #
6616
7058
  # @!attribute [rw] bucket
@@ -6625,11 +7067,18 @@ module Aws::S3
6625
7067
  # continuation token is an opaque value that Amazon S3 understands.
6626
7068
  # @return [String]
6627
7069
  #
7070
+ # @!attribute [rw] expected_bucket_owner
7071
+ # The account id of the expected bucket owner. If the bucket is owned
7072
+ # by a different account, the request will fail with an HTTP `403
7073
+ # (Access Denied)` error.
7074
+ # @return [String]
7075
+ #
6628
7076
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurationsRequest AWS API Documentation
6629
7077
  #
6630
7078
  class ListBucketMetricsConfigurationsRequest < Struct.new(
6631
7079
  :bucket,
6632
- :continuation_token)
7080
+ :continuation_token,
7081
+ :expected_bucket_owner)
6633
7082
  SENSITIVE = []
6634
7083
  include Aws::Structure
6635
7084
  end
@@ -6752,6 +7201,7 @@ module Aws::S3
6752
7201
  # max_uploads: 1,
6753
7202
  # prefix: "Prefix",
6754
7203
  # upload_id_marker: "UploadIdMarker",
7204
+ # expected_bucket_owner: "AccountId",
6755
7205
  # }
6756
7206
  #
6757
7207
  # @!attribute [rw] bucket
@@ -6828,6 +7278,12 @@ module Aws::S3
6828
7278
  # the specified `upload-id-marker`.
6829
7279
  # @return [String]
6830
7280
  #
7281
+ # @!attribute [rw] expected_bucket_owner
7282
+ # The account id of the expected bucket owner. If the bucket is owned
7283
+ # by a different account, the request will fail with an HTTP `403
7284
+ # (Access Denied)` error.
7285
+ # @return [String]
7286
+ #
6831
7287
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploadsRequest AWS API Documentation
6832
7288
  #
6833
7289
  class ListMultipartUploadsRequest < Struct.new(
@@ -6837,7 +7293,8 @@ module Aws::S3
6837
7293
  :key_marker,
6838
7294
  :max_uploads,
6839
7295
  :prefix,
6840
- :upload_id_marker)
7296
+ :upload_id_marker,
7297
+ :expected_bucket_owner)
6841
7298
  SENSITIVE = []
6842
7299
  include Aws::Structure
6843
7300
  end
@@ -6949,6 +7406,7 @@ module Aws::S3
6949
7406
  # max_keys: 1,
6950
7407
  # prefix: "Prefix",
6951
7408
  # version_id_marker: "VersionIdMarker",
7409
+ # expected_bucket_owner: "AccountId",
6952
7410
  # }
6953
7411
  #
6954
7412
  # @!attribute [rw] bucket
@@ -7013,6 +7471,12 @@ module Aws::S3
7013
7471
  # Specifies the object version you want to start listing from.
7014
7472
  # @return [String]
7015
7473
  #
7474
+ # @!attribute [rw] expected_bucket_owner
7475
+ # The account id of the expected bucket owner. If the bucket is owned
7476
+ # by a different account, the request will fail with an HTTP `403
7477
+ # (Access Denied)` error.
7478
+ # @return [String]
7479
+ #
7016
7480
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersionsRequest AWS API Documentation
7017
7481
  #
7018
7482
  class ListObjectVersionsRequest < Struct.new(
@@ -7022,7 +7486,8 @@ module Aws::S3
7022
7486
  :key_marker,
7023
7487
  :max_keys,
7024
7488
  :prefix,
7025
- :version_id_marker)
7489
+ :version_id_marker,
7490
+ :expected_bucket_owner)
7026
7491
  SENSITIVE = []
7027
7492
  include Aws::Structure
7028
7493
  end
@@ -7124,6 +7589,7 @@ module Aws::S3
7124
7589
  # max_keys: 1,
7125
7590
  # prefix: "Prefix",
7126
7591
  # request_payer: "requester", # accepts requester
7592
+ # expected_bucket_owner: "AccountId",
7127
7593
  # }
7128
7594
  #
7129
7595
  # @!attribute [rw] bucket
@@ -7163,6 +7629,12 @@ module Aws::S3
7163
7629
  # parameter in their requests.
7164
7630
  # @return [String]
7165
7631
  #
7632
+ # @!attribute [rw] expected_bucket_owner
7633
+ # The account id of the expected bucket owner. If the bucket is owned
7634
+ # by a different account, the request will fail with an HTTP `403
7635
+ # (Access Denied)` error.
7636
+ # @return [String]
7637
+ #
7166
7638
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsRequest AWS API Documentation
7167
7639
  #
7168
7640
  class ListObjectsRequest < Struct.new(
@@ -7172,7 +7644,8 @@ module Aws::S3
7172
7644
  :marker,
7173
7645
  :max_keys,
7174
7646
  :prefix,
7175
- :request_payer)
7647
+ :request_payer,
7648
+ :expected_bucket_owner)
7176
7649
  SENSITIVE = []
7177
7650
  include Aws::Structure
7178
7651
  end
@@ -7309,6 +7782,7 @@ module Aws::S3
7309
7782
  # fetch_owner: false,
7310
7783
  # start_after: "StartAfter",
7311
7784
  # request_payer: "requester", # accepts requester
7785
+ # expected_bucket_owner: "AccountId",
7312
7786
  # }
7313
7787
  #
7314
7788
  # @!attribute [rw] bucket
@@ -7371,6 +7845,12 @@ module Aws::S3
7371
7845
  # this parameter in their requests.
7372
7846
  # @return [String]
7373
7847
  #
7848
+ # @!attribute [rw] expected_bucket_owner
7849
+ # The account id of the expected bucket owner. If the bucket is owned
7850
+ # by a different account, the request will fail with an HTTP `403
7851
+ # (Access Denied)` error.
7852
+ # @return [String]
7853
+ #
7374
7854
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2Request AWS API Documentation
7375
7855
  #
7376
7856
  class ListObjectsV2Request < Struct.new(
@@ -7382,7 +7862,8 @@ module Aws::S3
7382
7862
  :continuation_token,
7383
7863
  :fetch_owner,
7384
7864
  :start_after,
7385
- :request_payer)
7865
+ :request_payer,
7866
+ :expected_bucket_owner)
7386
7867
  SENSITIVE = []
7387
7868
  include Aws::Structure
7388
7869
  end
@@ -7506,6 +7987,7 @@ module Aws::S3
7506
7987
  # part_number_marker: 1,
7507
7988
  # upload_id: "MultipartUploadId", # required
7508
7989
  # request_payer: "requester", # accepts requester
7990
+ # expected_bucket_owner: "AccountId",
7509
7991
  # }
7510
7992
  #
7511
7993
  # @!attribute [rw] bucket
@@ -7555,6 +8037,12 @@ module Aws::S3
7555
8037
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
7556
8038
  # @return [String]
7557
8039
  #
8040
+ # @!attribute [rw] expected_bucket_owner
8041
+ # The account id of the expected bucket owner. If the bucket is owned
8042
+ # by a different account, the request will fail with an HTTP `403
8043
+ # (Access Denied)` error.
8044
+ # @return [String]
8045
+ #
7558
8046
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListPartsRequest AWS API Documentation
7559
8047
  #
7560
8048
  class ListPartsRequest < Struct.new(
@@ -7563,7 +8051,8 @@ module Aws::S3
7563
8051
  :max_parts,
7564
8052
  :part_number_marker,
7565
8053
  :upload_id,
7566
- :request_payer)
8054
+ :request_payer,
8055
+ :expected_bucket_owner)
7567
8056
  SENSITIVE = []
7568
8057
  include Aws::Structure
7569
8058
  end
@@ -8683,6 +9172,7 @@ module Aws::S3
8683
9172
  # accelerate_configuration: { # required
8684
9173
  # status: "Enabled", # accepts Enabled, Suspended
8685
9174
  # },
9175
+ # expected_bucket_owner: "AccountId",
8686
9176
  # }
8687
9177
  #
8688
9178
  # @!attribute [rw] bucket
@@ -8693,11 +9183,18 @@ module Aws::S3
8693
9183
  # Container for setting the transfer acceleration state.
8694
9184
  # @return [Types::AccelerateConfiguration]
8695
9185
  #
9186
+ # @!attribute [rw] expected_bucket_owner
9187
+ # The account id of the expected bucket owner. If the bucket is owned
9188
+ # by a different account, the request will fail with an HTTP `403
9189
+ # (Access Denied)` error.
9190
+ # @return [String]
9191
+ #
8696
9192
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfigurationRequest AWS API Documentation
8697
9193
  #
8698
9194
  class PutBucketAccelerateConfigurationRequest < Struct.new(
8699
9195
  :bucket,
8700
- :accelerate_configuration)
9196
+ :accelerate_configuration,
9197
+ :expected_bucket_owner)
8701
9198
  SENSITIVE = []
8702
9199
  include Aws::Structure
8703
9200
  end
@@ -8732,6 +9229,7 @@ module Aws::S3
8732
9229
  # grant_read_acp: "GrantReadACP",
8733
9230
  # grant_write: "GrantWrite",
8734
9231
  # grant_write_acp: "GrantWriteACP",
9232
+ # expected_bucket_owner: "AccountId",
8735
9233
  # }
8736
9234
  #
8737
9235
  # @!attribute [rw] acl
@@ -8780,6 +9278,12 @@ module Aws::S3
8780
9278
  # Allows grantee to write the ACL for the applicable bucket.
8781
9279
  # @return [String]
8782
9280
  #
9281
+ # @!attribute [rw] expected_bucket_owner
9282
+ # The account id of the expected bucket owner. If the bucket is owned
9283
+ # by a different account, the request will fail with an HTTP `403
9284
+ # (Access Denied)` error.
9285
+ # @return [String]
9286
+ #
8783
9287
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAclRequest AWS API Documentation
8784
9288
  #
8785
9289
  class PutBucketAclRequest < Struct.new(
@@ -8791,7 +9295,8 @@ module Aws::S3
8791
9295
  :grant_read,
8792
9296
  :grant_read_acp,
8793
9297
  :grant_write,
8794
- :grant_write_acp)
9298
+ :grant_write_acp,
9299
+ :expected_bucket_owner)
8795
9300
  SENSITIVE = []
8796
9301
  include Aws::Structure
8797
9302
  end
@@ -8834,6 +9339,7 @@ module Aws::S3
8834
9339
  # },
8835
9340
  # },
8836
9341
  # },
9342
+ # expected_bucket_owner: "AccountId",
8837
9343
  # }
8838
9344
  #
8839
9345
  # @!attribute [rw] bucket
@@ -8849,12 +9355,19 @@ module Aws::S3
8849
9355
  # The configuration and any analyses for the analytics filter.
8850
9356
  # @return [Types::AnalyticsConfiguration]
8851
9357
  #
9358
+ # @!attribute [rw] expected_bucket_owner
9359
+ # The account id of the expected bucket owner. If the bucket is owned
9360
+ # by a different account, the request will fail with an HTTP `403
9361
+ # (Access Denied)` error.
9362
+ # @return [String]
9363
+ #
8852
9364
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfigurationRequest AWS API Documentation
8853
9365
  #
8854
9366
  class PutBucketAnalyticsConfigurationRequest < Struct.new(
8855
9367
  :bucket,
8856
9368
  :id,
8857
- :analytics_configuration)
9369
+ :analytics_configuration,
9370
+ :expected_bucket_owner)
8858
9371
  SENSITIVE = []
8859
9372
  include Aws::Structure
8860
9373
  end
@@ -8876,6 +9389,7 @@ module Aws::S3
8876
9389
  # ],
8877
9390
  # },
8878
9391
  # content_md5: "ContentMD5",
9392
+ # expected_bucket_owner: "AccountId",
8879
9393
  # }
8880
9394
  #
8881
9395
  # @!attribute [rw] bucket
@@ -8904,12 +9418,19 @@ module Aws::S3
8904
9418
  # [1]: http://www.ietf.org/rfc/rfc1864.txt
8905
9419
  # @return [String]
8906
9420
  #
9421
+ # @!attribute [rw] expected_bucket_owner
9422
+ # The account id of the expected bucket owner. If the bucket is owned
9423
+ # by a different account, the request will fail with an HTTP `403
9424
+ # (Access Denied)` error.
9425
+ # @return [String]
9426
+ #
8907
9427
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCorsRequest AWS API Documentation
8908
9428
  #
8909
9429
  class PutBucketCorsRequest < Struct.new(
8910
9430
  :bucket,
8911
9431
  :cors_configuration,
8912
- :content_md5)
9432
+ :content_md5,
9433
+ :expected_bucket_owner)
8913
9434
  SENSITIVE = []
8914
9435
  include Aws::Structure
8915
9436
  end
@@ -8930,6 +9451,7 @@ module Aws::S3
8930
9451
  # },
8931
9452
  # ],
8932
9453
  # },
9454
+ # expected_bucket_owner: "AccountId",
8933
9455
  # }
8934
9456
  #
8935
9457
  # @!attribute [rw] bucket
@@ -8955,12 +9477,19 @@ module Aws::S3
8955
9477
  # Specifies the default server-side-encryption configuration.
8956
9478
  # @return [Types::ServerSideEncryptionConfiguration]
8957
9479
  #
9480
+ # @!attribute [rw] expected_bucket_owner
9481
+ # The account id of the expected bucket owner. If the bucket is owned
9482
+ # by a different account, the request will fail with an HTTP `403
9483
+ # (Access Denied)` error.
9484
+ # @return [String]
9485
+ #
8958
9486
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketEncryptionRequest AWS API Documentation
8959
9487
  #
8960
9488
  class PutBucketEncryptionRequest < Struct.new(
8961
9489
  :bucket,
8962
9490
  :content_md5,
8963
- :server_side_encryption_configuration)
9491
+ :server_side_encryption_configuration,
9492
+ :expected_bucket_owner)
8964
9493
  SENSITIVE = []
8965
9494
  include Aws::Structure
8966
9495
  end
@@ -8998,6 +9527,7 @@ module Aws::S3
8998
9527
  # frequency: "Daily", # required, accepts Daily, Weekly
8999
9528
  # },
9000
9529
  # },
9530
+ # expected_bucket_owner: "AccountId",
9001
9531
  # }
9002
9532
  #
9003
9533
  # @!attribute [rw] bucket
@@ -9013,12 +9543,19 @@ module Aws::S3
9013
9543
  # Specifies the inventory configuration.
9014
9544
  # @return [Types::InventoryConfiguration]
9015
9545
  #
9546
+ # @!attribute [rw] expected_bucket_owner
9547
+ # The account id of the expected bucket owner. If the bucket is owned
9548
+ # by a different account, the request will fail with an HTTP `403
9549
+ # (Access Denied)` error.
9550
+ # @return [String]
9551
+ #
9016
9552
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfigurationRequest AWS API Documentation
9017
9553
  #
9018
9554
  class PutBucketInventoryConfigurationRequest < Struct.new(
9019
9555
  :bucket,
9020
9556
  :id,
9021
- :inventory_configuration)
9557
+ :inventory_configuration,
9558
+ :expected_bucket_owner)
9022
9559
  SENSITIVE = []
9023
9560
  include Aws::Structure
9024
9561
  end
@@ -9077,6 +9614,7 @@ module Aws::S3
9077
9614
  # },
9078
9615
  # ],
9079
9616
  # },
9617
+ # expected_bucket_owner: "AccountId",
9080
9618
  # }
9081
9619
  #
9082
9620
  # @!attribute [rw] bucket
@@ -9087,11 +9625,18 @@ module Aws::S3
9087
9625
  # Container for lifecycle rules. You can add as many as 1,000 rules.
9088
9626
  # @return [Types::BucketLifecycleConfiguration]
9089
9627
  #
9628
+ # @!attribute [rw] expected_bucket_owner
9629
+ # The account id of the expected bucket owner. If the bucket is owned
9630
+ # by a different account, the request will fail with an HTTP `403
9631
+ # (Access Denied)` error.
9632
+ # @return [String]
9633
+ #
9090
9634
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfigurationRequest AWS API Documentation
9091
9635
  #
9092
9636
  class PutBucketLifecycleConfigurationRequest < Struct.new(
9093
9637
  :bucket,
9094
- :lifecycle_configuration)
9638
+ :lifecycle_configuration,
9639
+ :expected_bucket_owner)
9095
9640
  SENSITIVE = []
9096
9641
  include Aws::Structure
9097
9642
  end
@@ -9131,6 +9676,7 @@ module Aws::S3
9131
9676
  # },
9132
9677
  # ],
9133
9678
  # },
9679
+ # expected_bucket_owner: "AccountId",
9134
9680
  # }
9135
9681
  #
9136
9682
  # @!attribute [rw] bucket
@@ -9142,12 +9688,19 @@ module Aws::S3
9142
9688
  # @!attribute [rw] lifecycle_configuration
9143
9689
  # @return [Types::LifecycleConfiguration]
9144
9690
  #
9691
+ # @!attribute [rw] expected_bucket_owner
9692
+ # The account id of the expected bucket owner. If the bucket is owned
9693
+ # by a different account, the request will fail with an HTTP `403
9694
+ # (Access Denied)` error.
9695
+ # @return [String]
9696
+ #
9145
9697
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleRequest AWS API Documentation
9146
9698
  #
9147
9699
  class PutBucketLifecycleRequest < Struct.new(
9148
9700
  :bucket,
9149
9701
  :content_md5,
9150
- :lifecycle_configuration)
9702
+ :lifecycle_configuration,
9703
+ :expected_bucket_owner)
9151
9704
  SENSITIVE = []
9152
9705
  include Aws::Structure
9153
9706
  end
@@ -9176,6 +9729,7 @@ module Aws::S3
9176
9729
  # },
9177
9730
  # },
9178
9731
  # content_md5: "ContentMD5",
9732
+ # expected_bucket_owner: "AccountId",
9179
9733
  # }
9180
9734
  #
9181
9735
  # @!attribute [rw] bucket
@@ -9190,12 +9744,19 @@ module Aws::S3
9190
9744
  # The MD5 hash of the `PutBucketLogging` request body.
9191
9745
  # @return [String]
9192
9746
  #
9747
+ # @!attribute [rw] expected_bucket_owner
9748
+ # The account id of the expected bucket owner. If the bucket is owned
9749
+ # by a different account, the request will fail with an HTTP `403
9750
+ # (Access Denied)` error.
9751
+ # @return [String]
9752
+ #
9193
9753
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLoggingRequest AWS API Documentation
9194
9754
  #
9195
9755
  class PutBucketLoggingRequest < Struct.new(
9196
9756
  :bucket,
9197
9757
  :bucket_logging_status,
9198
- :content_md5)
9758
+ :content_md5,
9759
+ :expected_bucket_owner)
9199
9760
  SENSITIVE = []
9200
9761
  include Aws::Structure
9201
9762
  end
@@ -9225,6 +9786,7 @@ module Aws::S3
9225
9786
  # },
9226
9787
  # },
9227
9788
  # },
9789
+ # expected_bucket_owner: "AccountId",
9228
9790
  # }
9229
9791
  #
9230
9792
  # @!attribute [rw] bucket
@@ -9239,12 +9801,19 @@ module Aws::S3
9239
9801
  # Specifies the metrics configuration.
9240
9802
  # @return [Types::MetricsConfiguration]
9241
9803
  #
9804
+ # @!attribute [rw] expected_bucket_owner
9805
+ # The account id of the expected bucket owner. If the bucket is owned
9806
+ # by a different account, the request will fail with an HTTP `403
9807
+ # (Access Denied)` error.
9808
+ # @return [String]
9809
+ #
9242
9810
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfigurationRequest AWS API Documentation
9243
9811
  #
9244
9812
  class PutBucketMetricsConfigurationRequest < Struct.new(
9245
9813
  :bucket,
9246
9814
  :id,
9247
- :metrics_configuration)
9815
+ :metrics_configuration,
9816
+ :expected_bucket_owner)
9248
9817
  SENSITIVE = []
9249
9818
  include Aws::Structure
9250
9819
  end
@@ -9307,6 +9876,7 @@ module Aws::S3
9307
9876
  # },
9308
9877
  # ],
9309
9878
  # },
9879
+ # expected_bucket_owner: "AccountId",
9310
9880
  # }
9311
9881
  #
9312
9882
  # @!attribute [rw] bucket
@@ -9319,11 +9889,18 @@ module Aws::S3
9319
9889
  # the bucket.
9320
9890
  # @return [Types::NotificationConfiguration]
9321
9891
  #
9892
+ # @!attribute [rw] expected_bucket_owner
9893
+ # The account id of the expected bucket owner. If the bucket is owned
9894
+ # by a different account, the request will fail with an HTTP `403
9895
+ # (Access Denied)` error.
9896
+ # @return [String]
9897
+ #
9322
9898
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfigurationRequest AWS API Documentation
9323
9899
  #
9324
9900
  class PutBucketNotificationConfigurationRequest < Struct.new(
9325
9901
  :bucket,
9326
- :notification_configuration)
9902
+ :notification_configuration,
9903
+ :expected_bucket_owner)
9327
9904
  SENSITIVE = []
9328
9905
  include Aws::Structure
9329
9906
  end
@@ -9355,6 +9932,7 @@ module Aws::S3
9355
9932
  # invocation_role: "CloudFunctionInvocationRole",
9356
9933
  # },
9357
9934
  # },
9935
+ # expected_bucket_owner: "AccountId",
9358
9936
  # }
9359
9937
  #
9360
9938
  # @!attribute [rw] bucket
@@ -9369,12 +9947,19 @@ module Aws::S3
9369
9947
  # The container for the configuration.
9370
9948
  # @return [Types::NotificationConfigurationDeprecated]
9371
9949
  #
9950
+ # @!attribute [rw] expected_bucket_owner
9951
+ # The account id of the expected bucket owner. If the bucket is owned
9952
+ # by a different account, the request will fail with an HTTP `403
9953
+ # (Access Denied)` error.
9954
+ # @return [String]
9955
+ #
9372
9956
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationRequest AWS API Documentation
9373
9957
  #
9374
9958
  class PutBucketNotificationRequest < Struct.new(
9375
9959
  :bucket,
9376
9960
  :content_md5,
9377
- :notification_configuration)
9961
+ :notification_configuration,
9962
+ :expected_bucket_owner)
9378
9963
  SENSITIVE = []
9379
9964
  include Aws::Structure
9380
9965
  end
@@ -9387,6 +9972,7 @@ module Aws::S3
9387
9972
  # content_md5: "ContentMD5",
9388
9973
  # confirm_remove_self_bucket_access: false,
9389
9974
  # policy: "Policy", # required
9975
+ # expected_bucket_owner: "AccountId",
9390
9976
  # }
9391
9977
  #
9392
9978
  # @!attribute [rw] bucket
@@ -9406,13 +9992,20 @@ module Aws::S3
9406
9992
  # The bucket policy as a JSON document.
9407
9993
  # @return [String]
9408
9994
  #
9995
+ # @!attribute [rw] expected_bucket_owner
9996
+ # The account id of the expected bucket owner. If the bucket is owned
9997
+ # by a different account, the request will fail with an HTTP `403
9998
+ # (Access Denied)` error.
9999
+ # @return [String]
10000
+ #
9409
10001
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicyRequest AWS API Documentation
9410
10002
  #
9411
10003
  class PutBucketPolicyRequest < Struct.new(
9412
10004
  :bucket,
9413
10005
  :content_md5,
9414
10006
  :confirm_remove_self_bucket_access,
9415
- :policy)
10007
+ :policy,
10008
+ :expected_bucket_owner)
9416
10009
  SENSITIVE = []
9417
10010
  include Aws::Structure
9418
10011
  end
@@ -9485,6 +10078,7 @@ module Aws::S3
9485
10078
  # ],
9486
10079
  # },
9487
10080
  # token: "ObjectLockToken",
10081
+ # expected_bucket_owner: "AccountId",
9488
10082
  # }
9489
10083
  #
9490
10084
  # @!attribute [rw] bucket
@@ -9510,13 +10104,20 @@ module Aws::S3
9510
10104
  # @!attribute [rw] token
9511
10105
  # @return [String]
9512
10106
  #
10107
+ # @!attribute [rw] expected_bucket_owner
10108
+ # The account id of the expected bucket owner. If the bucket is owned
10109
+ # by a different account, the request will fail with an HTTP `403
10110
+ # (Access Denied)` error.
10111
+ # @return [String]
10112
+ #
9513
10113
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplicationRequest AWS API Documentation
9514
10114
  #
9515
10115
  class PutBucketReplicationRequest < Struct.new(
9516
10116
  :bucket,
9517
10117
  :content_md5,
9518
10118
  :replication_configuration,
9519
- :token)
10119
+ :token,
10120
+ :expected_bucket_owner)
9520
10121
  SENSITIVE = []
9521
10122
  include Aws::Structure
9522
10123
  end
@@ -9530,6 +10131,7 @@ module Aws::S3
9530
10131
  # request_payment_configuration: { # required
9531
10132
  # payer: "Requester", # required, accepts Requester, BucketOwner
9532
10133
  # },
10134
+ # expected_bucket_owner: "AccountId",
9533
10135
  # }
9534
10136
  #
9535
10137
  # @!attribute [rw] bucket
@@ -9551,12 +10153,19 @@ module Aws::S3
9551
10153
  # Container for Payer.
9552
10154
  # @return [Types::RequestPaymentConfiguration]
9553
10155
  #
10156
+ # @!attribute [rw] expected_bucket_owner
10157
+ # The account id of the expected bucket owner. If the bucket is owned
10158
+ # by a different account, the request will fail with an HTTP `403
10159
+ # (Access Denied)` error.
10160
+ # @return [String]
10161
+ #
9554
10162
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPaymentRequest AWS API Documentation
9555
10163
  #
9556
10164
  class PutBucketRequestPaymentRequest < Struct.new(
9557
10165
  :bucket,
9558
10166
  :content_md5,
9559
- :request_payment_configuration)
10167
+ :request_payment_configuration,
10168
+ :expected_bucket_owner)
9560
10169
  SENSITIVE = []
9561
10170
  include Aws::Structure
9562
10171
  end
@@ -9575,6 +10184,7 @@ module Aws::S3
9575
10184
  # },
9576
10185
  # ],
9577
10186
  # },
10187
+ # expected_bucket_owner: "AccountId",
9578
10188
  # }
9579
10189
  #
9580
10190
  # @!attribute [rw] bucket
@@ -9596,12 +10206,19 @@ module Aws::S3
9596
10206
  # Container for the `TagSet` and `Tag` elements.
9597
10207
  # @return [Types::Tagging]
9598
10208
  #
10209
+ # @!attribute [rw] expected_bucket_owner
10210
+ # The account id of the expected bucket owner. If the bucket is owned
10211
+ # by a different account, the request will fail with an HTTP `403
10212
+ # (Access Denied)` error.
10213
+ # @return [String]
10214
+ #
9599
10215
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTaggingRequest AWS API Documentation
9600
10216
  #
9601
10217
  class PutBucketTaggingRequest < Struct.new(
9602
10218
  :bucket,
9603
10219
  :content_md5,
9604
- :tagging)
10220
+ :tagging,
10221
+ :expected_bucket_owner)
9605
10222
  SENSITIVE = []
9606
10223
  include Aws::Structure
9607
10224
  end
@@ -9617,6 +10234,7 @@ module Aws::S3
9617
10234
  # mfa_delete: "Enabled", # accepts Enabled, Disabled
9618
10235
  # status: "Enabled", # accepts Enabled, Suspended
9619
10236
  # },
10237
+ # expected_bucket_owner: "AccountId",
9620
10238
  # }
9621
10239
  #
9622
10240
  # @!attribute [rw] bucket
@@ -9644,13 +10262,20 @@ module Aws::S3
9644
10262
  # Container for setting the versioning state.
9645
10263
  # @return [Types::VersioningConfiguration]
9646
10264
  #
10265
+ # @!attribute [rw] expected_bucket_owner
10266
+ # The account id of the expected bucket owner. If the bucket is owned
10267
+ # by a different account, the request will fail with an HTTP `403
10268
+ # (Access Denied)` error.
10269
+ # @return [String]
10270
+ #
9647
10271
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioningRequest AWS API Documentation
9648
10272
  #
9649
10273
  class PutBucketVersioningRequest < Struct.new(
9650
10274
  :bucket,
9651
10275
  :content_md5,
9652
10276
  :mfa,
9653
- :versioning_configuration)
10277
+ :versioning_configuration,
10278
+ :expected_bucket_owner)
9654
10279
  SENSITIVE = []
9655
10280
  include Aws::Structure
9656
10281
  end
@@ -9688,6 +10313,7 @@ module Aws::S3
9688
10313
  # },
9689
10314
  # ],
9690
10315
  # },
10316
+ # expected_bucket_owner: "AccountId",
9691
10317
  # }
9692
10318
  #
9693
10319
  # @!attribute [rw] bucket
@@ -9709,12 +10335,19 @@ module Aws::S3
9709
10335
  # Container for the request.
9710
10336
  # @return [Types::WebsiteConfiguration]
9711
10337
  #
10338
+ # @!attribute [rw] expected_bucket_owner
10339
+ # The account id of the expected bucket owner. If the bucket is owned
10340
+ # by a different account, the request will fail with an HTTP `403
10341
+ # (Access Denied)` error.
10342
+ # @return [String]
10343
+ #
9712
10344
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsiteRequest AWS API Documentation
9713
10345
  #
9714
10346
  class PutBucketWebsiteRequest < Struct.new(
9715
10347
  :bucket,
9716
10348
  :content_md5,
9717
- :website_configuration)
10349
+ :website_configuration,
10350
+ :expected_bucket_owner)
9718
10351
  SENSITIVE = []
9719
10352
  include Aws::Structure
9720
10353
  end
@@ -9765,6 +10398,7 @@ module Aws::S3
9765
10398
  # key: "ObjectKey", # required
9766
10399
  # request_payer: "requester", # accepts requester
9767
10400
  # version_id: "ObjectVersionId",
10401
+ # expected_bucket_owner: "AccountId",
9768
10402
  # }
9769
10403
  #
9770
10404
  # @!attribute [rw] acl
@@ -9852,6 +10486,12 @@ module Aws::S3
9852
10486
  # VersionId used to reference a specific version of the object.
9853
10487
  # @return [String]
9854
10488
  #
10489
+ # @!attribute [rw] expected_bucket_owner
10490
+ # The account id of the expected bucket owner. If the bucket is owned
10491
+ # by a different account, the request will fail with an HTTP `403
10492
+ # (Access Denied)` error.
10493
+ # @return [String]
10494
+ #
9855
10495
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAclRequest AWS API Documentation
9856
10496
  #
9857
10497
  class PutObjectAclRequest < Struct.new(
@@ -9866,7 +10506,8 @@ module Aws::S3
9866
10506
  :grant_write_acp,
9867
10507
  :key,
9868
10508
  :request_payer,
9869
- :version_id)
10509
+ :version_id,
10510
+ :expected_bucket_owner)
9870
10511
  SENSITIVE = []
9871
10512
  include Aws::Structure
9872
10513
  end
@@ -9896,6 +10537,7 @@ module Aws::S3
9896
10537
  # request_payer: "requester", # accepts requester
9897
10538
  # version_id: "ObjectVersionId",
9898
10539
  # content_md5: "ContentMD5",
10540
+ # expected_bucket_owner: "AccountId",
9899
10541
  # }
9900
10542
  #
9901
10543
  # @!attribute [rw] bucket
@@ -9945,6 +10587,12 @@ module Aws::S3
9945
10587
  # The MD5 hash for the request body.
9946
10588
  # @return [String]
9947
10589
  #
10590
+ # @!attribute [rw] expected_bucket_owner
10591
+ # The account id of the expected bucket owner. If the bucket is owned
10592
+ # by a different account, the request will fail with an HTTP `403
10593
+ # (Access Denied)` error.
10594
+ # @return [String]
10595
+ #
9948
10596
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectLegalHoldRequest AWS API Documentation
9949
10597
  #
9950
10598
  class PutObjectLegalHoldRequest < Struct.new(
@@ -9953,7 +10601,8 @@ module Aws::S3
9953
10601
  :legal_hold,
9954
10602
  :request_payer,
9955
10603
  :version_id,
9956
- :content_md5)
10604
+ :content_md5,
10605
+ :expected_bucket_owner)
9957
10606
  SENSITIVE = []
9958
10607
  include Aws::Structure
9959
10608
  end
@@ -9989,6 +10638,7 @@ module Aws::S3
9989
10638
  # request_payer: "requester", # accepts requester
9990
10639
  # token: "ObjectLockToken",
9991
10640
  # content_md5: "ContentMD5",
10641
+ # expected_bucket_owner: "AccountId",
9992
10642
  # }
9993
10643
  #
9994
10644
  # @!attribute [rw] bucket
@@ -10021,6 +10671,12 @@ module Aws::S3
10021
10671
  # The MD5 hash for the request body.
10022
10672
  # @return [String]
10023
10673
  #
10674
+ # @!attribute [rw] expected_bucket_owner
10675
+ # The account id of the expected bucket owner. If the bucket is owned
10676
+ # by a different account, the request will fail with an HTTP `403
10677
+ # (Access Denied)` error.
10678
+ # @return [String]
10679
+ #
10024
10680
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectLockConfigurationRequest AWS API Documentation
10025
10681
  #
10026
10682
  class PutObjectLockConfigurationRequest < Struct.new(
@@ -10028,7 +10684,8 @@ module Aws::S3
10028
10684
  :object_lock_configuration,
10029
10685
  :request_payer,
10030
10686
  :token,
10031
- :content_md5)
10687
+ :content_md5,
10688
+ :expected_bucket_owner)
10032
10689
  SENSITIVE = []
10033
10690
  include Aws::Structure
10034
10691
  end
@@ -10144,6 +10801,7 @@ module Aws::S3
10144
10801
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
10145
10802
  # object_lock_retain_until_date: Time.now,
10146
10803
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
10804
+ # expected_bucket_owner: "AccountId",
10147
10805
  # }
10148
10806
  #
10149
10807
  # @!attribute [rw] acl
@@ -10394,6 +11052,12 @@ module Aws::S3
10394
11052
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
10395
11053
  # @return [String]
10396
11054
  #
11055
+ # @!attribute [rw] expected_bucket_owner
11056
+ # The account id of the expected bucket owner. If the bucket is owned
11057
+ # by a different account, the request will fail with an HTTP `403
11058
+ # (Access Denied)` error.
11059
+ # @return [String]
11060
+ #
10397
11061
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectRequest AWS API Documentation
10398
11062
  #
10399
11063
  class PutObjectRequest < Struct.new(
@@ -10426,7 +11090,8 @@ module Aws::S3
10426
11090
  :tagging,
10427
11091
  :object_lock_mode,
10428
11092
  :object_lock_retain_until_date,
10429
- :object_lock_legal_hold_status)
11093
+ :object_lock_legal_hold_status,
11094
+ :expected_bucket_owner)
10430
11095
  SENSITIVE = [:sse_customer_key, :ssekms_key_id, :ssekms_encryption_context]
10431
11096
  include Aws::Structure
10432
11097
  end
@@ -10458,6 +11123,7 @@ module Aws::S3
10458
11123
  # version_id: "ObjectVersionId",
10459
11124
  # bypass_governance_retention: false,
10460
11125
  # content_md5: "ContentMD5",
11126
+ # expected_bucket_owner: "AccountId",
10461
11127
  # }
10462
11128
  #
10463
11129
  # @!attribute [rw] bucket
@@ -10513,6 +11179,12 @@ module Aws::S3
10513
11179
  # The MD5 hash for the request body.
10514
11180
  # @return [String]
10515
11181
  #
11182
+ # @!attribute [rw] expected_bucket_owner
11183
+ # The account id of the expected bucket owner. If the bucket is owned
11184
+ # by a different account, the request will fail with an HTTP `403
11185
+ # (Access Denied)` error.
11186
+ # @return [String]
11187
+ #
10516
11188
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectRetentionRequest AWS API Documentation
10517
11189
  #
10518
11190
  class PutObjectRetentionRequest < Struct.new(
@@ -10522,7 +11194,8 @@ module Aws::S3
10522
11194
  :request_payer,
10523
11195
  :version_id,
10524
11196
  :bypass_governance_retention,
10525
- :content_md5)
11197
+ :content_md5,
11198
+ :expected_bucket_owner)
10526
11199
  SENSITIVE = []
10527
11200
  include Aws::Structure
10528
11201
  end
@@ -10555,6 +11228,7 @@ module Aws::S3
10555
11228
  # },
10556
11229
  # ],
10557
11230
  # },
11231
+ # expected_bucket_owner: "AccountId",
10558
11232
  # }
10559
11233
  #
10560
11234
  # @!attribute [rw] bucket
@@ -10590,6 +11264,12 @@ module Aws::S3
10590
11264
  # Container for the `TagSet` and `Tag` elements
10591
11265
  # @return [Types::Tagging]
10592
11266
  #
11267
+ # @!attribute [rw] expected_bucket_owner
11268
+ # The account id of the expected bucket owner. If the bucket is owned
11269
+ # by a different account, the request will fail with an HTTP `403
11270
+ # (Access Denied)` error.
11271
+ # @return [String]
11272
+ #
10593
11273
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTaggingRequest AWS API Documentation
10594
11274
  #
10595
11275
  class PutObjectTaggingRequest < Struct.new(
@@ -10597,7 +11277,8 @@ module Aws::S3
10597
11277
  :key,
10598
11278
  :version_id,
10599
11279
  :content_md5,
10600
- :tagging)
11280
+ :tagging,
11281
+ :expected_bucket_owner)
10601
11282
  SENSITIVE = []
10602
11283
  include Aws::Structure
10603
11284
  end
@@ -10614,6 +11295,7 @@ module Aws::S3
10614
11295
  # block_public_policy: false,
10615
11296
  # restrict_public_buckets: false,
10616
11297
  # },
11298
+ # expected_bucket_owner: "AccountId",
10617
11299
  # }
10618
11300
  #
10619
11301
  # @!attribute [rw] bucket
@@ -10637,12 +11319,19 @@ module Aws::S3
10637
11319
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status
10638
11320
  # @return [Types::PublicAccessBlockConfiguration]
10639
11321
  #
11322
+ # @!attribute [rw] expected_bucket_owner
11323
+ # The account id of the expected bucket owner. If the bucket is owned
11324
+ # by a different account, the request will fail with an HTTP `403
11325
+ # (Access Denied)` error.
11326
+ # @return [String]
11327
+ #
10640
11328
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutPublicAccessBlockRequest AWS API Documentation
10641
11329
  #
10642
11330
  class PutPublicAccessBlockRequest < Struct.new(
10643
11331
  :bucket,
10644
11332
  :content_md5,
10645
- :public_access_block_configuration)
11333
+ :public_access_block_configuration,
11334
+ :expected_bucket_owner)
10646
11335
  SENSITIVE = []
10647
11336
  include Aws::Structure
10648
11337
  end
@@ -11420,6 +12109,7 @@ module Aws::S3
11420
12109
  # },
11421
12110
  # },
11422
12111
  # request_payer: "requester", # accepts requester
12112
+ # expected_bucket_owner: "AccountId",
11423
12113
  # }
11424
12114
  #
11425
12115
  # @!attribute [rw] bucket
@@ -11463,6 +12153,12 @@ module Aws::S3
11463
12153
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
11464
12154
  # @return [String]
11465
12155
  #
12156
+ # @!attribute [rw] expected_bucket_owner
12157
+ # The account id of the expected bucket owner. If the bucket is owned
12158
+ # by a different account, the request will fail with an HTTP `403
12159
+ # (Access Denied)` error.
12160
+ # @return [String]
12161
+ #
11466
12162
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObjectRequest AWS API Documentation
11467
12163
  #
11468
12164
  class RestoreObjectRequest < Struct.new(
@@ -11470,7 +12166,8 @@ module Aws::S3
11470
12166
  :key,
11471
12167
  :version_id,
11472
12168
  :restore_request,
11473
- :request_payer)
12169
+ :request_payer,
12170
+ :expected_bucket_owner)
11474
12171
  SENSITIVE = []
11475
12172
  include Aws::Structure
11476
12173
  end
@@ -12033,6 +12730,7 @@ module Aws::S3
12033
12730
  # start: 1,
12034
12731
  # end: 1,
12035
12732
  # },
12733
+ # expected_bucket_owner: "AccountId",
12036
12734
  # }
12037
12735
  #
12038
12736
  # @!attribute [rw] bucket
@@ -12114,6 +12812,12 @@ module Aws::S3
12114
12812
  # within the last 50 bytes of the file.
12115
12813
  # @return [Types::ScanRange]
12116
12814
  #
12815
+ # @!attribute [rw] expected_bucket_owner
12816
+ # The account id of the expected bucket owner. If the bucket is owned
12817
+ # by a different account, the request will fail with an HTTP `403
12818
+ # (Access Denied)` error.
12819
+ # @return [String]
12820
+ #
12117
12821
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/SelectObjectContentRequest AWS API Documentation
12118
12822
  #
12119
12823
  class SelectObjectContentRequest < Struct.new(
@@ -12127,7 +12831,8 @@ module Aws::S3
12127
12831
  :request_progress,
12128
12832
  :input_serialization,
12129
12833
  :output_serialization,
12130
- :scan_range)
12834
+ :scan_range,
12835
+ :expected_bucket_owner)
12131
12836
  SENSITIVE = [:sse_customer_key]
12132
12837
  include Aws::Structure
12133
12838
  end
@@ -12793,6 +13498,8 @@ module Aws::S3
12793
13498
  # copy_source_sse_customer_key: "CopySourceSSECustomerKey",
12794
13499
  # copy_source_sse_customer_key_md5: "CopySourceSSECustomerKeyMD5",
12795
13500
  # request_payer: "requester", # accepts requester
13501
+ # expected_bucket_owner: "AccountId",
13502
+ # expected_source_bucket_owner: "AccountId",
12796
13503
  # }
12797
13504
  #
12798
13505
  # @!attribute [rw] bucket
@@ -12800,8 +13507,41 @@ module Aws::S3
12800
13507
  # @return [String]
12801
13508
  #
12802
13509
  # @!attribute [rw] copy_source
12803
- # The name of the source bucket and key name of the source object,
12804
- # separated by a slash (/). Must be URL-encoded.
13510
+ # Specifies the source object for the copy operation. You specify the
13511
+ # value in one of two formats, depending on whether you want to access
13512
+ # the source object through an [access point][1]\:
13513
+ #
13514
+ # * For objects not accessed through an access point, specify the name
13515
+ # of the source bucket and key of the source object, separated by a
13516
+ # slash (/). For example, to copy the object `reports/january.pdf`
13517
+ # from the bucket `awsexamplebucket`, use
13518
+ # `awsexamplebucket/reports/january.pdf`. The value must be URL
13519
+ # encoded.
13520
+ #
13521
+ # * For objects accessed through access points, specify the Amazon
13522
+ # Resource Name (ARN) of the object as accessed through the access
13523
+ # point, in the format
13524
+ # `arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key>`.
13525
+ # For example, to copy the object `reports/january.pdf` through the
13526
+ # access point `my-access-point` owned by account `123456789012` in
13527
+ # Region `us-west-2`, use the URL encoding of
13528
+ # `arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf`.
13529
+ # The value must be URL encoded.
13530
+ #
13531
+ # <note markdown="1"> Amazon S3 supports copy operations using access points only when
13532
+ # the source and destination buckets are in the same AWS Region.
13533
+ #
13534
+ # </note>
13535
+ #
13536
+ # To copy a specific version of an object, append
13537
+ # `?versionId=<version-id>` to the value (for example,
13538
+ # `awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893`).
13539
+ # If you don't specify a version ID, Amazon S3 copies the latest
13540
+ # version of the source object.
13541
+ #
13542
+ #
13543
+ #
13544
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html
12805
13545
  # @return [String]
12806
13546
  #
12807
13547
  # @!attribute [rw] copy_source_if_match
@@ -12895,6 +13635,18 @@ module Aws::S3
12895
13635
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
12896
13636
  # @return [String]
12897
13637
  #
13638
+ # @!attribute [rw] expected_bucket_owner
13639
+ # The account id of the expected destination bucket owner. If the
13640
+ # destination bucket is owned by a different account, the request will
13641
+ # fail with an HTTP `403 (Access Denied)` error.
13642
+ # @return [String]
13643
+ #
13644
+ # @!attribute [rw] expected_source_bucket_owner
13645
+ # The account id of the expected source bucket owner. If the source
13646
+ # bucket is owned by a different account, the request will fail with
13647
+ # an HTTP `403 (Access Denied)` error.
13648
+ # @return [String]
13649
+ #
12898
13650
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopyRequest AWS API Documentation
12899
13651
  #
12900
13652
  class UploadPartCopyRequest < Struct.new(
@@ -12914,7 +13666,9 @@ module Aws::S3
12914
13666
  :copy_source_sse_customer_algorithm,
12915
13667
  :copy_source_sse_customer_key,
12916
13668
  :copy_source_sse_customer_key_md5,
12917
- :request_payer)
13669
+ :request_payer,
13670
+ :expected_bucket_owner,
13671
+ :expected_source_bucket_owner)
12918
13672
  SENSITIVE = [:sse_customer_key, :copy_source_sse_customer_key]
12919
13673
  include Aws::Structure
12920
13674
  end
@@ -12980,6 +13734,7 @@ module Aws::S3
12980
13734
  # sse_customer_key: "SSECustomerKey",
12981
13735
  # sse_customer_key_md5: "SSECustomerKeyMD5",
12982
13736
  # request_payer: "requester", # accepts requester
13737
+ # expected_bucket_owner: "AccountId",
12983
13738
  # }
12984
13739
  #
12985
13740
  # @!attribute [rw] body
@@ -13048,6 +13803,12 @@ module Aws::S3
13048
13803
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
13049
13804
  # @return [String]
13050
13805
  #
13806
+ # @!attribute [rw] expected_bucket_owner
13807
+ # The account id of the expected bucket owner. If the bucket is owned
13808
+ # by a different account, the request will fail with an HTTP `403
13809
+ # (Access Denied)` error.
13810
+ # @return [String]
13811
+ #
13051
13812
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartRequest AWS API Documentation
13052
13813
  #
13053
13814
  class UploadPartRequest < Struct.new(
@@ -13061,7 +13822,8 @@ module Aws::S3
13061
13822
  :sse_customer_algorithm,
13062
13823
  :sse_customer_key,
13063
13824
  :sse_customer_key_md5,
13064
- :request_payer)
13825
+ :request_payer,
13826
+ :expected_bucket_owner)
13065
13827
  SENSITIVE = [:sse_customer_key]
13066
13828
  include Aws::Structure
13067
13829
  end