@aws-sdk/client-s3 3.697.0 → 3.698.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 (103) hide show
  1. package/dist-cjs/index.js +152 -5
  2. package/dist-es/models/models_1.js +48 -0
  3. package/dist-es/protocols/Aws_restXml.js +75 -4
  4. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +16 -13
  5. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +47 -42
  6. package/dist-types/commands/CopyObjectCommand.d.ts +77 -57
  7. package/dist-types/commands/CreateBucketCommand.d.ts +60 -45
  8. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +92 -66
  9. package/dist-types/commands/CreateSessionCommand.d.ts +30 -16
  10. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteBucketCommand.d.ts +10 -3
  12. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +18 -10
  14. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +52 -9
  17. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +25 -21
  20. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteObjectCommand.d.ts +3 -0
  24. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteObjectsCommand.d.ts +41 -27
  26. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -1
  27. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -1
  28. package/dist-types/commands/GetBucketAclCommand.d.ts +1 -1
  29. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -1
  30. package/dist-types/commands/GetBucketCorsCommand.d.ts +1 -1
  31. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +18 -10
  32. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  33. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  34. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +61 -17
  35. package/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
  36. package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -1
  37. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -1
  39. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -1
  40. package/dist-types/commands/GetBucketPolicyCommand.d.ts +30 -21
  41. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -1
  42. package/dist-types/commands/GetBucketReplicationCommand.d.ts +1 -1
  43. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +1 -1
  44. package/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  45. package/dist-types/commands/GetBucketVersioningCommand.d.ts +1 -1
  46. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +1 -1
  47. package/dist-types/commands/GetObjectAclCommand.d.ts +1 -1
  48. package/dist-types/commands/GetObjectAttributesCommand.d.ts +62 -44
  49. package/dist-types/commands/GetObjectCommand.d.ts +79 -60
  50. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -1
  51. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -1
  52. package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -1
  53. package/dist-types/commands/GetObjectTaggingCommand.d.ts +1 -1
  54. package/dist-types/commands/GetObjectTorrentCommand.d.ts +1 -1
  55. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -1
  56. package/dist-types/commands/HeadBucketCommand.d.ts +32 -16
  57. package/dist-types/commands/HeadObjectCommand.d.ts +60 -38
  58. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -1
  59. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -1
  60. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  61. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -1
  62. package/dist-types/commands/ListBucketsCommand.d.ts +6 -6
  63. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +10 -4
  64. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +50 -33
  65. package/dist-types/commands/ListObjectVersionsCommand.d.ts +1 -1
  66. package/dist-types/commands/ListObjectsCommand.d.ts +1 -1
  67. package/dist-types/commands/ListObjectsV2Command.d.ts +23 -14
  68. package/dist-types/commands/ListPartsCommand.d.ts +22 -17
  69. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  70. package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
  71. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  72. package/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  73. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +47 -32
  74. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  75. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  76. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +84 -45
  77. package/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  78. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  79. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  80. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  81. package/dist-types/commands/PutBucketPolicyCommand.d.ts +30 -21
  82. package/dist-types/commands/PutBucketReplicationCommand.d.ts +3 -4
  83. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  84. package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
  85. package/dist-types/commands/PutBucketVersioningCommand.d.ts +3 -6
  86. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +1 -1
  87. package/dist-types/commands/PutObjectAclCommand.d.ts +1 -1
  88. package/dist-types/commands/PutObjectCommand.d.ts +83 -35
  89. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  90. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +3 -3
  91. package/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -2
  92. package/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  93. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  94. package/dist-types/commands/RestoreObjectCommand.d.ts +1 -1
  95. package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -1
  96. package/dist-types/commands/UploadPartCommand.d.ts +52 -41
  97. package/dist-types/commands/UploadPartCopyCommand.d.ts +53 -39
  98. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -1
  99. package/dist-types/models/models_0.d.ts +938 -632
  100. package/dist-types/models/models_1.d.ts +230 -135
  101. package/dist-types/ts3.4/models/models_0.d.ts +7 -0
  102. package/dist-types/ts3.4/models/models_1.d.ts +24 -0
  103. package/package.json +1 -1
@@ -28,43 +28,50 @@ declare const UploadPartCopyCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Uploads a part by copying data from an existing object as data source. To specify the
31
- * data source, you add the request header <code>x-amz-copy-source</code> in your request. To specify
32
- * a byte range, you add the request header <code>x-amz-copy-source-range</code> in your
33
- * request. </p>
31
+ * data source, you add the request header <code>x-amz-copy-source</code> in your request. To
32
+ * specify a byte range, you add the request header <code>x-amz-copy-source-range</code> in
33
+ * your request. </p>
34
34
  * <p>For information about maximum and minimum part sizes and other multipart upload
35
35
  * specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>. </p>
36
36
  * <note>
37
- * <p>Instead of copying data from an existing object as part data, you might use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
38
- * action to upload new data as a part of an object in your request.</p>
37
+ * <p>Instead of copying data from an existing object as part data, you might use the
38
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a> action to upload new data as a part of an object in your
39
+ * request.</p>
39
40
  * </note>
40
41
  * <p>You must initiate a multipart upload before you can upload any part. In response to your
41
42
  * initiate request, Amazon S3 returns the upload ID, a unique identifier that you must include in
42
43
  * your upload part request.</p>
43
- * <p>For conceptual information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading
44
- * Objects Using Multipart Upload</a> in the
45
- * <i>Amazon S3 User Guide</i>. For information about copying objects using a single atomic action vs. a multipart
46
- * upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html">Operations on Objects</a> in
47
- * the <i>Amazon S3 User Guide</i>.</p>
44
+ * <p>For conceptual information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
45
+ * Upload</a> in the <i>Amazon S3 User Guide</i>. For information about
46
+ * copying objects using a single atomic action vs. a multipart upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html">Operations on
47
+ * Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
48
48
  * <note>
49
49
  * <p>
50
- * <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
50
+ * <b>Directory buckets</b> -
51
+ * For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
51
52
  * </code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the
52
53
  * <i>Amazon S3 User Guide</i>.</p>
53
54
  * </note>
54
55
  * <dl>
55
56
  * <dt>Authentication and authorization</dt>
56
57
  * <dd>
57
- * <p>All <code>UploadPartCopy</code> requests must be authenticated and signed by using IAM credentials (access key ID and secret access key for the IAM identities). All headers with the <code>x-amz-</code> prefix, including
58
- * <code>x-amz-copy-source</code>, must be signed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
58
+ * <p>All <code>UploadPartCopy</code> requests must be authenticated and signed by
59
+ * using IAM credentials (access key ID and secret access key for the IAM
60
+ * identities). All headers with the <code>x-amz-</code> prefix, including
61
+ * <code>x-amz-copy-source</code>, must be signed. For more information, see
62
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
59
63
  * <p>
60
- * <b>Directory buckets</b> - You must use IAM credentials to authenticate and authorize your access to the <code>UploadPartCopy</code> API operation, instead of using the
61
- * temporary security credentials through the <code>CreateSession</code> API operation.</p>
62
- * <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your behalf.</p>
64
+ * <b>Directory buckets</b> - You must use IAM
65
+ * credentials to authenticate and authorize your access to the
66
+ * <code>UploadPartCopy</code> API operation, instead of using the temporary
67
+ * security credentials through the <code>CreateSession</code> API operation.</p>
68
+ * <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your
69
+ * behalf.</p>
63
70
  * </dd>
64
71
  * <dt>Permissions</dt>
65
72
  * <dd>
66
- * <p>You must have <code>READ</code> access to the source object and <code>WRITE</code>
67
- * access to the destination bucket.</p>
73
+ * <p>You must have <code>READ</code> access to the source object and
74
+ * <code>WRITE</code> access to the destination bucket.</p>
68
75
  * <ul>
69
76
  * <li>
70
77
  * <p>
@@ -110,8 +117,9 @@ declare const UploadPartCopyCommand_base: {
110
117
  * <li>
111
118
  * <p>
112
119
  * <b>Directory bucket permissions</b> -
113
- * You must have permissions in a bucket policy or an IAM identity-based policy based on the source and destination
114
- * bucket types in an <code>UploadPartCopy</code> operation.</p>
120
+ * You must have permissions in a bucket policy or an IAM identity-based policy based on the
121
+ * source and destination bucket types in an <code>UploadPartCopy</code>
122
+ * operation.</p>
115
123
  * <ul>
116
124
  * <li>
117
125
  * <p>If the source object that you want to copy is in a
@@ -126,19 +134,21 @@ declare const UploadPartCopyCommand_base: {
126
134
  * </li>
127
135
  * <li>
128
136
  * <p>If the copy destination is a directory bucket, you must have the
129
- * <b>
137
+ * <b>
130
138
  * <code>s3express:CreateSession</code>
131
139
  * </b> permission in the
132
- * <code>Action</code> element of a policy to write the object
133
- * to the destination. The <code>s3express:SessionMode</code> condition
134
- * key cannot be set to <code>ReadOnly</code> on the copy destination. </p>
140
+ * <code>Action</code> element of a policy to write the object to the
141
+ * destination. The <code>s3express:SessionMode</code> condition key
142
+ * cannot be set to <code>ReadOnly</code> on the copy destination.
143
+ * </p>
135
144
  * </li>
136
145
  * </ul>
137
- * <p>If the object is encrypted with
138
- * SSE-KMS, you must also have the
139
- * <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key.</p>
140
- * <p>For example policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
141
- * <i>Amazon S3 User Guide</i>.</p>
146
+ * <p>If the object is encrypted with SSE-KMS, you must also have the
147
+ * <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions
148
+ * in IAM identity-based policies and KMS key policies for the KMS
149
+ * key.</p>
150
+ * <p>For example policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services Identity and Access Management (IAM) identity-based policies for
151
+ * S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
142
152
  * </li>
143
153
  * </ul>
144
154
  * </dd>
@@ -148,18 +158,22 @@ declare const UploadPartCopyCommand_base: {
148
158
  * <li>
149
159
  * <p>
150
160
  * <b>General purpose buckets </b> -
151
- *
152
- * For information about using server-side encryption with customer-provided
153
- * encryption keys with the <code>UploadPartCopy</code> operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>.
154
- * </p>
161
+ * For information about using
162
+ * server-side encryption with customer-provided encryption keys with the
163
+ * <code>UploadPartCopy</code> operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and
164
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>. </p>
155
165
  * </li>
156
166
  * <li>
157
167
  * <p>
158
- * <b>Directory buckets </b> - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). For more
168
+ * <b>Directory buckets </b> -
169
+ * For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). For more
159
170
  * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
160
171
  * <note>
161
- * <p>For directory buckets, when you perform a <code>CreateMultipartUpload</code> operation and an <code>UploadPartCopy</code> operation,
162
- * the request headers you provide in the <code>CreateMultipartUpload</code> request must match the default encryption configuration of the destination bucket. </p>
172
+ * <p>For directory buckets, when you perform a
173
+ * <code>CreateMultipartUpload</code> operation and an
174
+ * <code>UploadPartCopy</code> operation, the request headers you provide
175
+ * in the <code>CreateMultipartUpload</code> request must match the default
176
+ * encryption configuration of the destination bucket. </p>
163
177
  * </note>
164
178
  * <p>S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets
165
179
  * to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.</p>
@@ -175,8 +189,8 @@ declare const UploadPartCopyCommand_base: {
175
189
  * <ul>
176
190
  * <li>
177
191
  * <p>Description: The specified multipart upload does not exist. The
178
- * upload ID might be invalid, or the multipart upload might have been
179
- * aborted or completed.</p>
192
+ * upload ID might be invalid, or the multipart upload might have been
193
+ * aborted or completed.</p>
180
194
  * </li>
181
195
  * <li>
182
196
  * <p>HTTP Status Code: 404 Not Found</p>
@@ -189,7 +203,7 @@ declare const UploadPartCopyCommand_base: {
189
203
  * <ul>
190
204
  * <li>
191
205
  * <p>Description: The specified copy source is not supported as a
192
- * byte-range copy source.</p>
206
+ * byte-range copy source.</p>
193
207
  * </li>
194
208
  * <li>
195
209
  * <p>HTTP Status Code: 400 Bad Request</p>
@@ -29,7 +29,7 @@ declare const WriteGetObjectResponseCommand_base: {
29
29
  };
30
30
  /**
31
31
  * <note>
32
- * <p>This operation is not supported by directory buckets.</p>
32
+ * <p>This operation is not supported for directory buckets.</p>
33
33
  * </note>
34
34
  * <p>Passes transformed objects to a <code>GetObject</code> operation when using Object Lambda access points. For
35
35
  * information about Object Lambda access points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">Transforming objects with