@aws-sdk/client-s3 3.830.0 → 3.835.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 (44) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +141 -25
  3. package/dist-es/S3.js +2 -0
  4. package/dist-es/commands/RenameObjectCommand.js +28 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_1.js +12 -0
  7. package/dist-es/protocols/Aws_restXml.js +89 -17
  8. package/dist-types/S3.d.ts +7 -0
  9. package/dist-types/S3Client.d.ts +3 -2
  10. package/dist-types/commands/CopyObjectCommand.d.ts +9 -1
  11. package/dist-types/commands/CreateBucketCommand.d.ts +16 -1
  12. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +9 -1
  13. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  14. package/dist-types/commands/GetBucketAclCommand.d.ts +8 -1
  15. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  16. package/dist-types/commands/GetBucketLoggingCommand.d.ts +8 -1
  17. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +12 -0
  18. package/dist-types/commands/HeadObjectCommand.d.ts +1 -0
  19. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
  20. package/dist-types/commands/ListBucketsCommand.d.ts +8 -1
  21. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +8 -1
  22. package/dist-types/commands/ListObjectVersionsCommand.d.ts +8 -1
  23. package/dist-types/commands/ListObjectsCommand.d.ts +8 -1
  24. package/dist-types/commands/ListPartsCommand.d.ts +8 -1
  25. package/dist-types/commands/PutBucketAclCommand.d.ts +13 -2
  26. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  27. package/dist-types/commands/PutBucketLoggingCommand.d.ts +13 -2
  28. package/dist-types/commands/PutObjectAclCommand.d.ts +4 -1
  29. package/dist-types/commands/PutObjectCommand.d.ts +9 -1
  30. package/dist-types/commands/RenameObjectCommand.d.ts +142 -0
  31. package/dist-types/commands/index.d.ts +1 -0
  32. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  33. package/dist-types/models/models_0.d.ts +41 -9
  34. package/dist-types/models/models_1.d.ts +123 -0
  35. package/dist-types/protocols/Aws_restXml.d.ts +9 -0
  36. package/dist-types/ts3.4/S3.d.ts +17 -0
  37. package/dist-types/ts3.4/S3Client.d.ts +6 -0
  38. package/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +47 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  40. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  41. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  42. package/dist-types/ts3.4/models/models_1.d.ts +23 -0
  43. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +12 -0
  44. package/package.json +18 -16
package/README.md CHANGED
@@ -946,6 +946,14 @@ PutPublicAccessBlock
946
946
 
947
947
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/PutPublicAccessBlockCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/PutPublicAccessBlockCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/PutPublicAccessBlockCommandOutput/)
948
948
 
949
+ </details>
950
+ <details>
951
+ <summary>
952
+ RenameObject
953
+ </summary>
954
+
955
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/RenameObjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/RenameObjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/RenameObjectCommandOutput/)
956
+
949
957
  </details>
950
958
  <details>
951
959
  <summary>
package/dist-cjs/index.js CHANGED
@@ -120,6 +120,7 @@ __export(index_exports, {
120
120
  HeadObjectCommand: () => HeadObjectCommand,
121
121
  HeadObjectOutputFilterSensitiveLog: () => HeadObjectOutputFilterSensitiveLog,
122
122
  HeadObjectRequestFilterSensitiveLog: () => HeadObjectRequestFilterSensitiveLog,
123
+ IdempotencyParameterMismatch: () => IdempotencyParameterMismatch,
123
124
  IntelligentTieringAccessTier: () => IntelligentTieringAccessTier,
124
125
  IntelligentTieringStatus: () => IntelligentTieringStatus,
125
126
  InvalidObjectState: () => InvalidObjectState,
@@ -205,6 +206,7 @@ __export(index_exports, {
205
206
  PutObjectTaggingCommand: () => PutObjectTaggingCommand,
206
207
  PutPublicAccessBlockCommand: () => PutPublicAccessBlockCommand,
207
208
  QuoteFields: () => QuoteFields,
209
+ RenameObjectCommand: () => RenameObjectCommand,
208
210
  ReplicaModificationsStatus: () => ReplicaModificationsStatus,
209
211
  ReplicationRuleStatus: () => ReplicationRuleStatus,
210
212
  ReplicationStatus: () => ReplicationStatus,
@@ -975,6 +977,7 @@ var import_xml_builder = require("@aws-sdk/xml-builder");
975
977
  var import_core2 = require("@smithy/core");
976
978
  var import_protocol_http = require("@smithy/protocol-http");
977
979
 
980
+ var import_uuid = require("uuid");
978
981
 
979
982
  // src/models/models_1.ts
980
983
 
@@ -1054,6 +1057,24 @@ var TooManyParts = class _TooManyParts extends S3ServiceException {
1054
1057
  Object.setPrototypeOf(this, _TooManyParts.prototype);
1055
1058
  }
1056
1059
  };
1060
+ var IdempotencyParameterMismatch = class _IdempotencyParameterMismatch extends S3ServiceException {
1061
+ static {
1062
+ __name(this, "IdempotencyParameterMismatch");
1063
+ }
1064
+ name = "IdempotencyParameterMismatch";
1065
+ $fault = "client";
1066
+ /**
1067
+ * @internal
1068
+ */
1069
+ constructor(opts) {
1070
+ super({
1071
+ name: "IdempotencyParameterMismatch",
1072
+ $fault: "client",
1073
+ ...opts
1074
+ });
1075
+ Object.setPrototypeOf(this, _IdempotencyParameterMismatch.prototype);
1076
+ }
1077
+ };
1057
1078
  var ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException {
1058
1079
  static {
1059
1080
  __name(this, "ObjectAlreadyInActiveTierError");
@@ -1477,7 +1498,9 @@ var se_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, cont
1477
1498
  }, "se_DeleteBucketEncryptionCommand");
1478
1499
  var se_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
1479
1500
  const b = (0, import_core2.requestBuilder)(input, context);
1480
- const headers = {};
1501
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1502
+ [_xaebo]: input[_EBO]
1503
+ });
1481
1504
  b.bp("/");
1482
1505
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
1483
1506
  const query = (0, import_smithy_client.map)({
@@ -1769,7 +1792,9 @@ var se_GetBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context
1769
1792
  }, "se_GetBucketEncryptionCommand");
1770
1793
  var se_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
1771
1794
  const b = (0, import_core2.requestBuilder)(input, context);
1772
- const headers = {};
1795
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1796
+ [_xaebo]: input[_EBO]
1797
+ });
1773
1798
  b.bp("/");
1774
1799
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
1775
1800
  const query = (0, import_smithy_client.map)({
@@ -2224,7 +2249,9 @@ var se_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (
2224
2249
  }, "se_ListBucketAnalyticsConfigurationsCommand");
2225
2250
  var se_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
2226
2251
  const b = (0, import_core2.requestBuilder)(input, context);
2227
- const headers = {};
2252
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2253
+ [_xaebo]: input[_EBO]
2254
+ });
2228
2255
  b.bp("/");
2229
2256
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
2230
2257
  const query = (0, import_smithy_client.map)({
@@ -2530,9 +2557,10 @@ var se_PutBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context
2530
2557
  }, "se_PutBucketEncryptionCommand");
2531
2558
  var se_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
2532
2559
  const b = (0, import_core2.requestBuilder)(input, context);
2533
- const headers = {
2534
- "content-type": "application/xml"
2535
- };
2560
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2561
+ "content-type": "application/xml",
2562
+ [_xaebo]: input[_EBO]
2563
+ });
2536
2564
  b.bp("/");
2537
2565
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
2538
2566
  const query = (0, import_smithy_client.map)({
@@ -3064,6 +3092,30 @@ var se_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, contex
3064
3092
  b.m("PUT").h(headers).q(query).b(body);
3065
3093
  return b.build();
3066
3094
  }, "se_PutPublicAccessBlockCommand");
3095
+ var se_RenameObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
3096
+ const b = (0, import_core2.requestBuilder)(input, context);
3097
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
3098
+ [_xars]: input[_RS],
3099
+ [_im]: input[_DIM],
3100
+ [_inm]: input[_DINM],
3101
+ [_ims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_DIMS]), () => (0, import_smithy_client.dateToUtcString)(input[_DIMS]).toString()],
3102
+ [_ius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_DIUS]), () => (0, import_smithy_client.dateToUtcString)(input[_DIUS]).toString()],
3103
+ [_xarsim]: input[_SIM],
3104
+ [_xarsinm]: input[_SINM],
3105
+ [_xarsims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_SIMS]), () => (0, import_smithy_client.dateToUtcString)(input[_SIMS]).toString()],
3106
+ [_xarsius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_SIUS]), () => (0, import_smithy_client.dateToUtcString)(input[_SIUS]).toString()],
3107
+ [_xact_]: input[_CTl] ?? (0, import_uuid.v4)()
3108
+ });
3109
+ b.bp("/{Key+}");
3110
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
3111
+ b.p("Key", () => input.Key, "{Key+}", true);
3112
+ const query = (0, import_smithy_client.map)({
3113
+ [_rO]: [, ""]
3114
+ });
3115
+ let body;
3116
+ b.m("PUT").h(headers).q(query).b(body);
3117
+ return b.build();
3118
+ }, "se_RenameObjectCommand");
3067
3119
  var se_RestoreObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
3068
3120
  const b = (0, import_core2.requestBuilder)(input, context);
3069
3121
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
@@ -3234,7 +3286,7 @@ var se_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (input, cont
3234
3286
  () => (0, import_smithy_client.serializeDateTime)(input[_OLRUD]).toString()
3235
3287
  ],
3236
3288
  [_xafhxampc]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_PC]), () => input[_PC].toString()],
3237
- [_xafhxars]: input[_RS],
3289
+ [_xafhxars]: input[_RSe],
3238
3290
  [_xafhxarc]: input[_RC],
3239
3291
  [_xafhxar]: input[_Re],
3240
3292
  [_xafhxasse]: input[_SSE],
@@ -3944,7 +3996,7 @@ var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
3944
3996
  [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
3945
3997
  [_SC]: [, output.headers[_xasc]],
3946
3998
  [_RC]: [, output.headers[_xarc]],
3947
- [_RS]: [, output.headers[_xars]],
3999
+ [_RSe]: [, output.headers[_xars_]],
3948
4000
  [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xampc])],
3949
4001
  [_TC]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatc])],
3950
4002
  [_OLM]: [, output.headers[_xaolm]],
@@ -4139,8 +4191,9 @@ var de_HeadObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
4139
4191
  [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
4140
4192
  [_SC]: [, output.headers[_xasc]],
4141
4193
  [_RC]: [, output.headers[_xarc]],
4142
- [_RS]: [, output.headers[_xars]],
4194
+ [_RSe]: [, output.headers[_xars_]],
4143
4195
  [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xampc])],
4196
+ [_TC]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatc])],
4144
4197
  [_OLM]: [, output.headers[_xaolm]],
4145
4198
  [_OLRUD]: [
4146
4199
  () => void 0 !== output.headers[_xaolrud],
@@ -4829,6 +4882,16 @@ var de_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, conte
4829
4882
  await (0, import_smithy_client.collectBody)(output.body, context);
4830
4883
  return contents;
4831
4884
  }, "de_PutPublicAccessBlockCommand");
4885
+ var de_RenameObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
4886
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4887
+ return de_CommandError(output, context);
4888
+ }
4889
+ const contents = (0, import_smithy_client.map)({
4890
+ $metadata: deserializeMetadata(output)
4891
+ });
4892
+ await (0, import_smithy_client.collectBody)(output.body, context);
4893
+ return contents;
4894
+ }, "de_RenameObjectCommand");
4832
4895
  var de_RestoreObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
4833
4896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4834
4897
  return de_CommandError(output, context);
@@ -4945,6 +5008,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
4945
5008
  case "TooManyParts":
4946
5009
  case "com.amazonaws.s3#TooManyParts":
4947
5010
  throw await de_TooManyPartsRes(parsedOutput, context);
5011
+ case "IdempotencyParameterMismatch":
5012
+ case "com.amazonaws.s3#IdempotencyParameterMismatch":
5013
+ throw await de_IdempotencyParameterMismatchRes(parsedOutput, context);
4948
5014
  case "ObjectAlreadyInActiveTierError":
4949
5015
  case "com.amazonaws.s3#ObjectAlreadyInActiveTierError":
4950
5016
  throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context);
@@ -4985,6 +5051,15 @@ var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, c
4985
5051
  });
4986
5052
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4987
5053
  }, "de_EncryptionTypeMismatchRes");
5054
+ var de_IdempotencyParameterMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
5055
+ const contents = (0, import_smithy_client.map)({});
5056
+ const data = parsedOutput.body;
5057
+ const exception = new IdempotencyParameterMismatch({
5058
+ $metadata: deserializeMetadata(parsedOutput),
5059
+ ...contents
5060
+ });
5061
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
5062
+ }, "de_IdempotencyParameterMismatchRes");
4988
5063
  var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4989
5064
  const contents = (0, import_smithy_client.map)({});
4990
5065
  const data = parsedOutput.body;
@@ -5108,7 +5183,7 @@ var de_SelectObjectContentEventStream = /* @__PURE__ */ __name((output, context)
5108
5183
  End: await de_EndEvent_event(event["End"], context)
5109
5184
  };
5110
5185
  }
5111
- return { $unknown: output };
5186
+ return { $unknown: event };
5112
5187
  });
5113
5188
  }, "de_SelectObjectContentEventStream");
5114
5189
  var de_ContinuationEvent_event = /* @__PURE__ */ __name(async (output, context) => {
@@ -7391,8 +7466,8 @@ var de__Object = /* @__PURE__ */ __name((output, context) => {
7391
7466
  if (output[_O] != null) {
7392
7467
  contents[_O] = de_Owner(output[_O], context);
7393
7468
  }
7394
- if (output[_RSe] != null) {
7395
- contents[_RSe] = de_RestoreStatus(output[_RSe], context);
7469
+ if (output[_RSes] != null) {
7470
+ contents[_RSes] = de_RestoreStatus(output[_RSes], context);
7396
7471
  }
7397
7472
  return contents;
7398
7473
  }, "de__Object");
@@ -7494,8 +7569,8 @@ var de_ObjectVersion = /* @__PURE__ */ __name((output, context) => {
7494
7569
  if (output[_O] != null) {
7495
7570
  contents[_O] = de_Owner(output[_O], context);
7496
7571
  }
7497
- if (output[_RSe] != null) {
7498
- contents[_RSe] = de_RestoreStatus(output[_RSe], context);
7572
+ if (output[_RSes] != null) {
7573
+ contents[_RSes] = de_RestoreStatus(output[_RSes], context);
7499
7574
  }
7500
7575
  return contents;
7501
7576
  }, "de_ObjectVersion");
@@ -8129,6 +8204,7 @@ var _CSVI = "CopySourceVersionId";
8129
8204
  var _CSVIn = "CSVInput";
8130
8205
  var _CSVO = "CSVOutput";
8131
8206
  var _CT = "ChecksumType";
8207
+ var _CTl = "ClientToken";
8132
8208
  var _CTo = "ContentType";
8133
8209
  var _CTom = "CompressionType";
8134
8210
  var _CTon = "ContinuationToken";
@@ -8140,6 +8216,10 @@ var _Con = "Condition";
8140
8216
  var _D = "Delimiter";
8141
8217
  var _DAI = "DaysAfterInitiation";
8142
8218
  var _DE = "DataExport";
8219
+ var _DIM = "DestinationIfMatch";
8220
+ var _DIMS = "DestinationIfModifiedSince";
8221
+ var _DINM = "DestinationIfNoneMatch";
8222
+ var _DIUS = "DestinationIfUnmodifiedSince";
8143
8223
  var _DM = "DeleteMarker";
8144
8224
  var _DMR = "DeleteMarkerReplication";
8145
8225
  var _DMRS = "DeleteMarkerReplicationStatus";
@@ -8405,8 +8485,9 @@ var _RRe = "ReplicationRule";
8405
8485
  var _RRes = "RestoreRequest";
8406
8486
  var _RRo = "RoutingRules";
8407
8487
  var _RRou = "RoutingRule";
8408
- var _RS = "ReplicationStatus";
8409
- var _RSe = "RestoreStatus";
8488
+ var _RS = "RenameSource";
8489
+ var _RSe = "ReplicationStatus";
8490
+ var _RSes = "RestoreStatus";
8410
8491
  var _RT = "RequestToken";
8411
8492
  var _RTS = "ReplicationTimeStatus";
8412
8493
  var _RTV = "ReplicationTimeValue";
@@ -8427,6 +8508,10 @@ var _SCADE = "StorageClassAnalysisDataExport";
8427
8508
  var _SCASV = "StorageClassAnalysisSchemaVersion";
8428
8509
  var _SCt = "StatusCode";
8429
8510
  var _SDV = "SkipDestinationValidation";
8511
+ var _SIM = "SourceIfMatch";
8512
+ var _SIMS = "SourceIfModifiedSince";
8513
+ var _SINM = "SourceIfNoneMatch";
8514
+ var _SIUS = "SourceIfUnmodifiedSince";
8430
8515
  var _SK = "SSE-KMS";
8431
8516
  var _SKEO = "SseKmsEncryptedObjects";
8432
8517
  var _SKEOS = "SseKmsEncryptedObjectsStatus";
@@ -8567,6 +8652,7 @@ var _pS = "policyStatus";
8567
8652
  var _pnm = "part-number-marker";
8568
8653
  var _pr = "prefix";
8569
8654
  var _r = "replication";
8655
+ var _rO = "renameObject";
8570
8656
  var _rP = "requestPayment";
8571
8657
  var _ra = "range";
8572
8658
  var _rcc = "response-cache-control";
@@ -8624,6 +8710,7 @@ var _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key";
8624
8710
  var _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5";
8625
8711
  var _xacsvi = "x-amz-copy-source-version-id";
8626
8712
  var _xact = "x-amz-checksum-type";
8713
+ var _xact_ = "x-amz-client-token";
8627
8714
  var _xadm = "x-amz-delete-marker";
8628
8715
  var _xae = "x-amz-expiration";
8629
8716
  var _xaebo = "x-amz-expected-bucket-owner";
@@ -8690,7 +8777,12 @@ var _xarc = "x-amz-request-charged";
8690
8777
  var _xarop = "x-amz-restore-output-path";
8691
8778
  var _xarp = "x-amz-request-payer";
8692
8779
  var _xarr = "x-amz-request-route";
8693
- var _xars = "x-amz-replication-status";
8780
+ var _xars = "x-amz-rename-source";
8781
+ var _xars_ = "x-amz-replication-status";
8782
+ var _xarsim = "x-amz-rename-source-if-match";
8783
+ var _xarsims = "x-amz-rename-source-if-modified-since";
8784
+ var _xarsinm = "x-amz-rename-source-if-none-match";
8785
+ var _xarsius = "x-amz-rename-source-if-unmodified-since";
8694
8786
  var _xart = "x-amz-request-token";
8695
8787
  var _xasc = "x-amz-storage-class";
8696
8788
  var _xasca = "x-amz-sdk-checksum-algorithm";
@@ -10836,9 +10928,30 @@ var PutPublicAccessBlockCommand = class extends import_smithy_client.Command.cla
10836
10928
  }
10837
10929
  };
10838
10930
 
10931
+ // src/commands/RenameObjectCommand.ts
10932
+ var import_middleware_sdk_s360 = require("@aws-sdk/middleware-sdk-s3");
10933
+
10934
+
10935
+
10936
+ var RenameObjectCommand = class extends import_smithy_client.Command.classBuilder().ep({
10937
+ ...commonParams,
10938
+ Bucket: { type: "contextParams", name: "Bucket" },
10939
+ Key: { type: "contextParams", name: "Key" }
10940
+ }).m(function(Command, cs, config, o) {
10941
+ return [
10942
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
10943
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10944
+ (0, import_middleware_sdk_s360.getThrow200ExceptionsPlugin)(config)
10945
+ ];
10946
+ }).s("AmazonS3", "RenameObject", {}).n("S3Client", "RenameObjectCommand").f(void 0, void 0).ser(se_RenameObjectCommand).de(de_RenameObjectCommand).build() {
10947
+ static {
10948
+ __name(this, "RenameObjectCommand");
10949
+ }
10950
+ };
10951
+
10839
10952
  // src/commands/RestoreObjectCommand.ts
10840
10953
 
10841
- var import_middleware_sdk_s360 = require("@aws-sdk/middleware-sdk-s3");
10954
+ var import_middleware_sdk_s361 = require("@aws-sdk/middleware-sdk-s3");
10842
10955
 
10843
10956
 
10844
10957
 
@@ -10853,7 +10966,7 @@ var RestoreObjectCommand = class extends import_smithy_client.Command.classBuild
10853
10966
  requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
10854
10967
  requestChecksumRequired: false
10855
10968
  }),
10856
- (0, import_middleware_sdk_s360.getThrow200ExceptionsPlugin)(config)
10969
+ (0, import_middleware_sdk_s361.getThrow200ExceptionsPlugin)(config)
10857
10970
  ];
10858
10971
  }).s("AmazonS3", "RestoreObject", {}).n("S3Client", "RestoreObjectCommand").f(RestoreObjectRequestFilterSensitiveLog, void 0).ser(se_RestoreObjectCommand).de(de_RestoreObjectCommand).build() {
10859
10972
  static {
@@ -10862,7 +10975,7 @@ var RestoreObjectCommand = class extends import_smithy_client.Command.classBuild
10862
10975
  };
10863
10976
 
10864
10977
  // src/commands/SelectObjectContentCommand.ts
10865
- var import_middleware_sdk_s361 = require("@aws-sdk/middleware-sdk-s3");
10978
+ var import_middleware_sdk_s362 = require("@aws-sdk/middleware-sdk-s3");
10866
10979
 
10867
10980
 
10868
10981
 
@@ -10874,7 +10987,7 @@ var SelectObjectContentCommand = class extends import_smithy_client.Command.clas
10874
10987
  return [
10875
10988
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
10876
10989
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10877
- (0, import_middleware_sdk_s361.getThrow200ExceptionsPlugin)(config),
10990
+ (0, import_middleware_sdk_s362.getThrow200ExceptionsPlugin)(config),
10878
10991
  (0, import_middleware_ssec.getSsecPlugin)(config)
10879
10992
  ];
10880
10993
  }).s("AmazonS3", "SelectObjectContent", {
@@ -10892,7 +11005,7 @@ var SelectObjectContentCommand = class extends import_smithy_client.Command.clas
10892
11005
 
10893
11006
  // src/commands/UploadPartCommand.ts
10894
11007
 
10895
- var import_middleware_sdk_s362 = require("@aws-sdk/middleware-sdk-s3");
11008
+ var import_middleware_sdk_s363 = require("@aws-sdk/middleware-sdk-s3");
10896
11009
 
10897
11010
 
10898
11011
 
@@ -10909,7 +11022,7 @@ var UploadPartCommand = class extends import_smithy_client.Command.classBuilder(
10909
11022
  requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
10910
11023
  requestChecksumRequired: false
10911
11024
  }),
10912
- (0, import_middleware_sdk_s362.getThrow200ExceptionsPlugin)(config),
11025
+ (0, import_middleware_sdk_s363.getThrow200ExceptionsPlugin)(config),
10913
11026
  (0, import_middleware_ssec.getSsecPlugin)(config)
10914
11027
  ];
10915
11028
  }).s("AmazonS3", "UploadPart", {}).n("S3Client", "UploadPartCommand").f(UploadPartRequestFilterSensitiveLog, UploadPartOutputFilterSensitiveLog).ser(se_UploadPartCommand).de(de_UploadPartCommand).build() {
@@ -10919,7 +11032,7 @@ var UploadPartCommand = class extends import_smithy_client.Command.classBuilder(
10919
11032
  };
10920
11033
 
10921
11034
  // src/commands/UploadPartCopyCommand.ts
10922
- var import_middleware_sdk_s363 = require("@aws-sdk/middleware-sdk-s3");
11035
+ var import_middleware_sdk_s364 = require("@aws-sdk/middleware-sdk-s3");
10923
11036
 
10924
11037
 
10925
11038
 
@@ -10932,7 +11045,7 @@ var UploadPartCopyCommand = class extends import_smithy_client.Command.classBuil
10932
11045
  return [
10933
11046
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
10934
11047
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10935
- (0, import_middleware_sdk_s363.getThrow200ExceptionsPlugin)(config),
11048
+ (0, import_middleware_sdk_s364.getThrow200ExceptionsPlugin)(config),
10936
11049
  (0, import_middleware_ssec.getSsecPlugin)(config)
10937
11050
  ];
10938
11051
  }).s("AmazonS3", "UploadPartCopy", {}).n("S3Client", "UploadPartCopyCommand").f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog).ser(se_UploadPartCopyCommand).de(de_UploadPartCopyCommand).build() {
@@ -11054,6 +11167,7 @@ var commands = {
11054
11167
  PutObjectRetentionCommand,
11055
11168
  PutObjectTaggingCommand,
11056
11169
  PutPublicAccessBlockCommand,
11170
+ RenameObjectCommand,
11057
11171
  RestoreObjectCommand,
11058
11172
  SelectObjectContentCommand,
11059
11173
  UploadPartCommand,
@@ -11285,6 +11399,7 @@ var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
11285
11399
  PutObjectRetentionCommand,
11286
11400
  PutObjectTaggingCommand,
11287
11401
  PutPublicAccessBlockCommand,
11402
+ RenameObjectCommand,
11288
11403
  RestoreObjectCommand,
11289
11404
  SelectObjectContentCommand,
11290
11405
  UploadPartCommand,
@@ -11402,6 +11517,7 @@ var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
11402
11517
  InvalidRequest,
11403
11518
  InvalidWriteOffset,
11404
11519
  TooManyParts,
11520
+ IdempotencyParameterMismatch,
11405
11521
  ObjectAlreadyInActiveTierError,
11406
11522
  Tier,
11407
11523
  ExpressionType,
package/dist-es/S3.js CHANGED
@@ -92,6 +92,7 @@ import { PutObjectLockConfigurationCommand, } from "./commands/PutObjectLockConf
92
92
  import { PutObjectRetentionCommand, } from "./commands/PutObjectRetentionCommand";
93
93
  import { PutObjectTaggingCommand, } from "./commands/PutObjectTaggingCommand";
94
94
  import { PutPublicAccessBlockCommand, } from "./commands/PutPublicAccessBlockCommand";
95
+ import { RenameObjectCommand, } from "./commands/RenameObjectCommand";
95
96
  import { RestoreObjectCommand, } from "./commands/RestoreObjectCommand";
96
97
  import { SelectObjectContentCommand, } from "./commands/SelectObjectContentCommand";
97
98
  import { UploadPartCommand } from "./commands/UploadPartCommand";
@@ -192,6 +193,7 @@ const commands = {
192
193
  PutObjectRetentionCommand,
193
194
  PutObjectTaggingCommand,
194
195
  PutPublicAccessBlockCommand,
196
+ RenameObjectCommand,
195
197
  RestoreObjectCommand,
196
198
  SelectObjectContentCommand,
197
199
  UploadPartCommand,
@@ -0,0 +1,28 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
+ import { getSerdePlugin } from "@smithy/middleware-serde";
4
+ import { Command as $Command } from "@smithy/smithy-client";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
+ import { de_RenameObjectCommand, se_RenameObjectCommand } from "../protocols/Aws_restXml";
7
+ export { $Command };
8
+ export class RenameObjectCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ Bucket: { type: "contextParams", name: "Bucket" },
13
+ Key: { type: "contextParams", name: "Key" },
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ getSerdePlugin(config, this.serialize, this.deserialize),
18
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
20
+ ];
21
+ })
22
+ .s("AmazonS3", "RenameObject", {})
23
+ .n("S3Client", "RenameObjectCommand")
24
+ .f(void 0, void 0)
25
+ .ser(se_RenameObjectCommand)
26
+ .de(de_RenameObjectCommand)
27
+ .build() {
28
+ }
@@ -91,6 +91,7 @@ export * from "./PutObjectLockConfigurationCommand";
91
91
  export * from "./PutObjectRetentionCommand";
92
92
  export * from "./PutObjectTaggingCommand";
93
93
  export * from "./PutPublicAccessBlockCommand";
94
+ export * from "./RenameObjectCommand";
94
95
  export * from "./RestoreObjectCommand";
95
96
  export * from "./SelectObjectContentCommand";
96
97
  export * from "./UploadPartCommand";
@@ -53,6 +53,18 @@ export class TooManyParts extends __BaseException {
53
53
  Object.setPrototypeOf(this, TooManyParts.prototype);
54
54
  }
55
55
  }
56
+ export class IdempotencyParameterMismatch extends __BaseException {
57
+ name = "IdempotencyParameterMismatch";
58
+ $fault = "client";
59
+ constructor(opts) {
60
+ super({
61
+ name: "IdempotencyParameterMismatch",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ Object.setPrototypeOf(this, IdempotencyParameterMismatch.prototype);
66
+ }
67
+ }
56
68
  export class ObjectAlreadyInActiveTierError extends __BaseException {
57
69
  name = "ObjectAlreadyInActiveTierError";
58
70
  $fault = "client";