@aws-sdk/client-s3 3.733.0 → 3.734.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.
@@ -165,28 +165,28 @@ declare const DeleteObjectCommand_base: {
165
165
  * <p>Base exception class for all service exceptions from S3 service.</p>
166
166
  *
167
167
  * @public
168
- * @example To delete an object (from a non-versioned bucket)
168
+ * @example To delete an object
169
169
  * ```javascript
170
- * // The following example deletes an object from a non-versioned bucket.
170
+ * // The following example deletes an object from an S3 bucket.
171
171
  * const input = {
172
- * "Bucket": "ExampleBucket",
173
- * "Key": "HappyFace.jpg"
172
+ * "Bucket": "examplebucket",
173
+ * "Key": "objectkey.jpg"
174
174
  * };
175
175
  * const command = new DeleteObjectCommand(input);
176
176
  * await client.send(command);
177
- * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
177
+ * // example id: to-delete-an-object-1472850136595
178
178
  * ```
179
179
  *
180
- * @example To delete an object
180
+ * @example To delete an object (from a non-versioned bucket)
181
181
  * ```javascript
182
- * // The following example deletes an object from an S3 bucket.
182
+ * // The following example deletes an object from a non-versioned bucket.
183
183
  * const input = {
184
- * "Bucket": "examplebucket",
185
- * "Key": "objectkey.jpg"
184
+ * "Bucket": "ExampleBucket",
185
+ * "Key": "HappyFace.jpg"
186
186
  * };
187
187
  * const command = new DeleteObjectCommand(input);
188
188
  * await client.send(command);
189
- * // example id: to-delete-an-object-1472850136595
189
+ * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
190
190
  * ```
191
191
  *
192
192
  */
@@ -291,52 +291,52 @@ declare const PutObjectCommand_base: {
291
291
  * <p>Base exception class for all service exceptions from S3 service.</p>
292
292
  *
293
293
  * @public
294
- * @example To upload an object and specify canned ACL.
294
+ * @example To create an object.
295
295
  * ```javascript
296
- * // 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.
296
+ * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
297
297
  * const input = {
298
- * "ACL": "authenticated-read",
299
298
  * "Body": "filetoupload",
300
299
  * "Bucket": "examplebucket",
301
- * "Key": "exampleobject"
300
+ * "Key": "objectkey"
302
301
  * };
303
302
  * const command = new PutObjectCommand(input);
304
303
  * const response = await client.send(command);
305
304
  * /* response ==
306
305
  * {
307
306
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
308
- * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
307
+ * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
309
308
  * }
310
309
  * *\/
311
- * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
310
+ * // example id: to-create-an-object-1483147613675
312
311
  * ```
313
312
  *
314
- * @example To create an object.
313
+ * @example To upload an object
315
314
  * ```javascript
316
- * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
315
+ * // 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.
317
316
  * const input = {
318
- * "Body": "filetoupload",
317
+ * "Body": "HappyFace.jpg",
319
318
  * "Bucket": "examplebucket",
320
- * "Key": "objectkey"
319
+ * "Key": "HappyFace.jpg"
321
320
  * };
322
321
  * const command = new PutObjectCommand(input);
323
322
  * const response = await client.send(command);
324
323
  * /* response ==
325
324
  * {
326
325
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
327
- * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
326
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
328
327
  * }
329
328
  * *\/
330
- * // example id: to-create-an-object-1483147613675
329
+ * // example id: to-upload-an-object-1481760101010
331
330
  * ```
332
331
  *
333
- * @example To upload an object and specify optional tags
332
+ * @example To upload an object and specify server-side encryption and object tags
334
333
  * ```javascript
335
- * // 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.
334
+ * // 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.
336
335
  * const input = {
337
- * "Body": "c:\\HappyFace.jpg",
336
+ * "Body": "filetoupload",
338
337
  * "Bucket": "examplebucket",
339
- * "Key": "HappyFace.jpg",
338
+ * "Key": "exampleobject",
339
+ * "ServerSideEncryption": "AES256",
340
340
  * "Tagging": "key1=value1&key2=value2"
341
341
  * };
342
342
  * const command = new PutObjectCommand(input);
@@ -344,96 +344,96 @@ declare const PutObjectCommand_base: {
344
344
  * /* response ==
345
345
  * {
346
346
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
347
- * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
347
+ * "ServerSideEncryption": "AES256",
348
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
348
349
  * }
349
350
  * *\/
350
- * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
351
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
351
352
  * ```
352
353
  *
353
- * @example To upload an object and specify server-side encryption and object tags
354
+ * @example To upload object and specify user-defined metadata
354
355
  * ```javascript
355
- * // 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.
356
+ * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
356
357
  * const input = {
357
358
  * "Body": "filetoupload",
358
359
  * "Bucket": "examplebucket",
359
360
  * "Key": "exampleobject",
360
- * "ServerSideEncryption": "AES256",
361
- * "Tagging": "key1=value1&key2=value2"
361
+ * "Metadata": {
362
+ * "metadata1": "value1",
363
+ * "metadata2": "value2"
364
+ * }
362
365
  * };
363
366
  * const command = new PutObjectCommand(input);
364
367
  * const response = await client.send(command);
365
368
  * /* response ==
366
369
  * {
367
370
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
368
- * "ServerSideEncryption": "AES256",
369
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
371
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
370
372
  * }
371
373
  * *\/
372
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
374
+ * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
373
375
  * ```
374
376
  *
375
- * @example To upload an object (specify optional headers)
377
+ * @example To upload an object and specify optional tags
376
378
  * ```javascript
377
- * // 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.
379
+ * // 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.
378
380
  * const input = {
379
- * "Body": "HappyFace.jpg",
381
+ * "Body": "c:\\HappyFace.jpg",
380
382
  * "Bucket": "examplebucket",
381
383
  * "Key": "HappyFace.jpg",
382
- * "ServerSideEncryption": "AES256",
383
- * "StorageClass": "STANDARD_IA"
384
+ * "Tagging": "key1=value1&key2=value2"
384
385
  * };
385
386
  * const command = new PutObjectCommand(input);
386
387
  * const response = await client.send(command);
387
388
  * /* response ==
388
389
  * {
389
390
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
390
- * "ServerSideEncryption": "AES256",
391
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
391
+ * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
392
392
  * }
393
393
  * *\/
394
- * // example id: to-upload-an-object-(specify-optional-headers)
394
+ * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
395
395
  * ```
396
396
  *
397
- * @example To upload an object
397
+ * @example To upload an object (specify optional headers)
398
398
  * ```javascript
399
- * // 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.
399
+ * // 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.
400
400
  * const input = {
401
401
  * "Body": "HappyFace.jpg",
402
402
  * "Bucket": "examplebucket",
403
- * "Key": "HappyFace.jpg"
403
+ * "Key": "HappyFace.jpg",
404
+ * "ServerSideEncryption": "AES256",
405
+ * "StorageClass": "STANDARD_IA"
404
406
  * };
405
407
  * const command = new PutObjectCommand(input);
406
408
  * const response = await client.send(command);
407
409
  * /* response ==
408
410
  * {
409
411
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
410
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
412
+ * "ServerSideEncryption": "AES256",
413
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
411
414
  * }
412
415
  * *\/
413
- * // example id: to-upload-an-object-1481760101010
416
+ * // example id: to-upload-an-object-(specify-optional-headers)
414
417
  * ```
415
418
  *
416
- * @example To upload object and specify user-defined metadata
419
+ * @example To upload an object and specify canned ACL.
417
420
  * ```javascript
418
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
421
+ * // 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.
419
422
  * const input = {
423
+ * "ACL": "authenticated-read",
420
424
  * "Body": "filetoupload",
421
425
  * "Bucket": "examplebucket",
422
- * "Key": "exampleobject",
423
- * "Metadata": {
424
- * "metadata1": "value1",
425
- * "metadata2": "value2"
426
- * }
426
+ * "Key": "exampleobject"
427
427
  * };
428
428
  * const command = new PutObjectCommand(input);
429
429
  * const response = await client.send(command);
430
430
  * /* response ==
431
431
  * {
432
432
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
433
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
433
+ * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
434
434
  * }
435
435
  * *\/
436
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
436
+ * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
437
437
  * ```
438
438
  *
439
439
  */
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.733.0",
4
+ "version": "3.734.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,62 +27,62 @@
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/core": "3.731.0",
31
- "@aws-sdk/credential-provider-node": "3.731.1",
32
- "@aws-sdk/middleware-bucket-endpoint": "3.731.0",
33
- "@aws-sdk/middleware-expect-continue": "3.731.0",
34
- "@aws-sdk/middleware-flexible-checksums": "3.732.0",
35
- "@aws-sdk/middleware-host-header": "3.731.0",
36
- "@aws-sdk/middleware-location-constraint": "3.731.0",
37
- "@aws-sdk/middleware-logger": "3.731.0",
38
- "@aws-sdk/middleware-recursion-detection": "3.731.0",
39
- "@aws-sdk/middleware-sdk-s3": "3.733.0",
40
- "@aws-sdk/middleware-ssec": "3.731.0",
41
- "@aws-sdk/middleware-user-agent": "3.731.0",
42
- "@aws-sdk/region-config-resolver": "3.731.0",
43
- "@aws-sdk/signature-v4-multi-region": "3.733.0",
44
- "@aws-sdk/types": "3.731.0",
45
- "@aws-sdk/util-endpoints": "3.731.0",
46
- "@aws-sdk/util-user-agent-browser": "3.731.0",
47
- "@aws-sdk/util-user-agent-node": "3.731.0",
48
- "@aws-sdk/xml-builder": "3.723.0",
49
- "@smithy/config-resolver": "^4.0.0",
50
- "@smithy/core": "^3.0.0",
51
- "@smithy/eventstream-serde-browser": "^4.0.0",
52
- "@smithy/eventstream-serde-config-resolver": "^4.0.0",
53
- "@smithy/eventstream-serde-node": "^4.0.0",
54
- "@smithy/fetch-http-handler": "^5.0.0",
55
- "@smithy/hash-blob-browser": "^4.0.0",
56
- "@smithy/hash-node": "^4.0.0",
57
- "@smithy/hash-stream-node": "^4.0.0",
58
- "@smithy/invalid-dependency": "^4.0.0",
59
- "@smithy/md5-js": "^4.0.0",
60
- "@smithy/middleware-content-length": "^4.0.0",
61
- "@smithy/middleware-endpoint": "^4.0.0",
62
- "@smithy/middleware-retry": "^4.0.0",
63
- "@smithy/middleware-serde": "^4.0.0",
64
- "@smithy/middleware-stack": "^4.0.0",
65
- "@smithy/node-config-provider": "^4.0.0",
66
- "@smithy/node-http-handler": "^4.0.0",
67
- "@smithy/protocol-http": "^5.0.0",
68
- "@smithy/smithy-client": "^4.0.0",
69
- "@smithy/types": "^4.0.0",
70
- "@smithy/url-parser": "^4.0.0",
30
+ "@aws-sdk/core": "3.734.0",
31
+ "@aws-sdk/credential-provider-node": "3.734.0",
32
+ "@aws-sdk/middleware-bucket-endpoint": "3.734.0",
33
+ "@aws-sdk/middleware-expect-continue": "3.734.0",
34
+ "@aws-sdk/middleware-flexible-checksums": "3.734.0",
35
+ "@aws-sdk/middleware-host-header": "3.734.0",
36
+ "@aws-sdk/middleware-location-constraint": "3.734.0",
37
+ "@aws-sdk/middleware-logger": "3.734.0",
38
+ "@aws-sdk/middleware-recursion-detection": "3.734.0",
39
+ "@aws-sdk/middleware-sdk-s3": "3.734.0",
40
+ "@aws-sdk/middleware-ssec": "3.734.0",
41
+ "@aws-sdk/middleware-user-agent": "3.734.0",
42
+ "@aws-sdk/region-config-resolver": "3.734.0",
43
+ "@aws-sdk/signature-v4-multi-region": "3.734.0",
44
+ "@aws-sdk/types": "3.734.0",
45
+ "@aws-sdk/util-endpoints": "3.734.0",
46
+ "@aws-sdk/util-user-agent-browser": "3.734.0",
47
+ "@aws-sdk/util-user-agent-node": "3.734.0",
48
+ "@aws-sdk/xml-builder": "3.734.0",
49
+ "@smithy/config-resolver": "^4.0.1",
50
+ "@smithy/core": "^3.1.1",
51
+ "@smithy/eventstream-serde-browser": "^4.0.1",
52
+ "@smithy/eventstream-serde-config-resolver": "^4.0.1",
53
+ "@smithy/eventstream-serde-node": "^4.0.1",
54
+ "@smithy/fetch-http-handler": "^5.0.1",
55
+ "@smithy/hash-blob-browser": "^4.0.1",
56
+ "@smithy/hash-node": "^4.0.1",
57
+ "@smithy/hash-stream-node": "^4.0.1",
58
+ "@smithy/invalid-dependency": "^4.0.1",
59
+ "@smithy/md5-js": "^4.0.1",
60
+ "@smithy/middleware-content-length": "^4.0.1",
61
+ "@smithy/middleware-endpoint": "^4.0.2",
62
+ "@smithy/middleware-retry": "^4.0.3",
63
+ "@smithy/middleware-serde": "^4.0.1",
64
+ "@smithy/middleware-stack": "^4.0.1",
65
+ "@smithy/node-config-provider": "^4.0.1",
66
+ "@smithy/node-http-handler": "^4.0.2",
67
+ "@smithy/protocol-http": "^5.0.1",
68
+ "@smithy/smithy-client": "^4.1.2",
69
+ "@smithy/types": "^4.1.0",
70
+ "@smithy/url-parser": "^4.0.1",
71
71
  "@smithy/util-base64": "^4.0.0",
72
72
  "@smithy/util-body-length-browser": "^4.0.0",
73
73
  "@smithy/util-body-length-node": "^4.0.0",
74
- "@smithy/util-defaults-mode-browser": "^4.0.0",
75
- "@smithy/util-defaults-mode-node": "^4.0.0",
76
- "@smithy/util-endpoints": "^3.0.0",
77
- "@smithy/util-middleware": "^4.0.0",
78
- "@smithy/util-retry": "^4.0.0",
79
- "@smithy/util-stream": "^4.0.0",
74
+ "@smithy/util-defaults-mode-browser": "^4.0.3",
75
+ "@smithy/util-defaults-mode-node": "^4.0.3",
76
+ "@smithy/util-endpoints": "^3.0.1",
77
+ "@smithy/util-middleware": "^4.0.1",
78
+ "@smithy/util-retry": "^4.0.1",
79
+ "@smithy/util-stream": "^4.0.2",
80
80
  "@smithy/util-utf8": "^4.0.0",
81
- "@smithy/util-waiter": "^4.0.0",
81
+ "@smithy/util-waiter": "^4.0.2",
82
82
  "tslib": "^2.6.2"
83
83
  },
84
84
  "devDependencies": {
85
- "@aws-sdk/signature-v4-crt": "3.733.0",
85
+ "@aws-sdk/signature-v4-crt": "3.734.0",
86
86
  "@tsconfig/node18": "18.2.4",
87
87
  "@types/node": "^18.19.69",
88
88
  "concurrently": "7.0.0",