@aws-sdk/client-s3 3.705.0 → 3.712.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.
|
@@ -288,36 +288,36 @@ declare const PutObjectCommand_base: {
|
|
|
288
288
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
289
289
|
*
|
|
290
290
|
* @public
|
|
291
|
-
* @example To upload object
|
|
291
|
+
* @example To upload an object (specify optional headers)
|
|
292
292
|
* ```javascript
|
|
293
|
-
* // The following example
|
|
293
|
+
* // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
|
|
294
294
|
* const input = {
|
|
295
|
-
* "Body": "
|
|
295
|
+
* "Body": "HappyFace.jpg",
|
|
296
296
|
* "Bucket": "examplebucket",
|
|
297
|
-
* "Key": "
|
|
298
|
-
* "
|
|
299
|
-
*
|
|
300
|
-
* "metadata2": "value2"
|
|
301
|
-
* }
|
|
297
|
+
* "Key": "HappyFace.jpg",
|
|
298
|
+
* "ServerSideEncryption": "AES256",
|
|
299
|
+
* "StorageClass": "STANDARD_IA"
|
|
302
300
|
* };
|
|
303
301
|
* const command = new PutObjectCommand(input);
|
|
304
302
|
* const response = await client.send(command);
|
|
305
303
|
* /* response ==
|
|
306
304
|
* {
|
|
307
305
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
308
|
-
* "
|
|
306
|
+
* "ServerSideEncryption": "AES256",
|
|
307
|
+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
309
308
|
* }
|
|
310
309
|
* *\/
|
|
311
|
-
* // example id: to-upload-object-
|
|
310
|
+
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
312
311
|
* ```
|
|
313
312
|
*
|
|
314
|
-
* @example To upload an object and specify
|
|
313
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
315
314
|
* ```javascript
|
|
316
|
-
* // The following example uploads an object. The request specifies optional object tags.
|
|
315
|
+
* // 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.
|
|
317
316
|
* const input = {
|
|
318
|
-
* "Body": "
|
|
317
|
+
* "Body": "filetoupload",
|
|
319
318
|
* "Bucket": "examplebucket",
|
|
320
|
-
* "Key": "
|
|
319
|
+
* "Key": "exampleobject",
|
|
320
|
+
* "ServerSideEncryption": "AES256",
|
|
321
321
|
* "Tagging": "key1=value1&key2=value2"
|
|
322
322
|
* };
|
|
323
323
|
* const command = new PutObjectCommand(input);
|
|
@@ -325,32 +325,34 @@ declare const PutObjectCommand_base: {
|
|
|
325
325
|
* /* response ==
|
|
326
326
|
* {
|
|
327
327
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
328
|
-
* "
|
|
328
|
+
* "ServerSideEncryption": "AES256",
|
|
329
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
329
330
|
* }
|
|
330
331
|
* *\/
|
|
331
|
-
* // example id: to-upload-an-object-and-specify-
|
|
332
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
332
333
|
* ```
|
|
333
334
|
*
|
|
334
|
-
* @example To upload
|
|
335
|
+
* @example To upload object and specify user-defined metadata
|
|
335
336
|
* ```javascript
|
|
336
|
-
* // The following example
|
|
337
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
337
338
|
* const input = {
|
|
338
|
-
* "Body": "
|
|
339
|
+
* "Body": "filetoupload",
|
|
339
340
|
* "Bucket": "examplebucket",
|
|
340
|
-
* "Key": "
|
|
341
|
-
* "
|
|
342
|
-
*
|
|
341
|
+
* "Key": "exampleobject",
|
|
342
|
+
* "Metadata": {
|
|
343
|
+
* "metadata1": "value1",
|
|
344
|
+
* "metadata2": "value2"
|
|
345
|
+
* }
|
|
343
346
|
* };
|
|
344
347
|
* const command = new PutObjectCommand(input);
|
|
345
348
|
* const response = await client.send(command);
|
|
346
349
|
* /* response ==
|
|
347
350
|
* {
|
|
348
351
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
349
|
-
* "
|
|
350
|
-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
352
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
351
353
|
* }
|
|
352
354
|
* *\/
|
|
353
|
-
* // example id: to-upload-
|
|
355
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
354
356
|
* ```
|
|
355
357
|
*
|
|
356
358
|
* @example To upload an object and specify canned ACL.
|
|
@@ -373,45 +375,43 @@ declare const PutObjectCommand_base: {
|
|
|
373
375
|
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
374
376
|
* ```
|
|
375
377
|
*
|
|
376
|
-
* @example To upload an object
|
|
378
|
+
* @example To upload an object and specify optional tags
|
|
377
379
|
* ```javascript
|
|
378
|
-
* // The following example uploads an object
|
|
380
|
+
* // 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.
|
|
379
381
|
* const input = {
|
|
380
|
-
* "Body": "HappyFace.jpg",
|
|
382
|
+
* "Body": "c:\\HappyFace.jpg",
|
|
381
383
|
* "Bucket": "examplebucket",
|
|
382
|
-
* "Key": "HappyFace.jpg"
|
|
384
|
+
* "Key": "HappyFace.jpg",
|
|
385
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
383
386
|
* };
|
|
384
387
|
* const command = new PutObjectCommand(input);
|
|
385
388
|
* const response = await client.send(command);
|
|
386
389
|
* /* response ==
|
|
387
390
|
* {
|
|
388
391
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
389
|
-
* "VersionId": "
|
|
392
|
+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
|
|
390
393
|
* }
|
|
391
394
|
* *\/
|
|
392
|
-
* // example id: to-upload-an-object-
|
|
395
|
+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
393
396
|
* ```
|
|
394
397
|
*
|
|
395
|
-
* @example To upload an object
|
|
398
|
+
* @example To upload an object
|
|
396
399
|
* ```javascript
|
|
397
|
-
* // The following example uploads an object
|
|
400
|
+
* // 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.
|
|
398
401
|
* const input = {
|
|
399
|
-
* "Body": "
|
|
402
|
+
* "Body": "HappyFace.jpg",
|
|
400
403
|
* "Bucket": "examplebucket",
|
|
401
|
-
* "Key": "
|
|
402
|
-
* "ServerSideEncryption": "AES256",
|
|
403
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
404
|
+
* "Key": "HappyFace.jpg"
|
|
404
405
|
* };
|
|
405
406
|
* const command = new PutObjectCommand(input);
|
|
406
407
|
* const response = await client.send(command);
|
|
407
408
|
* /* response ==
|
|
408
409
|
* {
|
|
409
410
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
410
|
-
* "
|
|
411
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
411
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
412
412
|
* }
|
|
413
413
|
* *\/
|
|
414
|
-
* // example id: to-upload-an-object-
|
|
414
|
+
* // example id: to-upload-an-object-1481760101010
|
|
415
415
|
* ```
|
|
416
416
|
*
|
|
417
417
|
* @example To create an object.
|
|
@@ -312,14 +312,15 @@ declare const UploadPartCopyCommand_base: {
|
|
|
312
312
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
313
313
|
*
|
|
314
314
|
* @public
|
|
315
|
-
* @example To upload a part by copying
|
|
315
|
+
* @example To upload a part by copying byte range from an existing object as data source
|
|
316
316
|
* ```javascript
|
|
317
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
317
|
+
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
|
|
318
318
|
* const input = {
|
|
319
319
|
* "Bucket": "examplebucket",
|
|
320
320
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
321
|
+
* "CopySourceRange": "bytes=1-100000",
|
|
321
322
|
* "Key": "examplelargeobject",
|
|
322
|
-
* "PartNumber": "
|
|
323
|
+
* "PartNumber": "2",
|
|
323
324
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
324
325
|
* };
|
|
325
326
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -327,23 +328,22 @@ declare const UploadPartCopyCommand_base: {
|
|
|
327
328
|
* /* response ==
|
|
328
329
|
* {
|
|
329
330
|
* "CopyPartResult": {
|
|
330
|
-
* "ETag": "\"
|
|
331
|
-
* "LastModified": "2016-12-29T21:
|
|
331
|
+
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
|
|
332
|
+
* "LastModified": "2016-12-29T21:44:28.000Z"
|
|
332
333
|
* }
|
|
333
334
|
* }
|
|
334
335
|
* *\/
|
|
335
|
-
* // example id: to-upload-a-part-by-copying-
|
|
336
|
+
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
|
|
336
337
|
* ```
|
|
337
338
|
*
|
|
338
|
-
* @example To upload a part by copying
|
|
339
|
+
* @example To upload a part by copying data from an existing object as data source
|
|
339
340
|
* ```javascript
|
|
340
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
341
|
+
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
341
342
|
* const input = {
|
|
342
343
|
* "Bucket": "examplebucket",
|
|
343
344
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
344
|
-
* "CopySourceRange": "bytes=1-100000",
|
|
345
345
|
* "Key": "examplelargeobject",
|
|
346
|
-
* "PartNumber": "
|
|
346
|
+
* "PartNumber": "1",
|
|
347
347
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
348
348
|
* };
|
|
349
349
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -351,12 +351,12 @@ declare const UploadPartCopyCommand_base: {
|
|
|
351
351
|
* /* response ==
|
|
352
352
|
* {
|
|
353
353
|
* "CopyPartResult": {
|
|
354
|
-
* "ETag": "\"
|
|
355
|
-
* "LastModified": "2016-12-29T21:
|
|
354
|
+
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
|
355
|
+
* "LastModified": "2016-12-29T21:24:43.000Z"
|
|
356
356
|
* }
|
|
357
357
|
* }
|
|
358
358
|
* *\/
|
|
359
|
-
* // example id: to-upload-a-part-by-copying-
|
|
359
|
+
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
|
|
360
360
|
* ```
|
|
361
361
|
*
|
|
362
362
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.712.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -27,64 +27,64 @@
|
|
|
27
27
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
31
|
-
"@aws-sdk/client-sts": "3.
|
|
32
|
-
"@aws-sdk/core": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
34
|
-
"@aws-sdk/middleware-bucket-endpoint": "3.
|
|
35
|
-
"@aws-sdk/middleware-expect-continue": "3.
|
|
36
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-location-constraint": "3.
|
|
39
|
-
"@aws-sdk/middleware-logger": "3.
|
|
40
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
41
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
42
|
-
"@aws-sdk/middleware-ssec": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
45
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
46
|
-
"@aws-sdk/types": "3.
|
|
47
|
-
"@aws-sdk/util-endpoints": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
-
"@aws-sdk/xml-builder": "3.
|
|
51
|
-
"@smithy/config-resolver": "^3.0.
|
|
52
|
-
"@smithy/core": "^2.5.
|
|
53
|
-
"@smithy/eventstream-serde-browser": "^3.0.
|
|
54
|
-
"@smithy/eventstream-serde-config-resolver": "^3.0.
|
|
55
|
-
"@smithy/eventstream-serde-node": "^3.0.
|
|
56
|
-
"@smithy/fetch-http-handler": "^4.1.
|
|
57
|
-
"@smithy/hash-blob-browser": "^3.1.
|
|
58
|
-
"@smithy/hash-node": "^3.0.
|
|
59
|
-
"@smithy/hash-stream-node": "^3.1.
|
|
60
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
61
|
-
"@smithy/md5-js": "^3.0.
|
|
62
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
63
|
-
"@smithy/middleware-endpoint": "^3.2.
|
|
64
|
-
"@smithy/middleware-retry": "^3.0.
|
|
65
|
-
"@smithy/middleware-serde": "^3.0.
|
|
66
|
-
"@smithy/middleware-stack": "^3.0.
|
|
67
|
-
"@smithy/node-config-provider": "^3.1.
|
|
68
|
-
"@smithy/node-http-handler": "^3.3.
|
|
69
|
-
"@smithy/protocol-http": "^4.1.
|
|
70
|
-
"@smithy/smithy-client": "^3.
|
|
71
|
-
"@smithy/types": "^3.7.
|
|
72
|
-
"@smithy/url-parser": "^3.0.
|
|
30
|
+
"@aws-sdk/client-sso-oidc": "3.712.0",
|
|
31
|
+
"@aws-sdk/client-sts": "3.712.0",
|
|
32
|
+
"@aws-sdk/core": "3.709.0",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "3.712.0",
|
|
34
|
+
"@aws-sdk/middleware-bucket-endpoint": "3.709.0",
|
|
35
|
+
"@aws-sdk/middleware-expect-continue": "3.709.0",
|
|
36
|
+
"@aws-sdk/middleware-flexible-checksums": "3.709.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.709.0",
|
|
38
|
+
"@aws-sdk/middleware-location-constraint": "3.709.0",
|
|
39
|
+
"@aws-sdk/middleware-logger": "3.709.0",
|
|
40
|
+
"@aws-sdk/middleware-recursion-detection": "3.709.0",
|
|
41
|
+
"@aws-sdk/middleware-sdk-s3": "3.709.0",
|
|
42
|
+
"@aws-sdk/middleware-ssec": "3.709.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.709.0",
|
|
44
|
+
"@aws-sdk/region-config-resolver": "3.709.0",
|
|
45
|
+
"@aws-sdk/signature-v4-multi-region": "3.709.0",
|
|
46
|
+
"@aws-sdk/types": "3.709.0",
|
|
47
|
+
"@aws-sdk/util-endpoints": "3.709.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.709.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.712.0",
|
|
50
|
+
"@aws-sdk/xml-builder": "3.709.0",
|
|
51
|
+
"@smithy/config-resolver": "^3.0.13",
|
|
52
|
+
"@smithy/core": "^2.5.5",
|
|
53
|
+
"@smithy/eventstream-serde-browser": "^3.0.14",
|
|
54
|
+
"@smithy/eventstream-serde-config-resolver": "^3.0.11",
|
|
55
|
+
"@smithy/eventstream-serde-node": "^3.0.13",
|
|
56
|
+
"@smithy/fetch-http-handler": "^4.1.2",
|
|
57
|
+
"@smithy/hash-blob-browser": "^3.1.10",
|
|
58
|
+
"@smithy/hash-node": "^3.0.11",
|
|
59
|
+
"@smithy/hash-stream-node": "^3.1.10",
|
|
60
|
+
"@smithy/invalid-dependency": "^3.0.11",
|
|
61
|
+
"@smithy/md5-js": "^3.0.11",
|
|
62
|
+
"@smithy/middleware-content-length": "^3.0.13",
|
|
63
|
+
"@smithy/middleware-endpoint": "^3.2.5",
|
|
64
|
+
"@smithy/middleware-retry": "^3.0.30",
|
|
65
|
+
"@smithy/middleware-serde": "^3.0.11",
|
|
66
|
+
"@smithy/middleware-stack": "^3.0.11",
|
|
67
|
+
"@smithy/node-config-provider": "^3.1.12",
|
|
68
|
+
"@smithy/node-http-handler": "^3.3.2",
|
|
69
|
+
"@smithy/protocol-http": "^4.1.8",
|
|
70
|
+
"@smithy/smithy-client": "^3.5.0",
|
|
71
|
+
"@smithy/types": "^3.7.2",
|
|
72
|
+
"@smithy/url-parser": "^3.0.11",
|
|
73
73
|
"@smithy/util-base64": "^3.0.0",
|
|
74
74
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
75
75
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
76
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
77
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
78
|
-
"@smithy/util-endpoints": "^2.1.
|
|
79
|
-
"@smithy/util-middleware": "^3.0.
|
|
80
|
-
"@smithy/util-retry": "^3.0.
|
|
81
|
-
"@smithy/util-stream": "^3.3.
|
|
76
|
+
"@smithy/util-defaults-mode-browser": "^3.0.30",
|
|
77
|
+
"@smithy/util-defaults-mode-node": "^3.0.30",
|
|
78
|
+
"@smithy/util-endpoints": "^2.1.7",
|
|
79
|
+
"@smithy/util-middleware": "^3.0.11",
|
|
80
|
+
"@smithy/util-retry": "^3.0.11",
|
|
81
|
+
"@smithy/util-stream": "^3.3.2",
|
|
82
82
|
"@smithy/util-utf8": "^3.0.0",
|
|
83
|
-
"@smithy/util-waiter": "^3.
|
|
83
|
+
"@smithy/util-waiter": "^3.2.0",
|
|
84
84
|
"tslib": "^2.6.2"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
87
|
+
"@aws-sdk/signature-v4-crt": "3.712.0",
|
|
88
88
|
"@tsconfig/node16": "16.1.3",
|
|
89
89
|
"@types/node": "^16.18.96",
|
|
90
90
|
"concurrently": "7.0.0",
|