@aws-sdk/client-s3 3.540.0 → 3.549.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/DeleteObjectCommand.d.ts +10 -10
- package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
- 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 +29 -29
- package/package.json +6 -6
|
@@ -215,39 +215,39 @@ declare const CreateBucketCommand_base: {
|
|
|
215
215
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
216
216
|
*
|
|
217
217
|
* @public
|
|
218
|
-
* @example To create a bucket
|
|
218
|
+
* @example To create a bucket
|
|
219
219
|
* ```javascript
|
|
220
|
-
* // The following example creates a bucket.
|
|
220
|
+
* // The following example creates a bucket.
|
|
221
221
|
* const input = {
|
|
222
|
-
* "Bucket": "examplebucket"
|
|
223
|
-
* "CreateBucketConfiguration": {
|
|
224
|
-
* "LocationConstraint": "eu-west-1"
|
|
225
|
-
* }
|
|
222
|
+
* "Bucket": "examplebucket"
|
|
226
223
|
* };
|
|
227
224
|
* const command = new CreateBucketCommand(input);
|
|
228
225
|
* const response = await client.send(command);
|
|
229
226
|
* /* response ==
|
|
230
227
|
* {
|
|
231
|
-
* "Location": "
|
|
228
|
+
* "Location": "/examplebucket"
|
|
232
229
|
* }
|
|
233
230
|
* *\/
|
|
234
|
-
* // example id: to-create-a-bucket
|
|
231
|
+
* // example id: to-create-a-bucket--1472851826060
|
|
235
232
|
* ```
|
|
236
233
|
*
|
|
237
|
-
* @example To create a bucket
|
|
234
|
+
* @example To create a bucket in a specific region
|
|
238
235
|
* ```javascript
|
|
239
|
-
* // The following example creates a bucket.
|
|
236
|
+
* // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
|
240
237
|
* const input = {
|
|
241
|
-
* "Bucket": "examplebucket"
|
|
238
|
+
* "Bucket": "examplebucket",
|
|
239
|
+
* "CreateBucketConfiguration": {
|
|
240
|
+
* "LocationConstraint": "eu-west-1"
|
|
241
|
+
* }
|
|
242
242
|
* };
|
|
243
243
|
* const command = new CreateBucketCommand(input);
|
|
244
244
|
* const response = await client.send(command);
|
|
245
245
|
* /* response ==
|
|
246
246
|
* {
|
|
247
|
-
* "Location": "/
|
|
247
|
+
* "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
|
|
248
248
|
* }
|
|
249
249
|
* *\/
|
|
250
|
-
* // example id: to-create-a-bucket
|
|
250
|
+
* // example id: to-create-a-bucket-in-a-specific-region-1483399072992
|
|
251
251
|
* ```
|
|
252
252
|
*
|
|
253
253
|
*/
|
|
@@ -160,28 +160,28 @@ declare const DeleteObjectCommand_base: {
|
|
|
160
160
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
161
161
|
*
|
|
162
162
|
* @public
|
|
163
|
-
* @example To delete an object
|
|
163
|
+
* @example To delete an object
|
|
164
164
|
* ```javascript
|
|
165
|
-
* // The following example deletes an object from
|
|
165
|
+
* // The following example deletes an object from an S3 bucket.
|
|
166
166
|
* const input = {
|
|
167
|
-
* "Bucket": "
|
|
168
|
-
* "Key": "
|
|
167
|
+
* "Bucket": "examplebucket",
|
|
168
|
+
* "Key": "objectkey.jpg"
|
|
169
169
|
* };
|
|
170
170
|
* const command = new DeleteObjectCommand(input);
|
|
171
171
|
* await client.send(command);
|
|
172
|
-
* // example id: to-delete-an-object-
|
|
172
|
+
* // example id: to-delete-an-object-1472850136595
|
|
173
173
|
* ```
|
|
174
174
|
*
|
|
175
|
-
* @example To delete an object
|
|
175
|
+
* @example To delete an object (from a non-versioned bucket)
|
|
176
176
|
* ```javascript
|
|
177
|
-
* // The following example deletes an object from
|
|
177
|
+
* // The following example deletes an object from a non-versioned bucket.
|
|
178
178
|
* const input = {
|
|
179
|
-
* "Bucket": "
|
|
180
|
-
* "Key": "
|
|
179
|
+
* "Bucket": "ExampleBucket",
|
|
180
|
+
* "Key": "HappyFace.jpg"
|
|
181
181
|
* };
|
|
182
182
|
* const command = new DeleteObjectCommand(input);
|
|
183
183
|
* await client.send(command);
|
|
184
|
-
* // example id: to-delete-an-object-
|
|
184
|
+
* // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
|
|
185
185
|
* ```
|
|
186
186
|
*
|
|
187
187
|
*/
|
|
@@ -209,18 +209,20 @@ declare const DeleteObjectsCommand_base: {
|
|
|
209
209
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
210
210
|
*
|
|
211
211
|
* @public
|
|
212
|
-
* @example To delete multiple
|
|
212
|
+
* @example To delete multiple object versions from a versioned bucket
|
|
213
213
|
* ```javascript
|
|
214
|
-
* // The following example deletes objects from a bucket. The
|
|
214
|
+
* // The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.
|
|
215
215
|
* const input = {
|
|
216
216
|
* "Bucket": "examplebucket",
|
|
217
217
|
* "Delete": {
|
|
218
218
|
* "Objects": [
|
|
219
219
|
* {
|
|
220
|
-
* "Key": "
|
|
220
|
+
* "Key": "HappyFace.jpg",
|
|
221
|
+
* "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
|
|
221
222
|
* },
|
|
222
223
|
* {
|
|
223
|
-
* "Key": "
|
|
224
|
+
* "Key": "HappyFace.jpg",
|
|
225
|
+
* "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
|
|
224
226
|
* }
|
|
225
227
|
* ],
|
|
226
228
|
* "Quiet": false
|
|
@@ -232,35 +234,31 @@ declare const DeleteObjectsCommand_base: {
|
|
|
232
234
|
* {
|
|
233
235
|
* "Deleted": [
|
|
234
236
|
* {
|
|
235
|
-
* "
|
|
236
|
-
* "
|
|
237
|
-
* "Key": "objectkey1"
|
|
237
|
+
* "Key": "HappyFace.jpg",
|
|
238
|
+
* "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
|
|
238
239
|
* },
|
|
239
240
|
* {
|
|
240
|
-
* "
|
|
241
|
-
* "
|
|
242
|
-
* "Key": "objectkey2"
|
|
241
|
+
* "Key": "HappyFace.jpg",
|
|
242
|
+
* "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
|
|
243
243
|
* }
|
|
244
244
|
* ]
|
|
245
245
|
* }
|
|
246
246
|
* *\/
|
|
247
|
-
* // example id: to-delete-multiple-
|
|
247
|
+
* // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
|
|
248
248
|
* ```
|
|
249
249
|
*
|
|
250
|
-
* @example To delete multiple
|
|
250
|
+
* @example To delete multiple objects from a versioned bucket
|
|
251
251
|
* ```javascript
|
|
252
|
-
* // The following example deletes objects from a bucket. The request
|
|
252
|
+
* // The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
|
253
253
|
* const input = {
|
|
254
254
|
* "Bucket": "examplebucket",
|
|
255
255
|
* "Delete": {
|
|
256
256
|
* "Objects": [
|
|
257
257
|
* {
|
|
258
|
-
* "Key": "
|
|
259
|
-
* "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
|
|
258
|
+
* "Key": "objectkey1"
|
|
260
259
|
* },
|
|
261
260
|
* {
|
|
262
|
-
* "Key": "
|
|
263
|
-
* "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
|
|
261
|
+
* "Key": "objectkey2"
|
|
264
262
|
* }
|
|
265
263
|
* ],
|
|
266
264
|
* "Quiet": false
|
|
@@ -272,17 +270,19 @@ declare const DeleteObjectsCommand_base: {
|
|
|
272
270
|
* {
|
|
273
271
|
* "Deleted": [
|
|
274
272
|
* {
|
|
275
|
-
* "
|
|
276
|
-
* "
|
|
273
|
+
* "DeleteMarker": "true",
|
|
274
|
+
* "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
|
275
|
+
* "Key": "objectkey1"
|
|
277
276
|
* },
|
|
278
277
|
* {
|
|
279
|
-
* "
|
|
280
|
-
* "
|
|
278
|
+
* "DeleteMarker": "true",
|
|
279
|
+
* "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
|
280
|
+
* "Key": "objectkey2"
|
|
281
281
|
* }
|
|
282
282
|
* ]
|
|
283
283
|
* }
|
|
284
284
|
* *\/
|
|
285
|
-
* // example id: to-delete-multiple-
|
|
285
|
+
* // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
|
|
286
286
|
* ```
|
|
287
287
|
*
|
|
288
288
|
*/
|
|
@@ -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 an object
|
|
278
|
+
* @example To retrieve a byte range of 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. The request specifies the range header to retrieve a specific byte range.
|
|
281
281
|
* const input = {
|
|
282
282
|
* "Bucket": "examplebucket",
|
|
283
|
-
* "Key": "
|
|
283
|
+
* "Key": "SampleFile.txt",
|
|
284
|
+
* "Range": "bytes=0-9"
|
|
284
285
|
* };
|
|
285
286
|
* const command = new GetObjectCommand(input);
|
|
286
287
|
* const response = await client.send(command);
|
|
287
288
|
* /* response ==
|
|
288
289
|
* {
|
|
289
290
|
* "AcceptRanges": "bytes",
|
|
290
|
-
* "ContentLength": "
|
|
291
|
-
* "
|
|
292
|
-
* "
|
|
293
|
-
* "
|
|
291
|
+
* "ContentLength": "10",
|
|
292
|
+
* "ContentRange": "bytes 0-9/43",
|
|
293
|
+
* "ContentType": "text/plain",
|
|
294
|
+
* "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
|
295
|
+
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
294
296
|
* "Metadata": {},
|
|
295
|
-
* "TagCount": 2,
|
|
296
297
|
* "VersionId": "null"
|
|
297
298
|
* }
|
|
298
299
|
* *\/
|
|
299
|
-
* // example id: to-retrieve-an-object
|
|
300
|
+
* // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
|
|
300
301
|
* ```
|
|
301
302
|
*
|
|
302
|
-
* @example To retrieve
|
|
303
|
+
* @example To retrieve an object
|
|
303
304
|
* ```javascript
|
|
304
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
305
|
+
* // The following example retrieves an object for an S3 bucket.
|
|
305
306
|
* const input = {
|
|
306
307
|
* "Bucket": "examplebucket",
|
|
307
|
-
* "Key": "
|
|
308
|
-
* "Range": "bytes=0-9"
|
|
308
|
+
* "Key": "HappyFace.jpg"
|
|
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
|
-
* "
|
|
319
|
-
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
315
|
+
* "ContentLength": "3191",
|
|
316
|
+
* "ContentType": "image/jpeg",
|
|
317
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
318
|
+
* "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
|
|
320
319
|
* "Metadata": {},
|
|
320
|
+
* "TagCount": 2,
|
|
321
321
|
* "VersionId": "null"
|
|
322
322
|
* }
|
|
323
323
|
* *\/
|
|
324
|
-
* // example id: to-retrieve-
|
|
324
|
+
* // example id: to-retrieve-an-object-1481827837012
|
|
325
325
|
* ```
|
|
326
326
|
*
|
|
327
327
|
*/
|
|
@@ -95,12 +95,13 @@ 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 a specific object version
|
|
99
99
|
* ```javascript
|
|
100
|
-
* // The following example retrieves tag set of an object.
|
|
100
|
+
* // The following example retrieves tag set of an object. The request specifies object version.
|
|
101
101
|
* const input = {
|
|
102
102
|
* "Bucket": "examplebucket",
|
|
103
|
-
* "Key": "
|
|
103
|
+
* "Key": "exampleobject",
|
|
104
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
104
105
|
* };
|
|
105
106
|
* const command = new GetObjectTaggingCommand(input);
|
|
106
107
|
* const response = await client.send(command);
|
|
@@ -108,27 +109,22 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
108
109
|
* {
|
|
109
110
|
* "TagSet": [
|
|
110
111
|
* {
|
|
111
|
-
* "Key": "
|
|
112
|
-
* "Value": "
|
|
113
|
-
* },
|
|
114
|
-
* {
|
|
115
|
-
* "Key": "Key3",
|
|
116
|
-
* "Value": "Value3"
|
|
112
|
+
* "Key": "Key1",
|
|
113
|
+
* "Value": "Value1"
|
|
117
114
|
* }
|
|
118
115
|
* ],
|
|
119
|
-
* "VersionId": "
|
|
116
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
120
117
|
* }
|
|
121
118
|
* *\/
|
|
122
|
-
* // example id: to-retrieve-tag-set-of-
|
|
119
|
+
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
|
|
123
120
|
* ```
|
|
124
121
|
*
|
|
125
|
-
* @example To retrieve tag set of
|
|
122
|
+
* @example To retrieve tag set of an object
|
|
126
123
|
* ```javascript
|
|
127
|
-
* // The following example retrieves tag set of an object.
|
|
124
|
+
* // The following example retrieves tag set of an object.
|
|
128
125
|
* const input = {
|
|
129
126
|
* "Bucket": "examplebucket",
|
|
130
|
-
* "Key": "
|
|
131
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
127
|
+
* "Key": "HappyFace.jpg"
|
|
132
128
|
* };
|
|
133
129
|
* const command = new GetObjectTaggingCommand(input);
|
|
134
130
|
* const response = await client.send(command);
|
|
@@ -136,14 +132,18 @@ declare const GetObjectTaggingCommand_base: {
|
|
|
136
132
|
* {
|
|
137
133
|
* "TagSet": [
|
|
138
134
|
* {
|
|
139
|
-
* "Key": "
|
|
140
|
-
* "Value": "
|
|
135
|
+
* "Key": "Key4",
|
|
136
|
+
* "Value": "Value4"
|
|
137
|
+
* },
|
|
138
|
+
* {
|
|
139
|
+
* "Key": "Key3",
|
|
140
|
+
* "Value": "Value3"
|
|
141
141
|
* }
|
|
142
142
|
* ],
|
|
143
|
-
* "VersionId": "
|
|
143
|
+
* "VersionId": "null"
|
|
144
144
|
* }
|
|
145
145
|
* *\/
|
|
146
|
-
* // example id: to-retrieve-tag-set-of-
|
|
146
|
+
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
|
|
147
147
|
* ```
|
|
148
148
|
*
|
|
149
149
|
*/
|
|
@@ -233,26 +233,23 @@ 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 upload an object
|
|
236
|
+
* @example To upload an object
|
|
237
237
|
* ```javascript
|
|
238
|
-
* // The following example uploads an object
|
|
238
|
+
* // 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.
|
|
239
239
|
* const input = {
|
|
240
|
-
* "Body": "
|
|
240
|
+
* "Body": "HappyFace.jpg",
|
|
241
241
|
* "Bucket": "examplebucket",
|
|
242
|
-
* "Key": "
|
|
243
|
-
* "ServerSideEncryption": "AES256",
|
|
244
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
242
|
+
* "Key": "HappyFace.jpg"
|
|
245
243
|
* };
|
|
246
244
|
* const command = new PutObjectCommand(input);
|
|
247
245
|
* const response = await client.send(command);
|
|
248
246
|
* /* response ==
|
|
249
247
|
* {
|
|
250
248
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
251
|
-
* "
|
|
252
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
249
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
253
250
|
* }
|
|
254
251
|
* *\/
|
|
255
|
-
* // example id: to-upload-an-object-
|
|
252
|
+
* // example id: to-upload-an-object-1481760101010
|
|
256
253
|
* ```
|
|
257
254
|
*
|
|
258
255
|
* @example To upload object and specify user-defined metadata
|
|
@@ -278,43 +275,46 @@ declare const PutObjectCommand_base: {
|
|
|
278
275
|
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
279
276
|
* ```
|
|
280
277
|
*
|
|
281
|
-
* @example To upload an object
|
|
278
|
+
* @example To upload an object (specify optional headers)
|
|
282
279
|
* ```javascript
|
|
283
|
-
* // The following example uploads
|
|
280
|
+
* // 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.
|
|
284
281
|
* const input = {
|
|
285
|
-
* "
|
|
286
|
-
* "Body": "filetoupload",
|
|
282
|
+
* "Body": "HappyFace.jpg",
|
|
287
283
|
* "Bucket": "examplebucket",
|
|
288
|
-
* "Key": "
|
|
284
|
+
* "Key": "HappyFace.jpg",
|
|
285
|
+
* "ServerSideEncryption": "AES256",
|
|
286
|
+
* "StorageClass": "STANDARD_IA"
|
|
289
287
|
* };
|
|
290
288
|
* const command = new PutObjectCommand(input);
|
|
291
289
|
* const response = await client.send(command);
|
|
292
290
|
* /* response ==
|
|
293
291
|
* {
|
|
294
292
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
295
|
-
* "
|
|
293
|
+
* "ServerSideEncryption": "AES256",
|
|
294
|
+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
296
295
|
* }
|
|
297
296
|
* *\/
|
|
298
|
-
* // example id: to-upload-an-object-
|
|
297
|
+
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
299
298
|
* ```
|
|
300
299
|
*
|
|
301
|
-
* @example To upload an object
|
|
300
|
+
* @example To upload an object and specify canned ACL.
|
|
302
301
|
* ```javascript
|
|
303
|
-
* // The following example uploads
|
|
302
|
+
* // 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.
|
|
304
303
|
* const input = {
|
|
305
|
-
* "
|
|
304
|
+
* "ACL": "authenticated-read",
|
|
305
|
+
* "Body": "filetoupload",
|
|
306
306
|
* "Bucket": "examplebucket",
|
|
307
|
-
* "Key": "
|
|
307
|
+
* "Key": "exampleobject"
|
|
308
308
|
* };
|
|
309
309
|
* const command = new PutObjectCommand(input);
|
|
310
310
|
* const response = await client.send(command);
|
|
311
311
|
* /* response ==
|
|
312
312
|
* {
|
|
313
313
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
314
|
-
* "VersionId": "
|
|
314
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
315
315
|
* }
|
|
316
316
|
* *\/
|
|
317
|
-
* // example id: to-upload-an-object-
|
|
317
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
318
318
|
* ```
|
|
319
319
|
*
|
|
320
320
|
* @example To create an object.
|
|
@@ -336,15 +336,15 @@ declare const PutObjectCommand_base: {
|
|
|
336
336
|
* // example id: to-create-an-object-1483147613675
|
|
337
337
|
* ```
|
|
338
338
|
*
|
|
339
|
-
* @example To upload an object
|
|
339
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
340
340
|
* ```javascript
|
|
341
|
-
* // The following example uploads an object. The request specifies optional request
|
|
341
|
+
* // 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.
|
|
342
342
|
* const input = {
|
|
343
|
-
* "Body": "
|
|
343
|
+
* "Body": "filetoupload",
|
|
344
344
|
* "Bucket": "examplebucket",
|
|
345
|
-
* "Key": "
|
|
345
|
+
* "Key": "exampleobject",
|
|
346
346
|
* "ServerSideEncryption": "AES256",
|
|
347
|
-
* "
|
|
347
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
348
348
|
* };
|
|
349
349
|
* const command = new PutObjectCommand(input);
|
|
350
350
|
* const response = await client.send(command);
|
|
@@ -352,10 +352,10 @@ declare const PutObjectCommand_base: {
|
|
|
352
352
|
* {
|
|
353
353
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
354
354
|
* "ServerSideEncryption": "AES256",
|
|
355
|
-
* "VersionId": "
|
|
355
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
356
356
|
* }
|
|
357
357
|
* *\/
|
|
358
|
-
* // example id: to-upload-an-object-
|
|
358
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
359
359
|
* ```
|
|
360
360
|
*
|
|
361
361
|
* @example To upload an object and specify optional tags
|
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.549.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",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@aws-crypto/sha1-browser": "3.0.0",
|
|
27
27
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
28
28
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
29
|
-
"@aws-sdk/client-sts": "3.
|
|
30
|
-
"@aws-sdk/core": "3.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
29
|
+
"@aws-sdk/client-sts": "3.549.0",
|
|
30
|
+
"@aws-sdk/core": "3.549.0",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "3.549.0",
|
|
32
32
|
"@aws-sdk/middleware-bucket-endpoint": "3.535.0",
|
|
33
33
|
"@aws-sdk/middleware-expect-continue": "3.535.0",
|
|
34
34
|
"@aws-sdk/middleware-flexible-checksums": "3.535.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@aws-sdk/util-user-agent-node": "3.535.0",
|
|
49
49
|
"@aws-sdk/xml-builder": "3.535.0",
|
|
50
50
|
"@smithy/config-resolver": "^2.2.0",
|
|
51
|
-
"@smithy/core": "^1.4.
|
|
51
|
+
"@smithy/core": "^1.4.1",
|
|
52
52
|
"@smithy/eventstream-serde-browser": "^2.2.0",
|
|
53
53
|
"@smithy/eventstream-serde-config-resolver": "^2.2.0",
|
|
54
54
|
"@smithy/eventstream-serde-node": "^2.2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@smithy/md5-js": "^2.2.0",
|
|
61
61
|
"@smithy/middleware-content-length": "^2.2.0",
|
|
62
62
|
"@smithy/middleware-endpoint": "^2.5.0",
|
|
63
|
-
"@smithy/middleware-retry": "^2.
|
|
63
|
+
"@smithy/middleware-retry": "^2.3.0",
|
|
64
64
|
"@smithy/middleware-serde": "^2.3.0",
|
|
65
65
|
"@smithy/middleware-stack": "^2.2.0",
|
|
66
66
|
"@smithy/node-config-provider": "^2.3.0",
|