@aws-sdk/client-s3 3.741.0 → 3.744.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.
- package/dist-cjs/index.js +5 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +3 -3
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +3 -3
- package/dist-types/commands/CopyObjectCommand.d.ts +16 -6
- package/dist-types/commands/CreateBucketCommand.d.ts +3 -3
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +3 -3
- package/dist-types/commands/CreateSessionCommand.d.ts +2 -2
- package/dist-types/commands/DeleteBucketCommand.d.ts +2 -2
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +2 -2
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteObjectCommand.d.ts +3 -3
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
- package/dist-types/commands/DeleteObjectsCommand.d.ts +8 -9
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +2 -2
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +3 -3
- package/dist-types/commands/GetObjectCommand.d.ts +3 -3
- package/dist-types/commands/HeadBucketCommand.d.ts +2 -2
- package/dist-types/commands/HeadObjectCommand.d.ts +3 -3
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +2 -2
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +35 -35
- package/dist-types/commands/ListObjectsV2Command.d.ts +3 -3
- package/dist-types/commands/ListPartsCommand.d.ts +3 -3
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +3 -3
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +2 -2
- package/dist-types/commands/PutObjectCommand.d.ts +56 -46
- package/dist-types/commands/UploadPartCommand.d.ts +3 -3
- package/dist-types/commands/UploadPartCopyCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +123 -94
- package/dist-types/models/models_1.d.ts +38 -33
- package/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/package.json +17 -17
|
@@ -67,9 +67,9 @@ declare const ListMultipartUploadsCommand_base: {
|
|
|
67
67
|
* <note>
|
|
68
68
|
* <p>
|
|
69
69
|
* <b>Directory buckets</b> -
|
|
70
|
-
* 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
|
|
71
|
-
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
72
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
70
|
+
* 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>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
|
|
71
|
+
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
72
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
73
73
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
74
74
|
* </note>
|
|
75
75
|
* <dl>
|
|
@@ -229,104 +229,104 @@ declare const ListMultipartUploadsCommand_base: {
|
|
|
229
229
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
230
230
|
*
|
|
231
231
|
* @public
|
|
232
|
-
* @example
|
|
232
|
+
* @example To list in-progress multipart uploads on a bucket
|
|
233
233
|
* ```javascript
|
|
234
|
-
* // The following example
|
|
234
|
+
* // The following example lists in-progress multipart uploads on a specific bucket.
|
|
235
235
|
* const input = {
|
|
236
|
-
* "Bucket": "examplebucket"
|
|
237
|
-
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
238
|
-
* "MaxUploads": "2",
|
|
239
|
-
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
236
|
+
* "Bucket": "examplebucket"
|
|
240
237
|
* };
|
|
241
238
|
* const command = new ListMultipartUploadsCommand(input);
|
|
242
239
|
* const response = await client.send(command);
|
|
243
240
|
* /* response ==
|
|
244
241
|
* {
|
|
245
|
-
* "Bucket": "acl1",
|
|
246
|
-
* "IsTruncated": true,
|
|
247
|
-
* "KeyMarker": "",
|
|
248
|
-
* "MaxUploads": "2",
|
|
249
|
-
* "NextKeyMarker": "someobjectkey",
|
|
250
|
-
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
251
|
-
* "UploadIdMarker": "",
|
|
252
242
|
* "Uploads": [
|
|
253
243
|
* {
|
|
254
244
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
255
245
|
* "Initiator": {
|
|
256
|
-
* "DisplayName": "
|
|
246
|
+
* "DisplayName": "display-name",
|
|
257
247
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
258
248
|
* },
|
|
259
249
|
* "Key": "JavaFile",
|
|
260
250
|
* "Owner": {
|
|
261
|
-
* "DisplayName": "
|
|
262
|
-
* "ID": "
|
|
251
|
+
* "DisplayName": "display-name",
|
|
252
|
+
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
263
253
|
* },
|
|
264
254
|
* "StorageClass": "STANDARD",
|
|
265
|
-
* "UploadId": "
|
|
255
|
+
* "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
266
256
|
* },
|
|
267
257
|
* {
|
|
268
258
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
269
259
|
* "Initiator": {
|
|
270
|
-
* "DisplayName": "
|
|
260
|
+
* "DisplayName": "display-name",
|
|
271
261
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
272
262
|
* },
|
|
273
263
|
* "Key": "JavaFile",
|
|
274
264
|
* "Owner": {
|
|
275
|
-
* "DisplayName": "
|
|
265
|
+
* "DisplayName": "display-name",
|
|
276
266
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
277
267
|
* },
|
|
278
268
|
* "StorageClass": "STANDARD",
|
|
279
|
-
* "UploadId": "
|
|
269
|
+
* "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
280
270
|
* }
|
|
281
271
|
* ]
|
|
282
272
|
* }
|
|
283
273
|
* *\/
|
|
284
|
-
* // example id: list-
|
|
274
|
+
* // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
|
|
285
275
|
* ```
|
|
286
276
|
*
|
|
287
|
-
* @example
|
|
277
|
+
* @example List next set of multipart uploads when previous result is truncated
|
|
288
278
|
* ```javascript
|
|
289
|
-
* // The following example
|
|
279
|
+
* // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
|
|
290
280
|
* const input = {
|
|
291
|
-
* "Bucket": "examplebucket"
|
|
281
|
+
* "Bucket": "examplebucket",
|
|
282
|
+
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
283
|
+
* "MaxUploads": "2",
|
|
284
|
+
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
292
285
|
* };
|
|
293
286
|
* const command = new ListMultipartUploadsCommand(input);
|
|
294
287
|
* const response = await client.send(command);
|
|
295
288
|
* /* response ==
|
|
296
289
|
* {
|
|
290
|
+
* "Bucket": "acl1",
|
|
291
|
+
* "IsTruncated": true,
|
|
292
|
+
* "KeyMarker": "",
|
|
293
|
+
* "MaxUploads": "2",
|
|
294
|
+
* "NextKeyMarker": "someobjectkey",
|
|
295
|
+
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
296
|
+
* "UploadIdMarker": "",
|
|
297
297
|
* "Uploads": [
|
|
298
298
|
* {
|
|
299
299
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
300
300
|
* "Initiator": {
|
|
301
|
-
* "DisplayName": "display-name",
|
|
301
|
+
* "DisplayName": "ownder-display-name",
|
|
302
302
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
303
303
|
* },
|
|
304
304
|
* "Key": "JavaFile",
|
|
305
305
|
* "Owner": {
|
|
306
|
-
* "DisplayName": "
|
|
307
|
-
* "ID": "
|
|
306
|
+
* "DisplayName": "mohanataws",
|
|
307
|
+
* "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
308
308
|
* },
|
|
309
309
|
* "StorageClass": "STANDARD",
|
|
310
|
-
* "UploadId": "
|
|
310
|
+
* "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
311
311
|
* },
|
|
312
312
|
* {
|
|
313
313
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
314
314
|
* "Initiator": {
|
|
315
|
-
* "DisplayName": "display-name",
|
|
315
|
+
* "DisplayName": "ownder-display-name",
|
|
316
316
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
317
317
|
* },
|
|
318
318
|
* "Key": "JavaFile",
|
|
319
319
|
* "Owner": {
|
|
320
|
-
* "DisplayName": "display-name",
|
|
320
|
+
* "DisplayName": "ownder-display-name",
|
|
321
321
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
322
322
|
* },
|
|
323
323
|
* "StorageClass": "STANDARD",
|
|
324
|
-
* "UploadId": "
|
|
324
|
+
* "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
325
325
|
* }
|
|
326
326
|
* ]
|
|
327
327
|
* }
|
|
328
328
|
* *\/
|
|
329
|
-
* // example id:
|
|
329
|
+
* // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
|
|
330
330
|
* ```
|
|
331
331
|
*
|
|
332
332
|
*/
|
|
@@ -51,9 +51,9 @@ declare const ListObjectsV2Command_base: {
|
|
|
51
51
|
* <li>
|
|
52
52
|
* <p>
|
|
53
53
|
* <b>Directory buckets</b> -
|
|
54
|
-
* 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
|
|
55
|
-
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
56
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
54
|
+
* 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>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
|
|
55
|
+
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
56
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
57
57
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
58
58
|
* </li>
|
|
59
59
|
* </ul>
|
|
@@ -43,9 +43,9 @@ declare const ListPartsCommand_base: {
|
|
|
43
43
|
* <note>
|
|
44
44
|
* <p>
|
|
45
45
|
* <b>Directory buckets</b> -
|
|
46
|
-
* 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
|
|
47
|
-
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
48
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
46
|
+
* 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>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
|
|
47
|
+
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
48
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
49
49
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
50
50
|
* </note>
|
|
51
51
|
* <dl>
|
|
@@ -33,8 +33,8 @@ declare const PutBucketEncryptionCommand_base: {
|
|
|
33
33
|
* <p>
|
|
34
34
|
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format <code>https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i>
|
|
35
35
|
* </code>. Virtual-hosted-style requests aren't supported.
|
|
36
|
-
* For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
37
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
36
|
+
* For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
37
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
38
38
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
39
39
|
* </note>
|
|
40
40
|
* <p>By default, all buckets have a default encryption configuration that uses server-side
|
|
@@ -78,7 +78,7 @@ declare const PutBucketEncryptionCommand_base: {
|
|
|
78
78
|
* For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
|
|
79
79
|
* </li>
|
|
80
80
|
* <li>
|
|
81
|
-
* <p>Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> per directory bucket
|
|
81
|
+
* <p>Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> per directory bucket's lifetime.
|
|
82
82
|
* The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported.
|
|
83
83
|
* </p>
|
|
84
84
|
* </li>
|
|
@@ -133,8 +133,8 @@ declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
|
133
133
|
* <p>
|
|
134
134
|
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format <code>https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i>
|
|
135
135
|
* </code>. Virtual-hosted-style requests aren't supported.
|
|
136
|
-
* For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
137
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
136
|
+
* For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
137
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
138
138
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
139
139
|
* </note>
|
|
140
140
|
* </li>
|
|
@@ -32,8 +32,8 @@ declare const PutBucketPolicyCommand_base: {
|
|
|
32
32
|
* <p>
|
|
33
33
|
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format <code>https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i>
|
|
34
34
|
* </code>. Virtual-hosted-style requests aren't supported.
|
|
35
|
-
* For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
36
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
35
|
+
* For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
36
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
37
37
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
38
38
|
* </note>
|
|
39
39
|
* <dl>
|
|
@@ -45,9 +45,9 @@ declare const PutObjectCommand_base: {
|
|
|
45
45
|
* <li>
|
|
46
46
|
* <p>
|
|
47
47
|
* <b>Directory buckets</b> -
|
|
48
|
-
* 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
|
|
49
|
-
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
50
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
48
|
+
* 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>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
|
|
49
|
+
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
50
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
51
51
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
52
52
|
* </li>
|
|
53
53
|
* </ul>
|
|
@@ -67,6 +67,16 @@ declare const PutObjectCommand_base: {
|
|
|
67
67
|
* </li>
|
|
68
68
|
* <li>
|
|
69
69
|
* <p>
|
|
70
|
+
* <b>If-None-Match</b> - Uploads the object only if the object key name does not already exist in the specified bucket. Otherwise, Amazon S3 returns a <code>412 Precondition Failed</code> error. If a conflicting operation occurs during the upload, S3 returns a <code>409 ConditionalRequestConflict</code> response. On a 409 failure, retry the upload.</p>
|
|
71
|
+
* <p>Expects the * character (asterisk).</p>
|
|
72
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html">Add preconditions to S3 operations with conditional requests</a> in the <i>Amazon S3 User Guide</i> or <a href="https://datatracker.ietf.org/doc/rfc7232/">RFC 7232</a>.
|
|
73
|
+
* </p>
|
|
74
|
+
* <note>
|
|
75
|
+
* <p>This functionality is not supported for S3 on Outposts.</p>
|
|
76
|
+
* </note>
|
|
77
|
+
* </li>
|
|
78
|
+
* <li>
|
|
79
|
+
* <p>
|
|
70
80
|
* <b>S3 Versioning</b> - When you enable versioning
|
|
71
81
|
* for a bucket, if Amazon S3 receives multiple write requests for the same object
|
|
72
82
|
* simultaneously, it stores all versions of the objects. For each write request that is
|
|
@@ -291,107 +301,108 @@ declare const PutObjectCommand_base: {
|
|
|
291
301
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
292
302
|
*
|
|
293
303
|
* @public
|
|
294
|
-
* @example To
|
|
304
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
295
305
|
* ```javascript
|
|
296
|
-
* // The following example
|
|
306
|
+
* // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
297
307
|
* const input = {
|
|
298
308
|
* "Body": "filetoupload",
|
|
299
309
|
* "Bucket": "examplebucket",
|
|
300
|
-
* "Key": "
|
|
310
|
+
* "Key": "exampleobject",
|
|
311
|
+
* "ServerSideEncryption": "AES256",
|
|
312
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
301
313
|
* };
|
|
302
314
|
* const command = new PutObjectCommand(input);
|
|
303
315
|
* const response = await client.send(command);
|
|
304
316
|
* /* response ==
|
|
305
317
|
* {
|
|
306
318
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
307
|
-
* "
|
|
319
|
+
* "ServerSideEncryption": "AES256",
|
|
320
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
308
321
|
* }
|
|
309
322
|
* *\/
|
|
310
|
-
* // example id: to-
|
|
323
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
311
324
|
* ```
|
|
312
325
|
*
|
|
313
|
-
* @example To upload
|
|
326
|
+
* @example To upload object and specify user-defined metadata
|
|
314
327
|
* ```javascript
|
|
315
|
-
* // The following example
|
|
328
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
316
329
|
* const input = {
|
|
317
|
-
* "Body": "
|
|
330
|
+
* "Body": "filetoupload",
|
|
318
331
|
* "Bucket": "examplebucket",
|
|
319
|
-
* "Key": "
|
|
332
|
+
* "Key": "exampleobject",
|
|
333
|
+
* "Metadata": {
|
|
334
|
+
* "metadata1": "value1",
|
|
335
|
+
* "metadata2": "value2"
|
|
336
|
+
* }
|
|
320
337
|
* };
|
|
321
338
|
* const command = new PutObjectCommand(input);
|
|
322
339
|
* const response = await client.send(command);
|
|
323
340
|
* /* response ==
|
|
324
341
|
* {
|
|
325
342
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
326
|
-
* "VersionId": "
|
|
343
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
327
344
|
* }
|
|
328
345
|
* *\/
|
|
329
|
-
* // example id: to-upload-
|
|
346
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
330
347
|
* ```
|
|
331
348
|
*
|
|
332
|
-
* @example To
|
|
349
|
+
* @example To create an object.
|
|
333
350
|
* ```javascript
|
|
334
|
-
* // The following example
|
|
351
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
335
352
|
* const input = {
|
|
336
353
|
* "Body": "filetoupload",
|
|
337
354
|
* "Bucket": "examplebucket",
|
|
338
|
-
* "Key": "
|
|
339
|
-
* "ServerSideEncryption": "AES256",
|
|
340
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
355
|
+
* "Key": "objectkey"
|
|
341
356
|
* };
|
|
342
357
|
* const command = new PutObjectCommand(input);
|
|
343
358
|
* const response = await client.send(command);
|
|
344
359
|
* /* response ==
|
|
345
360
|
* {
|
|
346
361
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
347
|
-
* "
|
|
348
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
362
|
+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
349
363
|
* }
|
|
350
364
|
* *\/
|
|
351
|
-
* // example id: to-
|
|
365
|
+
* // example id: to-create-an-object-1483147613675
|
|
352
366
|
* ```
|
|
353
367
|
*
|
|
354
|
-
* @example To upload object and specify
|
|
368
|
+
* @example To upload an object and specify optional tags
|
|
355
369
|
* ```javascript
|
|
356
|
-
* // The following example
|
|
370
|
+
* // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
|
|
357
371
|
* const input = {
|
|
358
|
-
* "Body": "
|
|
372
|
+
* "Body": "c:\\HappyFace.jpg",
|
|
359
373
|
* "Bucket": "examplebucket",
|
|
360
|
-
* "Key": "
|
|
361
|
-
* "
|
|
362
|
-
* "metadata1": "value1",
|
|
363
|
-
* "metadata2": "value2"
|
|
364
|
-
* }
|
|
374
|
+
* "Key": "HappyFace.jpg",
|
|
375
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
365
376
|
* };
|
|
366
377
|
* const command = new PutObjectCommand(input);
|
|
367
378
|
* const response = await client.send(command);
|
|
368
379
|
* /* response ==
|
|
369
380
|
* {
|
|
370
381
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
371
|
-
* "VersionId": "
|
|
382
|
+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
|
|
372
383
|
* }
|
|
373
384
|
* *\/
|
|
374
|
-
* // example id: to-upload-object-and-specify-
|
|
385
|
+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
375
386
|
* ```
|
|
376
387
|
*
|
|
377
|
-
* @example To upload an object and specify
|
|
388
|
+
* @example To upload an object and specify canned ACL.
|
|
378
389
|
* ```javascript
|
|
379
|
-
* // The following example uploads
|
|
390
|
+
* // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
380
391
|
* const input = {
|
|
381
|
-
* "
|
|
392
|
+
* "ACL": "authenticated-read",
|
|
393
|
+
* "Body": "filetoupload",
|
|
382
394
|
* "Bucket": "examplebucket",
|
|
383
|
-
* "Key": "
|
|
384
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
395
|
+
* "Key": "exampleobject"
|
|
385
396
|
* };
|
|
386
397
|
* const command = new PutObjectCommand(input);
|
|
387
398
|
* const response = await client.send(command);
|
|
388
399
|
* /* response ==
|
|
389
400
|
* {
|
|
390
401
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
391
|
-
* "VersionId": "
|
|
402
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
392
403
|
* }
|
|
393
404
|
* *\/
|
|
394
|
-
* // example id: to-upload-an-object-and-specify-
|
|
405
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
395
406
|
* ```
|
|
396
407
|
*
|
|
397
408
|
* @example To upload an object (specify optional headers)
|
|
@@ -416,24 +427,23 @@ declare const PutObjectCommand_base: {
|
|
|
416
427
|
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
417
428
|
* ```
|
|
418
429
|
*
|
|
419
|
-
* @example To upload an object
|
|
430
|
+
* @example To upload an object
|
|
420
431
|
* ```javascript
|
|
421
|
-
* // The following example uploads
|
|
432
|
+
* // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
|
|
422
433
|
* const input = {
|
|
423
|
-
* "
|
|
424
|
-
* "Body": "filetoupload",
|
|
434
|
+
* "Body": "HappyFace.jpg",
|
|
425
435
|
* "Bucket": "examplebucket",
|
|
426
|
-
* "Key": "
|
|
436
|
+
* "Key": "HappyFace.jpg"
|
|
427
437
|
* };
|
|
428
438
|
* const command = new PutObjectCommand(input);
|
|
429
439
|
* const response = await client.send(command);
|
|
430
440
|
* /* response ==
|
|
431
441
|
* {
|
|
432
442
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
433
|
-
* "VersionId": "
|
|
443
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
434
444
|
* }
|
|
435
445
|
* *\/
|
|
436
|
-
* // example id: to-upload-an-object-
|
|
446
|
+
* // example id: to-upload-an-object-1481760101010
|
|
437
447
|
* ```
|
|
438
448
|
*
|
|
439
449
|
*/
|
|
@@ -54,9 +54,9 @@ declare const UploadPartCommand_base: {
|
|
|
54
54
|
* <note>
|
|
55
55
|
* <p>
|
|
56
56
|
* <b>Directory buckets</b> -
|
|
57
|
-
* 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
|
|
58
|
-
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
59
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
57
|
+
* 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>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
|
|
58
|
+
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
59
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
60
60
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
61
61
|
* </note>
|
|
62
62
|
* <dl>
|
|
@@ -48,9 +48,9 @@ declare const UploadPartCopyCommand_base: {
|
|
|
48
48
|
* <note>
|
|
49
49
|
* <p>
|
|
50
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
|
|
52
|
-
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
53
|
-
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">
|
|
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>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
|
|
52
|
+
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
|
|
53
|
+
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
|
|
54
54
|
* <i>Amazon S3 User Guide</i>.</p>
|
|
55
55
|
* </note>
|
|
56
56
|
* <dl>
|