@aws-sdk/client-sqs 3.1077.0 → 3.1078.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 (77) hide show
  1. package/dist-cjs/index.js +41 -243
  2. package/dist-es/commandBuilder.js +18 -0
  3. package/dist-es/commands/AddPermissionCommand.js +2 -14
  4. package/dist-es/commands/CancelMessageMoveTaskCommand.js +2 -14
  5. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +2 -14
  6. package/dist-es/commands/ChangeMessageVisibilityCommand.js +2 -14
  7. package/dist-es/commands/CreateQueueCommand.js +2 -14
  8. package/dist-es/commands/DeleteMessageBatchCommand.js +2 -14
  9. package/dist-es/commands/DeleteMessageCommand.js +2 -14
  10. package/dist-es/commands/DeleteQueueCommand.js +2 -14
  11. package/dist-es/commands/GetQueueAttributesCommand.js +2 -14
  12. package/dist-es/commands/GetQueueUrlCommand.js +2 -14
  13. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +2 -14
  14. package/dist-es/commands/ListMessageMoveTasksCommand.js +2 -14
  15. package/dist-es/commands/ListQueueTagsCommand.js +2 -14
  16. package/dist-es/commands/ListQueuesCommand.js +2 -14
  17. package/dist-es/commands/PurgeQueueCommand.js +2 -14
  18. package/dist-es/commands/ReceiveMessageCommand.js +2 -20
  19. package/dist-es/commands/RemovePermissionCommand.js +2 -14
  20. package/dist-es/commands/SendMessageBatchCommand.js +2 -18
  21. package/dist-es/commands/SendMessageCommand.js +2 -18
  22. package/dist-es/commands/SetQueueAttributesCommand.js +2 -14
  23. package/dist-es/commands/StartMessageMoveTaskCommand.js +2 -14
  24. package/dist-es/commands/TagQueueCommand.js +2 -14
  25. package/dist-es/commands/UntagQueueCommand.js +2 -14
  26. package/dist-es/index.js +1 -0
  27. package/dist-types/commandBuilder.d.ts +30 -0
  28. package/dist-types/commands/AddPermissionCommand.d.ts +3 -8
  29. package/dist-types/commands/CancelMessageMoveTaskCommand.d.ts +3 -8
  30. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +3 -8
  31. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +3 -8
  32. package/dist-types/commands/CreateQueueCommand.d.ts +3 -8
  33. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +3 -8
  34. package/dist-types/commands/DeleteMessageCommand.d.ts +3 -8
  35. package/dist-types/commands/DeleteQueueCommand.d.ts +3 -8
  36. package/dist-types/commands/GetQueueAttributesCommand.d.ts +3 -8
  37. package/dist-types/commands/GetQueueUrlCommand.d.ts +3 -8
  38. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +3 -8
  39. package/dist-types/commands/ListMessageMoveTasksCommand.d.ts +3 -8
  40. package/dist-types/commands/ListQueueTagsCommand.d.ts +3 -8
  41. package/dist-types/commands/ListQueuesCommand.d.ts +3 -8
  42. package/dist-types/commands/PurgeQueueCommand.d.ts +3 -8
  43. package/dist-types/commands/ReceiveMessageCommand.d.ts +3 -8
  44. package/dist-types/commands/RemovePermissionCommand.d.ts +3 -8
  45. package/dist-types/commands/SendMessageBatchCommand.d.ts +3 -8
  46. package/dist-types/commands/SendMessageCommand.d.ts +3 -8
  47. package/dist-types/commands/SetQueueAttributesCommand.d.ts +3 -8
  48. package/dist-types/commands/StartMessageMoveTaskCommand.d.ts +3 -8
  49. package/dist-types/commands/TagQueueCommand.d.ts +3 -8
  50. package/dist-types/commands/UntagQueueCommand.d.ts +3 -8
  51. package/dist-types/index.d.ts +1 -0
  52. package/dist-types/ts3.4/commandBuilder.d.ts +64 -0
  53. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/CancelMessageMoveTaskCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/ChangeMessageVisibilityBatchCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/ChangeMessageVisibilityCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/DeleteMessageBatchCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/DeleteMessageCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/GetQueueAttributesCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/GetQueueUrlCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/ListDeadLetterSourceQueuesCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/ListMessageMoveTasksCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/ListQueueTagsCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/PurgeQueueCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/ReceiveMessageCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/SendMessageBatchCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/SetQueueAttributesCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/StartMessageMoveTaskCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/TagQueueCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/UntagQueueCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/index.d.ts +1 -0
  77. package/package.json +10 -10
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getLongPollPlugin } = require("@aws-sdk/core/client");
2
2
  const { resolveQueueUrlConfig, getQueueUrlPlugin, getReceiveMessagePlugin, getSendMessageBatchPlugin, getSendMessagePlugin } = require("@aws-sdk/middleware-sdk-sqs");
3
3
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
- exports.$Command = Command;
4
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
5
+ const { Command: $Command } = require("@smithy/core/client");
6
+ exports.$Command = $Command;
6
7
  exports.__Client = Client;
7
8
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
9
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -69,7 +70,7 @@ const commonParams = {
69
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
71
  };
71
72
 
72
- var version = "3.1076.0";
73
+ var version = "3.1077.0";
73
74
  var packageInfo = {
74
75
  version: version};
75
76
 
@@ -1378,290 +1379,87 @@ class SQSClient extends Client {
1378
1379
  }
1379
1380
  }
1380
1381
 
1381
- class AddPermissionCommand extends Command
1382
- .classBuilder()
1383
- .ep(commonParams)
1384
- .m(function (Command, cs, config, o) {
1385
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1386
- })
1387
- .s("AmazonSQS", "AddPermission", {})
1388
- .n("SQSClient", "AddPermissionCommand")
1389
- .sc(AddPermission$)
1390
- .build() {
1382
+ const command = makeBuilder(commonParams, "AmazonSQS", "SQSClient", getEndpointPlugin);
1383
+ const _ep0 = {};
1384
+ const _mw0 = (Command, cs, config, o) => [];
1385
+ const _mw1 = (Command, cs, config, o) => [
1386
+ getReceiveMessagePlugin(config),
1387
+ getLongPollPlugin(config),
1388
+ ];
1389
+ const _mw2 = (Command, cs, config, o) => [
1390
+ getSendMessageBatchPlugin(config),
1391
+ ];
1392
+ const _mw3 = (Command, cs, config, o) => [
1393
+ getSendMessagePlugin(config),
1394
+ ];
1395
+
1396
+ class AddPermissionCommand extends command(_ep0, _mw0, "AddPermission", AddPermission$) {
1391
1397
  }
1392
1398
 
1393
- class CancelMessageMoveTaskCommand extends Command
1394
- .classBuilder()
1395
- .ep(commonParams)
1396
- .m(function (Command, cs, config, o) {
1397
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1398
- })
1399
- .s("AmazonSQS", "CancelMessageMoveTask", {})
1400
- .n("SQSClient", "CancelMessageMoveTaskCommand")
1401
- .sc(CancelMessageMoveTask$)
1402
- .build() {
1399
+ class CancelMessageMoveTaskCommand extends command(_ep0, _mw0, "CancelMessageMoveTask", CancelMessageMoveTask$) {
1403
1400
  }
1404
1401
 
1405
- class ChangeMessageVisibilityBatchCommand extends Command
1406
- .classBuilder()
1407
- .ep(commonParams)
1408
- .m(function (Command, cs, config, o) {
1409
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1410
- })
1411
- .s("AmazonSQS", "ChangeMessageVisibilityBatch", {})
1412
- .n("SQSClient", "ChangeMessageVisibilityBatchCommand")
1413
- .sc(ChangeMessageVisibilityBatch$)
1414
- .build() {
1402
+ class ChangeMessageVisibilityBatchCommand extends command(_ep0, _mw0, "ChangeMessageVisibilityBatch", ChangeMessageVisibilityBatch$) {
1415
1403
  }
1416
1404
 
1417
- class ChangeMessageVisibilityCommand extends Command
1418
- .classBuilder()
1419
- .ep(commonParams)
1420
- .m(function (Command, cs, config, o) {
1421
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1422
- })
1423
- .s("AmazonSQS", "ChangeMessageVisibility", {})
1424
- .n("SQSClient", "ChangeMessageVisibilityCommand")
1425
- .sc(ChangeMessageVisibility$)
1426
- .build() {
1405
+ class ChangeMessageVisibilityCommand extends command(_ep0, _mw0, "ChangeMessageVisibility", ChangeMessageVisibility$) {
1427
1406
  }
1428
1407
 
1429
- class CreateQueueCommand extends Command
1430
- .classBuilder()
1431
- .ep(commonParams)
1432
- .m(function (Command, cs, config, o) {
1433
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1434
- })
1435
- .s("AmazonSQS", "CreateQueue", {})
1436
- .n("SQSClient", "CreateQueueCommand")
1437
- .sc(CreateQueue$)
1438
- .build() {
1408
+ class CreateQueueCommand extends command(_ep0, _mw0, "CreateQueue", CreateQueue$) {
1439
1409
  }
1440
1410
 
1441
- class DeleteMessageBatchCommand extends Command
1442
- .classBuilder()
1443
- .ep(commonParams)
1444
- .m(function (Command, cs, config, o) {
1445
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1446
- })
1447
- .s("AmazonSQS", "DeleteMessageBatch", {})
1448
- .n("SQSClient", "DeleteMessageBatchCommand")
1449
- .sc(DeleteMessageBatch$)
1450
- .build() {
1411
+ class DeleteMessageBatchCommand extends command(_ep0, _mw0, "DeleteMessageBatch", DeleteMessageBatch$) {
1451
1412
  }
1452
1413
 
1453
- class DeleteMessageCommand extends Command
1454
- .classBuilder()
1455
- .ep(commonParams)
1456
- .m(function (Command, cs, config, o) {
1457
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1458
- })
1459
- .s("AmazonSQS", "DeleteMessage", {})
1460
- .n("SQSClient", "DeleteMessageCommand")
1461
- .sc(DeleteMessage$)
1462
- .build() {
1414
+ class DeleteMessageCommand extends command(_ep0, _mw0, "DeleteMessage", DeleteMessage$) {
1463
1415
  }
1464
1416
 
1465
- class DeleteQueueCommand extends Command
1466
- .classBuilder()
1467
- .ep(commonParams)
1468
- .m(function (Command, cs, config, o) {
1469
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1470
- })
1471
- .s("AmazonSQS", "DeleteQueue", {})
1472
- .n("SQSClient", "DeleteQueueCommand")
1473
- .sc(DeleteQueue$)
1474
- .build() {
1417
+ class DeleteQueueCommand extends command(_ep0, _mw0, "DeleteQueue", DeleteQueue$) {
1475
1418
  }
1476
1419
 
1477
- class GetQueueAttributesCommand extends Command
1478
- .classBuilder()
1479
- .ep(commonParams)
1480
- .m(function (Command, cs, config, o) {
1481
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1482
- })
1483
- .s("AmazonSQS", "GetQueueAttributes", {})
1484
- .n("SQSClient", "GetQueueAttributesCommand")
1485
- .sc(GetQueueAttributes$)
1486
- .build() {
1420
+ class GetQueueAttributesCommand extends command(_ep0, _mw0, "GetQueueAttributes", GetQueueAttributes$) {
1487
1421
  }
1488
1422
 
1489
- class GetQueueUrlCommand extends Command
1490
- .classBuilder()
1491
- .ep(commonParams)
1492
- .m(function (Command, cs, config, o) {
1493
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1494
- })
1495
- .s("AmazonSQS", "GetQueueUrl", {})
1496
- .n("SQSClient", "GetQueueUrlCommand")
1497
- .sc(GetQueueUrl$)
1498
- .build() {
1423
+ class GetQueueUrlCommand extends command(_ep0, _mw0, "GetQueueUrl", GetQueueUrl$) {
1499
1424
  }
1500
1425
 
1501
- class ListDeadLetterSourceQueuesCommand extends Command
1502
- .classBuilder()
1503
- .ep(commonParams)
1504
- .m(function (Command, cs, config, o) {
1505
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1506
- })
1507
- .s("AmazonSQS", "ListDeadLetterSourceQueues", {})
1508
- .n("SQSClient", "ListDeadLetterSourceQueuesCommand")
1509
- .sc(ListDeadLetterSourceQueues$)
1510
- .build() {
1426
+ class ListDeadLetterSourceQueuesCommand extends command(_ep0, _mw0, "ListDeadLetterSourceQueues", ListDeadLetterSourceQueues$) {
1511
1427
  }
1512
1428
 
1513
- class ListMessageMoveTasksCommand extends Command
1514
- .classBuilder()
1515
- .ep(commonParams)
1516
- .m(function (Command, cs, config, o) {
1517
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1518
- })
1519
- .s("AmazonSQS", "ListMessageMoveTasks", {})
1520
- .n("SQSClient", "ListMessageMoveTasksCommand")
1521
- .sc(ListMessageMoveTasks$)
1522
- .build() {
1429
+ class ListMessageMoveTasksCommand extends command(_ep0, _mw0, "ListMessageMoveTasks", ListMessageMoveTasks$) {
1523
1430
  }
1524
1431
 
1525
- class ListQueuesCommand extends Command
1526
- .classBuilder()
1527
- .ep(commonParams)
1528
- .m(function (Command, cs, config, o) {
1529
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1530
- })
1531
- .s("AmazonSQS", "ListQueues", {})
1532
- .n("SQSClient", "ListQueuesCommand")
1533
- .sc(ListQueues$)
1534
- .build() {
1432
+ class ListQueuesCommand extends command(_ep0, _mw0, "ListQueues", ListQueues$) {
1535
1433
  }
1536
1434
 
1537
- class ListQueueTagsCommand extends Command
1538
- .classBuilder()
1539
- .ep(commonParams)
1540
- .m(function (Command, cs, config, o) {
1541
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1542
- })
1543
- .s("AmazonSQS", "ListQueueTags", {})
1544
- .n("SQSClient", "ListQueueTagsCommand")
1545
- .sc(ListQueueTags$)
1546
- .build() {
1435
+ class ListQueueTagsCommand extends command(_ep0, _mw0, "ListQueueTags", ListQueueTags$) {
1547
1436
  }
1548
1437
 
1549
- class PurgeQueueCommand extends Command
1550
- .classBuilder()
1551
- .ep(commonParams)
1552
- .m(function (Command, cs, config, o) {
1553
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1554
- })
1555
- .s("AmazonSQS", "PurgeQueue", {})
1556
- .n("SQSClient", "PurgeQueueCommand")
1557
- .sc(PurgeQueue$)
1558
- .build() {
1438
+ class PurgeQueueCommand extends command(_ep0, _mw0, "PurgeQueue", PurgeQueue$) {
1559
1439
  }
1560
1440
 
1561
- class ReceiveMessageCommand extends Command
1562
- .classBuilder()
1563
- .ep(commonParams)
1564
- .m(function (Command, cs, config, o) {
1565
- return [
1566
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1567
- getReceiveMessagePlugin(config),
1568
- getLongPollPlugin(config),
1569
- ];
1570
- })
1571
- .s("AmazonSQS", "ReceiveMessage", {})
1572
- .n("SQSClient", "ReceiveMessageCommand")
1573
- .sc(ReceiveMessage$)
1574
- .build() {
1441
+ class ReceiveMessageCommand extends command(_ep0, _mw1, "ReceiveMessage", ReceiveMessage$) {
1575
1442
  }
1576
1443
 
1577
- class RemovePermissionCommand extends Command
1578
- .classBuilder()
1579
- .ep(commonParams)
1580
- .m(function (Command, cs, config, o) {
1581
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1582
- })
1583
- .s("AmazonSQS", "RemovePermission", {})
1584
- .n("SQSClient", "RemovePermissionCommand")
1585
- .sc(RemovePermission$)
1586
- .build() {
1444
+ class RemovePermissionCommand extends command(_ep0, _mw0, "RemovePermission", RemovePermission$) {
1587
1445
  }
1588
1446
 
1589
- class SendMessageBatchCommand extends Command
1590
- .classBuilder()
1591
- .ep(commonParams)
1592
- .m(function (Command, cs, config, o) {
1593
- return [
1594
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1595
- getSendMessageBatchPlugin(config),
1596
- ];
1597
- })
1598
- .s("AmazonSQS", "SendMessageBatch", {})
1599
- .n("SQSClient", "SendMessageBatchCommand")
1600
- .sc(SendMessageBatch$)
1601
- .build() {
1447
+ class SendMessageBatchCommand extends command(_ep0, _mw2, "SendMessageBatch", SendMessageBatch$) {
1602
1448
  }
1603
1449
 
1604
- class SendMessageCommand extends Command
1605
- .classBuilder()
1606
- .ep(commonParams)
1607
- .m(function (Command, cs, config, o) {
1608
- return [
1609
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1610
- getSendMessagePlugin(config),
1611
- ];
1612
- })
1613
- .s("AmazonSQS", "SendMessage", {})
1614
- .n("SQSClient", "SendMessageCommand")
1615
- .sc(SendMessage$)
1616
- .build() {
1450
+ class SendMessageCommand extends command(_ep0, _mw3, "SendMessage", SendMessage$) {
1617
1451
  }
1618
1452
 
1619
- class SetQueueAttributesCommand extends Command
1620
- .classBuilder()
1621
- .ep(commonParams)
1622
- .m(function (Command, cs, config, o) {
1623
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1624
- })
1625
- .s("AmazonSQS", "SetQueueAttributes", {})
1626
- .n("SQSClient", "SetQueueAttributesCommand")
1627
- .sc(SetQueueAttributes$)
1628
- .build() {
1453
+ class SetQueueAttributesCommand extends command(_ep0, _mw0, "SetQueueAttributes", SetQueueAttributes$) {
1629
1454
  }
1630
1455
 
1631
- class StartMessageMoveTaskCommand extends Command
1632
- .classBuilder()
1633
- .ep(commonParams)
1634
- .m(function (Command, cs, config, o) {
1635
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1636
- })
1637
- .s("AmazonSQS", "StartMessageMoveTask", {})
1638
- .n("SQSClient", "StartMessageMoveTaskCommand")
1639
- .sc(StartMessageMoveTask$)
1640
- .build() {
1456
+ class StartMessageMoveTaskCommand extends command(_ep0, _mw0, "StartMessageMoveTask", StartMessageMoveTask$) {
1641
1457
  }
1642
1458
 
1643
- class TagQueueCommand extends Command
1644
- .classBuilder()
1645
- .ep(commonParams)
1646
- .m(function (Command, cs, config, o) {
1647
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1648
- })
1649
- .s("AmazonSQS", "TagQueue", {})
1650
- .n("SQSClient", "TagQueueCommand")
1651
- .sc(TagQueue$)
1652
- .build() {
1459
+ class TagQueueCommand extends command(_ep0, _mw0, "TagQueue", TagQueue$) {
1653
1460
  }
1654
1461
 
1655
- class UntagQueueCommand extends Command
1656
- .classBuilder()
1657
- .ep(commonParams)
1658
- .m(function (Command, cs, config, o) {
1659
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1660
- })
1661
- .s("AmazonSQS", "UntagQueue", {})
1662
- .n("SQSClient", "UntagQueueCommand")
1663
- .sc(UntagQueue$)
1664
- .build() {
1462
+ class UntagQueueCommand extends command(_ep0, _mw0, "UntagQueue", UntagQueue$) {
1665
1463
  }
1666
1464
 
1667
1465
  const paginateListDeadLetterSourceQueues = createPaginator(SQSClient, ListDeadLetterSourceQueuesCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,18 @@
1
+ import { getLongPollPlugin } from "@aws-sdk/core/client";
2
+ import { getReceiveMessagePlugin, getSendMessageBatchPlugin, getSendMessagePlugin } from "@aws-sdk/middleware-sdk-sqs";
3
+ import { makeBuilder } from "@smithy/core/client";
4
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
5
+ import { commonParams } from "./endpoint/EndpointParameters";
6
+ export const command = makeBuilder(commonParams, "AmazonSQS", "SQSClient", getEndpointPlugin);
7
+ export const _ep0 = {};
8
+ export const _mw0 = (Command, cs, config, o) => [];
9
+ export const _mw1 = (Command, cs, config, o) => [
10
+ getReceiveMessagePlugin(config),
11
+ getLongPollPlugin(config),
12
+ ];
13
+ export const _mw2 = (Command, cs, config, o) => [
14
+ getSendMessageBatchPlugin(config),
15
+ ];
16
+ export const _mw3 = (Command, cs, config, o) => [
17
+ getSendMessagePlugin(config),
18
+ ];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AddPermission$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AddPermissionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "AddPermission", {})
13
- .n("SQSClient", "AddPermissionCommand")
14
- .sc(AddPermission$)
15
- .build() {
3
+ export class AddPermissionCommand extends command(_ep0, _mw0, "AddPermission", AddPermission$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CancelMessageMoveTask$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CancelMessageMoveTaskCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "CancelMessageMoveTask", {})
13
- .n("SQSClient", "CancelMessageMoveTaskCommand")
14
- .sc(CancelMessageMoveTask$)
15
- .build() {
3
+ export class CancelMessageMoveTaskCommand extends command(_ep0, _mw0, "CancelMessageMoveTask", CancelMessageMoveTask$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ChangeMessageVisibilityBatch$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ChangeMessageVisibilityBatchCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ChangeMessageVisibilityBatch", {})
13
- .n("SQSClient", "ChangeMessageVisibilityBatchCommand")
14
- .sc(ChangeMessageVisibilityBatch$)
15
- .build() {
3
+ export class ChangeMessageVisibilityBatchCommand extends command(_ep0, _mw0, "ChangeMessageVisibilityBatch", ChangeMessageVisibilityBatch$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ChangeMessageVisibility$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ChangeMessageVisibilityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ChangeMessageVisibility", {})
13
- .n("SQSClient", "ChangeMessageVisibilityCommand")
14
- .sc(ChangeMessageVisibility$)
15
- .build() {
3
+ export class ChangeMessageVisibilityCommand extends command(_ep0, _mw0, "ChangeMessageVisibility", ChangeMessageVisibility$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateQueue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateQueueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "CreateQueue", {})
13
- .n("SQSClient", "CreateQueueCommand")
14
- .sc(CreateQueue$)
15
- .build() {
3
+ export class CreateQueueCommand extends command(_ep0, _mw0, "CreateQueue", CreateQueue$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteMessageBatch$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteMessageBatchCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "DeleteMessageBatch", {})
13
- .n("SQSClient", "DeleteMessageBatchCommand")
14
- .sc(DeleteMessageBatch$)
15
- .build() {
3
+ export class DeleteMessageBatchCommand extends command(_ep0, _mw0, "DeleteMessageBatch", DeleteMessageBatch$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteMessage$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteMessageCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "DeleteMessage", {})
13
- .n("SQSClient", "DeleteMessageCommand")
14
- .sc(DeleteMessage$)
15
- .build() {
3
+ export class DeleteMessageCommand extends command(_ep0, _mw0, "DeleteMessage", DeleteMessage$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteQueue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteQueueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "DeleteQueue", {})
13
- .n("SQSClient", "DeleteQueueCommand")
14
- .sc(DeleteQueue$)
15
- .build() {
3
+ export class DeleteQueueCommand extends command(_ep0, _mw0, "DeleteQueue", DeleteQueue$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetQueueAttributes$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetQueueAttributesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "GetQueueAttributes", {})
13
- .n("SQSClient", "GetQueueAttributesCommand")
14
- .sc(GetQueueAttributes$)
15
- .build() {
3
+ export class GetQueueAttributesCommand extends command(_ep0, _mw0, "GetQueueAttributes", GetQueueAttributes$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetQueueUrl$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetQueueUrlCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "GetQueueUrl", {})
13
- .n("SQSClient", "GetQueueUrlCommand")
14
- .sc(GetQueueUrl$)
15
- .build() {
3
+ export class GetQueueUrlCommand extends command(_ep0, _mw0, "GetQueueUrl", GetQueueUrl$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListDeadLetterSourceQueues$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDeadLetterSourceQueuesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ListDeadLetterSourceQueues", {})
13
- .n("SQSClient", "ListDeadLetterSourceQueuesCommand")
14
- .sc(ListDeadLetterSourceQueues$)
15
- .build() {
3
+ export class ListDeadLetterSourceQueuesCommand extends command(_ep0, _mw0, "ListDeadLetterSourceQueues", ListDeadLetterSourceQueues$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListMessageMoveTasks$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListMessageMoveTasksCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ListMessageMoveTasks", {})
13
- .n("SQSClient", "ListMessageMoveTasksCommand")
14
- .sc(ListMessageMoveTasks$)
15
- .build() {
3
+ export class ListMessageMoveTasksCommand extends command(_ep0, _mw0, "ListMessageMoveTasks", ListMessageMoveTasks$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListQueueTags$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListQueueTagsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ListQueueTags", {})
13
- .n("SQSClient", "ListQueueTagsCommand")
14
- .sc(ListQueueTags$)
15
- .build() {
3
+ export class ListQueueTagsCommand extends command(_ep0, _mw0, "ListQueueTags", ListQueueTags$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListQueues$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListQueuesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ListQueues", {})
13
- .n("SQSClient", "ListQueuesCommand")
14
- .sc(ListQueues$)
15
- .build() {
3
+ export class ListQueuesCommand extends command(_ep0, _mw0, "ListQueues", ListQueues$) {
16
4
  }