@aws-sdk/client-s3 3.699.0 → 3.701.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.
Files changed (38) hide show
  1. package/dist-cjs/index.js +24 -0
  2. package/dist-es/commands/DeleteObjectsCommand.js +1 -0
  3. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +1 -0
  4. package/dist-es/commands/PutBucketAclCommand.js +1 -0
  5. package/dist-es/commands/PutBucketCorsCommand.js +1 -0
  6. package/dist-es/commands/PutBucketEncryptionCommand.js +1 -0
  7. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +1 -0
  8. package/dist-es/commands/PutBucketLoggingCommand.js +1 -0
  9. package/dist-es/commands/PutBucketPolicyCommand.js +1 -0
  10. package/dist-es/commands/PutBucketReplicationCommand.js +1 -0
  11. package/dist-es/commands/PutBucketRequestPaymentCommand.js +1 -0
  12. package/dist-es/commands/PutBucketTaggingCommand.js +1 -0
  13. package/dist-es/commands/PutBucketVersioningCommand.js +1 -0
  14. package/dist-es/commands/PutBucketWebsiteCommand.js +1 -0
  15. package/dist-es/commands/PutObjectAclCommand.js +1 -0
  16. package/dist-es/commands/PutObjectCommand.js +1 -0
  17. package/dist-es/commands/PutObjectLegalHoldCommand.js +1 -0
  18. package/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -0
  19. package/dist-es/commands/PutObjectRetentionCommand.js +1 -0
  20. package/dist-es/commands/PutObjectTaggingCommand.js +1 -0
  21. package/dist-es/commands/PutPublicAccessBlockCommand.js +1 -0
  22. package/dist-es/commands/RestoreObjectCommand.js +1 -0
  23. package/dist-es/commands/UploadPartCommand.js +1 -0
  24. package/dist-es/protocols/Aws_restXml.js +2 -0
  25. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +1 -0
  26. package/dist-types/commands/CreateBucketCommand.d.ts +13 -13
  27. package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
  28. package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
  29. package/dist-types/commands/GetObjectCommand.d.ts +19 -19
  30. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +32 -32
  31. package/dist-types/commands/PutBucketVersioningCommand.d.ts +4 -2
  32. package/dist-types/commands/PutObjectCommand.d.ts +31 -30
  33. package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -1
  34. package/dist-types/models/models_0.d.ts +12 -0
  35. package/dist-types/models/models_1.d.ts +10 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  37. package/dist-types/ts3.4/models/models_1.d.ts +1 -0
  38. package/package.json +2 -2
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],
@@ -8992,6 +8994,7 @@ var _DeleteObjectsCommand = class _DeleteObjectsCommand extends import_smithy_cl
8992
8994
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
8993
8995
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
8994
8996
  requestAlgorithmMember: "ChecksumAlgorithm",
8997
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
8995
8998
  requestChecksumRequired: true
8996
8999
  }),
8997
9000
  (0, import_middleware_sdk_s39.getThrow200ExceptionsPlugin)(config)
@@ -9893,6 +9896,7 @@ var _PutBucketAccelerateConfigurationCommand = class _PutBucketAccelerateConfigu
9893
9896
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
9894
9897
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
9895
9898
  requestAlgorithmMember: "ChecksumAlgorithm",
9899
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
9896
9900
  requestChecksumRequired: false
9897
9901
  })
9898
9902
  ];
@@ -9916,6 +9920,7 @@ var _PutBucketAclCommand = class _PutBucketAclCommand extends import_smithy_clie
9916
9920
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
9917
9921
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
9918
9922
  requestAlgorithmMember: "ChecksumAlgorithm",
9923
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
9919
9924
  requestChecksumRequired: true
9920
9925
  })
9921
9926
  ];
@@ -9957,6 +9962,7 @@ var _PutBucketCorsCommand = class _PutBucketCorsCommand extends import_smithy_cl
9957
9962
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
9958
9963
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
9959
9964
  requestAlgorithmMember: "ChecksumAlgorithm",
9965
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
9960
9966
  requestChecksumRequired: true
9961
9967
  })
9962
9968
  ];
@@ -9980,6 +9986,7 @@ var _PutBucketEncryptionCommand = class _PutBucketEncryptionCommand extends impo
9980
9986
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
9981
9987
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
9982
9988
  requestAlgorithmMember: "ChecksumAlgorithm",
9989
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
9983
9990
  requestChecksumRequired: true
9984
9991
  })
9985
9992
  ];
@@ -10040,6 +10047,7 @@ var _PutBucketLifecycleConfigurationCommand = class _PutBucketLifecycleConfigura
10040
10047
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10041
10048
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10042
10049
  requestAlgorithmMember: "ChecksumAlgorithm",
10050
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10043
10051
  requestChecksumRequired: true
10044
10052
  }),
10045
10053
  (0, import_middleware_sdk_s352.getThrow200ExceptionsPlugin)(config)
@@ -10064,6 +10072,7 @@ var _PutBucketLoggingCommand = class _PutBucketLoggingCommand extends import_smi
10064
10072
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10065
10073
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10066
10074
  requestAlgorithmMember: "ChecksumAlgorithm",
10075
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10067
10076
  requestChecksumRequired: true
10068
10077
  })
10069
10078
  ];
@@ -10145,6 +10154,7 @@ var _PutBucketPolicyCommand = class _PutBucketPolicyCommand extends import_smith
10145
10154
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10146
10155
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10147
10156
  requestAlgorithmMember: "ChecksumAlgorithm",
10157
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10148
10158
  requestChecksumRequired: true
10149
10159
  })
10150
10160
  ];
@@ -10168,6 +10178,7 @@ var _PutBucketReplicationCommand = class _PutBucketReplicationCommand extends im
10168
10178
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10169
10179
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10170
10180
  requestAlgorithmMember: "ChecksumAlgorithm",
10181
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10171
10182
  requestChecksumRequired: true
10172
10183
  })
10173
10184
  ];
@@ -10191,6 +10202,7 @@ var _PutBucketRequestPaymentCommand = class _PutBucketRequestPaymentCommand exte
10191
10202
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10192
10203
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10193
10204
  requestAlgorithmMember: "ChecksumAlgorithm",
10205
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10194
10206
  requestChecksumRequired: true
10195
10207
  })
10196
10208
  ];
@@ -10214,6 +10226,7 @@ var _PutBucketTaggingCommand = class _PutBucketTaggingCommand extends import_smi
10214
10226
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10215
10227
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10216
10228
  requestAlgorithmMember: "ChecksumAlgorithm",
10229
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10217
10230
  requestChecksumRequired: true
10218
10231
  })
10219
10232
  ];
@@ -10237,6 +10250,7 @@ var _PutBucketVersioningCommand = class _PutBucketVersioningCommand extends impo
10237
10250
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10238
10251
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10239
10252
  requestAlgorithmMember: "ChecksumAlgorithm",
10253
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10240
10254
  requestChecksumRequired: true
10241
10255
  })
10242
10256
  ];
@@ -10260,6 +10274,7 @@ var _PutBucketWebsiteCommand = class _PutBucketWebsiteCommand extends import_smi
10260
10274
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10261
10275
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10262
10276
  requestAlgorithmMember: "ChecksumAlgorithm",
10277
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10263
10278
  requestChecksumRequired: true
10264
10279
  })
10265
10280
  ];
@@ -10284,6 +10299,7 @@ var _PutObjectAclCommand = class _PutObjectAclCommand extends import_smithy_clie
10284
10299
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10285
10300
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10286
10301
  requestAlgorithmMember: "ChecksumAlgorithm",
10302
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10287
10303
  requestChecksumRequired: true
10288
10304
  }),
10289
10305
  (0, import_middleware_sdk_s353.getThrow200ExceptionsPlugin)(config)
@@ -10310,6 +10326,7 @@ var _PutObjectCommand = class _PutObjectCommand extends import_smithy_client.Com
10310
10326
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10311
10327
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10312
10328
  requestAlgorithmMember: "ChecksumAlgorithm",
10329
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10313
10330
  requestChecksumRequired: false
10314
10331
  }),
10315
10332
  (0, import_middleware_sdk_s354.getCheckContentLengthHeaderPlugin)(config),
@@ -10336,6 +10353,7 @@ var _PutObjectLegalHoldCommand = class _PutObjectLegalHoldCommand extends import
10336
10353
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10337
10354
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10338
10355
  requestAlgorithmMember: "ChecksumAlgorithm",
10356
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10339
10357
  requestChecksumRequired: true
10340
10358
  }),
10341
10359
  (0, import_middleware_sdk_s355.getThrow200ExceptionsPlugin)(config)
@@ -10360,6 +10378,7 @@ var _PutObjectLockConfigurationCommand = class _PutObjectLockConfigurationComman
10360
10378
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10361
10379
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10362
10380
  requestAlgorithmMember: "ChecksumAlgorithm",
10381
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10363
10382
  requestChecksumRequired: true
10364
10383
  }),
10365
10384
  (0, import_middleware_sdk_s356.getThrow200ExceptionsPlugin)(config)
@@ -10384,6 +10403,7 @@ var _PutObjectRetentionCommand = class _PutObjectRetentionCommand extends import
10384
10403
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10385
10404
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10386
10405
  requestAlgorithmMember: "ChecksumAlgorithm",
10406
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10387
10407
  requestChecksumRequired: true
10388
10408
  }),
10389
10409
  (0, import_middleware_sdk_s357.getThrow200ExceptionsPlugin)(config)
@@ -10408,6 +10428,7 @@ var _PutObjectTaggingCommand = class _PutObjectTaggingCommand extends import_smi
10408
10428
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10409
10429
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10410
10430
  requestAlgorithmMember: "ChecksumAlgorithm",
10431
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10411
10432
  requestChecksumRequired: true
10412
10433
  }),
10413
10434
  (0, import_middleware_sdk_s358.getThrow200ExceptionsPlugin)(config)
@@ -10432,6 +10453,7 @@ var _PutPublicAccessBlockCommand = class _PutPublicAccessBlockCommand extends im
10432
10453
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10433
10454
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10434
10455
  requestAlgorithmMember: "ChecksumAlgorithm",
10456
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10435
10457
  requestChecksumRequired: true
10436
10458
  })
10437
10459
  ];
@@ -10455,6 +10477,7 @@ var _RestoreObjectCommand = class _RestoreObjectCommand extends import_smithy_cl
10455
10477
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10456
10478
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10457
10479
  requestAlgorithmMember: "ChecksumAlgorithm",
10480
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10458
10481
  requestChecksumRequired: false
10459
10482
  }),
10460
10483
  (0, import_middleware_sdk_s359.getThrow200ExceptionsPlugin)(config)
@@ -10509,6 +10532,7 @@ var _UploadPartCommand = class _UploadPartCommand extends import_smithy_client.C
10509
10532
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10510
10533
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10511
10534
  requestAlgorithmMember: "ChecksumAlgorithm",
10535
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
10512
10536
  requestChecksumRequired: false
10513
10537
  }),
10514
10538
  (0, import_middleware_sdk_s361.getThrow200ExceptionsPlugin)(config),
@@ -18,6 +18,7 @@ export class DeleteObjectsCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  getThrow200ExceptionsPlugin(config),
@@ -18,6 +18,7 @@ export class PutBucketAccelerateConfigurationCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: false,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketAclCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketCorsCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -19,6 +19,7 @@ export class PutBucketEncryptionCommand extends $Command
19
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
20
  getFlexibleChecksumsPlugin(config, {
21
21
  requestAlgorithmMember: "ChecksumAlgorithm",
22
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
22
23
  requestChecksumRequired: true,
23
24
  }),
24
25
  ];
@@ -19,6 +19,7 @@ export class PutBucketLifecycleConfigurationCommand extends $Command
19
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
20
  getFlexibleChecksumsPlugin(config, {
21
21
  requestAlgorithmMember: "ChecksumAlgorithm",
22
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
22
23
  requestChecksumRequired: true,
23
24
  }),
24
25
  getThrow200ExceptionsPlugin(config),
@@ -18,6 +18,7 @@ export class PutBucketLoggingCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketPolicyCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketReplicationCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketRequestPaymentCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketTaggingCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketVersioningCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -18,6 +18,7 @@ export class PutBucketWebsiteCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -19,6 +19,7 @@ export class PutObjectAclCommand extends $Command
19
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
20
  getFlexibleChecksumsPlugin(config, {
21
21
  requestAlgorithmMember: "ChecksumAlgorithm",
22
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
22
23
  requestChecksumRequired: true,
23
24
  }),
24
25
  getThrow200ExceptionsPlugin(config),
@@ -21,6 +21,7 @@ export class PutObjectCommand extends $Command
21
21
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
22
22
  getFlexibleChecksumsPlugin(config, {
23
23
  requestAlgorithmMember: "ChecksumAlgorithm",
24
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
24
25
  requestChecksumRequired: false,
25
26
  }),
26
27
  getCheckContentLengthHeaderPlugin(config),
@@ -18,6 +18,7 @@ export class PutObjectLegalHoldCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  getThrow200ExceptionsPlugin(config),
@@ -18,6 +18,7 @@ export class PutObjectLockConfigurationCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  getThrow200ExceptionsPlugin(config),
@@ -18,6 +18,7 @@ export class PutObjectRetentionCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  getThrow200ExceptionsPlugin(config),
@@ -18,6 +18,7 @@ export class PutObjectTaggingCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  getThrow200ExceptionsPlugin(config),
@@ -18,6 +18,7 @@ export class PutPublicAccessBlockCommand extends $Command
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
20
  requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
21
22
  requestChecksumRequired: true,
22
23
  }),
23
24
  ];
@@ -19,6 +19,7 @@ export class RestoreObjectCommand extends $Command
19
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
20
  getFlexibleChecksumsPlugin(config, {
21
21
  requestAlgorithmMember: "ChecksumAlgorithm",
22
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
22
23
  requestChecksumRequired: false,
23
24
  }),
24
25
  getThrow200ExceptionsPlugin(config),
@@ -21,6 +21,7 @@ export class UploadPartCommand extends $Command
21
21
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
22
22
  getFlexibleChecksumsPlugin(config, {
23
23
  requestAlgorithmMember: "ChecksumAlgorithm",
24
+ requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm",
24
25
  requestChecksumRequired: false,
25
26
  }),
26
27
  getThrow200ExceptionsPlugin(config),
@@ -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
  */
@@ -24,7 +24,7 @@ export interface PutObjectRetentionCommandOutput extends PutObjectRetentionOutpu
24
24
  declare const PutObjectRetentionCommand_base: {
25
25
  new (input: PutObjectRetentionCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (__0_0: PutObjectRetentionCommandInput): import("@smithy/smithy-client").CommandImpl<PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; /** @internal type navigation helper, not in runtime. */
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
30
  * <note>
@@ -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.699.0",
4
+ "version": "3.701.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",
@@ -33,7 +33,7 @@
33
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
- "@aws-sdk/middleware-flexible-checksums": "3.697.0",
36
+ "@aws-sdk/middleware-flexible-checksums": "3.701.0",
37
37
  "@aws-sdk/middleware-host-header": "3.696.0",
38
38
  "@aws-sdk/middleware-location-constraint": "3.696.0",
39
39
  "@aws-sdk/middleware-logger": "3.696.0",