@aws-sdk/client-sqs 3.345.0 → 3.347.1

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 (51) hide show
  1. package/README.md +34 -6
  2. package/dist-cjs/SQS.js +6 -0
  3. package/dist-cjs/commands/CancelMessageMoveTaskCommand.js +46 -0
  4. package/dist-cjs/commands/ListMessageMoveTasksCommand.js +46 -0
  5. package/dist-cjs/commands/StartMessageMoveTaskCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +28 -14
  8. package/dist-cjs/protocols/Aws_query.js +247 -1
  9. package/dist-es/SQS.js +6 -0
  10. package/dist-es/commands/CancelMessageMoveTaskCommand.js +42 -0
  11. package/dist-es/commands/ListMessageMoveTasksCommand.js +42 -0
  12. package/dist-es/commands/StartMessageMoveTaskCommand.js +42 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +25 -12
  15. package/dist-es/protocols/Aws_query.js +242 -2
  16. package/dist-types/SQS.d.ts +31 -6
  17. package/dist-types/SQSClient.d.ts +15 -8
  18. package/dist-types/commands/AddPermissionCommand.d.ts +17 -23
  19. package/dist-types/commands/CancelMessageMoveTaskCommand.d.ts +92 -0
  20. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +9 -12
  21. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +22 -13
  22. package/dist-types/commands/CreateQueueCommand.d.ts +17 -16
  23. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +6 -10
  24. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteQueueCommand.d.ts +13 -8
  26. package/dist-types/commands/GetQueueUrlCommand.d.ts +7 -4
  27. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +11 -10
  28. package/dist-types/commands/ListMessageMoveTasksCommand.d.ts +93 -0
  29. package/dist-types/commands/ListQueueTagsCommand.d.ts +3 -2
  30. package/dist-types/commands/ListQueuesCommand.d.ts +12 -10
  31. package/dist-types/commands/PurgeQueueCommand.d.ts +7 -5
  32. package/dist-types/commands/ReceiveMessageCommand.d.ts +25 -14
  33. package/dist-types/commands/RemovePermissionCommand.d.ts +3 -2
  34. package/dist-types/commands/SendMessageBatchCommand.d.ts +14 -13
  35. package/dist-types/commands/SetQueueAttributesCommand.d.ts +7 -3
  36. package/dist-types/commands/StartMessageMoveTaskCommand.d.ts +100 -0
  37. package/dist-types/commands/TagQueueCommand.d.ts +1 -1
  38. package/dist-types/commands/UntagQueueCommand.d.ts +1 -1
  39. package/dist-types/commands/index.d.ts +3 -0
  40. package/dist-types/index.d.ts +10 -6
  41. package/dist-types/models/models_0.d.ts +852 -359
  42. package/dist-types/protocols/Aws_query.d.ts +27 -0
  43. package/dist-types/ts3.4/SQS.d.ts +51 -0
  44. package/dist-types/ts3.4/SQSClient.d.ts +18 -0
  45. package/dist-types/ts3.4/commands/CancelMessageMoveTaskCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/ListMessageMoveTasksCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/StartMessageMoveTaskCommand.d.ts +42 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +47 -7
  50. package/dist-types/ts3.4/protocols/Aws_query.d.ts +36 -0
  51. package/package.json +31 -31
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagQueueCommand = exports.de_TagQueueCommand = exports.de_SetQueueAttributesCommand = exports.de_SendMessageBatchCommand = exports.de_SendMessageCommand = exports.de_RemovePermissionCommand = exports.de_ReceiveMessageCommand = exports.de_PurgeQueueCommand = exports.de_ListQueueTagsCommand = exports.de_ListQueuesCommand = exports.de_ListDeadLetterSourceQueuesCommand = exports.de_GetQueueUrlCommand = exports.de_GetQueueAttributesCommand = exports.de_DeleteQueueCommand = exports.de_DeleteMessageBatchCommand = exports.de_DeleteMessageCommand = exports.de_CreateQueueCommand = exports.de_ChangeMessageVisibilityBatchCommand = exports.de_ChangeMessageVisibilityCommand = exports.de_AddPermissionCommand = exports.se_UntagQueueCommand = exports.se_TagQueueCommand = exports.se_SetQueueAttributesCommand = exports.se_SendMessageBatchCommand = exports.se_SendMessageCommand = exports.se_RemovePermissionCommand = exports.se_ReceiveMessageCommand = exports.se_PurgeQueueCommand = exports.se_ListQueueTagsCommand = exports.se_ListQueuesCommand = exports.se_ListDeadLetterSourceQueuesCommand = exports.se_GetQueueUrlCommand = exports.se_GetQueueAttributesCommand = exports.se_DeleteQueueCommand = exports.se_DeleteMessageBatchCommand = exports.se_DeleteMessageCommand = exports.se_CreateQueueCommand = exports.se_ChangeMessageVisibilityBatchCommand = exports.se_ChangeMessageVisibilityCommand = exports.se_AddPermissionCommand = void 0;
3
+ exports.de_UntagQueueCommand = exports.de_TagQueueCommand = exports.de_StartMessageMoveTaskCommand = exports.de_SetQueueAttributesCommand = exports.de_SendMessageBatchCommand = exports.de_SendMessageCommand = exports.de_RemovePermissionCommand = exports.de_ReceiveMessageCommand = exports.de_PurgeQueueCommand = exports.de_ListQueueTagsCommand = exports.de_ListQueuesCommand = exports.de_ListMessageMoveTasksCommand = exports.de_ListDeadLetterSourceQueuesCommand = exports.de_GetQueueUrlCommand = exports.de_GetQueueAttributesCommand = exports.de_DeleteQueueCommand = exports.de_DeleteMessageBatchCommand = exports.de_DeleteMessageCommand = exports.de_CreateQueueCommand = exports.de_ChangeMessageVisibilityBatchCommand = exports.de_ChangeMessageVisibilityCommand = exports.de_CancelMessageMoveTaskCommand = exports.de_AddPermissionCommand = exports.se_UntagQueueCommand = exports.se_TagQueueCommand = exports.se_StartMessageMoveTaskCommand = exports.se_SetQueueAttributesCommand = exports.se_SendMessageBatchCommand = exports.se_SendMessageCommand = exports.se_RemovePermissionCommand = exports.se_ReceiveMessageCommand = exports.se_PurgeQueueCommand = exports.se_ListQueueTagsCommand = exports.se_ListQueuesCommand = exports.se_ListMessageMoveTasksCommand = exports.se_ListDeadLetterSourceQueuesCommand = exports.se_GetQueueUrlCommand = exports.se_GetQueueAttributesCommand = exports.se_DeleteQueueCommand = exports.se_DeleteMessageBatchCommand = exports.se_DeleteMessageCommand = exports.se_CreateQueueCommand = exports.se_ChangeMessageVisibilityBatchCommand = exports.se_ChangeMessageVisibilityCommand = exports.se_CancelMessageMoveTaskCommand = exports.se_AddPermissionCommand = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const fast_xml_parser_1 = require("fast-xml-parser");
@@ -17,6 +17,17 @@ const se_AddPermissionCommand = async (input, context) => {
17
17
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
18
  };
19
19
  exports.se_AddPermissionCommand = se_AddPermissionCommand;
20
+ const se_CancelMessageMoveTaskCommand = async (input, context) => {
21
+ const headers = SHARED_HEADERS;
22
+ let body;
23
+ body = buildFormUrlencodedString({
24
+ ...se_CancelMessageMoveTaskRequest(input, context),
25
+ Action: "CancelMessageMoveTask",
26
+ Version: "2012-11-05",
27
+ });
28
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
+ };
30
+ exports.se_CancelMessageMoveTaskCommand = se_CancelMessageMoveTaskCommand;
20
31
  const se_ChangeMessageVisibilityCommand = async (input, context) => {
21
32
  const headers = SHARED_HEADERS;
22
33
  let body;
@@ -116,6 +127,17 @@ const se_ListDeadLetterSourceQueuesCommand = async (input, context) => {
116
127
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
128
  };
118
129
  exports.se_ListDeadLetterSourceQueuesCommand = se_ListDeadLetterSourceQueuesCommand;
130
+ const se_ListMessageMoveTasksCommand = async (input, context) => {
131
+ const headers = SHARED_HEADERS;
132
+ let body;
133
+ body = buildFormUrlencodedString({
134
+ ...se_ListMessageMoveTasksRequest(input, context),
135
+ Action: "ListMessageMoveTasks",
136
+ Version: "2012-11-05",
137
+ });
138
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
+ };
140
+ exports.se_ListMessageMoveTasksCommand = se_ListMessageMoveTasksCommand;
119
141
  const se_ListQueuesCommand = async (input, context) => {
120
142
  const headers = SHARED_HEADERS;
121
143
  let body;
@@ -204,6 +226,17 @@ const se_SetQueueAttributesCommand = async (input, context) => {
204
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
205
227
  };
206
228
  exports.se_SetQueueAttributesCommand = se_SetQueueAttributesCommand;
229
+ const se_StartMessageMoveTaskCommand = async (input, context) => {
230
+ const headers = SHARED_HEADERS;
231
+ let body;
232
+ body = buildFormUrlencodedString({
233
+ ...se_StartMessageMoveTaskRequest(input, context),
234
+ Action: "StartMessageMoveTask",
235
+ Version: "2012-11-05",
236
+ });
237
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
+ };
239
+ exports.se_StartMessageMoveTaskCommand = se_StartMessageMoveTaskCommand;
207
240
  const se_TagQueueCommand = async (input, context) => {
208
241
  const headers = SHARED_HEADERS;
209
242
  let body;
@@ -256,6 +289,42 @@ const de_AddPermissionCommandError = async (output, context) => {
256
289
  });
257
290
  }
258
291
  };
292
+ const de_CancelMessageMoveTaskCommand = async (output, context) => {
293
+ if (output.statusCode >= 300) {
294
+ return de_CancelMessageMoveTaskCommandError(output, context);
295
+ }
296
+ const data = await parseBody(output.body, context);
297
+ let contents = {};
298
+ contents = de_CancelMessageMoveTaskResult(data.CancelMessageMoveTaskResult, context);
299
+ const response = {
300
+ $metadata: deserializeMetadata(output),
301
+ ...contents,
302
+ };
303
+ return response;
304
+ };
305
+ exports.de_CancelMessageMoveTaskCommand = de_CancelMessageMoveTaskCommand;
306
+ const de_CancelMessageMoveTaskCommandError = async (output, context) => {
307
+ const parsedOutput = {
308
+ ...output,
309
+ body: await parseErrorBody(output.body, context),
310
+ };
311
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
312
+ switch (errorCode) {
313
+ case "AWS.SimpleQueueService.UnsupportedOperation":
314
+ case "com.amazonaws.sqs#UnsupportedOperation":
315
+ throw await de_UnsupportedOperationRes(parsedOutput, context);
316
+ case "ResourceNotFoundException":
317
+ case "com.amazonaws.sqs#ResourceNotFoundException":
318
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
319
+ default:
320
+ const parsedBody = parsedOutput.body;
321
+ return throwDefaultError({
322
+ output,
323
+ parsedBody: parsedBody.Error,
324
+ errorCode,
325
+ });
326
+ }
327
+ };
259
328
  const de_ChangeMessageVisibilityCommand = async (output, context) => {
260
329
  if (output.statusCode >= 300) {
261
330
  return de_ChangeMessageVisibilityCommandError(output, context);
@@ -565,6 +634,42 @@ const de_ListDeadLetterSourceQueuesCommandError = async (output, context) => {
565
634
  });
566
635
  }
567
636
  };
637
+ const de_ListMessageMoveTasksCommand = async (output, context) => {
638
+ if (output.statusCode >= 300) {
639
+ return de_ListMessageMoveTasksCommandError(output, context);
640
+ }
641
+ const data = await parseBody(output.body, context);
642
+ let contents = {};
643
+ contents = de_ListMessageMoveTasksResult(data.ListMessageMoveTasksResult, context);
644
+ const response = {
645
+ $metadata: deserializeMetadata(output),
646
+ ...contents,
647
+ };
648
+ return response;
649
+ };
650
+ exports.de_ListMessageMoveTasksCommand = de_ListMessageMoveTasksCommand;
651
+ const de_ListMessageMoveTasksCommandError = async (output, context) => {
652
+ const parsedOutput = {
653
+ ...output,
654
+ body: await parseErrorBody(output.body, context),
655
+ };
656
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
657
+ switch (errorCode) {
658
+ case "AWS.SimpleQueueService.UnsupportedOperation":
659
+ case "com.amazonaws.sqs#UnsupportedOperation":
660
+ throw await de_UnsupportedOperationRes(parsedOutput, context);
661
+ case "ResourceNotFoundException":
662
+ case "com.amazonaws.sqs#ResourceNotFoundException":
663
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
664
+ default:
665
+ const parsedBody = parsedOutput.body;
666
+ return throwDefaultError({
667
+ output,
668
+ parsedBody: parsedBody.Error,
669
+ errorCode,
670
+ });
671
+ }
672
+ };
568
673
  const de_ListQueuesCommand = async (output, context) => {
569
674
  if (output.statusCode >= 300) {
570
675
  return de_ListQueuesCommandError(output, context);
@@ -823,6 +928,42 @@ const de_SetQueueAttributesCommandError = async (output, context) => {
823
928
  });
824
929
  }
825
930
  };
931
+ const de_StartMessageMoveTaskCommand = async (output, context) => {
932
+ if (output.statusCode >= 300) {
933
+ return de_StartMessageMoveTaskCommandError(output, context);
934
+ }
935
+ const data = await parseBody(output.body, context);
936
+ let contents = {};
937
+ contents = de_StartMessageMoveTaskResult(data.StartMessageMoveTaskResult, context);
938
+ const response = {
939
+ $metadata: deserializeMetadata(output),
940
+ ...contents,
941
+ };
942
+ return response;
943
+ };
944
+ exports.de_StartMessageMoveTaskCommand = de_StartMessageMoveTaskCommand;
945
+ const de_StartMessageMoveTaskCommandError = async (output, context) => {
946
+ const parsedOutput = {
947
+ ...output,
948
+ body: await parseErrorBody(output.body, context),
949
+ };
950
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
951
+ switch (errorCode) {
952
+ case "AWS.SimpleQueueService.UnsupportedOperation":
953
+ case "com.amazonaws.sqs#UnsupportedOperation":
954
+ throw await de_UnsupportedOperationRes(parsedOutput, context);
955
+ case "ResourceNotFoundException":
956
+ case "com.amazonaws.sqs#ResourceNotFoundException":
957
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
958
+ default:
959
+ const parsedBody = parsedOutput.body;
960
+ return throwDefaultError({
961
+ output,
962
+ parsedBody: parsedBody.Error,
963
+ errorCode,
964
+ });
965
+ }
966
+ };
826
967
  const de_TagQueueCommand = async (output, context) => {
827
968
  if (output.statusCode >= 300) {
828
969
  return de_TagQueueCommandError(output, context);
@@ -997,6 +1138,15 @@ const de_ReceiptHandleIsInvalidRes = async (parsedOutput, context) => {
997
1138
  });
998
1139
  return (0, smithy_client_1.decorateServiceException)(exception, body);
999
1140
  };
1141
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1142
+ const body = parsedOutput.body;
1143
+ const deserialized = de_ResourceNotFoundException(body.Error, context);
1144
+ const exception = new models_0_1.ResourceNotFoundException({
1145
+ $metadata: deserializeMetadata(parsedOutput),
1146
+ ...deserialized,
1147
+ });
1148
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1149
+ };
1000
1150
  const de_TooManyEntriesInBatchRequestRes = async (parsedOutput, context) => {
1001
1151
  const body = parsedOutput.body;
1002
1152
  const deserialized = de_TooManyEntriesInBatchRequest(body.Error, context);
@@ -1093,6 +1243,13 @@ const se_BinaryList = (input, context) => {
1093
1243
  }
1094
1244
  return entries;
1095
1245
  };
1246
+ const se_CancelMessageMoveTaskRequest = (input, context) => {
1247
+ const entries = {};
1248
+ if (input.TaskHandle != null) {
1249
+ entries["TaskHandle"] = input.TaskHandle;
1250
+ }
1251
+ return entries;
1252
+ };
1096
1253
  const se_ChangeMessageVisibilityBatchRequest = (input, context) => {
1097
1254
  const entries = {};
1098
1255
  if (input.QueueUrl != null) {
@@ -1271,6 +1428,16 @@ const se_ListDeadLetterSourceQueuesRequest = (input, context) => {
1271
1428
  }
1272
1429
  return entries;
1273
1430
  };
1431
+ const se_ListMessageMoveTasksRequest = (input, context) => {
1432
+ const entries = {};
1433
+ if (input.SourceArn != null) {
1434
+ entries["SourceArn"] = input.SourceArn;
1435
+ }
1436
+ if (input.MaxResults != null) {
1437
+ entries["MaxResults"] = input.MaxResults;
1438
+ }
1439
+ return entries;
1440
+ };
1274
1441
  const se_ListQueuesRequest = (input, context) => {
1275
1442
  const entries = {};
1276
1443
  if (input.QueueNamePrefix != null) {
@@ -1579,6 +1746,19 @@ const se_SetQueueAttributesRequest = (input, context) => {
1579
1746
  }
1580
1747
  return entries;
1581
1748
  };
1749
+ const se_StartMessageMoveTaskRequest = (input, context) => {
1750
+ const entries = {};
1751
+ if (input.SourceArn != null) {
1752
+ entries["SourceArn"] = input.SourceArn;
1753
+ }
1754
+ if (input.DestinationArn != null) {
1755
+ entries["DestinationArn"] = input.DestinationArn;
1756
+ }
1757
+ if (input.MaxNumberOfMessagesPerSecond != null) {
1758
+ entries["MaxNumberOfMessagesPerSecond"] = input.MaxNumberOfMessagesPerSecond;
1759
+ }
1760
+ return entries;
1761
+ };
1582
1762
  const se_StringList = (input, context) => {
1583
1763
  const entries = {};
1584
1764
  let counter = 1;
@@ -1684,6 +1864,13 @@ const de_BinaryList = (output, context) => {
1684
1864
  return context.base64Decoder(entry);
1685
1865
  });
1686
1866
  };
1867
+ const de_CancelMessageMoveTaskResult = (output, context) => {
1868
+ const contents = {};
1869
+ if (output["ApproximateNumberOfMessagesMoved"] !== undefined) {
1870
+ contents.ApproximateNumberOfMessagesMoved = (0, smithy_client_1.strictParseLong)(output["ApproximateNumberOfMessagesMoved"]);
1871
+ }
1872
+ return contents;
1873
+ };
1687
1874
  const de_ChangeMessageVisibilityBatchResult = (output, context) => {
1688
1875
  const contents = {};
1689
1876
  if (output.ChangeMessageVisibilityBatchResultEntry === "") {
@@ -1801,6 +1988,54 @@ const de_ListDeadLetterSourceQueuesResult = (output, context) => {
1801
1988
  }
1802
1989
  return contents;
1803
1990
  };
1991
+ const de_ListMessageMoveTasksResult = (output, context) => {
1992
+ const contents = {};
1993
+ if (output.ListMessageMoveTasksResultEntry === "") {
1994
+ contents.Results = [];
1995
+ }
1996
+ else if (output["ListMessageMoveTasksResultEntry"] !== undefined) {
1997
+ contents.Results = de_ListMessageMoveTasksResultEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["ListMessageMoveTasksResultEntry"]), context);
1998
+ }
1999
+ return contents;
2000
+ };
2001
+ const de_ListMessageMoveTasksResultEntry = (output, context) => {
2002
+ const contents = {};
2003
+ if (output["TaskHandle"] !== undefined) {
2004
+ contents.TaskHandle = (0, smithy_client_1.expectString)(output["TaskHandle"]);
2005
+ }
2006
+ if (output["Status"] !== undefined) {
2007
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
2008
+ }
2009
+ if (output["SourceArn"] !== undefined) {
2010
+ contents.SourceArn = (0, smithy_client_1.expectString)(output["SourceArn"]);
2011
+ }
2012
+ if (output["DestinationArn"] !== undefined) {
2013
+ contents.DestinationArn = (0, smithy_client_1.expectString)(output["DestinationArn"]);
2014
+ }
2015
+ if (output["MaxNumberOfMessagesPerSecond"] !== undefined) {
2016
+ contents.MaxNumberOfMessagesPerSecond = (0, smithy_client_1.strictParseInt32)(output["MaxNumberOfMessagesPerSecond"]);
2017
+ }
2018
+ if (output["ApproximateNumberOfMessagesMoved"] !== undefined) {
2019
+ contents.ApproximateNumberOfMessagesMoved = (0, smithy_client_1.strictParseLong)(output["ApproximateNumberOfMessagesMoved"]);
2020
+ }
2021
+ if (output["ApproximateNumberOfMessagesToMove"] !== undefined) {
2022
+ contents.ApproximateNumberOfMessagesToMove = (0, smithy_client_1.strictParseLong)(output["ApproximateNumberOfMessagesToMove"]);
2023
+ }
2024
+ if (output["FailureReason"] !== undefined) {
2025
+ contents.FailureReason = (0, smithy_client_1.expectString)(output["FailureReason"]);
2026
+ }
2027
+ if (output["StartedTimestamp"] !== undefined) {
2028
+ contents.StartedTimestamp = (0, smithy_client_1.strictParseLong)(output["StartedTimestamp"]);
2029
+ }
2030
+ return contents;
2031
+ };
2032
+ const de_ListMessageMoveTasksResultEntryList = (output, context) => {
2033
+ return (output || [])
2034
+ .filter((e) => e != null)
2035
+ .map((entry) => {
2036
+ return de_ListMessageMoveTasksResultEntry(entry, context);
2037
+ });
2038
+ };
1804
2039
  const de_ListQueuesResult = (output, context) => {
1805
2040
  const contents = {};
1806
2041
  if (output["NextToken"] !== undefined) {
@@ -1959,6 +2194,10 @@ const de_ReceiveMessageResult = (output, context) => {
1959
2194
  }
1960
2195
  return contents;
1961
2196
  };
2197
+ const de_ResourceNotFoundException = (output, context) => {
2198
+ const contents = {};
2199
+ return contents;
2200
+ };
1962
2201
  const de_SendMessageBatchResult = (output, context) => {
1963
2202
  const contents = {};
1964
2203
  if (output.SendMessageBatchResultEntry === "") {
@@ -2023,6 +2262,13 @@ const de_SendMessageResult = (output, context) => {
2023
2262
  }
2024
2263
  return contents;
2025
2264
  };
2265
+ const de_StartMessageMoveTaskResult = (output, context) => {
2266
+ const contents = {};
2267
+ if (output["TaskHandle"] !== undefined) {
2268
+ contents.TaskHandle = (0, smithy_client_1.expectString)(output["TaskHandle"]);
2269
+ }
2270
+ return contents;
2271
+ };
2026
2272
  const de_StringList = (output, context) => {
2027
2273
  return (output || [])
2028
2274
  .filter((e) => e != null)
package/dist-es/SQS.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { AddPermissionCommand, } from "./commands/AddPermissionCommand";
3
+ import { CancelMessageMoveTaskCommand, } from "./commands/CancelMessageMoveTaskCommand";
3
4
  import { ChangeMessageVisibilityBatchCommand, } from "./commands/ChangeMessageVisibilityBatchCommand";
4
5
  import { ChangeMessageVisibilityCommand, } from "./commands/ChangeMessageVisibilityCommand";
5
6
  import { CreateQueueCommand } from "./commands/CreateQueueCommand";
@@ -9,6 +10,7 @@ import { DeleteQueueCommand } from "./commands/DeleteQueueCommand";
9
10
  import { GetQueueAttributesCommand, } from "./commands/GetQueueAttributesCommand";
10
11
  import { GetQueueUrlCommand } from "./commands/GetQueueUrlCommand";
11
12
  import { ListDeadLetterSourceQueuesCommand, } from "./commands/ListDeadLetterSourceQueuesCommand";
13
+ import { ListMessageMoveTasksCommand, } from "./commands/ListMessageMoveTasksCommand";
12
14
  import { ListQueuesCommand } from "./commands/ListQueuesCommand";
13
15
  import { ListQueueTagsCommand, } from "./commands/ListQueueTagsCommand";
14
16
  import { PurgeQueueCommand } from "./commands/PurgeQueueCommand";
@@ -17,11 +19,13 @@ import { RemovePermissionCommand, } from "./commands/RemovePermissionCommand";
17
19
  import { SendMessageBatchCommand, } from "./commands/SendMessageBatchCommand";
18
20
  import { SendMessageCommand } from "./commands/SendMessageCommand";
19
21
  import { SetQueueAttributesCommand, } from "./commands/SetQueueAttributesCommand";
22
+ import { StartMessageMoveTaskCommand, } from "./commands/StartMessageMoveTaskCommand";
20
23
  import { TagQueueCommand } from "./commands/TagQueueCommand";
21
24
  import { UntagQueueCommand } from "./commands/UntagQueueCommand";
22
25
  import { SQSClient } from "./SQSClient";
23
26
  const commands = {
24
27
  AddPermissionCommand,
28
+ CancelMessageMoveTaskCommand,
25
29
  ChangeMessageVisibilityCommand,
26
30
  ChangeMessageVisibilityBatchCommand,
27
31
  CreateQueueCommand,
@@ -31,6 +35,7 @@ const commands = {
31
35
  GetQueueAttributesCommand,
32
36
  GetQueueUrlCommand,
33
37
  ListDeadLetterSourceQueuesCommand,
38
+ ListMessageMoveTasksCommand,
34
39
  ListQueuesCommand,
35
40
  ListQueueTagsCommand,
36
41
  PurgeQueueCommand,
@@ -39,6 +44,7 @@ const commands = {
39
44
  SendMessageCommand,
40
45
  SendMessageBatchCommand,
41
46
  SetQueueAttributesCommand,
47
+ StartMessageMoveTaskCommand,
42
48
  TagQueueCommand,
43
49
  UntagQueueCommand,
44
50
  };
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CancelMessageMoveTaskCommand, se_CancelMessageMoveTaskCommand } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class CancelMessageMoveTaskCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CancelMessageMoveTaskCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SQSClient";
25
+ const commandName = "CancelMessageMoveTaskCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_CancelMessageMoveTaskCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_CancelMessageMoveTaskCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListMessageMoveTasksCommand, se_ListMessageMoveTasksCommand } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class ListMessageMoveTasksCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListMessageMoveTasksCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SQSClient";
25
+ const commandName = "ListMessageMoveTasksCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListMessageMoveTasksCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListMessageMoveTasksCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_StartMessageMoveTaskCommand, se_StartMessageMoveTaskCommand } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class StartMessageMoveTaskCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartMessageMoveTaskCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SQSClient";
25
+ const commandName = "StartMessageMoveTaskCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_StartMessageMoveTaskCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_StartMessageMoveTaskCommand(output, context);
41
+ }
42
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./AddPermissionCommand";
2
+ export * from "./CancelMessageMoveTaskCommand";
2
3
  export * from "./ChangeMessageVisibilityBatchCommand";
3
4
  export * from "./ChangeMessageVisibilityCommand";
4
5
  export * from "./CreateQueueCommand";
@@ -8,6 +9,7 @@ export * from "./DeleteQueueCommand";
8
9
  export * from "./GetQueueAttributesCommand";
9
10
  export * from "./GetQueueUrlCommand";
10
11
  export * from "./ListDeadLetterSourceQueuesCommand";
12
+ export * from "./ListMessageMoveTasksCommand";
11
13
  export * from "./ListQueueTagsCommand";
12
14
  export * from "./ListQueuesCommand";
13
15
  export * from "./PurgeQueueCommand";
@@ -16,5 +18,6 @@ export * from "./RemovePermissionCommand";
16
18
  export * from "./SendMessageBatchCommand";
17
19
  export * from "./SendMessageCommand";
18
20
  export * from "./SetQueueAttributesCommand";
21
+ export * from "./StartMessageMoveTaskCommand";
19
22
  export * from "./TagQueueCommand";
20
23
  export * from "./UntagQueueCommand";
@@ -11,6 +11,30 @@ export class OverLimit extends __BaseException {
11
11
  Object.setPrototypeOf(this, OverLimit.prototype);
12
12
  }
13
13
  }
14
+ export class ResourceNotFoundException extends __BaseException {
15
+ constructor(opts) {
16
+ super({
17
+ name: "ResourceNotFoundException",
18
+ $fault: "client",
19
+ ...opts,
20
+ });
21
+ this.name = "ResourceNotFoundException";
22
+ this.$fault = "client";
23
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
24
+ }
25
+ }
26
+ export class UnsupportedOperation extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "UnsupportedOperation",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "UnsupportedOperation";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, UnsupportedOperation.prototype);
36
+ }
37
+ }
14
38
  export class MessageNotInflight extends __BaseException {
15
39
  constructor(opts) {
16
40
  super({
@@ -183,6 +207,7 @@ export const MessageSystemAttributeName = {
183
207
  AWSTraceHeader: "AWSTraceHeader",
184
208
  ApproximateFirstReceiveTimestamp: "ApproximateFirstReceiveTimestamp",
185
209
  ApproximateReceiveCount: "ApproximateReceiveCount",
210
+ DeadLetterQueueSourceArn: "DeadLetterQueueSourceArn",
186
211
  MessageDeduplicationId: "MessageDeduplicationId",
187
212
  MessageGroupId: "MessageGroupId",
188
213
  SenderId: "SenderId",
@@ -204,18 +229,6 @@ export class InvalidMessageContents extends __BaseException {
204
229
  export const MessageSystemAttributeNameForSends = {
205
230
  AWSTraceHeader: "AWSTraceHeader",
206
231
  };
207
- export class UnsupportedOperation extends __BaseException {
208
- constructor(opts) {
209
- super({
210
- name: "UnsupportedOperation",
211
- $fault: "client",
212
- ...opts,
213
- });
214
- this.name = "UnsupportedOperation";
215
- this.$fault = "client";
216
- Object.setPrototypeOf(this, UnsupportedOperation.prototype);
217
- }
218
- }
219
232
  export class BatchRequestTooLong extends __BaseException {
220
233
  constructor(opts) {
221
234
  super({