@aws-sdk/client-s3 3.698.0 → 3.700.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-cjs/index.js CHANGED
@@ -1211,6 +1211,7 @@ var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, con
1211
1211
  [_xacs_]: input[_CSHAh],
1212
1212
  [_xarp]: input[_RP],
1213
1213
  [_xaebo]: input[_EBO],
1214
+ [_im]: input[_IM],
1214
1215
  [_inm]: input[_INM],
1215
1216
  [_xasseca]: input[_SSECA],
1216
1217
  [_xasseck]: input[_SSECK],
@@ -2783,6 +2784,7 @@ var se_PutObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
2783
2784
  [_xacs]: input[_CSHA],
2784
2785
  [_xacs_]: input[_CSHAh],
2785
2786
  [_e]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client.dateToUtcString)(input[_E]).toString()],
2787
+ [_im]: input[_IM],
2786
2788
  [_inm]: input[_INM],
2787
2789
  [_xagfc]: input[_GFC],
2788
2790
  [_xagr]: input[_GR],
@@ -34,6 +34,7 @@ export const se_CompleteMultipartUploadCommand = async (input, context) => {
34
34
  [_xacs_]: input[_CSHAh],
35
35
  [_xarp]: input[_RP],
36
36
  [_xaebo]: input[_EBO],
37
+ [_im]: input[_IM],
37
38
  [_inm]: input[_INM],
38
39
  [_xasseca]: input[_SSECA],
39
40
  [_xasseck]: input[_SSECK],
@@ -1608,6 +1609,7 @@ export const se_PutObjectCommand = async (input, context) => {
1608
1609
  [_xacs]: input[_CSHA],
1609
1610
  [_xacs_]: input[_CSHAh],
1610
1611
  [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]).toString()],
1612
+ [_im]: input[_IM],
1611
1613
  [_inm]: input[_INM],
1612
1614
  [_xagfc]: input[_GFC],
1613
1615
  [_xagr]: input[_GR],
@@ -224,6 +224,7 @@ declare const CompleteMultipartUploadCommand_base: {
224
224
  * ChecksumSHA256: "STRING_VALUE",
225
225
  * RequestPayer: "requester",
226
226
  * ExpectedBucketOwner: "STRING_VALUE",
227
+ * IfMatch: "STRING_VALUE",
227
228
  * IfNoneMatch: "STRING_VALUE",
228
229
  * SSECustomerAlgorithm: "STRING_VALUE",
229
230
  * SSECustomerKey: "STRING_VALUE",
@@ -231,39 +231,39 @@ declare const CreateBucketCommand_base: {
231
231
  * <p>Base exception class for all service exceptions from S3 service.</p>
232
232
  *
233
233
  * @public
234
- * @example To create a bucket in a specific region
234
+ * @example To create a bucket
235
235
  * ```javascript
236
- * // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
236
+ * // The following example creates a bucket.
237
237
  * const input = {
238
- * "Bucket": "examplebucket",
239
- * "CreateBucketConfiguration": {
240
- * "LocationConstraint": "eu-west-1"
241
- * }
238
+ * "Bucket": "examplebucket"
242
239
  * };
243
240
  * const command = new CreateBucketCommand(input);
244
241
  * const response = await client.send(command);
245
242
  * /* response ==
246
243
  * {
247
- * "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
244
+ * "Location": "/examplebucket"
248
245
  * }
249
246
  * *\/
250
- * // example id: to-create-a-bucket-in-a-specific-region-1483399072992
247
+ * // example id: to-create-a-bucket--1472851826060
251
248
  * ```
252
249
  *
253
- * @example To create a bucket
250
+ * @example To create a bucket in a specific region
254
251
  * ```javascript
255
- * // The following example creates a bucket.
252
+ * // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
256
253
  * const input = {
257
- * "Bucket": "examplebucket"
254
+ * "Bucket": "examplebucket",
255
+ * "CreateBucketConfiguration": {
256
+ * "LocationConstraint": "eu-west-1"
257
+ * }
258
258
  * };
259
259
  * const command = new CreateBucketCommand(input);
260
260
  * const response = await client.send(command);
261
261
  * /* response ==
262
262
  * {
263
- * "Location": "/examplebucket"
263
+ * "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
264
264
  * }
265
265
  * *\/
266
- * // example id: to-create-a-bucket--1472851826060
266
+ * // example id: to-create-a-bucket-in-a-specific-region-1483399072992
267
267
  * ```
268
268
  *
269
269
  */
@@ -155,28 +155,28 @@ declare const DeleteObjectCommand_base: {
155
155
  * <p>Base exception class for all service exceptions from S3 service.</p>
156
156
  *
157
157
  * @public
158
- * @example To delete an object (from a non-versioned bucket)
158
+ * @example To delete an object
159
159
  * ```javascript
160
- * // The following example deletes an object from a non-versioned bucket.
160
+ * // The following example deletes an object from an S3 bucket.
161
161
  * const input = {
162
- * "Bucket": "ExampleBucket",
163
- * "Key": "HappyFace.jpg"
162
+ * "Bucket": "examplebucket",
163
+ * "Key": "objectkey.jpg"
164
164
  * };
165
165
  * const command = new DeleteObjectCommand(input);
166
166
  * await client.send(command);
167
- * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
167
+ * // example id: to-delete-an-object-1472850136595
168
168
  * ```
169
169
  *
170
- * @example To delete an object
170
+ * @example To delete an object (from a non-versioned bucket)
171
171
  * ```javascript
172
- * // The following example deletes an object from an S3 bucket.
172
+ * // The following example deletes an object from a non-versioned bucket.
173
173
  * const input = {
174
- * "Bucket": "examplebucket",
175
- * "Key": "objectkey.jpg"
174
+ * "Bucket": "ExampleBucket",
175
+ * "Key": "HappyFace.jpg"
176
176
  * };
177
177
  * const command = new DeleteObjectCommand(input);
178
178
  * await client.send(command);
179
- * // example id: to-delete-an-object-1472850136595
179
+ * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
180
180
  * ```
181
181
  *
182
182
  */
@@ -224,18 +224,20 @@ declare const DeleteObjectsCommand_base: {
224
224
  * <p>Base exception class for all service exceptions from S3 service.</p>
225
225
  *
226
226
  * @public
227
- * @example To delete multiple objects from a versioned bucket
227
+ * @example To delete multiple object versions from a versioned bucket
228
228
  * ```javascript
229
- * // 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.
229
+ * // 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.
230
230
  * const input = {
231
231
  * "Bucket": "examplebucket",
232
232
  * "Delete": {
233
233
  * "Objects": [
234
234
  * {
235
- * "Key": "objectkey1"
235
+ * "Key": "HappyFace.jpg",
236
+ * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
236
237
  * },
237
238
  * {
238
- * "Key": "objectkey2"
239
+ * "Key": "HappyFace.jpg",
240
+ * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
239
241
  * }
240
242
  * ],
241
243
  * "Quiet": false
@@ -247,35 +249,31 @@ declare const DeleteObjectsCommand_base: {
247
249
  * {
248
250
  * "Deleted": [
249
251
  * {
250
- * "DeleteMarker": "true",
251
- * "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
252
- * "Key": "objectkey1"
252
+ * "Key": "HappyFace.jpg",
253
+ * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
253
254
  * },
254
255
  * {
255
- * "DeleteMarker": "true",
256
- * "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
257
- * "Key": "objectkey2"
256
+ * "Key": "HappyFace.jpg",
257
+ * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
258
258
  * }
259
259
  * ]
260
260
  * }
261
261
  * *\/
262
- * // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
262
+ * // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
263
263
  * ```
264
264
  *
265
- * @example To delete multiple object versions from a versioned bucket
265
+ * @example To delete multiple objects from a versioned bucket
266
266
  * ```javascript
267
- * // 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.
267
+ * // 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.
268
268
  * const input = {
269
269
  * "Bucket": "examplebucket",
270
270
  * "Delete": {
271
271
  * "Objects": [
272
272
  * {
273
- * "Key": "HappyFace.jpg",
274
- * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
273
+ * "Key": "objectkey1"
275
274
  * },
276
275
  * {
277
- * "Key": "HappyFace.jpg",
278
- * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
276
+ * "Key": "objectkey2"
279
277
  * }
280
278
  * ],
281
279
  * "Quiet": false
@@ -287,17 +285,19 @@ declare const DeleteObjectsCommand_base: {
287
285
  * {
288
286
  * "Deleted": [
289
287
  * {
290
- * "Key": "HappyFace.jpg",
291
- * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
288
+ * "DeleteMarker": "true",
289
+ * "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
290
+ * "Key": "objectkey1"
292
291
  * },
293
292
  * {
294
- * "Key": "HappyFace.jpg",
295
- * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
293
+ * "DeleteMarker": "true",
294
+ * "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
295
+ * "Key": "objectkey2"
296
296
  * }
297
297
  * ]
298
298
  * }
299
299
  * *\/
300
- * // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
300
+ * // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
301
301
  * ```
302
302
  *
303
303
  */
@@ -301,53 +301,53 @@ declare const GetObjectCommand_base: {
301
301
  * <p>Base exception class for all service exceptions from S3 service.</p>
302
302
  *
303
303
  * @public
304
- * @example To retrieve an object
304
+ * @example To retrieve a byte range of an object
305
305
  * ```javascript
306
- * // The following example retrieves an object for an S3 bucket.
306
+ * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
307
307
  * const input = {
308
308
  * "Bucket": "examplebucket",
309
- * "Key": "HappyFace.jpg"
309
+ * "Key": "SampleFile.txt",
310
+ * "Range": "bytes=0-9"
310
311
  * };
311
312
  * const command = new GetObjectCommand(input);
312
313
  * const response = await client.send(command);
313
314
  * /* response ==
314
315
  * {
315
316
  * "AcceptRanges": "bytes",
316
- * "ContentLength": "3191",
317
- * "ContentType": "image/jpeg",
318
- * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
319
- * "LastModified": "2016-12-15T01:19:41.000Z",
317
+ * "ContentLength": "10",
318
+ * "ContentRange": "bytes 0-9/43",
319
+ * "ContentType": "text/plain",
320
+ * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
321
+ * "LastModified": "2014-10-09T22:57:28.000Z",
320
322
  * "Metadata": {},
321
- * "TagCount": 2,
322
323
  * "VersionId": "null"
323
324
  * }
324
325
  * *\/
325
- * // example id: to-retrieve-an-object-1481827837012
326
+ * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
326
327
  * ```
327
328
  *
328
- * @example To retrieve a byte range of an object
329
+ * @example To retrieve an object
329
330
  * ```javascript
330
- * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
331
+ * // The following example retrieves an object for an S3 bucket.
331
332
  * const input = {
332
333
  * "Bucket": "examplebucket",
333
- * "Key": "SampleFile.txt",
334
- * "Range": "bytes=0-9"
334
+ * "Key": "HappyFace.jpg"
335
335
  * };
336
336
  * const command = new GetObjectCommand(input);
337
337
  * const response = await client.send(command);
338
338
  * /* response ==
339
339
  * {
340
340
  * "AcceptRanges": "bytes",
341
- * "ContentLength": "10",
342
- * "ContentRange": "bytes 0-9/43",
343
- * "ContentType": "text/plain",
344
- * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
345
- * "LastModified": "2014-10-09T22:57:28.000Z",
341
+ * "ContentLength": "3191",
342
+ * "ContentType": "image/jpeg",
343
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
344
+ * "LastModified": "2016-12-15T01:19:41.000Z",
346
345
  * "Metadata": {},
346
+ * "TagCount": 2,
347
347
  * "VersionId": "null"
348
348
  * }
349
349
  * *\/
350
- * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
350
+ * // example id: to-retrieve-an-object-1481827837012
351
351
  * ```
352
352
  *
353
353
  */
@@ -227,104 +227,104 @@ declare const ListMultipartUploadsCommand_base: {
227
227
  * <p>Base exception class for all service exceptions from S3 service.</p>
228
228
  *
229
229
  * @public
230
- * @example List next set of multipart uploads when previous result is truncated
230
+ * @example To list in-progress multipart uploads on a bucket
231
231
  * ```javascript
232
- * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
232
+ * // The following example lists in-progress multipart uploads on a specific bucket.
233
233
  * const input = {
234
- * "Bucket": "examplebucket",
235
- * "KeyMarker": "nextkeyfrompreviousresponse",
236
- * "MaxUploads": "2",
237
- * "UploadIdMarker": "valuefrompreviousresponse"
234
+ * "Bucket": "examplebucket"
238
235
  * };
239
236
  * const command = new ListMultipartUploadsCommand(input);
240
237
  * const response = await client.send(command);
241
238
  * /* response ==
242
239
  * {
243
- * "Bucket": "acl1",
244
- * "IsTruncated": true,
245
- * "KeyMarker": "",
246
- * "MaxUploads": "2",
247
- * "NextKeyMarker": "someobjectkey",
248
- * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
249
- * "UploadIdMarker": "",
250
240
  * "Uploads": [
251
241
  * {
252
242
  * "Initiated": "2014-05-01T05:40:58.000Z",
253
243
  * "Initiator": {
254
- * "DisplayName": "ownder-display-name",
244
+ * "DisplayName": "display-name",
255
245
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
256
246
  * },
257
247
  * "Key": "JavaFile",
258
248
  * "Owner": {
259
- * "DisplayName": "mohanataws",
260
- * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
249
+ * "DisplayName": "display-name",
250
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
261
251
  * },
262
252
  * "StorageClass": "STANDARD",
263
- * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
253
+ * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
264
254
  * },
265
255
  * {
266
256
  * "Initiated": "2014-05-01T05:41:27.000Z",
267
257
  * "Initiator": {
268
- * "DisplayName": "ownder-display-name",
258
+ * "DisplayName": "display-name",
269
259
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
270
260
  * },
271
261
  * "Key": "JavaFile",
272
262
  * "Owner": {
273
- * "DisplayName": "ownder-display-name",
263
+ * "DisplayName": "display-name",
274
264
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
275
265
  * },
276
266
  * "StorageClass": "STANDARD",
277
- * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
267
+ * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
278
268
  * }
279
269
  * ]
280
270
  * }
281
271
  * *\/
282
- * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
272
+ * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
283
273
  * ```
284
274
  *
285
- * @example To list in-progress multipart uploads on a bucket
275
+ * @example List next set of multipart uploads when previous result is truncated
286
276
  * ```javascript
287
- * // The following example lists in-progress multipart uploads on a specific bucket.
277
+ * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
288
278
  * const input = {
289
- * "Bucket": "examplebucket"
279
+ * "Bucket": "examplebucket",
280
+ * "KeyMarker": "nextkeyfrompreviousresponse",
281
+ * "MaxUploads": "2",
282
+ * "UploadIdMarker": "valuefrompreviousresponse"
290
283
  * };
291
284
  * const command = new ListMultipartUploadsCommand(input);
292
285
  * const response = await client.send(command);
293
286
  * /* response ==
294
287
  * {
288
+ * "Bucket": "acl1",
289
+ * "IsTruncated": true,
290
+ * "KeyMarker": "",
291
+ * "MaxUploads": "2",
292
+ * "NextKeyMarker": "someobjectkey",
293
+ * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
294
+ * "UploadIdMarker": "",
295
295
  * "Uploads": [
296
296
  * {
297
297
  * "Initiated": "2014-05-01T05:40:58.000Z",
298
298
  * "Initiator": {
299
- * "DisplayName": "display-name",
299
+ * "DisplayName": "ownder-display-name",
300
300
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
301
301
  * },
302
302
  * "Key": "JavaFile",
303
303
  * "Owner": {
304
- * "DisplayName": "display-name",
305
- * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
304
+ * "DisplayName": "mohanataws",
305
+ * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
306
306
  * },
307
307
  * "StorageClass": "STANDARD",
308
- * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
308
+ * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
309
309
  * },
310
310
  * {
311
311
  * "Initiated": "2014-05-01T05:41:27.000Z",
312
312
  * "Initiator": {
313
- * "DisplayName": "display-name",
313
+ * "DisplayName": "ownder-display-name",
314
314
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
315
315
  * },
316
316
  * "Key": "JavaFile",
317
317
  * "Owner": {
318
- * "DisplayName": "display-name",
318
+ * "DisplayName": "ownder-display-name",
319
319
  * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
320
320
  * },
321
321
  * "StorageClass": "STANDARD",
322
- * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
322
+ * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
323
323
  * }
324
324
  * ]
325
325
  * }
326
326
  * *\/
327
- * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
327
+ * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
328
328
  * ```
329
329
  *
330
330
  */
@@ -32,9 +32,11 @@ declare const PutBucketVersioningCommand_base: {
32
32
  * </note>
33
33
  * <note>
34
34
  * <p>When you enable versioning on a bucket for the first time, it might take a short
35
- * amount of time for the change to be fully propagated. We recommend that you wait for 15
35
+ * amount of time for the change to be fully propagated. While this change is propagating,
36
+ * you may encounter intermittent <code>HTTP 404 NoSuchKey</code> errors for requests to
37
+ * objects created or updated after enabling versioning. We recommend that you wait for 15
36
38
  * minutes after enabling versioning before issuing write operations (<code>PUT</code> or
37
- * <code>DELETE</code>) on objects in the bucket. </p>
39
+ * <code>DELETE</code>) on objects in the bucket. </p>
38
40
  * </note>
39
41
  * <p>Sets the versioning state of an existing bucket.</p>
40
42
  * <p>You can set the versioning state with one of the following values:</p>
@@ -195,6 +195,7 @@ declare const PutObjectCommand_base: {
195
195
  * ChecksumSHA1: "STRING_VALUE",
196
196
  * ChecksumSHA256: "STRING_VALUE",
197
197
  * Expires: new Date("TIMESTAMP"),
198
+ * IfMatch: "STRING_VALUE",
198
199
  * IfNoneMatch: "STRING_VALUE",
199
200
  * GrantFullControl: "STRING_VALUE",
200
201
  * GrantRead: "STRING_VALUE",
@@ -326,26 +327,23 @@ declare const PutObjectCommand_base: {
326
327
  * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
327
328
  * ```
328
329
  *
329
- * @example To upload an object and specify server-side encryption and object tags
330
+ * @example To upload an object
330
331
  * ```javascript
331
- * // 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.
332
+ * // 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.
332
333
  * const input = {
333
- * "Body": "filetoupload",
334
+ * "Body": "HappyFace.jpg",
334
335
  * "Bucket": "examplebucket",
335
- * "Key": "exampleobject",
336
- * "ServerSideEncryption": "AES256",
337
- * "Tagging": "key1=value1&key2=value2"
336
+ * "Key": "HappyFace.jpg"
338
337
  * };
339
338
  * const command = new PutObjectCommand(input);
340
339
  * const response = await client.send(command);
341
340
  * /* response ==
342
341
  * {
343
342
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
344
- * "ServerSideEncryption": "AES256",
345
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
343
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
346
344
  * }
347
345
  * *\/
348
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
346
+ * // example id: to-upload-an-object-1481760101010
349
347
  * ```
350
348
  *
351
349
  * @example To upload object and specify user-defined metadata
@@ -371,64 +369,67 @@ declare const PutObjectCommand_base: {
371
369
  * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
372
370
  * ```
373
371
  *
374
- * @example To upload an object (specify optional headers)
372
+ * @example To create an object.
375
373
  * ```javascript
376
- * // 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.
374
+ * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
377
375
  * const input = {
378
- * "Body": "HappyFace.jpg",
376
+ * "Body": "filetoupload",
379
377
  * "Bucket": "examplebucket",
380
- * "Key": "HappyFace.jpg",
381
- * "ServerSideEncryption": "AES256",
382
- * "StorageClass": "STANDARD_IA"
378
+ * "Key": "objectkey"
383
379
  * };
384
380
  * const command = new PutObjectCommand(input);
385
381
  * const response = await client.send(command);
386
382
  * /* response ==
387
383
  * {
388
384
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
389
- * "ServerSideEncryption": "AES256",
390
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
385
+ * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
391
386
  * }
392
387
  * *\/
393
- * // example id: to-upload-an-object-(specify-optional-headers)
388
+ * // example id: to-create-an-object-1483147613675
394
389
  * ```
395
390
  *
396
- * @example To create an object.
391
+ * @example To upload an object (specify optional headers)
397
392
  * ```javascript
398
- * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
393
+ * // 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.
399
394
  * const input = {
400
- * "Body": "filetoupload",
395
+ * "Body": "HappyFace.jpg",
401
396
  * "Bucket": "examplebucket",
402
- * "Key": "objectkey"
397
+ * "Key": "HappyFace.jpg",
398
+ * "ServerSideEncryption": "AES256",
399
+ * "StorageClass": "STANDARD_IA"
403
400
  * };
404
401
  * const command = new PutObjectCommand(input);
405
402
  * const response = await client.send(command);
406
403
  * /* response ==
407
404
  * {
408
405
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
409
- * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
406
+ * "ServerSideEncryption": "AES256",
407
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
410
408
  * }
411
409
  * *\/
412
- * // example id: to-create-an-object-1483147613675
410
+ * // example id: to-upload-an-object-(specify-optional-headers)
413
411
  * ```
414
412
  *
415
- * @example To upload an object
413
+ * @example To upload an object and specify server-side encryption and object tags
416
414
  * ```javascript
417
- * // 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.
415
+ * // 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.
418
416
  * const input = {
419
- * "Body": "HappyFace.jpg",
417
+ * "Body": "filetoupload",
420
418
  * "Bucket": "examplebucket",
421
- * "Key": "HappyFace.jpg"
419
+ * "Key": "exampleobject",
420
+ * "ServerSideEncryption": "AES256",
421
+ * "Tagging": "key1=value1&key2=value2"
422
422
  * };
423
423
  * const command = new PutObjectCommand(input);
424
424
  * const response = await client.send(command);
425
425
  * /* response ==
426
426
  * {
427
427
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
428
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
428
+ * "ServerSideEncryption": "AES256",
429
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
429
430
  * }
430
431
  * *\/
431
- * // example id: to-upload-an-object-1481760101010
432
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
432
433
  * ```
433
434
  *
434
435
  */
@@ -646,6 +646,18 @@ export interface CompleteMultipartUploadRequest {
646
646
  * @public
647
647
  */
648
648
  ExpectedBucketOwner?: string | undefined;
649
+ /**
650
+ * <p>Uploads the object only if the ETag (entity tag) value provided during the WRITE
651
+ * operation matches the ETag of the object in S3. If the ETag values do not match, the
652
+ * operation returns a <code>412 Precondition Failed</code> error.</p>
653
+ * <p>If a conflicting operation occurs during the upload S3 returns a <code>409
654
+ * ConditionalRequestConflict</code> response. On a 409 failure you should fetch the object's ETag, re-initiate the
655
+ * multipart upload with <code>CreateMultipartUpload</code>, and re-upload each part.</p>
656
+ * <p>Expects the ETag value as a string.</p>
657
+ * <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html">Conditional requests</a> in the <i>Amazon S3 User Guide</i>.</p>
658
+ * @public
659
+ */
660
+ IfMatch?: string | undefined;
649
661
  /**
650
662
  * <p>Uploads the object only if the object key name does not already exist in the bucket
651
663
  * specified. Otherwise, Amazon S3 returns a <code>412 Precondition Failed</code> error.</p>
@@ -850,6 +850,16 @@ export interface PutObjectRequest {
850
850
  * @public
851
851
  */
852
852
  Expires?: Date | undefined;
853
+ /**
854
+ * <p>Uploads the object only if the ETag (entity tag) value provided during the WRITE
855
+ * operation matches the ETag of the object in S3. If the ETag values do not match, the
856
+ * operation returns a <code>412 Precondition Failed</code> error.</p>
857
+ * <p>If a conflicting operation occurs during the upload S3 returns a <code>409 ConditionalRequestConflict</code> response. On a 409 failure you should fetch the object's ETag and retry the upload.</p>
858
+ * <p>Expects the ETag value as a string.</p>
859
+ * <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>, or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html">Conditional requests</a> in the <i>Amazon S3 User Guide</i>.</p>
860
+ * @public
861
+ */
862
+ IfMatch?: string | undefined;
853
863
  /**
854
864
  * <p>Uploads the object only if the object key name does not already exist in the bucket
855
865
  * specified. Otherwise, Amazon S3 returns a <code>412 Precondition Failed</code> error.</p>
@@ -123,6 +123,7 @@ export interface CompleteMultipartUploadRequest {
123
123
  ChecksumSHA256?: string | undefined;
124
124
  RequestPayer?: RequestPayer | undefined;
125
125
  ExpectedBucketOwner?: string | undefined;
126
+ IfMatch?: string | undefined;
126
127
  IfNoneMatch?: string | undefined;
127
128
  SSECustomerAlgorithm?: string | undefined;
128
129
  SSECustomerKey?: string | undefined;
@@ -157,6 +157,7 @@ export interface PutObjectRequest {
157
157
  ChecksumSHA1?: string | undefined;
158
158
  ChecksumSHA256?: string | undefined;
159
159
  Expires?: Date | undefined;
160
+ IfMatch?: string | undefined;
160
161
  IfNoneMatch?: string | undefined;
161
162
  GrantFullControl?: string | undefined;
162
163
  GrantRead?: string | undefined;
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.698.0",
4
+ "version": "3.700.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,10 +27,10 @@
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/client-sso-oidc": "3.696.0",
31
- "@aws-sdk/client-sts": "3.696.0",
30
+ "@aws-sdk/client-sso-oidc": "3.699.0",
31
+ "@aws-sdk/client-sts": "3.699.0",
32
32
  "@aws-sdk/core": "3.696.0",
33
- "@aws-sdk/credential-provider-node": "3.696.0",
33
+ "@aws-sdk/credential-provider-node": "3.699.0",
34
34
  "@aws-sdk/middleware-bucket-endpoint": "3.696.0",
35
35
  "@aws-sdk/middleware-expect-continue": "3.696.0",
36
36
  "@aws-sdk/middleware-flexible-checksums": "3.697.0",