@aws-sdk/client-s3 3.535.0 → 3.536.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/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/ListObjectVersionsCommand.d.ts +1 -1
- package/dist-types/commands/PutObjectCommand.d.ts +33 -33
- package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
- package/package.json +1 -1
|
@@ -79,39 +79,39 @@ declare const DeleteObjectTaggingCommand_base: {
|
|
|
79
79
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
80
80
|
*
|
|
81
81
|
* @public
|
|
82
|
-
* @example To remove tag set from an object
|
|
82
|
+
* @example To remove tag set from an object version
|
|
83
83
|
* ```javascript
|
|
84
|
-
* // The following example removes tag set associated with the specified object.
|
|
84
|
+
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
|
|
85
85
|
* const input = {
|
|
86
86
|
* "Bucket": "examplebucket",
|
|
87
|
-
* "Key": "HappyFace.jpg"
|
|
87
|
+
* "Key": "HappyFace.jpg",
|
|
88
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
88
89
|
* };
|
|
89
90
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
90
91
|
* const response = await client.send(command);
|
|
91
92
|
* /* response ==
|
|
92
93
|
* {
|
|
93
|
-
* "VersionId": "
|
|
94
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
94
95
|
* }
|
|
95
96
|
* *\/
|
|
96
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
97
|
+
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
|
|
97
98
|
* ```
|
|
98
99
|
*
|
|
99
|
-
* @example To remove tag set from an object
|
|
100
|
+
* @example To remove tag set from an object
|
|
100
101
|
* ```javascript
|
|
101
|
-
* // The following example removes tag set associated with the specified object
|
|
102
|
+
* // 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.
|
|
102
103
|
* const input = {
|
|
103
104
|
* "Bucket": "examplebucket",
|
|
104
|
-
* "Key": "HappyFace.jpg"
|
|
105
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
105
|
+
* "Key": "HappyFace.jpg"
|
|
106
106
|
* };
|
|
107
107
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
108
108
|
* const response = await client.send(command);
|
|
109
109
|
* /* response ==
|
|
110
110
|
* {
|
|
111
|
-
* "VersionId": "
|
|
111
|
+
* "VersionId": "null"
|
|
112
112
|
* }
|
|
113
113
|
* *\/
|
|
114
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
114
|
+
* // example id: to-remove-tag-set-from-an-object-1483145342862
|
|
115
115
|
* ```
|
|
116
116
|
*
|
|
117
117
|
*/
|
|
@@ -275,53 +275,53 @@ declare const GetObjectCommand_base: {
|
|
|
275
275
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
276
276
|
*
|
|
277
277
|
* @public
|
|
278
|
-
* @example To retrieve
|
|
278
|
+
* @example To retrieve an object
|
|
279
279
|
* ```javascript
|
|
280
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
280
|
+
* // The following example retrieves an object for an S3 bucket.
|
|
281
281
|
* const input = {
|
|
282
282
|
* "Bucket": "examplebucket",
|
|
283
|
-
* "Key": "
|
|
284
|
-
* "Range": "bytes=0-9"
|
|
283
|
+
* "Key": "HappyFace.jpg"
|
|
285
284
|
* };
|
|
286
285
|
* const command = new GetObjectCommand(input);
|
|
287
286
|
* const response = await client.send(command);
|
|
288
287
|
* /* response ==
|
|
289
288
|
* {
|
|
290
289
|
* "AcceptRanges": "bytes",
|
|
291
|
-
* "ContentLength": "
|
|
292
|
-
* "
|
|
293
|
-
* "
|
|
294
|
-
* "
|
|
295
|
-
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
290
|
+
* "ContentLength": "3191",
|
|
291
|
+
* "ContentType": "image/jpeg",
|
|
292
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
293
|
+
* "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
|
|
296
294
|
* "Metadata": {},
|
|
295
|
+
* "TagCount": 2,
|
|
297
296
|
* "VersionId": "null"
|
|
298
297
|
* }
|
|
299
298
|
* *\/
|
|
300
|
-
* // example id: to-retrieve-
|
|
299
|
+
* // example id: to-retrieve-an-object-1481827837012
|
|
301
300
|
* ```
|
|
302
301
|
*
|
|
303
|
-
* @example To retrieve an object
|
|
302
|
+
* @example To retrieve a byte range of an object
|
|
304
303
|
* ```javascript
|
|
305
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
304
|
+
* // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
|
|
306
305
|
* const input = {
|
|
307
306
|
* "Bucket": "examplebucket",
|
|
308
|
-
* "Key": "
|
|
307
|
+
* "Key": "SampleFile.txt",
|
|
308
|
+
* "Range": "bytes=0-9"
|
|
309
309
|
* };
|
|
310
310
|
* const command = new GetObjectCommand(input);
|
|
311
311
|
* const response = await client.send(command);
|
|
312
312
|
* /* response ==
|
|
313
313
|
* {
|
|
314
314
|
* "AcceptRanges": "bytes",
|
|
315
|
-
* "ContentLength": "
|
|
316
|
-
* "
|
|
317
|
-
* "
|
|
318
|
-
* "
|
|
315
|
+
* "ContentLength": "10",
|
|
316
|
+
* "ContentRange": "bytes 0-9/43",
|
|
317
|
+
* "ContentType": "text/plain",
|
|
318
|
+
* "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
|
319
|
+
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
319
320
|
* "Metadata": {},
|
|
320
|
-
* "TagCount": 2,
|
|
321
321
|
* "VersionId": "null"
|
|
322
322
|
* }
|
|
323
323
|
* *\/
|
|
324
|
-
* // example id: to-retrieve-an-object
|
|
324
|
+
* // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
|
|
325
325
|
* ```
|
|
326
326
|
*
|
|
327
327
|
*/
|
|
@@ -95,13 +95,12 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
95
95
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
96
96
|
*
|
|
97
97
|
* @public
|
|
98
|
-
* @example To retrieve tag set of
|
|
98
|
+
* @example To retrieve tag set of an object
|
|
99
99
|
* ```javascript
|
|
100
|
-
* // The following example retrieves tag set of an object.
|
|
100
|
+
* // The following example retrieves tag set of an object.
|
|
101
101
|
* const input = {
|
|
102
102
|
* "Bucket": "examplebucket",
|
|
103
|
-
* "Key": "
|
|
104
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
103
|
+
* "Key": "HappyFace.jpg"
|
|
105
104
|
* };
|
|
106
105
|
* const command = new GetObjectTaggingCommand(input);
|
|
107
106
|
* const response = await client.send(command);
|
|
@@ -109,22 +108,27 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
109
108
|
* {
|
|
110
109
|
* "TagSet": [
|
|
111
110
|
* {
|
|
112
|
-
* "Key": "
|
|
113
|
-
* "Value": "
|
|
111
|
+
* "Key": "Key4",
|
|
112
|
+
* "Value": "Value4"
|
|
113
|
+
* },
|
|
114
|
+
* {
|
|
115
|
+
* "Key": "Key3",
|
|
116
|
+
* "Value": "Value3"
|
|
114
117
|
* }
|
|
115
118
|
* ],
|
|
116
|
-
* "VersionId": "
|
|
119
|
+
* "VersionId": "null"
|
|
117
120
|
* }
|
|
118
121
|
* *\/
|
|
119
|
-
* // example id: to-retrieve-tag-set-of-
|
|
122
|
+
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
|
|
120
123
|
* ```
|
|
121
124
|
*
|
|
122
|
-
* @example To retrieve tag set of
|
|
125
|
+
* @example To retrieve tag set of a specific object version
|
|
123
126
|
* ```javascript
|
|
124
|
-
* // The following example retrieves tag set of an object.
|
|
127
|
+
* // The following example retrieves tag set of an object. The request specifies object version.
|
|
125
128
|
* const input = {
|
|
126
129
|
* "Bucket": "examplebucket",
|
|
127
|
-
* "Key": "
|
|
130
|
+
* "Key": "exampleobject",
|
|
131
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
128
132
|
* };
|
|
129
133
|
* const command = new GetObjectTaggingCommand(input);
|
|
130
134
|
* const response = await client.send(command);
|
|
@@ -132,18 +136,14 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
132
136
|
* {
|
|
133
137
|
* "TagSet": [
|
|
134
138
|
* {
|
|
135
|
-
* "Key": "
|
|
136
|
-
* "Value": "
|
|
137
|
-
* },
|
|
138
|
-
* {
|
|
139
|
-
* "Key": "Key3",
|
|
140
|
-
* "Value": "Value3"
|
|
139
|
+
* "Key": "Key1",
|
|
140
|
+
* "Value": "Value1"
|
|
141
141
|
* }
|
|
142
142
|
* ],
|
|
143
|
-
* "VersionId": "
|
|
143
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
144
144
|
* }
|
|
145
145
|
* *\/
|
|
146
|
-
* // example id: to-retrieve-tag-set-of-
|
|
146
|
+
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
|
|
147
147
|
* ```
|
|
148
148
|
*
|
|
149
149
|
*/
|
|
@@ -154,7 +154,7 @@ declare const ListObjectVersionsCommand_base: {
|
|
|
154
154
|
* @public
|
|
155
155
|
* @example To list object versions
|
|
156
156
|
* ```javascript
|
|
157
|
-
* // The following example
|
|
157
|
+
* // The following example returns versions of an object with specific key name prefix.
|
|
158
158
|
* const input = {
|
|
159
159
|
* "Bucket": "examplebucket",
|
|
160
160
|
* "Prefix": "HappyFace.jpg"
|
|
@@ -233,23 +233,26 @@ declare const PutObjectCommand_base: {
|
|
|
233
233
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
234
234
|
*
|
|
235
235
|
* @public
|
|
236
|
-
* @example To
|
|
236
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
237
237
|
* ```javascript
|
|
238
|
-
* // The following example
|
|
238
|
+
* // 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.
|
|
239
239
|
* const input = {
|
|
240
240
|
* "Body": "filetoupload",
|
|
241
241
|
* "Bucket": "examplebucket",
|
|
242
|
-
* "Key": "
|
|
242
|
+
* "Key": "exampleobject",
|
|
243
|
+
* "ServerSideEncryption": "AES256",
|
|
244
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
243
245
|
* };
|
|
244
246
|
* const command = new PutObjectCommand(input);
|
|
245
247
|
* const response = await client.send(command);
|
|
246
248
|
* /* response ==
|
|
247
249
|
* {
|
|
248
250
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
249
|
-
* "
|
|
251
|
+
* "ServerSideEncryption": "AES256",
|
|
252
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
250
253
|
* }
|
|
251
254
|
* *\/
|
|
252
|
-
* // example id: to-
|
|
255
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
253
256
|
* ```
|
|
254
257
|
*
|
|
255
258
|
* @example To upload object and specify user-defined metadata
|
|
@@ -275,6 +278,26 @@ declare const PutObjectCommand_base: {
|
|
|
275
278
|
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
276
279
|
* ```
|
|
277
280
|
*
|
|
281
|
+
* @example To upload an object and specify canned ACL.
|
|
282
|
+
* ```javascript
|
|
283
|
+
* // 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.
|
|
284
|
+
* const input = {
|
|
285
|
+
* "ACL": "authenticated-read",
|
|
286
|
+
* "Body": "filetoupload",
|
|
287
|
+
* "Bucket": "examplebucket",
|
|
288
|
+
* "Key": "exampleobject"
|
|
289
|
+
* };
|
|
290
|
+
* const command = new PutObjectCommand(input);
|
|
291
|
+
* const response = await client.send(command);
|
|
292
|
+
* /* response ==
|
|
293
|
+
* {
|
|
294
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
295
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
296
|
+
* }
|
|
297
|
+
* *\/
|
|
298
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
299
|
+
* ```
|
|
300
|
+
*
|
|
278
301
|
* @example To upload an object
|
|
279
302
|
* ```javascript
|
|
280
303
|
* // 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.
|
|
@@ -294,24 +317,23 @@ declare const PutObjectCommand_base: {
|
|
|
294
317
|
* // example id: to-upload-an-object-1481760101010
|
|
295
318
|
* ```
|
|
296
319
|
*
|
|
297
|
-
* @example To
|
|
320
|
+
* @example To create an object.
|
|
298
321
|
* ```javascript
|
|
299
|
-
* // The following example
|
|
322
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
300
323
|
* const input = {
|
|
301
|
-
* "ACL": "authenticated-read",
|
|
302
324
|
* "Body": "filetoupload",
|
|
303
325
|
* "Bucket": "examplebucket",
|
|
304
|
-
* "Key": "
|
|
326
|
+
* "Key": "objectkey"
|
|
305
327
|
* };
|
|
306
328
|
* const command = new PutObjectCommand(input);
|
|
307
329
|
* const response = await client.send(command);
|
|
308
330
|
* /* response ==
|
|
309
331
|
* {
|
|
310
332
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
311
|
-
* "VersionId": "
|
|
333
|
+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
312
334
|
* }
|
|
313
335
|
* *\/
|
|
314
|
-
* // example id: to-
|
|
336
|
+
* // example id: to-create-an-object-1483147613675
|
|
315
337
|
* ```
|
|
316
338
|
*
|
|
317
339
|
* @example To upload an object (specify optional headers)
|
|
@@ -356,28 +378,6 @@ declare const PutObjectCommand_base: {
|
|
|
356
378
|
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
357
379
|
* ```
|
|
358
380
|
*
|
|
359
|
-
* @example To upload an object and specify server-side encryption and object tags
|
|
360
|
-
* ```javascript
|
|
361
|
-
* // 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.
|
|
362
|
-
* const input = {
|
|
363
|
-
* "Body": "filetoupload",
|
|
364
|
-
* "Bucket": "examplebucket",
|
|
365
|
-
* "Key": "exampleobject",
|
|
366
|
-
* "ServerSideEncryption": "AES256",
|
|
367
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
368
|
-
* };
|
|
369
|
-
* const command = new PutObjectCommand(input);
|
|
370
|
-
* const response = await client.send(command);
|
|
371
|
-
* /* response ==
|
|
372
|
-
* {
|
|
373
|
-
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
374
|
-
* "ServerSideEncryption": "AES256",
|
|
375
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
376
|
-
* }
|
|
377
|
-
* *\/
|
|
378
|
-
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
379
|
-
* ```
|
|
380
|
-
*
|
|
381
381
|
*/
|
|
382
382
|
export declare class PutObjectCommand extends PutObjectCommand_base {
|
|
383
383
|
}
|
|
@@ -263,15 +263,14 @@ declare const UploadPartCopyCommand_base: {
|
|
|
263
263
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
264
264
|
*
|
|
265
265
|
* @public
|
|
266
|
-
* @example To upload a part by copying
|
|
266
|
+
* @example To upload a part by copying data from an existing object as data source
|
|
267
267
|
* ```javascript
|
|
268
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
268
|
+
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
269
269
|
* const input = {
|
|
270
270
|
* "Bucket": "examplebucket",
|
|
271
271
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
272
|
-
* "CopySourceRange": "bytes=1-100000",
|
|
273
272
|
* "Key": "examplelargeobject",
|
|
274
|
-
* "PartNumber": "
|
|
273
|
+
* "PartNumber": "1",
|
|
275
274
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
276
275
|
* };
|
|
277
276
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -279,22 +278,23 @@ declare const UploadPartCopyCommand_base: {
|
|
|
279
278
|
* /* response ==
|
|
280
279
|
* {
|
|
281
280
|
* "CopyPartResult": {
|
|
282
|
-
* "ETag": "\"
|
|
283
|
-
* "LastModified": "2016-12-29T21:
|
|
281
|
+
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
|
282
|
+
* "LastModified": "2016-12-29T21:24:43.000Z"
|
|
284
283
|
* }
|
|
285
284
|
* }
|
|
286
285
|
* *\/
|
|
287
|
-
* // example id: to-upload-a-part-by-copying-
|
|
286
|
+
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
|
|
288
287
|
* ```
|
|
289
288
|
*
|
|
290
|
-
* @example To upload a part by copying
|
|
289
|
+
* @example To upload a part by copying byte range from an existing object as data source
|
|
291
290
|
* ```javascript
|
|
292
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
291
|
+
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
|
|
293
292
|
* const input = {
|
|
294
293
|
* "Bucket": "examplebucket",
|
|
295
294
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
295
|
+
* "CopySourceRange": "bytes=1-100000",
|
|
296
296
|
* "Key": "examplelargeobject",
|
|
297
|
-
* "PartNumber": "
|
|
297
|
+
* "PartNumber": "2",
|
|
298
298
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
299
299
|
* };
|
|
300
300
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -302,12 +302,12 @@ declare const UploadPartCopyCommand_base: {
|
|
|
302
302
|
* /* response ==
|
|
303
303
|
* {
|
|
304
304
|
* "CopyPartResult": {
|
|
305
|
-
* "ETag": "\"
|
|
306
|
-
* "LastModified": "2016-12-29T21:
|
|
305
|
+
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
|
|
306
|
+
* "LastModified": "2016-12-29T21:44:28.000Z"
|
|
307
307
|
* }
|
|
308
308
|
* }
|
|
309
309
|
* *\/
|
|
310
|
-
* // example id: to-upload-a-part-by-copying-
|
|
310
|
+
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
|
|
311
311
|
* ```
|
|
312
312
|
*
|
|
313
313
|
*/
|
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.536.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",
|