@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 and specify user-defined metadata
291
+ * @example To upload an object (specify optional headers)
292
292
  * ```javascript
293
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
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": "filetoupload",
295
+ * "Body": "HappyFace.jpg",
296
296
  * "Bucket": "examplebucket",
297
- * "Key": "exampleobject",
298
- * "Metadata": {
299
- * "metadata1": "value1",
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
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
306
+ * "ServerSideEncryption": "AES256",
307
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
309
308
  * }
310
309
  * *\/
311
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
310
+ * // example id: to-upload-an-object-(specify-optional-headers)
312
311
  * ```
313
312
  *
314
- * @example To upload an object and specify optional tags
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. The bucket is versioned, therefore S3 returns version ID of the newly created object.
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": "c:\\HappyFace.jpg",
317
+ * "Body": "filetoupload",
319
318
  * "Bucket": "examplebucket",
320
- * "Key": "HappyFace.jpg",
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
- * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
328
+ * "ServerSideEncryption": "AES256",
329
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
329
330
  * }
330
331
  * *\/
331
- * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
332
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
332
333
  * ```
333
334
  *
334
- * @example To upload an object (specify optional headers)
335
+ * @example To upload object and specify user-defined metadata
335
336
  * ```javascript
336
- * // 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.
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": "HappyFace.jpg",
339
+ * "Body": "filetoupload",
339
340
  * "Bucket": "examplebucket",
340
- * "Key": "HappyFace.jpg",
341
- * "ServerSideEncryption": "AES256",
342
- * "StorageClass": "STANDARD_IA"
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
- * "ServerSideEncryption": "AES256",
350
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
352
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
351
353
  * }
352
354
  * *\/
353
- * // example id: to-upload-an-object-(specify-optional-headers)
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 to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created 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": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
392
+ * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
390
393
  * }
391
394
  * *\/
392
- * // example id: to-upload-an-object-1481760101010
395
+ * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
393
396
  * ```
394
397
  *
395
- * @example To upload an object and specify server-side encryption and object tags
398
+ * @example To upload an object
396
399
  * ```javascript
397
- * // 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.
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": "filetoupload",
402
+ * "Body": "HappyFace.jpg",
400
403
  * "Bucket": "examplebucket",
401
- * "Key": "exampleobject",
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
- * "ServerSideEncryption": "AES256",
411
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
411
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
412
412
  * }
413
413
  * *\/
414
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
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 data from an existing object as data source
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 data from an existing object as data source.
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": "1",
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": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
331
- * "LastModified": "2016-12-29T21:24:43.000Z"
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-data-from-an-existing-object-as-data-source-1483046746348
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 byte range from an existing object as data source
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 a specified byte range from an existing object as data source.
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": "2",
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": "\"65d16d19e65a7508a51f043180edcc36\"",
355
- * "LastModified": "2016-12-29T21:44:28.000Z"
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-byte-range-from-an-existing-object-as-data-source-1483048068594
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.705.0",
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.699.0",
31
- "@aws-sdk/client-sts": "3.699.0",
32
- "@aws-sdk/core": "3.696.0",
33
- "@aws-sdk/credential-provider-node": "3.699.0",
34
- "@aws-sdk/middleware-bucket-endpoint": "3.696.0",
35
- "@aws-sdk/middleware-expect-continue": "3.696.0",
36
- "@aws-sdk/middleware-flexible-checksums": "3.701.0",
37
- "@aws-sdk/middleware-host-header": "3.696.0",
38
- "@aws-sdk/middleware-location-constraint": "3.696.0",
39
- "@aws-sdk/middleware-logger": "3.696.0",
40
- "@aws-sdk/middleware-recursion-detection": "3.696.0",
41
- "@aws-sdk/middleware-sdk-s3": "3.696.0",
42
- "@aws-sdk/middleware-ssec": "3.696.0",
43
- "@aws-sdk/middleware-user-agent": "3.696.0",
44
- "@aws-sdk/region-config-resolver": "3.696.0",
45
- "@aws-sdk/signature-v4-multi-region": "3.696.0",
46
- "@aws-sdk/types": "3.696.0",
47
- "@aws-sdk/util-endpoints": "3.696.0",
48
- "@aws-sdk/util-user-agent-browser": "3.696.0",
49
- "@aws-sdk/util-user-agent-node": "3.696.0",
50
- "@aws-sdk/xml-builder": "3.696.0",
51
- "@smithy/config-resolver": "^3.0.12",
52
- "@smithy/core": "^2.5.3",
53
- "@smithy/eventstream-serde-browser": "^3.0.13",
54
- "@smithy/eventstream-serde-config-resolver": "^3.0.10",
55
- "@smithy/eventstream-serde-node": "^3.0.12",
56
- "@smithy/fetch-http-handler": "^4.1.1",
57
- "@smithy/hash-blob-browser": "^3.1.9",
58
- "@smithy/hash-node": "^3.0.10",
59
- "@smithy/hash-stream-node": "^3.1.9",
60
- "@smithy/invalid-dependency": "^3.0.10",
61
- "@smithy/md5-js": "^3.0.10",
62
- "@smithy/middleware-content-length": "^3.0.12",
63
- "@smithy/middleware-endpoint": "^3.2.3",
64
- "@smithy/middleware-retry": "^3.0.27",
65
- "@smithy/middleware-serde": "^3.0.10",
66
- "@smithy/middleware-stack": "^3.0.10",
67
- "@smithy/node-config-provider": "^3.1.11",
68
- "@smithy/node-http-handler": "^3.3.1",
69
- "@smithy/protocol-http": "^4.1.7",
70
- "@smithy/smithy-client": "^3.4.4",
71
- "@smithy/types": "^3.7.1",
72
- "@smithy/url-parser": "^3.0.10",
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.27",
77
- "@smithy/util-defaults-mode-node": "^3.0.27",
78
- "@smithy/util-endpoints": "^2.1.6",
79
- "@smithy/util-middleware": "^3.0.10",
80
- "@smithy/util-retry": "^3.0.10",
81
- "@smithy/util-stream": "^3.3.1",
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.1.9",
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.696.0",
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",