@aws-sdk/client-sqs 3.345.0 → 3.347.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 (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 +30 -30
@@ -1,7 +1,7 @@
1
- import { decorateServiceException as __decorateServiceException, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { decorateServiceException as __decorateServiceException, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { XMLParser } from "fast-xml-parser";
4
- import { BatchEntryIdsNotDistinct, BatchRequestTooLong, EmptyBatchRequest, InvalidAttributeName, InvalidBatchEntryId, InvalidIdFormat, InvalidMessageContents, MessageNotInflight, OverLimit, PurgeQueueInProgress, QueueDeletedRecently, QueueDoesNotExist, QueueNameExists, ReceiptHandleIsInvalid, TooManyEntriesInBatchRequest, UnsupportedOperation, } from "../models/models_0";
4
+ import { BatchEntryIdsNotDistinct, BatchRequestTooLong, EmptyBatchRequest, InvalidAttributeName, InvalidBatchEntryId, InvalidIdFormat, InvalidMessageContents, MessageNotInflight, OverLimit, PurgeQueueInProgress, QueueDeletedRecently, QueueDoesNotExist, QueueNameExists, ReceiptHandleIsInvalid, ResourceNotFoundException, TooManyEntriesInBatchRequest, UnsupportedOperation, } from "../models/models_0";
5
5
  import { SQSServiceException as __BaseException } from "../models/SQSServiceException";
6
6
  export const se_AddPermissionCommand = async (input, context) => {
7
7
  const headers = SHARED_HEADERS;
@@ -13,6 +13,16 @@ export const se_AddPermissionCommand = async (input, context) => {
13
13
  });
14
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
15
  };
16
+ export const se_CancelMessageMoveTaskCommand = async (input, context) => {
17
+ const headers = SHARED_HEADERS;
18
+ let body;
19
+ body = buildFormUrlencodedString({
20
+ ...se_CancelMessageMoveTaskRequest(input, context),
21
+ Action: "CancelMessageMoveTask",
22
+ Version: "2012-11-05",
23
+ });
24
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
25
+ };
16
26
  export const se_ChangeMessageVisibilityCommand = async (input, context) => {
17
27
  const headers = SHARED_HEADERS;
18
28
  let body;
@@ -103,6 +113,16 @@ export const se_ListDeadLetterSourceQueuesCommand = async (input, context) => {
103
113
  });
104
114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
115
  };
116
+ export const se_ListMessageMoveTasksCommand = async (input, context) => {
117
+ const headers = SHARED_HEADERS;
118
+ let body;
119
+ body = buildFormUrlencodedString({
120
+ ...se_ListMessageMoveTasksRequest(input, context),
121
+ Action: "ListMessageMoveTasks",
122
+ Version: "2012-11-05",
123
+ });
124
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
+ };
106
126
  export const se_ListQueuesCommand = async (input, context) => {
107
127
  const headers = SHARED_HEADERS;
108
128
  let body;
@@ -183,6 +203,16 @@ export const se_SetQueueAttributesCommand = async (input, context) => {
183
203
  });
184
204
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
205
  };
206
+ export const se_StartMessageMoveTaskCommand = async (input, context) => {
207
+ const headers = SHARED_HEADERS;
208
+ let body;
209
+ body = buildFormUrlencodedString({
210
+ ...se_StartMessageMoveTaskRequest(input, context),
211
+ Action: "StartMessageMoveTask",
212
+ Version: "2012-11-05",
213
+ });
214
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
+ };
186
216
  export const se_TagQueueCommand = async (input, context) => {
187
217
  const headers = SHARED_HEADERS;
188
218
  let body;
@@ -232,6 +262,41 @@ const de_AddPermissionCommandError = async (output, context) => {
232
262
  });
233
263
  }
234
264
  };
265
+ export const de_CancelMessageMoveTaskCommand = async (output, context) => {
266
+ if (output.statusCode >= 300) {
267
+ return de_CancelMessageMoveTaskCommandError(output, context);
268
+ }
269
+ const data = await parseBody(output.body, context);
270
+ let contents = {};
271
+ contents = de_CancelMessageMoveTaskResult(data.CancelMessageMoveTaskResult, context);
272
+ const response = {
273
+ $metadata: deserializeMetadata(output),
274
+ ...contents,
275
+ };
276
+ return response;
277
+ };
278
+ const de_CancelMessageMoveTaskCommandError = async (output, context) => {
279
+ const parsedOutput = {
280
+ ...output,
281
+ body: await parseErrorBody(output.body, context),
282
+ };
283
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
284
+ switch (errorCode) {
285
+ case "AWS.SimpleQueueService.UnsupportedOperation":
286
+ case "com.amazonaws.sqs#UnsupportedOperation":
287
+ throw await de_UnsupportedOperationRes(parsedOutput, context);
288
+ case "ResourceNotFoundException":
289
+ case "com.amazonaws.sqs#ResourceNotFoundException":
290
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
291
+ default:
292
+ const parsedBody = parsedOutput.body;
293
+ return throwDefaultError({
294
+ output,
295
+ parsedBody: parsedBody.Error,
296
+ errorCode,
297
+ });
298
+ }
299
+ };
235
300
  export const de_ChangeMessageVisibilityCommand = async (output, context) => {
236
301
  if (output.statusCode >= 300) {
237
302
  return de_ChangeMessageVisibilityCommandError(output, context);
@@ -532,6 +597,41 @@ const de_ListDeadLetterSourceQueuesCommandError = async (output, context) => {
532
597
  });
533
598
  }
534
599
  };
600
+ export const de_ListMessageMoveTasksCommand = async (output, context) => {
601
+ if (output.statusCode >= 300) {
602
+ return de_ListMessageMoveTasksCommandError(output, context);
603
+ }
604
+ const data = await parseBody(output.body, context);
605
+ let contents = {};
606
+ contents = de_ListMessageMoveTasksResult(data.ListMessageMoveTasksResult, context);
607
+ const response = {
608
+ $metadata: deserializeMetadata(output),
609
+ ...contents,
610
+ };
611
+ return response;
612
+ };
613
+ const de_ListMessageMoveTasksCommandError = async (output, context) => {
614
+ const parsedOutput = {
615
+ ...output,
616
+ body: await parseErrorBody(output.body, context),
617
+ };
618
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
619
+ switch (errorCode) {
620
+ case "AWS.SimpleQueueService.UnsupportedOperation":
621
+ case "com.amazonaws.sqs#UnsupportedOperation":
622
+ throw await de_UnsupportedOperationRes(parsedOutput, context);
623
+ case "ResourceNotFoundException":
624
+ case "com.amazonaws.sqs#ResourceNotFoundException":
625
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
626
+ default:
627
+ const parsedBody = parsedOutput.body;
628
+ return throwDefaultError({
629
+ output,
630
+ parsedBody: parsedBody.Error,
631
+ errorCode,
632
+ });
633
+ }
634
+ };
535
635
  export const de_ListQueuesCommand = async (output, context) => {
536
636
  if (output.statusCode >= 300) {
537
637
  return de_ListQueuesCommandError(output, context);
@@ -782,6 +882,41 @@ const de_SetQueueAttributesCommandError = async (output, context) => {
782
882
  });
783
883
  }
784
884
  };
885
+ export const de_StartMessageMoveTaskCommand = async (output, context) => {
886
+ if (output.statusCode >= 300) {
887
+ return de_StartMessageMoveTaskCommandError(output, context);
888
+ }
889
+ const data = await parseBody(output.body, context);
890
+ let contents = {};
891
+ contents = de_StartMessageMoveTaskResult(data.StartMessageMoveTaskResult, context);
892
+ const response = {
893
+ $metadata: deserializeMetadata(output),
894
+ ...contents,
895
+ };
896
+ return response;
897
+ };
898
+ const de_StartMessageMoveTaskCommandError = async (output, context) => {
899
+ const parsedOutput = {
900
+ ...output,
901
+ body: await parseErrorBody(output.body, context),
902
+ };
903
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
904
+ switch (errorCode) {
905
+ case "AWS.SimpleQueueService.UnsupportedOperation":
906
+ case "com.amazonaws.sqs#UnsupportedOperation":
907
+ throw await de_UnsupportedOperationRes(parsedOutput, context);
908
+ case "ResourceNotFoundException":
909
+ case "com.amazonaws.sqs#ResourceNotFoundException":
910
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
911
+ default:
912
+ const parsedBody = parsedOutput.body;
913
+ return throwDefaultError({
914
+ output,
915
+ parsedBody: parsedBody.Error,
916
+ errorCode,
917
+ });
918
+ }
919
+ };
785
920
  export const de_TagQueueCommand = async (output, context) => {
786
921
  if (output.statusCode >= 300) {
787
922
  return de_TagQueueCommandError(output, context);
@@ -954,6 +1089,15 @@ const de_ReceiptHandleIsInvalidRes = async (parsedOutput, context) => {
954
1089
  });
955
1090
  return __decorateServiceException(exception, body);
956
1091
  };
1092
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1093
+ const body = parsedOutput.body;
1094
+ const deserialized = de_ResourceNotFoundException(body.Error, context);
1095
+ const exception = new ResourceNotFoundException({
1096
+ $metadata: deserializeMetadata(parsedOutput),
1097
+ ...deserialized,
1098
+ });
1099
+ return __decorateServiceException(exception, body);
1100
+ };
957
1101
  const de_TooManyEntriesInBatchRequestRes = async (parsedOutput, context) => {
958
1102
  const body = parsedOutput.body;
959
1103
  const deserialized = de_TooManyEntriesInBatchRequest(body.Error, context);
@@ -1050,6 +1194,13 @@ const se_BinaryList = (input, context) => {
1050
1194
  }
1051
1195
  return entries;
1052
1196
  };
1197
+ const se_CancelMessageMoveTaskRequest = (input, context) => {
1198
+ const entries = {};
1199
+ if (input.TaskHandle != null) {
1200
+ entries["TaskHandle"] = input.TaskHandle;
1201
+ }
1202
+ return entries;
1203
+ };
1053
1204
  const se_ChangeMessageVisibilityBatchRequest = (input, context) => {
1054
1205
  const entries = {};
1055
1206
  if (input.QueueUrl != null) {
@@ -1228,6 +1379,16 @@ const se_ListDeadLetterSourceQueuesRequest = (input, context) => {
1228
1379
  }
1229
1380
  return entries;
1230
1381
  };
1382
+ const se_ListMessageMoveTasksRequest = (input, context) => {
1383
+ const entries = {};
1384
+ if (input.SourceArn != null) {
1385
+ entries["SourceArn"] = input.SourceArn;
1386
+ }
1387
+ if (input.MaxResults != null) {
1388
+ entries["MaxResults"] = input.MaxResults;
1389
+ }
1390
+ return entries;
1391
+ };
1231
1392
  const se_ListQueuesRequest = (input, context) => {
1232
1393
  const entries = {};
1233
1394
  if (input.QueueNamePrefix != null) {
@@ -1536,6 +1697,19 @@ const se_SetQueueAttributesRequest = (input, context) => {
1536
1697
  }
1537
1698
  return entries;
1538
1699
  };
1700
+ const se_StartMessageMoveTaskRequest = (input, context) => {
1701
+ const entries = {};
1702
+ if (input.SourceArn != null) {
1703
+ entries["SourceArn"] = input.SourceArn;
1704
+ }
1705
+ if (input.DestinationArn != null) {
1706
+ entries["DestinationArn"] = input.DestinationArn;
1707
+ }
1708
+ if (input.MaxNumberOfMessagesPerSecond != null) {
1709
+ entries["MaxNumberOfMessagesPerSecond"] = input.MaxNumberOfMessagesPerSecond;
1710
+ }
1711
+ return entries;
1712
+ };
1539
1713
  const se_StringList = (input, context) => {
1540
1714
  const entries = {};
1541
1715
  let counter = 1;
@@ -1641,6 +1815,13 @@ const de_BinaryList = (output, context) => {
1641
1815
  return context.base64Decoder(entry);
1642
1816
  });
1643
1817
  };
1818
+ const de_CancelMessageMoveTaskResult = (output, context) => {
1819
+ const contents = {};
1820
+ if (output["ApproximateNumberOfMessagesMoved"] !== undefined) {
1821
+ contents.ApproximateNumberOfMessagesMoved = __strictParseLong(output["ApproximateNumberOfMessagesMoved"]);
1822
+ }
1823
+ return contents;
1824
+ };
1644
1825
  const de_ChangeMessageVisibilityBatchResult = (output, context) => {
1645
1826
  const contents = {};
1646
1827
  if (output.ChangeMessageVisibilityBatchResultEntry === "") {
@@ -1758,6 +1939,54 @@ const de_ListDeadLetterSourceQueuesResult = (output, context) => {
1758
1939
  }
1759
1940
  return contents;
1760
1941
  };
1942
+ const de_ListMessageMoveTasksResult = (output, context) => {
1943
+ const contents = {};
1944
+ if (output.ListMessageMoveTasksResultEntry === "") {
1945
+ contents.Results = [];
1946
+ }
1947
+ else if (output["ListMessageMoveTasksResultEntry"] !== undefined) {
1948
+ contents.Results = de_ListMessageMoveTasksResultEntryList(__getArrayIfSingleItem(output["ListMessageMoveTasksResultEntry"]), context);
1949
+ }
1950
+ return contents;
1951
+ };
1952
+ const de_ListMessageMoveTasksResultEntry = (output, context) => {
1953
+ const contents = {};
1954
+ if (output["TaskHandle"] !== undefined) {
1955
+ contents.TaskHandle = __expectString(output["TaskHandle"]);
1956
+ }
1957
+ if (output["Status"] !== undefined) {
1958
+ contents.Status = __expectString(output["Status"]);
1959
+ }
1960
+ if (output["SourceArn"] !== undefined) {
1961
+ contents.SourceArn = __expectString(output["SourceArn"]);
1962
+ }
1963
+ if (output["DestinationArn"] !== undefined) {
1964
+ contents.DestinationArn = __expectString(output["DestinationArn"]);
1965
+ }
1966
+ if (output["MaxNumberOfMessagesPerSecond"] !== undefined) {
1967
+ contents.MaxNumberOfMessagesPerSecond = __strictParseInt32(output["MaxNumberOfMessagesPerSecond"]);
1968
+ }
1969
+ if (output["ApproximateNumberOfMessagesMoved"] !== undefined) {
1970
+ contents.ApproximateNumberOfMessagesMoved = __strictParseLong(output["ApproximateNumberOfMessagesMoved"]);
1971
+ }
1972
+ if (output["ApproximateNumberOfMessagesToMove"] !== undefined) {
1973
+ contents.ApproximateNumberOfMessagesToMove = __strictParseLong(output["ApproximateNumberOfMessagesToMove"]);
1974
+ }
1975
+ if (output["FailureReason"] !== undefined) {
1976
+ contents.FailureReason = __expectString(output["FailureReason"]);
1977
+ }
1978
+ if (output["StartedTimestamp"] !== undefined) {
1979
+ contents.StartedTimestamp = __strictParseLong(output["StartedTimestamp"]);
1980
+ }
1981
+ return contents;
1982
+ };
1983
+ const de_ListMessageMoveTasksResultEntryList = (output, context) => {
1984
+ return (output || [])
1985
+ .filter((e) => e != null)
1986
+ .map((entry) => {
1987
+ return de_ListMessageMoveTasksResultEntry(entry, context);
1988
+ });
1989
+ };
1761
1990
  const de_ListQueuesResult = (output, context) => {
1762
1991
  const contents = {};
1763
1992
  if (output["NextToken"] !== undefined) {
@@ -1916,6 +2145,10 @@ const de_ReceiveMessageResult = (output, context) => {
1916
2145
  }
1917
2146
  return contents;
1918
2147
  };
2148
+ const de_ResourceNotFoundException = (output, context) => {
2149
+ const contents = {};
2150
+ return contents;
2151
+ };
1919
2152
  const de_SendMessageBatchResult = (output, context) => {
1920
2153
  const contents = {};
1921
2154
  if (output.SendMessageBatchResultEntry === "") {
@@ -1980,6 +2213,13 @@ const de_SendMessageResult = (output, context) => {
1980
2213
  }
1981
2214
  return contents;
1982
2215
  };
2216
+ const de_StartMessageMoveTaskResult = (output, context) => {
2217
+ const contents = {};
2218
+ if (output["TaskHandle"] !== undefined) {
2219
+ contents.TaskHandle = __expectString(output["TaskHandle"]);
2220
+ }
2221
+ return contents;
2222
+ };
1983
2223
  const de_StringList = (output, context) => {
1984
2224
  return (output || [])
1985
2225
  .filter((e) => e != null)
@@ -1,5 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
3
+ import { CancelMessageMoveTaskCommandInput, CancelMessageMoveTaskCommandOutput } from "./commands/CancelMessageMoveTaskCommand";
3
4
  import { ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput } from "./commands/ChangeMessageVisibilityBatchCommand";
4
5
  import { ChangeMessageVisibilityCommandInput, ChangeMessageVisibilityCommandOutput } from "./commands/ChangeMessageVisibilityCommand";
5
6
  import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
@@ -9,6 +10,7 @@ import { DeleteQueueCommandInput, DeleteQueueCommandOutput } from "./commands/De
9
10
  import { GetQueueAttributesCommandInput, GetQueueAttributesCommandOutput } from "./commands/GetQueueAttributesCommand";
10
11
  import { GetQueueUrlCommandInput, GetQueueUrlCommandOutput } from "./commands/GetQueueUrlCommand";
11
12
  import { ListDeadLetterSourceQueuesCommandInput, ListDeadLetterSourceQueuesCommandOutput } from "./commands/ListDeadLetterSourceQueuesCommand";
13
+ import { ListMessageMoveTasksCommandInput, ListMessageMoveTasksCommandOutput } from "./commands/ListMessageMoveTasksCommand";
12
14
  import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
13
15
  import { ListQueueTagsCommandInput, ListQueueTagsCommandOutput } from "./commands/ListQueueTagsCommand";
14
16
  import { PurgeQueueCommandInput, PurgeQueueCommandOutput } from "./commands/PurgeQueueCommand";
@@ -17,6 +19,7 @@ import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./c
17
19
  import { SendMessageBatchCommandInput, SendMessageBatchCommandOutput } from "./commands/SendMessageBatchCommand";
18
20
  import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
19
21
  import { SetQueueAttributesCommandInput, SetQueueAttributesCommandOutput } from "./commands/SetQueueAttributesCommand";
22
+ import { StartMessageMoveTaskCommandInput, StartMessageMoveTaskCommandOutput } from "./commands/StartMessageMoveTaskCommand";
20
23
  import { TagQueueCommandInput, TagQueueCommandOutput } from "./commands/TagQueueCommand";
21
24
  import { UntagQueueCommandInput, UntagQueueCommandOutput } from "./commands/UntagQueueCommand";
22
25
  import { SQSClient } from "./SQSClient";
@@ -27,6 +30,12 @@ export interface SQS {
27
30
  addPermission(args: AddPermissionCommandInput, options?: __HttpHandlerOptions): Promise<AddPermissionCommandOutput>;
28
31
  addPermission(args: AddPermissionCommandInput, cb: (err: any, data?: AddPermissionCommandOutput) => void): void;
29
32
  addPermission(args: AddPermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddPermissionCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link CancelMessageMoveTaskCommand}
35
+ */
36
+ cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: __HttpHandlerOptions): Promise<CancelMessageMoveTaskCommandOutput>;
37
+ cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, cb: (err: any, data?: CancelMessageMoveTaskCommandOutput) => void): void;
38
+ cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelMessageMoveTaskCommandOutput) => void): void;
30
39
  /**
31
40
  * @see {@link ChangeMessageVisibilityCommand}
32
41
  */
@@ -81,6 +90,12 @@ export interface SQS {
81
90
  listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: __HttpHandlerOptions): Promise<ListDeadLetterSourceQueuesCommandOutput>;
82
91
  listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, cb: (err: any, data?: ListDeadLetterSourceQueuesCommandOutput) => void): void;
83
92
  listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDeadLetterSourceQueuesCommandOutput) => void): void;
93
+ /**
94
+ * @see {@link ListMessageMoveTasksCommand}
95
+ */
96
+ listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListMessageMoveTasksCommandOutput>;
97
+ listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, cb: (err: any, data?: ListMessageMoveTasksCommandOutput) => void): void;
98
+ listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMessageMoveTasksCommandOutput) => void): void;
84
99
  /**
85
100
  * @see {@link ListQueuesCommand}
86
101
  */
@@ -129,6 +144,12 @@ export interface SQS {
129
144
  setQueueAttributes(args: SetQueueAttributesCommandInput, options?: __HttpHandlerOptions): Promise<SetQueueAttributesCommandOutput>;
130
145
  setQueueAttributes(args: SetQueueAttributesCommandInput, cb: (err: any, data?: SetQueueAttributesCommandOutput) => void): void;
131
146
  setQueueAttributes(args: SetQueueAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetQueueAttributesCommandOutput) => void): void;
147
+ /**
148
+ * @see {@link StartMessageMoveTaskCommand}
149
+ */
150
+ startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: __HttpHandlerOptions): Promise<StartMessageMoveTaskCommandOutput>;
151
+ startMessageMoveTask(args: StartMessageMoveTaskCommandInput, cb: (err: any, data?: StartMessageMoveTaskCommandOutput) => void): void;
152
+ startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMessageMoveTaskCommandOutput) => void): void;
132
153
  /**
133
154
  * @see {@link TagQueueCommand}
134
155
  */
@@ -145,12 +166,15 @@ export interface SQS {
145
166
  /**
146
167
  * @public
147
168
  * <p>Welcome to the <i>Amazon SQS API Reference</i>.</p>
148
- * <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.</p>
149
- * <p>For information on the permissions you need to use this API, see
150
- * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-authentication-and-access-control.html">Identity and
151
- * access management</a> in the <i>Amazon SQS Developer Guide.</i>
169
+ * <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel
170
+ * between applications or microservices. Amazon SQS moves data between distributed application
171
+ * components and helps you decouple these components.</p>
172
+ * <p>For information on the permissions you need to use this API, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-authentication-and-access-control.html">Identity and access management</a> in the <i>Amazon SQS Developer
173
+ * Guide.</i>
152
174
  * </p>
153
- * <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:</p>
175
+ * <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access
176
+ * Amazon SQS using your favorite programming language. The SDKs perform tasks such as the
177
+ * following automatically:</p>
154
178
  * <ul>
155
179
  * <li>
156
180
  * <p>Cryptographically sign your service requests</p>
@@ -206,7 +230,8 @@ export interface SQS {
206
230
  * <ul>
207
231
  * <li>
208
232
  * <p>
209
- * <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region">Regions and Endpoints</a>
233
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region">Regions and
234
+ * Endpoints</a>
210
235
  * </p>
211
236
  * </li>
212
237
  * </ul>
@@ -9,6 +9,7 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
9
9
  import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
10
10
  import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
11
11
  import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
12
+ import { CancelMessageMoveTaskCommandInput, CancelMessageMoveTaskCommandOutput } from "./commands/CancelMessageMoveTaskCommand";
12
13
  import { ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput } from "./commands/ChangeMessageVisibilityBatchCommand";
13
14
  import { ChangeMessageVisibilityCommandInput, ChangeMessageVisibilityCommandOutput } from "./commands/ChangeMessageVisibilityCommand";
14
15
  import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
@@ -18,6 +19,7 @@ import { DeleteQueueCommandInput, DeleteQueueCommandOutput } from "./commands/De
18
19
  import { GetQueueAttributesCommandInput, GetQueueAttributesCommandOutput } from "./commands/GetQueueAttributesCommand";
19
20
  import { GetQueueUrlCommandInput, GetQueueUrlCommandOutput } from "./commands/GetQueueUrlCommand";
20
21
  import { ListDeadLetterSourceQueuesCommandInput, ListDeadLetterSourceQueuesCommandOutput } from "./commands/ListDeadLetterSourceQueuesCommand";
22
+ import { ListMessageMoveTasksCommandInput, ListMessageMoveTasksCommandOutput } from "./commands/ListMessageMoveTasksCommand";
21
23
  import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
22
24
  import { ListQueueTagsCommandInput, ListQueueTagsCommandOutput } from "./commands/ListQueueTagsCommand";
23
25
  import { PurgeQueueCommandInput, PurgeQueueCommandOutput } from "./commands/PurgeQueueCommand";
@@ -26,6 +28,7 @@ import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./c
26
28
  import { SendMessageBatchCommandInput, SendMessageBatchCommandOutput } from "./commands/SendMessageBatchCommand";
27
29
  import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
28
30
  import { SetQueueAttributesCommandInput, SetQueueAttributesCommandOutput } from "./commands/SetQueueAttributesCommand";
31
+ import { StartMessageMoveTaskCommandInput, StartMessageMoveTaskCommandOutput } from "./commands/StartMessageMoveTaskCommand";
29
32
  import { TagQueueCommandInput, TagQueueCommandOutput } from "./commands/TagQueueCommand";
30
33
  import { UntagQueueCommandInput, UntagQueueCommandOutput } from "./commands/UntagQueueCommand";
31
34
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -33,11 +36,11 @@ export { __Client };
33
36
  /**
34
37
  * @public
35
38
  */
36
- export type ServiceInputTypes = AddPermissionCommandInput | ChangeMessageVisibilityBatchCommandInput | ChangeMessageVisibilityCommandInput | CreateQueueCommandInput | DeleteMessageBatchCommandInput | DeleteMessageCommandInput | DeleteQueueCommandInput | GetQueueAttributesCommandInput | GetQueueUrlCommandInput | ListDeadLetterSourceQueuesCommandInput | ListQueueTagsCommandInput | ListQueuesCommandInput | PurgeQueueCommandInput | ReceiveMessageCommandInput | RemovePermissionCommandInput | SendMessageBatchCommandInput | SendMessageCommandInput | SetQueueAttributesCommandInput | TagQueueCommandInput | UntagQueueCommandInput;
39
+ export type ServiceInputTypes = AddPermissionCommandInput | CancelMessageMoveTaskCommandInput | ChangeMessageVisibilityBatchCommandInput | ChangeMessageVisibilityCommandInput | CreateQueueCommandInput | DeleteMessageBatchCommandInput | DeleteMessageCommandInput | DeleteQueueCommandInput | GetQueueAttributesCommandInput | GetQueueUrlCommandInput | ListDeadLetterSourceQueuesCommandInput | ListMessageMoveTasksCommandInput | ListQueueTagsCommandInput | ListQueuesCommandInput | PurgeQueueCommandInput | ReceiveMessageCommandInput | RemovePermissionCommandInput | SendMessageBatchCommandInput | SendMessageCommandInput | SetQueueAttributesCommandInput | StartMessageMoveTaskCommandInput | TagQueueCommandInput | UntagQueueCommandInput;
37
40
  /**
38
41
  * @public
39
42
  */
40
- export type ServiceOutputTypes = AddPermissionCommandOutput | ChangeMessageVisibilityBatchCommandOutput | ChangeMessageVisibilityCommandOutput | CreateQueueCommandOutput | DeleteMessageBatchCommandOutput | DeleteMessageCommandOutput | DeleteQueueCommandOutput | GetQueueAttributesCommandOutput | GetQueueUrlCommandOutput | ListDeadLetterSourceQueuesCommandOutput | ListQueueTagsCommandOutput | ListQueuesCommandOutput | PurgeQueueCommandOutput | ReceiveMessageCommandOutput | RemovePermissionCommandOutput | SendMessageBatchCommandOutput | SendMessageCommandOutput | SetQueueAttributesCommandOutput | TagQueueCommandOutput | UntagQueueCommandOutput;
43
+ export type ServiceOutputTypes = AddPermissionCommandOutput | CancelMessageMoveTaskCommandOutput | ChangeMessageVisibilityBatchCommandOutput | ChangeMessageVisibilityCommandOutput | CreateQueueCommandOutput | DeleteMessageBatchCommandOutput | DeleteMessageCommandOutput | DeleteQueueCommandOutput | GetQueueAttributesCommandOutput | GetQueueUrlCommandOutput | ListDeadLetterSourceQueuesCommandOutput | ListMessageMoveTasksCommandOutput | ListQueueTagsCommandOutput | ListQueuesCommandOutput | PurgeQueueCommandOutput | ReceiveMessageCommandOutput | RemovePermissionCommandOutput | SendMessageBatchCommandOutput | SendMessageCommandOutput | SetQueueAttributesCommandOutput | StartMessageMoveTaskCommandOutput | TagQueueCommandOutput | UntagQueueCommandOutput;
41
44
  /**
42
45
  * @public
43
46
  */
@@ -172,12 +175,15 @@ export interface SQSClientResolvedConfig extends SQSClientResolvedConfigType {
172
175
  /**
173
176
  * @public
174
177
  * <p>Welcome to the <i>Amazon SQS API Reference</i>.</p>
175
- * <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.</p>
176
- * <p>For information on the permissions you need to use this API, see
177
- * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-authentication-and-access-control.html">Identity and
178
- * access management</a> in the <i>Amazon SQS Developer Guide.</i>
178
+ * <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel
179
+ * between applications or microservices. Amazon SQS moves data between distributed application
180
+ * components and helps you decouple these components.</p>
181
+ * <p>For information on the permissions you need to use this API, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-authentication-and-access-control.html">Identity and access management</a> in the <i>Amazon SQS Developer
182
+ * Guide.</i>
179
183
  * </p>
180
- * <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:</p>
184
+ * <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access
185
+ * Amazon SQS using your favorite programming language. The SDKs perform tasks such as the
186
+ * following automatically:</p>
181
187
  * <ul>
182
188
  * <li>
183
189
  * <p>Cryptographically sign your service requests</p>
@@ -233,7 +239,8 @@ export interface SQSClientResolvedConfig extends SQSClientResolvedConfigType {
233
239
  * <ul>
234
240
  * <li>
235
241
  * <p>
236
- * <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region">Regions and Endpoints</a>
242
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region">Regions and
243
+ * Endpoints</a>
237
244
  * </p>
238
245
  * </li>
239
246
  * </ul>
@@ -23,45 +23,39 @@ export interface AddPermissionCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Adds a permission to a queue for a specific
27
- * <a href="https://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a>.
28
- * This allows sharing access to the queue.</p>
29
- * <p>When you create a queue, you have full control access rights for the queue.
30
- * Only you, the owner of the queue, can grant or deny permissions to the queue.
31
- * For more information about these permissions, see
32
- * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue">Allow
33
- * Developers to Write Messages to a Shared Queue</a> in the <i>Amazon SQS Developer Guide</i>.</p>
26
+ * <p>Adds a permission to a queue for a specific <a href="https://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a>. This allows sharing
27
+ * access to the queue.</p>
28
+ * <p>When you create a queue, you have full control access rights for the queue. Only you,
29
+ * the owner of the queue, can grant or deny permissions to the queue. For more information
30
+ * about these permissions, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue">Allow Developers to Write Messages to a Shared Queue</a> in the <i>Amazon SQS
31
+ * Developer Guide</i>.</p>
34
32
  * <note>
35
33
  * <ul>
36
34
  * <li>
37
35
  * <p>
38
36
  * <code>AddPermission</code> generates a policy for you. You can use
39
- * <code>
37
+ * <code>
40
38
  * <a>SetQueueAttributes</a>
41
- * </code> to
42
- * upload your policy. For more information, see
43
- * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html">Using Custom Policies with the Amazon SQS Access Policy Language</a> in
44
- * the <i>Amazon SQS Developer Guide</i>.</p>
39
+ * </code> to upload your
40
+ * policy. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html">Using Custom Policies with the Amazon SQS Access Policy Language</a> in
41
+ * the <i>Amazon SQS Developer Guide</i>.</p>
45
42
  * </li>
46
43
  * <li>
47
- * <p>An Amazon SQS policy can have a maximum of 7 actions.</p>
44
+ * <p>An Amazon SQS policy can have a maximum of seven actions per statement.</p>
48
45
  * </li>
49
46
  * <li>
50
47
  * <p>To remove the ability to change queue permissions, you must deny permission to the <code>AddPermission</code>, <code>RemovePermission</code>, and <code>SetQueueAttributes</code> actions in your IAM policy.</p>
51
48
  * </li>
49
+ * <li>
50
+ * <p>Amazon SQS <code>AddPermission</code> does not support adding a non-account
51
+ * principal.</p>
52
+ * </li>
52
53
  * </ul>
53
54
  * </note>
54
- * <p>Some actions take lists of parameters. These lists are specified using the <code>param.n</code> notation. Values of <code>n</code> are integers starting from 1. For example, a parameter list with two elements looks like this:</p>
55
- * <p>
56
- * <code>&AttributeName.1=first</code>
57
- * </p>
58
- * <p>
59
- * <code>&AttributeName.2=second</code>
60
- * </p>
61
55
  * <note>
62
56
  * <p>Cross-account permissions don't apply to this action. For more information,
63
57
  * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant
64
- * cross-account permissions to a role and a user name</a> in the <i>Amazon SQS Developer Guide</i>.</p>
58
+ * cross-account permissions to a role and a username</a> in the <i>Amazon SQS Developer Guide</i>.</p>
65
59
  * </note>
66
60
  * @example
67
61
  * Use a bare-bones client and the command you need to make an API call.
@@ -93,7 +87,7 @@ export interface AddPermissionCommandOutput extends __MetadataBearer {
93
87
  *
94
88
  * @throws {@link OverLimit} (client fault)
95
89
  * <p>The specified action violates a limit. For example, <code>ReceiveMessage</code>
96
- * returns this error if the maximum number of inflight messages is reached and
90
+ * returns this error if the maximum number of in flight messages is reached and
97
91
  * <code>AddPermission</code> returns this error if the maximum number of permissions
98
92
  * for the queue is reached.</p>
99
93
  *