@aws-sdk/client-s3 3.703.0 → 3.709.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.
Files changed (52) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +330 -102
  3. package/dist-es/S3.js +6 -0
  4. package/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +32 -0
  5. package/dist-es/commands/DeleteBucketMetadataTableConfigurationCommand.js +26 -0
  6. package/dist-es/commands/GetBucketMetadataTableConfigurationCommand.js +28 -0
  7. package/dist-es/commands/PutBucketEncryptionCommand.js +1 -1
  8. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +1 -1
  9. package/dist-es/commands/index.js +3 -0
  10. package/dist-es/models/models_0.js +0 -12
  11. package/dist-es/models/models_1.js +13 -0
  12. package/dist-es/protocols/Aws_restXml.js +157 -0
  13. package/dist-types/S3.d.ts +21 -0
  14. package/dist-types/S3Client.d.ts +5 -2
  15. package/dist-types/commands/CreateBucketCommand.d.ts +13 -13
  16. package/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +134 -0
  17. package/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +95 -0
  18. package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
  19. package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
  20. package/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +111 -0
  21. package/dist-types/commands/GetObjectCommand.d.ts +19 -19
  22. package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -19
  23. package/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  24. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -1
  25. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  26. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  27. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
  28. package/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  29. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  30. package/dist-types/commands/PutObjectCommand.d.ts +40 -40
  31. package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
  32. package/dist-types/commands/index.d.ts +3 -0
  33. package/dist-types/models/models_0.d.ts +377 -352
  34. package/dist-types/models/models_1.d.ts +352 -1
  35. package/dist-types/protocols/Aws_restXml.d.ts +27 -0
  36. package/dist-types/ts3.4/S3.d.ts +69 -0
  37. package/dist-types/ts3.4/S3Client.d.ts +18 -0
  38. package/dist-types/ts3.4/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +47 -0
  39. package/dist-types/ts3.4/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +47 -0
  40. package/dist-types/ts3.4/commands/GetBucketMetadataTableConfigurationCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +47 -66
  50. package/dist-types/ts3.4/models/models_1.d.ts +74 -0
  51. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +36 -0
  52. package/package.json +52 -52
@@ -1996,6 +1996,95 @@ export interface CreateBucketRequest {
1996
1996
  */
1997
1997
  ObjectOwnership?: ObjectOwnership | undefined;
1998
1998
  }
1999
+ /**
2000
+ * <p>
2001
+ * The destination information for the metadata table configuration. The destination table bucket
2002
+ * must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata
2003
+ * table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination
2004
+ * table bucket.
2005
+ * </p>
2006
+ * @public
2007
+ */
2008
+ export interface S3TablesDestination {
2009
+ /**
2010
+ * <p>
2011
+ * The Amazon Resource Name (ARN) for the table bucket that's specified as the
2012
+ * destination in the metadata table configuration. The destination table bucket
2013
+ * must be in the same Region and Amazon Web Services account as the general purpose bucket.
2014
+ * </p>
2015
+ * @public
2016
+ */
2017
+ TableBucketArn: string | undefined;
2018
+ /**
2019
+ * <p>
2020
+ * The name for the metadata table in your metadata table configuration. The specified metadata
2021
+ * table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination
2022
+ * table bucket.
2023
+ * </p>
2024
+ * @public
2025
+ */
2026
+ TableName: string | undefined;
2027
+ }
2028
+ /**
2029
+ * <p>
2030
+ * The metadata table configuration for a general purpose bucket.
2031
+ * </p>
2032
+ * @public
2033
+ */
2034
+ export interface MetadataTableConfiguration {
2035
+ /**
2036
+ * <p>
2037
+ * The destination information for the metadata table configuration. The destination table bucket
2038
+ * must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata
2039
+ * table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination
2040
+ * table bucket.
2041
+ * </p>
2042
+ * @public
2043
+ */
2044
+ S3TablesDestination: S3TablesDestination | undefined;
2045
+ }
2046
+ /**
2047
+ * @public
2048
+ */
2049
+ export interface CreateBucketMetadataTableConfigurationRequest {
2050
+ /**
2051
+ * <p>
2052
+ * The general purpose bucket that you want to create the metadata table configuration in.
2053
+ * </p>
2054
+ * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
2055
+ * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
2056
+ * @public
2057
+ */
2058
+ Bucket: string | undefined;
2059
+ /**
2060
+ * <p>
2061
+ * The <code>Content-MD5</code> header for the metadata table configuration.
2062
+ * </p>
2063
+ * @public
2064
+ */
2065
+ ContentMD5?: string | undefined;
2066
+ /**
2067
+ * <p>
2068
+ * The checksum algorithm to use with your metadata table configuration.
2069
+ * </p>
2070
+ * @public
2071
+ */
2072
+ ChecksumAlgorithm?: ChecksumAlgorithm | undefined;
2073
+ /**
2074
+ * <p>
2075
+ * The contents of your metadata table configuration.
2076
+ * </p>
2077
+ * @public
2078
+ */
2079
+ MetadataTableConfiguration: MetadataTableConfiguration | undefined;
2080
+ /**
2081
+ * <p>
2082
+ * The expected owner of the general purpose bucket that contains your metadata table configuration.
2083
+ * </p>
2084
+ * @public
2085
+ */
2086
+ ExpectedBucketOwner?: string | undefined;
2087
+ }
1999
2088
  /**
2000
2089
  * @public
2001
2090
  */
@@ -2997,6 +3086,28 @@ export interface DeleteBucketLifecycleRequest {
2997
3086
  */
2998
3087
  ExpectedBucketOwner?: string | undefined;
2999
3088
  }
3089
+ /**
3090
+ * @public
3091
+ */
3092
+ export interface DeleteBucketMetadataTableConfigurationRequest {
3093
+ /**
3094
+ * <p>
3095
+ * The general purpose bucket that you want to remove the metadata table configuration from.
3096
+ * </p>
3097
+ * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
3098
+ * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
3099
+ * @public
3100
+ */
3101
+ Bucket: string | undefined;
3102
+ /**
3103
+ * <p>
3104
+ * The expected bucket owner of the general purpose bucket that you want to remove the
3105
+ * metadata table configuration from.
3106
+ * </p>
3107
+ * @public
3108
+ */
3109
+ ExpectedBucketOwner?: string | undefined;
3110
+ }
3000
3111
  /**
3001
3112
  * @public
3002
3113
  */
@@ -7097,6 +7208,271 @@ export interface GetBucketLoggingRequest {
7097
7208
  */
7098
7209
  ExpectedBucketOwner?: string | undefined;
7099
7210
  }
7211
+ /**
7212
+ * <p>
7213
+ * If the <code>CreateBucketMetadataTableConfiguration</code> request succeeds, but S3 Metadata was
7214
+ * unable to create the table, this structure contains the error code and error message.
7215
+ * </p>
7216
+ * @public
7217
+ */
7218
+ export interface ErrorDetails {
7219
+ /**
7220
+ * <p>
7221
+ * If the <code>CreateBucketMetadataTableConfiguration</code> request succeeds, but S3 Metadata was
7222
+ * unable to create the table, this structure contains the error code. The possible error codes and
7223
+ * error messages are as follows:
7224
+ * </p>
7225
+ * <ul>
7226
+ * <li>
7227
+ * <p>
7228
+ * <code>AccessDeniedCreatingResources</code> - You don't have sufficient permissions to
7229
+ * create the required resources. Make sure that you have <code>s3tables:CreateNamespace</code>,
7230
+ * <code>s3tables:CreateTable</code>, <code>s3tables:GetTable</code> and
7231
+ * <code>s3tables:PutTablePolicy</code> permissions, and then try again. To create a new metadata
7232
+ * table, you must delete the metadata configuration for this bucket, and then create a new
7233
+ * metadata configuration.
7234
+ * </p>
7235
+ * </li>
7236
+ * <li>
7237
+ * <p>
7238
+ * <code>AccessDeniedWritingToTable</code> - Unable to write to the metadata table because of
7239
+ * missing resource permissions. To fix the resource policy, Amazon S3 needs to create a new
7240
+ * metadata table. To create a new metadata table, you must delete the metadata configuration for
7241
+ * this bucket, and then create a new metadata configuration.</p>
7242
+ * </li>
7243
+ * <li>
7244
+ * <p>
7245
+ * <code>DestinationTableNotFound</code> - The destination table doesn't exist. To create a
7246
+ * new metadata table, you must delete the metadata configuration for this bucket, and then
7247
+ * create a new metadata configuration.</p>
7248
+ * </li>
7249
+ * <li>
7250
+ * <p>
7251
+ * <code>ServerInternalError</code> - An internal error has occurred. To create a new metadata
7252
+ * table, you must delete the metadata configuration for this bucket, and then create a new
7253
+ * metadata configuration.</p>
7254
+ * </li>
7255
+ * <li>
7256
+ * <p>
7257
+ * <code>TableAlreadyExists</code> - The table that you specified already exists in the table
7258
+ * bucket's namespace. Specify a different table name. To create a new metadata table, you must
7259
+ * delete the metadata configuration for this bucket, and then create a new metadata
7260
+ * configuration.</p>
7261
+ * </li>
7262
+ * <li>
7263
+ * <p>
7264
+ * <code>TableBucketNotFound</code> - The table bucket that you specified doesn't exist in
7265
+ * this Amazon Web Services Region and account. Create or choose a different table bucket. To create a new
7266
+ * metadata table, you must delete the metadata configuration for this bucket, and then create
7267
+ * a new metadata configuration.</p>
7268
+ * </li>
7269
+ * </ul>
7270
+ * @public
7271
+ */
7272
+ ErrorCode?: string | undefined;
7273
+ /**
7274
+ * <p>
7275
+ * If the <code>CreateBucketMetadataTableConfiguration</code> request succeeds, but S3 Metadata was
7276
+ * unable to create the table, this structure contains the error message. The possible error codes and
7277
+ * error messages are as follows:
7278
+ * </p>
7279
+ * <ul>
7280
+ * <li>
7281
+ * <p>
7282
+ * <code>AccessDeniedCreatingResources</code> - You don't have sufficient permissions to
7283
+ * create the required resources. Make sure that you have <code>s3tables:CreateNamespace</code>,
7284
+ * <code>s3tables:CreateTable</code>, <code>s3tables:GetTable</code> and
7285
+ * <code>s3tables:PutTablePolicy</code> permissions, and then try again. To create a new metadata
7286
+ * table, you must delete the metadata configuration for this bucket, and then create a new
7287
+ * metadata configuration.
7288
+ * </p>
7289
+ * </li>
7290
+ * <li>
7291
+ * <p>
7292
+ * <code>AccessDeniedWritingToTable</code> - Unable to write to the metadata table because of
7293
+ * missing resource permissions. To fix the resource policy, Amazon S3 needs to create a new
7294
+ * metadata table. To create a new metadata table, you must delete the metadata configuration for
7295
+ * this bucket, and then create a new metadata configuration.</p>
7296
+ * </li>
7297
+ * <li>
7298
+ * <p>
7299
+ * <code>DestinationTableNotFound</code> - The destination table doesn't exist. To create a
7300
+ * new metadata table, you must delete the metadata configuration for this bucket, and then
7301
+ * create a new metadata configuration.</p>
7302
+ * </li>
7303
+ * <li>
7304
+ * <p>
7305
+ * <code>ServerInternalError</code> - An internal error has occurred. To create a new metadata
7306
+ * table, you must delete the metadata configuration for this bucket, and then create a new
7307
+ * metadata configuration.</p>
7308
+ * </li>
7309
+ * <li>
7310
+ * <p>
7311
+ * <code>TableAlreadyExists</code> - The table that you specified already exists in the table
7312
+ * bucket's namespace. Specify a different table name. To create a new metadata table, you must
7313
+ * delete the metadata configuration for this bucket, and then create a new metadata
7314
+ * configuration.</p>
7315
+ * </li>
7316
+ * <li>
7317
+ * <p>
7318
+ * <code>TableBucketNotFound</code> - The table bucket that you specified doesn't exist in
7319
+ * this Amazon Web Services Region and account. Create or choose a different table bucket. To create a new
7320
+ * metadata table, you must delete the metadata configuration for this bucket, and then create
7321
+ * a new metadata configuration.</p>
7322
+ * </li>
7323
+ * </ul>
7324
+ * @public
7325
+ */
7326
+ ErrorMessage?: string | undefined;
7327
+ }
7328
+ /**
7329
+ * <p>
7330
+ * The destination information for the metadata table configuration. The destination table bucket
7331
+ * must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata
7332
+ * table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination
7333
+ * table bucket.
7334
+ * </p>
7335
+ * @public
7336
+ */
7337
+ export interface S3TablesDestinationResult {
7338
+ /**
7339
+ * <p>
7340
+ * The Amazon Resource Name (ARN) for the table bucket that's specified as the
7341
+ * destination in the metadata table configuration. The destination table bucket
7342
+ * must be in the same Region and Amazon Web Services account as the general purpose bucket.
7343
+ * </p>
7344
+ * @public
7345
+ */
7346
+ TableBucketArn: string | undefined;
7347
+ /**
7348
+ * <p>
7349
+ * The name for the metadata table in your metadata table configuration. The specified metadata
7350
+ * table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination
7351
+ * table bucket.
7352
+ * </p>
7353
+ * @public
7354
+ */
7355
+ TableName: string | undefined;
7356
+ /**
7357
+ * <p>
7358
+ * The Amazon Resource Name (ARN) for the metadata table in the metadata table configuration. The
7359
+ * specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace
7360
+ * in the destination table bucket.
7361
+ * </p>
7362
+ * @public
7363
+ */
7364
+ TableArn: string | undefined;
7365
+ /**
7366
+ * <p>
7367
+ * The table bucket namespace for the metadata table in your metadata table configuration. This value
7368
+ * is always <code>aws_s3_metadata</code>.
7369
+ * </p>
7370
+ * @public
7371
+ */
7372
+ TableNamespace: string | undefined;
7373
+ }
7374
+ /**
7375
+ * <p>
7376
+ * The metadata table configuration for a general purpose bucket. The destination table bucket
7377
+ * must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata
7378
+ * table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination
7379
+ * table bucket.
7380
+ * </p>
7381
+ * @public
7382
+ */
7383
+ export interface MetadataTableConfigurationResult {
7384
+ /**
7385
+ * <p>
7386
+ * The destination information for the metadata table configuration. The destination table bucket
7387
+ * must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata
7388
+ * table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination
7389
+ * table bucket.
7390
+ * </p>
7391
+ * @public
7392
+ */
7393
+ S3TablesDestinationResult: S3TablesDestinationResult | undefined;
7394
+ }
7395
+ /**
7396
+ * <p>
7397
+ * The metadata table configuration for a general purpose bucket.
7398
+ * </p>
7399
+ * @public
7400
+ */
7401
+ export interface GetBucketMetadataTableConfigurationResult {
7402
+ /**
7403
+ * <p>
7404
+ * The metadata table configuration for a general purpose bucket.
7405
+ * </p>
7406
+ * @public
7407
+ */
7408
+ MetadataTableConfigurationResult: MetadataTableConfigurationResult | undefined;
7409
+ /**
7410
+ * <p>
7411
+ * The status of the metadata table. The status values are:
7412
+ * </p>
7413
+ * <ul>
7414
+ * <li>
7415
+ * <p>
7416
+ * <code>CREATING</code> - The metadata table is in the process of being created in the
7417
+ * specified table bucket.</p>
7418
+ * </li>
7419
+ * <li>
7420
+ * <p>
7421
+ * <code>ACTIVE</code> - The metadata table has been created successfully and records
7422
+ * are being delivered to the table.
7423
+ * </p>
7424
+ * </li>
7425
+ * <li>
7426
+ * <p>
7427
+ * <code>FAILED</code> - Amazon S3 is unable to create the metadata table, or Amazon S3 is unable to deliver
7428
+ * records. See <code>ErrorDetails</code> for details.</p>
7429
+ * </li>
7430
+ * </ul>
7431
+ * @public
7432
+ */
7433
+ Status: string | undefined;
7434
+ /**
7435
+ * <p>
7436
+ * If the <code>CreateBucketMetadataTableConfiguration</code> request succeeds, but S3 Metadata was
7437
+ * unable to create the table, this structure contains the error code and error message.
7438
+ * </p>
7439
+ * @public
7440
+ */
7441
+ Error?: ErrorDetails | undefined;
7442
+ }
7443
+ /**
7444
+ * @public
7445
+ */
7446
+ export interface GetBucketMetadataTableConfigurationOutput {
7447
+ /**
7448
+ * <p>
7449
+ * The metadata table configuration for the general purpose bucket.
7450
+ * </p>
7451
+ * @public
7452
+ */
7453
+ GetBucketMetadataTableConfigurationResult?: GetBucketMetadataTableConfigurationResult | undefined;
7454
+ }
7455
+ /**
7456
+ * @public
7457
+ */
7458
+ export interface GetBucketMetadataTableConfigurationRequest {
7459
+ /**
7460
+ * <p>
7461
+ * The general purpose bucket that contains the metadata table configuration that you want to retrieve.
7462
+ * </p>
7463
+ * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
7464
+ * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
7465
+ * @public
7466
+ */
7467
+ Bucket: string | undefined;
7468
+ /**
7469
+ * <p>
7470
+ * The expected owner of the general purpose bucket that you want to retrieve the metadata table configuration from.
7471
+ * </p>
7472
+ * @public
7473
+ */
7474
+ ExpectedBucketOwner?: string | undefined;
7475
+ }
7100
7476
  /**
7101
7477
  * <p>A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.
7102
7478
  * The operator must have at least two predicates, and an object must match all of the
@@ -12749,350 +13125,7 @@ export interface CORSConfiguration {
12749
13125
  CORSRules: CORSRule[] | undefined;
12750
13126
  }
12751
13127
  /**
12752
- * @public
12753
- */
12754
- export interface PutBucketCorsRequest {
12755
- /**
12756
- * <p>Specifies the bucket impacted by the <code>cors</code>configuration.</p>
12757
- * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
12758
- * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
12759
- * @public
12760
- */
12761
- Bucket: string | undefined;
12762
- /**
12763
- * <p>Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more
12764
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html">Enabling
12765
- * Cross-Origin Resource Sharing</a> in the
12766
- * <i>Amazon S3 User Guide</i>.</p>
12767
- * @public
12768
- */
12769
- CORSConfiguration: CORSConfiguration | undefined;
12770
- /**
12771
- * <p>The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message
12772
- * integrity check to verify that the request body was not corrupted in transit. For more
12773
- * information, go to <a href="http://www.ietf.org/rfc/rfc1864.txt">RFC
12774
- * 1864.</a>
12775
- * </p>
12776
- * <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
12777
- * @public
12778
- */
12779
- ContentMD5?: string | undefined;
12780
- /**
12781
- * <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any
12782
- * additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or
12783
- * <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more
12784
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
12785
- * the <i>Amazon S3 User Guide</i>.</p>
12786
- * <p>If you provide an individual checksum, Amazon S3 ignores any provided
12787
- * <code>ChecksumAlgorithm</code> parameter.</p>
12788
- * @public
12789
- */
12790
- ChecksumAlgorithm?: ChecksumAlgorithm | undefined;
12791
- /**
12792
- * <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
12793
- * @public
12794
- */
12795
- ExpectedBucketOwner?: string | undefined;
12796
- }
12797
- /**
12798
- * @public
12799
- */
12800
- export interface PutBucketEncryptionRequest {
12801
- /**
12802
- * <p>Specifies default encryption for a bucket using server-side encryption with different
12803
- * key options.</p>
12804
- * <p>
12805
- * <b>Directory buckets </b> - When you use this operation with a directory bucket, you must use path-style requests in the format <code>https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i>
12806
- * </code>. Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format <code>
12807
- * <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code>
12808
- * <i>DOC-EXAMPLE-BUCKET</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>
12809
- * </p>
12810
- * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
12811
- * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
12812
- * @public
12813
- */
12814
- Bucket: string | undefined;
12815
- /**
12816
- * <p>The base64-encoded 128-bit MD5 digest of the server-side encryption
12817
- * configuration.</p>
12818
- * <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
12819
- * <note>
12820
- * <p>This functionality is not supported for directory buckets.</p>
12821
- * </note>
12822
- * @public
12823
- */
12824
- ContentMD5?: string | undefined;
12825
- /**
12826
- * <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any
12827
- * additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or
12828
- * <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more
12829
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
12830
- * the <i>Amazon S3 User Guide</i>.</p>
12831
- * <p>If you provide an individual checksum, Amazon S3 ignores any provided
12832
- * <code>ChecksumAlgorithm</code> parameter.</p>
12833
- * <note>
12834
- * <p>For directory buckets, when you use Amazon Web Services SDKs, <code>CRC32</code> is the default checksum algorithm that's used for performance.</p>
12835
- * </note>
12836
- * @public
12837
- */
12838
- ChecksumAlgorithm?: ChecksumAlgorithm | undefined;
12839
- /**
12840
- * <p>Specifies the default server-side-encryption configuration.</p>
12841
- * @public
12842
- */
12843
- ServerSideEncryptionConfiguration: ServerSideEncryptionConfiguration | undefined;
12844
- /**
12845
- * <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
12846
- * <note>
12847
- * <p>For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code
12848
- * <code>501 Not Implemented</code>.</p>
12849
- * </note>
12850
- * @public
12851
- */
12852
- ExpectedBucketOwner?: string | undefined;
12853
- }
12854
- /**
12855
- * @public
12856
- */
12857
- export interface PutBucketIntelligentTieringConfigurationRequest {
12858
- /**
12859
- * <p>The name of the Amazon S3 bucket whose configuration you want to modify or retrieve.</p>
12860
- * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
12861
- * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
12862
- * @public
12863
- */
12864
- Bucket: string | undefined;
12865
- /**
12866
- * <p>The ID used to identify the S3 Intelligent-Tiering configuration.</p>
12867
- * @public
12868
- */
12869
- Id: string | undefined;
12870
- /**
12871
- * <p>Container for S3 Intelligent-Tiering configuration.</p>
12872
- * @public
12873
- */
12874
- IntelligentTieringConfiguration: IntelligentTieringConfiguration | undefined;
12875
- }
12876
- /**
12877
- * @public
12878
- */
12879
- export interface PutBucketInventoryConfigurationRequest {
12880
- /**
12881
- * <p>The name of the bucket where the inventory configuration will be stored.</p>
12882
- * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
12883
- * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
12884
- * @public
12885
- */
12886
- Bucket: string | undefined;
12887
- /**
12888
- * <p>The ID used to identify the inventory configuration.</p>
12889
- * @public
12890
- */
12891
- Id: string | undefined;
12892
- /**
12893
- * <p>Specifies the inventory configuration.</p>
12894
- * @public
12895
- */
12896
- InventoryConfiguration: InventoryConfiguration | undefined;
12897
- /**
12898
- * <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
12899
- * @public
12900
- */
12901
- ExpectedBucketOwner?: string | undefined;
12902
- }
12903
- /**
12904
- * @public
12905
- */
12906
- export interface PutBucketLifecycleConfigurationOutput {
12907
- /**
12908
- * <p>Indicates which default minimum object size behavior is applied to the lifecycle
12909
- * configuration.</p>
12910
- * <note>
12911
- * <p>This parameter applies to general purpose buckets only. It is not supported for
12912
- * directory bucket lifecycle configurations.</p>
12913
- * </note>
12914
- * <ul>
12915
- * <li>
12916
- * <p>
12917
- * <code>all_storage_classes_128K</code> - Objects smaller than 128 KB will not
12918
- * transition to any storage class by default. </p>
12919
- * </li>
12920
- * <li>
12921
- * <p>
12922
- * <code>varies_by_storage_class</code> - Objects smaller than 128 KB will
12923
- * transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By
12924
- * default, all other storage classes will prevent transitions smaller than 128 KB.
12925
- * </p>
12926
- * </li>
12927
- * </ul>
12928
- * <p>To customize the minimum object size for any transition you can add a filter that
12929
- * specifies a custom <code>ObjectSizeGreaterThan</code> or <code>ObjectSizeLessThan</code> in
12930
- * the body of your transition rule. Custom filters always take precedence over the default
12931
- * transition behavior.</p>
12932
- * @public
12933
- */
12934
- TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize | undefined;
12935
- }
12936
- /**
12937
- * <p>Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more
12938
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">Object Lifecycle Management</a>
12939
- * in the <i>Amazon S3 User Guide</i>.</p>
12940
- * @public
12941
- */
12942
- export interface BucketLifecycleConfiguration {
12943
- /**
12944
- * <p>A lifecycle rule for individual objects in an Amazon S3 bucket.</p>
12945
- * @public
12946
- */
12947
- Rules: LifecycleRule[] | undefined;
12948
- }
12949
- /**
12950
- * @public
12951
- */
12952
- export interface PutBucketLifecycleConfigurationRequest {
12953
- /**
12954
- * <p>The name of the bucket for which to set the configuration.</p>
12955
- * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
12956
- * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
12957
- * @public
12958
- */
12959
- Bucket: string | undefined;
12960
- /**
12961
- * <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any
12962
- * additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or
12963
- * <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more
12964
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
12965
- * the <i>Amazon S3 User Guide</i>.</p>
12966
- * <p>If you provide an individual checksum, Amazon S3 ignores any provided
12967
- * <code>ChecksumAlgorithm</code> parameter.</p>
12968
- * @public
12969
- */
12970
- ChecksumAlgorithm?: ChecksumAlgorithm | undefined;
12971
- /**
12972
- * <p>Container for lifecycle rules. You can add as many as 1,000 rules.</p>
12973
- * @public
12974
- */
12975
- LifecycleConfiguration?: BucketLifecycleConfiguration | undefined;
12976
- /**
12977
- * <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
12978
- * <note>
12979
- * <p>This parameter applies to general purpose buckets only. It is not supported for
12980
- * directory bucket lifecycle configurations.</p>
12981
- * </note>
12982
- * @public
12983
- */
12984
- ExpectedBucketOwner?: string | undefined;
12985
- /**
12986
- * <p>Indicates which default minimum object size behavior is applied to the lifecycle
12987
- * configuration.</p>
12988
- * <note>
12989
- * <p>This parameter applies to general purpose buckets only. It is not supported for
12990
- * directory bucket lifecycle configurations.</p>
12991
- * </note>
12992
- * <ul>
12993
- * <li>
12994
- * <p>
12995
- * <code>all_storage_classes_128K</code> - Objects smaller than 128 KB will not
12996
- * transition to any storage class by default. </p>
12997
- * </li>
12998
- * <li>
12999
- * <p>
13000
- * <code>varies_by_storage_class</code> - Objects smaller than 128 KB will
13001
- * transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By
13002
- * default, all other storage classes will prevent transitions smaller than 128 KB.
13003
- * </p>
13004
- * </li>
13005
- * </ul>
13006
- * <p>To customize the minimum object size for any transition you can add a filter that
13007
- * specifies a custom <code>ObjectSizeGreaterThan</code> or <code>ObjectSizeLessThan</code> in
13008
- * the body of your transition rule. Custom filters always take precedence over the default
13009
- * transition behavior.</p>
13010
- * @public
13011
- */
13012
- TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize | undefined;
13013
- }
13014
- /**
13015
- * <p>Container for logging status information.</p>
13016
- * @public
13017
- */
13018
- export interface BucketLoggingStatus {
13019
- /**
13020
- * <p>Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys
13021
- * for a bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html">PUT Bucket logging</a> in the
13022
- * <i>Amazon S3 API Reference</i>.</p>
13023
- * @public
13024
- */
13025
- LoggingEnabled?: LoggingEnabled | undefined;
13026
- }
13027
- /**
13028
- * @public
13029
- */
13030
- export interface PutBucketLoggingRequest {
13031
- /**
13032
- * <p>The name of the bucket for which to set the logging parameters.</p>
13033
- * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
13034
- * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
13035
- * @public
13036
- */
13037
- Bucket: string | undefined;
13038
- /**
13039
- * <p>Container for logging status information.</p>
13040
- * @public
13041
- */
13042
- BucketLoggingStatus: BucketLoggingStatus | undefined;
13043
- /**
13044
- * <p>The MD5 hash of the <code>PutBucketLogging</code> request body.</p>
13045
- * <p>For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.</p>
13046
- * @public
13047
- */
13048
- ContentMD5?: string | undefined;
13049
- /**
13050
- * <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any
13051
- * additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or
13052
- * <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more
13053
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in
13054
- * the <i>Amazon S3 User Guide</i>.</p>
13055
- * <p>If you provide an individual checksum, Amazon S3 ignores any provided
13056
- * <code>ChecksumAlgorithm</code> parameter.</p>
13057
- * @public
13058
- */
13059
- ChecksumAlgorithm?: ChecksumAlgorithm | undefined;
13060
- /**
13061
- * <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
13062
- * @public
13063
- */
13064
- ExpectedBucketOwner?: string | undefined;
13065
- }
13066
- /**
13067
- * @public
13068
- */
13069
- export interface PutBucketMetricsConfigurationRequest {
13070
- /**
13071
- * <p>The name of the bucket for which the metrics configuration is set.</p>
13072
- * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
13073
- * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
13074
- * @public
13075
- */
13076
- Bucket: string | undefined;
13077
- /**
13078
- * <p>The ID used to identify the metrics configuration. The ID has a 64 character limit and
13079
- * can only contain letters, numbers, periods, dashes, and underscores.</p>
13080
- * @public
13081
- */
13082
- Id: string | undefined;
13083
- /**
13084
- * <p>Specifies the metrics configuration.</p>
13085
- * @public
13086
- */
13087
- MetricsConfiguration: MetricsConfiguration | undefined;
13088
- /**
13089
- * <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
13090
- * @public
13091
- */
13092
- ExpectedBucketOwner?: string | undefined;
13093
- }
13094
- /**
13095
- * @internal
13128
+ * @internal
13096
13129
  */
13097
13130
  export declare const CompleteMultipartUploadOutputFilterSensitiveLog: (obj: CompleteMultipartUploadOutput) => any;
13098
13131
  /**
@@ -13199,11 +13232,3 @@ export declare const ListBucketInventoryConfigurationsOutputFilterSensitiveLog:
13199
13232
  * @internal
13200
13233
  */
13201
13234
  export declare const ListPartsRequestFilterSensitiveLog: (obj: ListPartsRequest) => any;
13202
- /**
13203
- * @internal
13204
- */
13205
- export declare const PutBucketEncryptionRequestFilterSensitiveLog: (obj: PutBucketEncryptionRequest) => any;
13206
- /**
13207
- * @internal
13208
- */
13209
- export declare const PutBucketInventoryConfigurationRequestFilterSensitiveLog: (obj: PutBucketInventoryConfigurationRequest) => any;