@aws-sdk/client-s3 3.775.0 → 3.777.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-types/commands/AbortMultipartUploadCommand.d.ts +9 -6
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +16 -16
- package/dist-types/commands/CopyObjectCommand.d.ts +9 -9
- package/dist-types/commands/CreateBucketCommand.d.ts +15 -16
- package/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +8 -8
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +7 -4
- package/dist-types/commands/DeleteObjectCommand.d.ts +18 -13
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -12
- package/dist-types/commands/DeleteObjectsCommand.d.ts +30 -31
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAclCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketCorsCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +11 -11
- package/dist-types/commands/GetBucketLocationCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +12 -12
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +6 -6
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +8 -8
- package/dist-types/commands/GetObjectAclCommand.d.ts +29 -29
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectCommand.d.ts +44 -30
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -20
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +18 -5
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/HeadBucketCommand.d.ts +7 -4
- package/dist-types/commands/HeadObjectCommand.d.ts +12 -12
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketsCommand.d.ts +14 -14
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +1 -0
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +62 -63
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +26 -26
- package/dist-types/commands/ListObjectsCommand.d.ts +23 -23
- package/dist-types/commands/ListObjectsV2Command.d.ts +22 -22
- package/dist-types/commands/ListPartsCommand.d.ts +22 -22
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketAclCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketCorsCommand.d.ts +19 -16
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +18 -15
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +16 -13
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +11 -8
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +8 -5
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +15 -12
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +13 -10
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +10 -7
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +13 -10
- package/dist-types/commands/PutObjectAclCommand.d.ts +11 -8
- package/dist-types/commands/PutObjectCommand.d.ts +68 -74
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +12 -12
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/RestoreObjectCommand.d.ts +12 -9
- package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -0
- package/dist-types/commands/UploadPartCommand.d.ts +9 -9
- package/dist-types/commands/UploadPartCopyCommand.d.ts +21 -22
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -0
- package/package.json +2 -2
|
@@ -300,152 +300,146 @@ declare const PutObjectCommand_base: {
|
|
|
300
300
|
* @throws {@link S3ServiceException}
|
|
301
301
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
302
302
|
*
|
|
303
|
-
*
|
|
304
|
-
* @example To
|
|
303
|
+
*
|
|
304
|
+
* @example To create an object.
|
|
305
305
|
* ```javascript
|
|
306
|
-
* // The following example
|
|
306
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
307
307
|
* const input = {
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
308
|
+
* Body: "filetoupload",
|
|
309
|
+
* Bucket: "examplebucket",
|
|
310
|
+
* Key: "objectkey"
|
|
311
311
|
* };
|
|
312
312
|
* const command = new PutObjectCommand(input);
|
|
313
313
|
* const response = await client.send(command);
|
|
314
|
-
* /* response
|
|
314
|
+
* /* response is
|
|
315
315
|
* {
|
|
316
|
-
*
|
|
317
|
-
*
|
|
316
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
317
|
+
* VersionId: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
318
318
|
* }
|
|
319
319
|
* *\/
|
|
320
|
-
* // example id: to-upload-an-object-1481760101010
|
|
321
320
|
* ```
|
|
322
321
|
*
|
|
323
322
|
* @example To upload an object (specify optional headers)
|
|
324
323
|
* ```javascript
|
|
325
324
|
* // 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.
|
|
326
325
|
* const input = {
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
326
|
+
* Body: "HappyFace.jpg",
|
|
327
|
+
* Bucket: "examplebucket",
|
|
328
|
+
* Key: "HappyFace.jpg",
|
|
329
|
+
* ServerSideEncryption: "AES256",
|
|
330
|
+
* StorageClass: "STANDARD_IA"
|
|
332
331
|
* };
|
|
333
332
|
* const command = new PutObjectCommand(input);
|
|
334
333
|
* const response = await client.send(command);
|
|
335
|
-
* /* response
|
|
334
|
+
* /* response is
|
|
336
335
|
* {
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
336
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
337
|
+
* ServerSideEncryption: "AES256",
|
|
338
|
+
* VersionId: "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
340
339
|
* }
|
|
341
340
|
* *\/
|
|
342
|
-
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
343
341
|
* ```
|
|
344
342
|
*
|
|
345
|
-
* @example To
|
|
343
|
+
* @example To upload an object
|
|
346
344
|
* ```javascript
|
|
347
|
-
* // The following example
|
|
345
|
+
* // 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.
|
|
348
346
|
* const input = {
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
347
|
+
* Body: "HappyFace.jpg",
|
|
348
|
+
* Bucket: "examplebucket",
|
|
349
|
+
* Key: "HappyFace.jpg"
|
|
352
350
|
* };
|
|
353
351
|
* const command = new PutObjectCommand(input);
|
|
354
352
|
* const response = await client.send(command);
|
|
355
|
-
* /* response
|
|
353
|
+
* /* response is
|
|
356
354
|
* {
|
|
357
|
-
*
|
|
358
|
-
*
|
|
355
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
356
|
+
* VersionId: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
359
357
|
* }
|
|
360
358
|
* *\/
|
|
361
|
-
* // example id: to-create-an-object-1483147613675
|
|
362
359
|
* ```
|
|
363
360
|
*
|
|
364
|
-
* @example To upload an object and specify
|
|
361
|
+
* @example To upload an object and specify canned ACL.
|
|
365
362
|
* ```javascript
|
|
366
|
-
* // The following example uploads
|
|
363
|
+
* // 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.
|
|
367
364
|
* const input = {
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
365
|
+
* ACL: "authenticated-read",
|
|
366
|
+
* Body: "filetoupload",
|
|
367
|
+
* Bucket: "examplebucket",
|
|
368
|
+
* Key: "exampleobject"
|
|
372
369
|
* };
|
|
373
370
|
* const command = new PutObjectCommand(input);
|
|
374
371
|
* const response = await client.send(command);
|
|
375
|
-
* /* response
|
|
372
|
+
* /* response is
|
|
376
373
|
* {
|
|
377
|
-
*
|
|
378
|
-
*
|
|
374
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
375
|
+
* VersionId: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
379
376
|
* }
|
|
380
377
|
* *\/
|
|
381
|
-
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
382
378
|
* ```
|
|
383
379
|
*
|
|
384
|
-
* @example To upload an object and specify
|
|
380
|
+
* @example To upload an object and specify optional tags
|
|
385
381
|
* ```javascript
|
|
386
|
-
* // The following example uploads an object. The request specifies
|
|
382
|
+
* // 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.
|
|
387
383
|
* const input = {
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
384
|
+
* Body: "c:\HappyFace.jpg",
|
|
385
|
+
* Bucket: "examplebucket",
|
|
386
|
+
* Key: "HappyFace.jpg",
|
|
387
|
+
* Tagging: "key1=value1&key2=value2"
|
|
393
388
|
* };
|
|
394
389
|
* const command = new PutObjectCommand(input);
|
|
395
390
|
* const response = await client.send(command);
|
|
396
|
-
* /* response
|
|
391
|
+
* /* response is
|
|
397
392
|
* {
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
393
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
394
|
+
* VersionId: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
|
|
401
395
|
* }
|
|
402
396
|
* *\/
|
|
403
|
-
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
404
397
|
* ```
|
|
405
398
|
*
|
|
406
|
-
* @example To upload object and specify
|
|
399
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
407
400
|
* ```javascript
|
|
408
|
-
* // The following example
|
|
401
|
+
* // 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.
|
|
409
402
|
* const input = {
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
* "
|
|
414
|
-
*
|
|
415
|
-
* "metadata2": "value2"
|
|
416
|
-
* }
|
|
403
|
+
* Body: "filetoupload",
|
|
404
|
+
* Bucket: "examplebucket",
|
|
405
|
+
* Key: "exampleobject",
|
|
406
|
+
* ServerSideEncryption: "AES256",
|
|
407
|
+
* Tagging: "key1=value1&key2=value2"
|
|
417
408
|
* };
|
|
418
409
|
* const command = new PutObjectCommand(input);
|
|
419
410
|
* const response = await client.send(command);
|
|
420
|
-
* /* response
|
|
411
|
+
* /* response is
|
|
421
412
|
* {
|
|
422
|
-
*
|
|
423
|
-
*
|
|
413
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
414
|
+
* ServerSideEncryption: "AES256",
|
|
415
|
+
* VersionId: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
424
416
|
* }
|
|
425
417
|
* *\/
|
|
426
|
-
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
427
418
|
* ```
|
|
428
419
|
*
|
|
429
|
-
* @example To upload
|
|
420
|
+
* @example To upload object and specify user-defined metadata
|
|
430
421
|
* ```javascript
|
|
431
|
-
* // The following example
|
|
422
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
432
423
|
* const input = {
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
424
|
+
* Body: "filetoupload",
|
|
425
|
+
* Bucket: "examplebucket",
|
|
426
|
+
* Key: "exampleobject",
|
|
427
|
+
* Metadata: {
|
|
428
|
+
* metadata1: "value1",
|
|
429
|
+
* metadata2: "value2"
|
|
430
|
+
* }
|
|
437
431
|
* };
|
|
438
432
|
* const command = new PutObjectCommand(input);
|
|
439
433
|
* const response = await client.send(command);
|
|
440
|
-
* /* response
|
|
434
|
+
* /* response is
|
|
441
435
|
* {
|
|
442
|
-
*
|
|
443
|
-
*
|
|
436
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
437
|
+
* VersionId: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
444
438
|
* }
|
|
445
439
|
* *\/
|
|
446
|
-
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
447
440
|
* ```
|
|
448
441
|
*
|
|
442
|
+
* @public
|
|
449
443
|
*/
|
|
450
444
|
export declare class PutObjectCommand extends PutObjectCommand_base {
|
|
451
445
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -69,6 +69,7 @@ declare const PutObjectLegalHoldCommand_base: {
|
|
|
69
69
|
* @throws {@link S3ServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
71
71
|
*
|
|
72
|
+
*
|
|
72
73
|
* @public
|
|
73
74
|
*/
|
|
74
75
|
export declare class PutObjectLegalHoldCommand extends PutObjectLegalHoldCommand_base {
|
|
@@ -92,6 +92,7 @@ declare const PutObjectLockConfigurationCommand_base: {
|
|
|
92
92
|
* @throws {@link S3ServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
94
94
|
*
|
|
95
|
+
*
|
|
95
96
|
* @public
|
|
96
97
|
*/
|
|
97
98
|
export declare class PutObjectLockConfigurationCommand extends PutObjectLockConfigurationCommand_base {
|
|
@@ -72,6 +72,7 @@ declare const PutObjectRetentionCommand_base: {
|
|
|
72
72
|
* @throws {@link S3ServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
74
74
|
*
|
|
75
|
+
*
|
|
75
76
|
* @public
|
|
76
77
|
*/
|
|
77
78
|
export declare class PutObjectRetentionCommand extends PutObjectRetentionCommand_base {
|
|
@@ -123,36 +123,36 @@ declare const PutObjectTaggingCommand_base: {
|
|
|
123
123
|
* @throws {@link S3ServiceException}
|
|
124
124
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
125
125
|
*
|
|
126
|
-
*
|
|
126
|
+
*
|
|
127
127
|
* @example To add tags to an existing object
|
|
128
128
|
* ```javascript
|
|
129
129
|
* // The following example adds tags to an existing object.
|
|
130
130
|
* const input = {
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
131
|
+
* Bucket: "examplebucket",
|
|
132
|
+
* Key: "HappyFace.jpg",
|
|
133
|
+
* Tagging: {
|
|
134
|
+
* TagSet: [
|
|
135
135
|
* {
|
|
136
|
-
*
|
|
137
|
-
*
|
|
136
|
+
* Key: "Key3",
|
|
137
|
+
* Value: "Value3"
|
|
138
138
|
* },
|
|
139
139
|
* {
|
|
140
|
-
*
|
|
141
|
-
*
|
|
140
|
+
* Key: "Key4",
|
|
141
|
+
* Value: "Value4"
|
|
142
142
|
* }
|
|
143
143
|
* ]
|
|
144
144
|
* }
|
|
145
145
|
* };
|
|
146
146
|
* const command = new PutObjectTaggingCommand(input);
|
|
147
147
|
* const response = await client.send(command);
|
|
148
|
-
* /* response
|
|
148
|
+
* /* response is
|
|
149
149
|
* {
|
|
150
|
-
*
|
|
150
|
+
* VersionId: "null"
|
|
151
151
|
* }
|
|
152
152
|
* *\/
|
|
153
|
-
* // example id: to-add-tags-to-an-existing-object-1481764668793
|
|
154
153
|
* ```
|
|
155
154
|
*
|
|
155
|
+
* @public
|
|
156
156
|
*/
|
|
157
157
|
export declare class PutObjectTaggingCommand extends PutObjectTaggingCommand_base {
|
|
158
158
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -100,6 +100,7 @@ declare const PutPublicAccessBlockCommand_base: {
|
|
|
100
100
|
* @throws {@link S3ServiceException}
|
|
101
101
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
102
102
|
*
|
|
103
|
+
*
|
|
103
104
|
* @public
|
|
104
105
|
*/
|
|
105
106
|
export declare class PutPublicAccessBlockCommand extends PutPublicAccessBlockCommand_base {
|
|
@@ -348,25 +348,28 @@ declare const RestoreObjectCommand_base: {
|
|
|
348
348
|
* @throws {@link S3ServiceException}
|
|
349
349
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
350
350
|
*
|
|
351
|
-
*
|
|
351
|
+
*
|
|
352
352
|
* @example To restore an archived object
|
|
353
353
|
* ```javascript
|
|
354
354
|
* // The following example restores for one day an archived copy of an object back into Amazon S3 bucket.
|
|
355
355
|
* const input = {
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
356
|
+
* Bucket: "examplebucket",
|
|
357
|
+
* Key: "archivedobjectkey",
|
|
358
|
+
* RestoreRequest: {
|
|
359
|
+
* Days: 1,
|
|
360
|
+
* GlacierJobParameters: {
|
|
361
|
+
* Tier: "Expedited"
|
|
362
362
|
* }
|
|
363
363
|
* }
|
|
364
364
|
* };
|
|
365
365
|
* const command = new RestoreObjectCommand(input);
|
|
366
|
-
* await client.send(command);
|
|
367
|
-
*
|
|
366
|
+
* const response = await client.send(command);
|
|
367
|
+
* /* response is
|
|
368
|
+
* { /* empty *\/ }
|
|
369
|
+
* *\/
|
|
368
370
|
* ```
|
|
369
371
|
*
|
|
372
|
+
* @public
|
|
370
373
|
*/
|
|
371
374
|
export declare class RestoreObjectCommand extends RestoreObjectCommand_base {
|
|
372
375
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -237,6 +237,7 @@ declare const SelectObjectContentCommand_base: {
|
|
|
237
237
|
* @throws {@link S3ServiceException}
|
|
238
238
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
239
239
|
*
|
|
240
|
+
*
|
|
240
241
|
* @public
|
|
241
242
|
*/
|
|
242
243
|
export declare class SelectObjectContentCommand extends SelectObjectContentCommand_base {
|
|
@@ -272,27 +272,27 @@ declare const UploadPartCommand_base: {
|
|
|
272
272
|
* @throws {@link S3ServiceException}
|
|
273
273
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
274
274
|
*
|
|
275
|
-
*
|
|
275
|
+
*
|
|
276
276
|
* @example To upload a part
|
|
277
277
|
* ```javascript
|
|
278
278
|
* // The following example uploads part 1 of a multipart upload. The example specifies a file name for the part data. The Upload ID is same that is returned by the initiate multipart upload.
|
|
279
279
|
* const input = {
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
280
|
+
* Body: "fileToUpload",
|
|
281
|
+
* Bucket: "examplebucket",
|
|
282
|
+
* Key: "examplelargeobject",
|
|
283
|
+
* PartNumber: 1,
|
|
284
|
+
* UploadId: "xadcOB_7YPBOJuoFiQ9cz4P3Pe6FIZwO4f7wN93uHsNBEw97pl5eNwzExg0LAT2dUN91cOmrEQHDsP3WA60CEg--"
|
|
285
285
|
* };
|
|
286
286
|
* const command = new UploadPartCommand(input);
|
|
287
287
|
* const response = await client.send(command);
|
|
288
|
-
* /* response
|
|
288
|
+
* /* response is
|
|
289
289
|
* {
|
|
290
|
-
*
|
|
290
|
+
* ETag: `"d8c2eafd90c266e19ab9dcacc479f8af"`
|
|
291
291
|
* }
|
|
292
292
|
* *\/
|
|
293
|
-
* // example id: to-upload-a-part-1481847914943
|
|
294
293
|
* ```
|
|
295
294
|
*
|
|
295
|
+
* @public
|
|
296
296
|
*/
|
|
297
297
|
export declare class UploadPartCommand extends UploadPartCommand_base {
|
|
298
298
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -312,54 +312,53 @@ declare const UploadPartCopyCommand_base: {
|
|
|
312
312
|
* @throws {@link S3ServiceException}
|
|
313
313
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
314
314
|
*
|
|
315
|
-
*
|
|
315
|
+
*
|
|
316
316
|
* @example To upload a part by copying byte range from an existing object as data source
|
|
317
317
|
* ```javascript
|
|
318
318
|
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
|
|
319
319
|
* const input = {
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
320
|
+
* Bucket: "examplebucket",
|
|
321
|
+
* CopySource: "/bucketname/sourceobjectkey",
|
|
322
|
+
* CopySourceRange: "bytes=1-100000",
|
|
323
|
+
* Key: "examplelargeobject",
|
|
324
|
+
* PartNumber: 2,
|
|
325
|
+
* UploadId: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
326
326
|
* };
|
|
327
327
|
* const command = new UploadPartCopyCommand(input);
|
|
328
328
|
* const response = await client.send(command);
|
|
329
|
-
* /* response
|
|
329
|
+
* /* response is
|
|
330
330
|
* {
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
331
|
+
* CopyPartResult: {
|
|
332
|
+
* ETag: `"65d16d19e65a7508a51f043180edcc36"`,
|
|
333
|
+
* LastModified: "2016-12-29T21:44:28.000Z"
|
|
334
334
|
* }
|
|
335
335
|
* }
|
|
336
336
|
* *\/
|
|
337
|
-
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
|
|
338
337
|
* ```
|
|
339
338
|
*
|
|
340
339
|
* @example To upload a part by copying data from an existing object as data source
|
|
341
340
|
* ```javascript
|
|
342
341
|
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
343
342
|
* const input = {
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
343
|
+
* Bucket: "examplebucket",
|
|
344
|
+
* CopySource: "/bucketname/sourceobjectkey",
|
|
345
|
+
* Key: "examplelargeobject",
|
|
346
|
+
* PartNumber: 1,
|
|
347
|
+
* UploadId: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
349
348
|
* };
|
|
350
349
|
* const command = new UploadPartCopyCommand(input);
|
|
351
350
|
* const response = await client.send(command);
|
|
352
|
-
* /* response
|
|
351
|
+
* /* response is
|
|
353
352
|
* {
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
353
|
+
* CopyPartResult: {
|
|
354
|
+
* ETag: `"b0c6f0e7e054ab8fa2536a2677f8734d"`,
|
|
355
|
+
* LastModified: "2016-12-29T21:24:43.000Z"
|
|
357
356
|
* }
|
|
358
357
|
* }
|
|
359
358
|
* *\/
|
|
360
|
-
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
|
|
361
359
|
* ```
|
|
362
360
|
*
|
|
361
|
+
* @public
|
|
363
362
|
*/
|
|
364
363
|
export declare class UploadPartCopyCommand extends UploadPartCopyCommand_base {
|
|
365
364
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -131,6 +131,7 @@ declare const WriteGetObjectResponseCommand_base: {
|
|
|
131
131
|
* @throws {@link S3ServiceException}
|
|
132
132
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
133
133
|
*
|
|
134
|
+
*
|
|
134
135
|
* @public
|
|
135
136
|
*/
|
|
136
137
|
export declare class WriteGetObjectResponseCommand extends WriteGetObjectResponseCommand_base {
|
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.777.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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
30
|
"@aws-sdk/core": "3.775.0",
|
|
31
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
31
|
+
"@aws-sdk/credential-provider-node": "3.777.0",
|
|
32
32
|
"@aws-sdk/middleware-bucket-endpoint": "3.775.0",
|
|
33
33
|
"@aws-sdk/middleware-expect-continue": "3.775.0",
|
|
34
34
|
"@aws-sdk/middleware-flexible-checksums": "3.775.0",
|