@aws-sdk/client-s3 3.749.0 → 3.758.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/CreateBucketCommand.d.ts +13 -13
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
- package/dist-types/commands/GetObjectCommand.d.ts +19 -19
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -19
- package/dist-types/commands/PutObjectCommand.d.ts +40 -40
- package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +17 -17
|
@@ -232,39 +232,39 @@ declare const CreateBucketCommand_base: {
|
|
|
232
232
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
233
233
|
*
|
|
234
234
|
* @public
|
|
235
|
-
* @example To create a bucket
|
|
235
|
+
* @example To create a bucket
|
|
236
236
|
* ```javascript
|
|
237
|
-
* // The following example creates a bucket.
|
|
237
|
+
* // The following example creates a bucket.
|
|
238
238
|
* const input = {
|
|
239
|
-
* "Bucket": "examplebucket"
|
|
240
|
-
* "CreateBucketConfiguration": {
|
|
241
|
-
* "LocationConstraint": "eu-west-1"
|
|
242
|
-
* }
|
|
239
|
+
* "Bucket": "examplebucket"
|
|
243
240
|
* };
|
|
244
241
|
* const command = new CreateBucketCommand(input);
|
|
245
242
|
* const response = await client.send(command);
|
|
246
243
|
* /* response ==
|
|
247
244
|
* {
|
|
248
|
-
* "Location": "
|
|
245
|
+
* "Location": "/examplebucket"
|
|
249
246
|
* }
|
|
250
247
|
* *\/
|
|
251
|
-
* // example id: to-create-a-bucket
|
|
248
|
+
* // example id: to-create-a-bucket--1472851826060
|
|
252
249
|
* ```
|
|
253
250
|
*
|
|
254
|
-
* @example To create a bucket
|
|
251
|
+
* @example To create a bucket in a specific region
|
|
255
252
|
* ```javascript
|
|
256
|
-
* // The following example creates a bucket.
|
|
253
|
+
* // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
|
257
254
|
* const input = {
|
|
258
|
-
* "Bucket": "examplebucket"
|
|
255
|
+
* "Bucket": "examplebucket",
|
|
256
|
+
* "CreateBucketConfiguration": {
|
|
257
|
+
* "LocationConstraint": "eu-west-1"
|
|
258
|
+
* }
|
|
259
259
|
* };
|
|
260
260
|
* const command = new CreateBucketCommand(input);
|
|
261
261
|
* const response = await client.send(command);
|
|
262
262
|
* /* response ==
|
|
263
263
|
* {
|
|
264
|
-
* "Location": "/
|
|
264
|
+
* "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
|
|
265
265
|
* }
|
|
266
266
|
* *\/
|
|
267
|
-
* // example id: to-create-a-bucket
|
|
267
|
+
* // example id: to-create-a-bucket-in-a-specific-region-1483399072992
|
|
268
268
|
* ```
|
|
269
269
|
*
|
|
270
270
|
*/
|
|
@@ -80,39 +80,39 @@ declare const DeleteObjectTaggingCommand_base: {
|
|
|
80
80
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
81
81
|
*
|
|
82
82
|
* @public
|
|
83
|
-
* @example To remove tag set from an object
|
|
83
|
+
* @example To remove tag set from an object
|
|
84
84
|
* ```javascript
|
|
85
|
-
* // The following example removes tag set associated with the specified object
|
|
85
|
+
* // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
|
|
86
86
|
* const input = {
|
|
87
87
|
* "Bucket": "examplebucket",
|
|
88
|
-
* "Key": "HappyFace.jpg"
|
|
89
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
88
|
+
* "Key": "HappyFace.jpg"
|
|
90
89
|
* };
|
|
91
90
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
92
91
|
* const response = await client.send(command);
|
|
93
92
|
* /* response ==
|
|
94
93
|
* {
|
|
95
|
-
* "VersionId": "
|
|
94
|
+
* "VersionId": "null"
|
|
96
95
|
* }
|
|
97
96
|
* *\/
|
|
98
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
97
|
+
* // example id: to-remove-tag-set-from-an-object-1483145342862
|
|
99
98
|
* ```
|
|
100
99
|
*
|
|
101
|
-
* @example To remove tag set from an object
|
|
100
|
+
* @example To remove tag set from an object version
|
|
102
101
|
* ```javascript
|
|
103
|
-
* // The following example removes tag set associated with the specified object.
|
|
102
|
+
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
|
|
104
103
|
* const input = {
|
|
105
104
|
* "Bucket": "examplebucket",
|
|
106
|
-
* "Key": "HappyFace.jpg"
|
|
105
|
+
* "Key": "HappyFace.jpg",
|
|
106
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
107
107
|
* };
|
|
108
108
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
109
109
|
* const response = await client.send(command);
|
|
110
110
|
* /* response ==
|
|
111
111
|
* {
|
|
112
|
-
* "VersionId": "
|
|
112
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
113
113
|
* }
|
|
114
114
|
* *\/
|
|
115
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
115
|
+
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
|
|
116
116
|
* ```
|
|
117
117
|
*
|
|
118
118
|
*/
|
|
@@ -304,53 +304,53 @@ declare const GetObjectCommand_base: {
|
|
|
304
304
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
305
305
|
*
|
|
306
306
|
* @public
|
|
307
|
-
* @example To retrieve
|
|
307
|
+
* @example To retrieve an object
|
|
308
308
|
* ```javascript
|
|
309
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
309
|
+
* // The following example retrieves an object for an S3 bucket.
|
|
310
310
|
* const input = {
|
|
311
311
|
* "Bucket": "examplebucket",
|
|
312
|
-
* "Key": "
|
|
313
|
-
* "Range": "bytes=0-9"
|
|
312
|
+
* "Key": "HappyFace.jpg"
|
|
314
313
|
* };
|
|
315
314
|
* const command = new GetObjectCommand(input);
|
|
316
315
|
* const response = await client.send(command);
|
|
317
316
|
* /* response ==
|
|
318
317
|
* {
|
|
319
318
|
* "AcceptRanges": "bytes",
|
|
320
|
-
* "ContentLength": "
|
|
321
|
-
* "
|
|
322
|
-
* "
|
|
323
|
-
* "
|
|
324
|
-
* "LastModified": "2014-10-09T22:57:28.000Z",
|
|
319
|
+
* "ContentLength": "3191",
|
|
320
|
+
* "ContentType": "image/jpeg",
|
|
321
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
322
|
+
* "LastModified": "2016-12-15T01:19:41.000Z",
|
|
325
323
|
* "Metadata": {},
|
|
324
|
+
* "TagCount": 2,
|
|
326
325
|
* "VersionId": "null"
|
|
327
326
|
* }
|
|
328
327
|
* *\/
|
|
329
|
-
* // example id: to-retrieve-
|
|
328
|
+
* // example id: to-retrieve-an-object-1481827837012
|
|
330
329
|
* ```
|
|
331
330
|
*
|
|
332
|
-
* @example To retrieve an object
|
|
331
|
+
* @example To retrieve a byte range of an object
|
|
333
332
|
* ```javascript
|
|
334
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
333
|
+
* // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
|
|
335
334
|
* const input = {
|
|
336
335
|
* "Bucket": "examplebucket",
|
|
337
|
-
* "Key": "
|
|
336
|
+
* "Key": "SampleFile.txt",
|
|
337
|
+
* "Range": "bytes=0-9"
|
|
338
338
|
* };
|
|
339
339
|
* const command = new GetObjectCommand(input);
|
|
340
340
|
* const response = await client.send(command);
|
|
341
341
|
* /* response ==
|
|
342
342
|
* {
|
|
343
343
|
* "AcceptRanges": "bytes",
|
|
344
|
-
* "ContentLength": "
|
|
345
|
-
* "
|
|
346
|
-
* "
|
|
347
|
-
* "
|
|
344
|
+
* "ContentLength": "10",
|
|
345
|
+
* "ContentRange": "bytes 0-9/43",
|
|
346
|
+
* "ContentType": "text/plain",
|
|
347
|
+
* "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
|
348
|
+
* "LastModified": "2014-10-09T22:57:28.000Z",
|
|
348
349
|
* "Metadata": {},
|
|
349
|
-
* "TagCount": 2,
|
|
350
350
|
* "VersionId": "null"
|
|
351
351
|
* }
|
|
352
352
|
* *\/
|
|
353
|
-
* // example id: to-retrieve-an-object
|
|
353
|
+
* // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
|
|
354
354
|
* ```
|
|
355
355
|
*
|
|
356
356
|
*/
|
|
@@ -96,12 +96,13 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
96
96
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
97
97
|
*
|
|
98
98
|
* @public
|
|
99
|
-
* @example To retrieve tag set of
|
|
99
|
+
* @example To retrieve tag set of a specific object version
|
|
100
100
|
* ```javascript
|
|
101
|
-
* // The following example retrieves tag set of an object.
|
|
101
|
+
* // The following example retrieves tag set of an object. The request specifies object version.
|
|
102
102
|
* const input = {
|
|
103
103
|
* "Bucket": "examplebucket",
|
|
104
|
-
* "Key": "
|
|
104
|
+
* "Key": "exampleobject",
|
|
105
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
105
106
|
* };
|
|
106
107
|
* const command = new GetObjectTaggingCommand(input);
|
|
107
108
|
* const response = await client.send(command);
|
|
@@ -109,27 +110,22 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
109
110
|
* {
|
|
110
111
|
* "TagSet": [
|
|
111
112
|
* {
|
|
112
|
-
* "Key": "
|
|
113
|
-
* "Value": "
|
|
114
|
-
* },
|
|
115
|
-
* {
|
|
116
|
-
* "Key": "Key3",
|
|
117
|
-
* "Value": "Value3"
|
|
113
|
+
* "Key": "Key1",
|
|
114
|
+
* "Value": "Value1"
|
|
118
115
|
* }
|
|
119
116
|
* ],
|
|
120
|
-
* "VersionId": "
|
|
117
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
121
118
|
* }
|
|
122
119
|
* *\/
|
|
123
|
-
* // example id: to-retrieve-tag-set-of-
|
|
120
|
+
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
|
|
124
121
|
* ```
|
|
125
122
|
*
|
|
126
|
-
* @example To retrieve tag set of
|
|
123
|
+
* @example To retrieve tag set of an object
|
|
127
124
|
* ```javascript
|
|
128
|
-
* // The following example retrieves tag set of an object.
|
|
125
|
+
* // The following example retrieves tag set of an object.
|
|
129
126
|
* const input = {
|
|
130
127
|
* "Bucket": "examplebucket",
|
|
131
|
-
* "Key": "
|
|
132
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
128
|
+
* "Key": "HappyFace.jpg"
|
|
133
129
|
* };
|
|
134
130
|
* const command = new GetObjectTaggingCommand(input);
|
|
135
131
|
* const response = await client.send(command);
|
|
@@ -137,14 +133,18 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
137
133
|
* {
|
|
138
134
|
* "TagSet": [
|
|
139
135
|
* {
|
|
140
|
-
* "Key": "
|
|
141
|
-
* "Value": "
|
|
136
|
+
* "Key": "Key4",
|
|
137
|
+
* "Value": "Value4"
|
|
138
|
+
* },
|
|
139
|
+
* {
|
|
140
|
+
* "Key": "Key3",
|
|
141
|
+
* "Value": "Value3"
|
|
142
142
|
* }
|
|
143
143
|
* ],
|
|
144
|
-
* "VersionId": "
|
|
144
|
+
* "VersionId": "null"
|
|
145
145
|
* }
|
|
146
146
|
* *\/
|
|
147
|
-
* // example id: to-retrieve-tag-set-of-
|
|
147
|
+
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
|
|
148
148
|
* ```
|
|
149
149
|
*
|
|
150
150
|
*/
|
|
@@ -301,49 +301,45 @@ declare const PutObjectCommand_base: {
|
|
|
301
301
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
302
302
|
*
|
|
303
303
|
* @public
|
|
304
|
-
* @example To upload an object
|
|
304
|
+
* @example To upload an object
|
|
305
305
|
* ```javascript
|
|
306
|
-
* // The following example uploads an object
|
|
306
|
+
* // 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.
|
|
307
307
|
* const input = {
|
|
308
|
-
* "Body": "
|
|
308
|
+
* "Body": "HappyFace.jpg",
|
|
309
309
|
* "Bucket": "examplebucket",
|
|
310
|
-
* "Key": "
|
|
311
|
-
* "ServerSideEncryption": "AES256",
|
|
312
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
310
|
+
* "Key": "HappyFace.jpg"
|
|
313
311
|
* };
|
|
314
312
|
* const command = new PutObjectCommand(input);
|
|
315
313
|
* const response = await client.send(command);
|
|
316
314
|
* /* response ==
|
|
317
315
|
* {
|
|
318
316
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
319
|
-
* "
|
|
320
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
317
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
321
318
|
* }
|
|
322
319
|
* *\/
|
|
323
|
-
* // example id: to-upload-an-object-
|
|
320
|
+
* // example id: to-upload-an-object-1481760101010
|
|
324
321
|
* ```
|
|
325
322
|
*
|
|
326
|
-
* @example To upload object
|
|
323
|
+
* @example To upload an object (specify optional headers)
|
|
327
324
|
* ```javascript
|
|
328
|
-
* // The following example
|
|
325
|
+
* // 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.
|
|
329
326
|
* const input = {
|
|
330
|
-
* "Body": "
|
|
327
|
+
* "Body": "HappyFace.jpg",
|
|
331
328
|
* "Bucket": "examplebucket",
|
|
332
|
-
* "Key": "
|
|
333
|
-
* "
|
|
334
|
-
*
|
|
335
|
-
* "metadata2": "value2"
|
|
336
|
-
* }
|
|
329
|
+
* "Key": "HappyFace.jpg",
|
|
330
|
+
* "ServerSideEncryption": "AES256",
|
|
331
|
+
* "StorageClass": "STANDARD_IA"
|
|
337
332
|
* };
|
|
338
333
|
* const command = new PutObjectCommand(input);
|
|
339
334
|
* const response = await client.send(command);
|
|
340
335
|
* /* response ==
|
|
341
336
|
* {
|
|
342
337
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
343
|
-
* "
|
|
338
|
+
* "ServerSideEncryption": "AES256",
|
|
339
|
+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
344
340
|
* }
|
|
345
341
|
* *\/
|
|
346
|
-
* // example id: to-upload-object-
|
|
342
|
+
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
347
343
|
* ```
|
|
348
344
|
*
|
|
349
345
|
* @example To create an object.
|
|
@@ -385,65 +381,69 @@ declare const PutObjectCommand_base: {
|
|
|
385
381
|
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
386
382
|
* ```
|
|
387
383
|
*
|
|
388
|
-
* @example To upload an object and specify
|
|
384
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
389
385
|
* ```javascript
|
|
390
|
-
* // The following example uploads
|
|
386
|
+
* // 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.
|
|
391
387
|
* const input = {
|
|
392
|
-
* "ACL": "authenticated-read",
|
|
393
388
|
* "Body": "filetoupload",
|
|
394
389
|
* "Bucket": "examplebucket",
|
|
395
|
-
* "Key": "exampleobject"
|
|
390
|
+
* "Key": "exampleobject",
|
|
391
|
+
* "ServerSideEncryption": "AES256",
|
|
392
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
396
393
|
* };
|
|
397
394
|
* const command = new PutObjectCommand(input);
|
|
398
395
|
* const response = await client.send(command);
|
|
399
396
|
* /* response ==
|
|
400
397
|
* {
|
|
401
398
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
402
|
-
* "
|
|
399
|
+
* "ServerSideEncryption": "AES256",
|
|
400
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
403
401
|
* }
|
|
404
402
|
* *\/
|
|
405
|
-
* // example id: to-upload-an-object-and-specify-
|
|
403
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
406
404
|
* ```
|
|
407
405
|
*
|
|
408
|
-
* @example To upload
|
|
406
|
+
* @example To upload object and specify user-defined metadata
|
|
409
407
|
* ```javascript
|
|
410
|
-
* // The following example
|
|
408
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
411
409
|
* const input = {
|
|
412
|
-
* "Body": "
|
|
410
|
+
* "Body": "filetoupload",
|
|
413
411
|
* "Bucket": "examplebucket",
|
|
414
|
-
* "Key": "
|
|
415
|
-
* "
|
|
416
|
-
*
|
|
412
|
+
* "Key": "exampleobject",
|
|
413
|
+
* "Metadata": {
|
|
414
|
+
* "metadata1": "value1",
|
|
415
|
+
* "metadata2": "value2"
|
|
416
|
+
* }
|
|
417
417
|
* };
|
|
418
418
|
* const command = new PutObjectCommand(input);
|
|
419
419
|
* const response = await client.send(command);
|
|
420
420
|
* /* response ==
|
|
421
421
|
* {
|
|
422
422
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
423
|
-
* "
|
|
424
|
-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
423
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
425
424
|
* }
|
|
426
425
|
* *\/
|
|
427
|
-
* // example id: to-upload-
|
|
426
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
428
427
|
* ```
|
|
429
428
|
*
|
|
430
|
-
* @example To upload an object
|
|
429
|
+
* @example To upload an object and specify canned ACL.
|
|
431
430
|
* ```javascript
|
|
432
|
-
* // The following example uploads
|
|
431
|
+
* // 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.
|
|
433
432
|
* const input = {
|
|
434
|
-
* "
|
|
433
|
+
* "ACL": "authenticated-read",
|
|
434
|
+
* "Body": "filetoupload",
|
|
435
435
|
* "Bucket": "examplebucket",
|
|
436
|
-
* "Key": "
|
|
436
|
+
* "Key": "exampleobject"
|
|
437
437
|
* };
|
|
438
438
|
* const command = new PutObjectCommand(input);
|
|
439
439
|
* const response = await client.send(command);
|
|
440
440
|
* /* response ==
|
|
441
441
|
* {
|
|
442
442
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
443
|
-
* "VersionId": "
|
|
443
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
444
444
|
* }
|
|
445
445
|
* *\/
|
|
446
|
-
* // example id: to-upload-an-object-
|
|
446
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
447
447
|
* ```
|
|
448
448
|
*
|
|
449
449
|
*/
|
|
@@ -313,14 +313,15 @@ declare const UploadPartCopyCommand_base: {
|
|
|
313
313
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
314
314
|
*
|
|
315
315
|
* @public
|
|
316
|
-
* @example To upload a part by copying
|
|
316
|
+
* @example To upload a part by copying byte range from an existing object as data source
|
|
317
317
|
* ```javascript
|
|
318
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
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
320
|
* "Bucket": "examplebucket",
|
|
321
321
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
322
|
+
* "CopySourceRange": "bytes=1-100000",
|
|
322
323
|
* "Key": "examplelargeobject",
|
|
323
|
-
* "PartNumber": "
|
|
324
|
+
* "PartNumber": "2",
|
|
324
325
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
325
326
|
* };
|
|
326
327
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -328,23 +329,22 @@ declare const UploadPartCopyCommand_base: {
|
|
|
328
329
|
* /* response ==
|
|
329
330
|
* {
|
|
330
331
|
* "CopyPartResult": {
|
|
331
|
-
* "ETag": "\"
|
|
332
|
-
* "LastModified": "2016-12-29T21:
|
|
332
|
+
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
|
|
333
|
+
* "LastModified": "2016-12-29T21:44:28.000Z"
|
|
333
334
|
* }
|
|
334
335
|
* }
|
|
335
336
|
* *\/
|
|
336
|
-
* // example id: to-upload-a-part-by-copying-
|
|
337
|
+
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
|
|
337
338
|
* ```
|
|
338
339
|
*
|
|
339
|
-
* @example To upload a part by copying
|
|
340
|
+
* @example To upload a part by copying data from an existing object as data source
|
|
340
341
|
* ```javascript
|
|
341
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
342
|
+
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
342
343
|
* const input = {
|
|
343
344
|
* "Bucket": "examplebucket",
|
|
344
345
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
345
|
-
* "CopySourceRange": "bytes=1-100000",
|
|
346
346
|
* "Key": "examplelargeobject",
|
|
347
|
-
* "PartNumber": "
|
|
347
|
+
* "PartNumber": "1",
|
|
348
348
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
349
349
|
* };
|
|
350
350
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -352,12 +352,12 @@ declare const UploadPartCopyCommand_base: {
|
|
|
352
352
|
* /* response ==
|
|
353
353
|
* {
|
|
354
354
|
* "CopyPartResult": {
|
|
355
|
-
* "ETag": "\"
|
|
356
|
-
* "LastModified": "2016-12-29T21:
|
|
355
|
+
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
|
356
|
+
* "LastModified": "2016-12-29T21:24:43.000Z"
|
|
357
357
|
* }
|
|
358
358
|
* }
|
|
359
359
|
* *\/
|
|
360
|
-
* // example id: to-upload-a-part-by-copying-
|
|
360
|
+
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
|
|
361
361
|
* ```
|
|
362
362
|
*
|
|
363
363
|
*/
|
|
@@ -42,6 +42,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
42
42
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
43
43
|
requestChecksumCalculation?: import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation> | undefined;
|
|
44
44
|
responseChecksumValidation?: import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation> | undefined;
|
|
45
|
+
requestStreamBufferSize?: number | false | undefined;
|
|
45
46
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
46
47
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
47
48
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
@@ -45,6 +45,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
45
45
|
signingEscapePath: boolean;
|
|
46
46
|
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
47
47
|
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
48
|
+
requestStreamBufferSize?: number | false | undefined;
|
|
48
49
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
|
|
49
50
|
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
50
51
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
@@ -41,6 +41,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
41
41
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
42
42
|
requestChecksumCalculation?: import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation> | undefined;
|
|
43
43
|
responseChecksumValidation?: import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation> | undefined;
|
|
44
|
+
requestStreamBufferSize?: number | false | undefined;
|
|
44
45
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
45
46
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
46
47
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
@@ -69,6 +69,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
69
69
|
import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation
|
|
70
70
|
>
|
|
71
71
|
| undefined;
|
|
72
|
+
requestStreamBufferSize?: number | false | undefined;
|
|
72
73
|
retryStrategy?:
|
|
73
74
|
| import("@smithy/types").RetryStrategy
|
|
74
75
|
| import("@smithy/types").RetryStrategyV2
|
|
@@ -77,6 +77,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
77
77
|
signingEscapePath: boolean;
|
|
78
78
|
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
79
79
|
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
80
|
+
requestStreamBufferSize?: number | false | undefined;
|
|
80
81
|
retryStrategy?:
|
|
81
82
|
| import("@aws-sdk/types").RetryStrategy
|
|
82
83
|
| import("@aws-sdk/types").RetryStrategyV2
|
|
@@ -73,6 +73,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
73
73
|
import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation
|
|
74
74
|
>
|
|
75
75
|
| undefined;
|
|
76
|
+
requestStreamBufferSize?: number | false | undefined;
|
|
76
77
|
retryStrategy?:
|
|
77
78
|
| import("@smithy/types").RetryStrategy
|
|
78
79
|
| import("@smithy/types").RetryStrategyV2
|
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.758.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,27 +27,27 @@
|
|
|
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.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
30
|
+
"@aws-sdk/core": "3.758.0",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "3.758.0",
|
|
32
32
|
"@aws-sdk/middleware-bucket-endpoint": "3.734.0",
|
|
33
33
|
"@aws-sdk/middleware-expect-continue": "3.734.0",
|
|
34
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
34
|
+
"@aws-sdk/middleware-flexible-checksums": "3.758.0",
|
|
35
35
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
36
36
|
"@aws-sdk/middleware-location-constraint": "3.734.0",
|
|
37
37
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
38
38
|
"@aws-sdk/middleware-recursion-detection": "3.734.0",
|
|
39
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
39
|
+
"@aws-sdk/middleware-sdk-s3": "3.758.0",
|
|
40
40
|
"@aws-sdk/middleware-ssec": "3.734.0",
|
|
41
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
41
|
+
"@aws-sdk/middleware-user-agent": "3.758.0",
|
|
42
42
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
43
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
43
|
+
"@aws-sdk/signature-v4-multi-region": "3.758.0",
|
|
44
44
|
"@aws-sdk/types": "3.734.0",
|
|
45
45
|
"@aws-sdk/util-endpoints": "3.743.0",
|
|
46
46
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
47
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-user-agent-node": "3.758.0",
|
|
48
48
|
"@aws-sdk/xml-builder": "3.734.0",
|
|
49
49
|
"@smithy/config-resolver": "^4.0.1",
|
|
50
|
-
"@smithy/core": "^3.1.
|
|
50
|
+
"@smithy/core": "^3.1.5",
|
|
51
51
|
"@smithy/eventstream-serde-browser": "^4.0.1",
|
|
52
52
|
"@smithy/eventstream-serde-config-resolver": "^4.0.1",
|
|
53
53
|
"@smithy/eventstream-serde-node": "^4.0.1",
|
|
@@ -58,31 +58,31 @@
|
|
|
58
58
|
"@smithy/invalid-dependency": "^4.0.1",
|
|
59
59
|
"@smithy/md5-js": "^4.0.1",
|
|
60
60
|
"@smithy/middleware-content-length": "^4.0.1",
|
|
61
|
-
"@smithy/middleware-endpoint": "^4.0.
|
|
62
|
-
"@smithy/middleware-retry": "^4.0.
|
|
61
|
+
"@smithy/middleware-endpoint": "^4.0.6",
|
|
62
|
+
"@smithy/middleware-retry": "^4.0.7",
|
|
63
63
|
"@smithy/middleware-serde": "^4.0.2",
|
|
64
64
|
"@smithy/middleware-stack": "^4.0.1",
|
|
65
65
|
"@smithy/node-config-provider": "^4.0.1",
|
|
66
|
-
"@smithy/node-http-handler": "^4.0.
|
|
66
|
+
"@smithy/node-http-handler": "^4.0.3",
|
|
67
67
|
"@smithy/protocol-http": "^5.0.1",
|
|
68
|
-
"@smithy/smithy-client": "^4.1.
|
|
68
|
+
"@smithy/smithy-client": "^4.1.6",
|
|
69
69
|
"@smithy/types": "^4.1.0",
|
|
70
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.
|
|
75
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
74
|
+
"@smithy/util-defaults-mode-browser": "^4.0.7",
|
|
75
|
+
"@smithy/util-defaults-mode-node": "^4.0.7",
|
|
76
76
|
"@smithy/util-endpoints": "^3.0.1",
|
|
77
77
|
"@smithy/util-middleware": "^4.0.1",
|
|
78
78
|
"@smithy/util-retry": "^4.0.1",
|
|
79
|
-
"@smithy/util-stream": "^4.1.
|
|
79
|
+
"@smithy/util-stream": "^4.1.2",
|
|
80
80
|
"@smithy/util-utf8": "^4.0.0",
|
|
81
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.
|
|
85
|
+
"@aws-sdk/signature-v4-crt": "3.758.0",
|
|
86
86
|
"@tsconfig/node18": "18.2.4",
|
|
87
87
|
"@types/node": "^18.19.69",
|
|
88
88
|
"concurrently": "7.0.0",
|