@aws-sdk/client-sqs 3.477.0 → 3.481.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 (105) hide show
  1. package/dist-cjs/commands/AddPermissionCommand.js +18 -41
  2. package/dist-cjs/commands/CancelMessageMoveTaskCommand.js +18 -41
  3. package/dist-cjs/commands/ChangeMessageVisibilityBatchCommand.js +18 -41
  4. package/dist-cjs/commands/ChangeMessageVisibilityCommand.js +18 -41
  5. package/dist-cjs/commands/CreateQueueCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteMessageBatchCommand.js +18 -41
  7. package/dist-cjs/commands/DeleteMessageCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteQueueCommand.js +18 -41
  9. package/dist-cjs/commands/GetQueueAttributesCommand.js +18 -41
  10. package/dist-cjs/commands/GetQueueUrlCommand.js +18 -41
  11. package/dist-cjs/commands/ListDeadLetterSourceQueuesCommand.js +18 -41
  12. package/dist-cjs/commands/ListMessageMoveTasksCommand.js +18 -41
  13. package/dist-cjs/commands/ListQueueTagsCommand.js +18 -41
  14. package/dist-cjs/commands/ListQueuesCommand.js +18 -41
  15. package/dist-cjs/commands/PurgeQueueCommand.js +18 -41
  16. package/dist-cjs/commands/ReceiveMessageCommand.js +19 -42
  17. package/dist-cjs/commands/RemovePermissionCommand.js +18 -41
  18. package/dist-cjs/commands/SendMessageBatchCommand.js +19 -42
  19. package/dist-cjs/commands/SendMessageCommand.js +19 -42
  20. package/dist-cjs/commands/SetQueueAttributesCommand.js +18 -41
  21. package/dist-cjs/commands/StartMessageMoveTaskCommand.js +18 -41
  22. package/dist-cjs/commands/TagQueueCommand.js +18 -41
  23. package/dist-cjs/commands/UntagQueueCommand.js +18 -41
  24. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  25. package/dist-cjs/pagination/ListDeadLetterSourceQueuesPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListQueuesPaginator.js +2 -24
  27. package/dist-es/commands/AddPermissionCommand.js +18 -41
  28. package/dist-es/commands/CancelMessageMoveTaskCommand.js +18 -41
  29. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +18 -41
  30. package/dist-es/commands/ChangeMessageVisibilityCommand.js +18 -41
  31. package/dist-es/commands/CreateQueueCommand.js +18 -41
  32. package/dist-es/commands/DeleteMessageBatchCommand.js +18 -41
  33. package/dist-es/commands/DeleteMessageCommand.js +18 -41
  34. package/dist-es/commands/DeleteQueueCommand.js +18 -41
  35. package/dist-es/commands/GetQueueAttributesCommand.js +18 -41
  36. package/dist-es/commands/GetQueueUrlCommand.js +18 -41
  37. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +18 -41
  38. package/dist-es/commands/ListMessageMoveTasksCommand.js +18 -41
  39. package/dist-es/commands/ListQueueTagsCommand.js +18 -41
  40. package/dist-es/commands/ListQueuesCommand.js +18 -41
  41. package/dist-es/commands/PurgeQueueCommand.js +18 -41
  42. package/dist-es/commands/ReceiveMessageCommand.js +19 -42
  43. package/dist-es/commands/RemovePermissionCommand.js +18 -41
  44. package/dist-es/commands/SendMessageBatchCommand.js +19 -42
  45. package/dist-es/commands/SendMessageCommand.js +19 -42
  46. package/dist-es/commands/SetQueueAttributesCommand.js +18 -41
  47. package/dist-es/commands/StartMessageMoveTaskCommand.js +18 -41
  48. package/dist-es/commands/TagQueueCommand.js +18 -41
  49. package/dist-es/commands/UntagQueueCommand.js +18 -41
  50. package/dist-es/endpoint/EndpointParameters.js +6 -0
  51. package/dist-es/pagination/ListDeadLetterSourceQueuesPaginator.js +2 -23
  52. package/dist-es/pagination/ListQueuesPaginator.js +2 -23
  53. package/dist-types/commands/AddPermissionCommand.d.ts +6 -21
  54. package/dist-types/commands/CancelMessageMoveTaskCommand.d.ts +6 -21
  55. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +6 -21
  56. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +6 -21
  57. package/dist-types/commands/CreateQueueCommand.d.ts +6 -21
  58. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +6 -21
  59. package/dist-types/commands/DeleteMessageCommand.d.ts +6 -21
  60. package/dist-types/commands/DeleteQueueCommand.d.ts +6 -21
  61. package/dist-types/commands/GetQueueAttributesCommand.d.ts +6 -21
  62. package/dist-types/commands/GetQueueUrlCommand.d.ts +6 -21
  63. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +6 -21
  64. package/dist-types/commands/ListMessageMoveTasksCommand.d.ts +6 -21
  65. package/dist-types/commands/ListQueueTagsCommand.d.ts +6 -21
  66. package/dist-types/commands/ListQueuesCommand.d.ts +6 -21
  67. package/dist-types/commands/PurgeQueueCommand.d.ts +6 -21
  68. package/dist-types/commands/ReceiveMessageCommand.d.ts +6 -21
  69. package/dist-types/commands/RemovePermissionCommand.d.ts +6 -21
  70. package/dist-types/commands/SendMessageBatchCommand.d.ts +6 -21
  71. package/dist-types/commands/SendMessageCommand.d.ts +6 -21
  72. package/dist-types/commands/SetQueueAttributesCommand.d.ts +6 -21
  73. package/dist-types/commands/StartMessageMoveTaskCommand.d.ts +6 -21
  74. package/dist-types/commands/TagQueueCommand.d.ts +6 -21
  75. package/dist-types/commands/UntagQueueCommand.d.ts +6 -21
  76. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  77. package/dist-types/pagination/ListDeadLetterSourceQueuesPaginator.d.ts +1 -1
  78. package/dist-types/pagination/ListQueuesPaginator.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/CancelMessageMoveTaskCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/ChangeMessageVisibilityBatchCommand.d.ts +12 -24
  82. package/dist-types/ts3.4/commands/ChangeMessageVisibilityCommand.d.ts +12 -24
  83. package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/DeleteMessageBatchCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/DeleteMessageCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/GetQueueAttributesCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/GetQueueUrlCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/ListDeadLetterSourceQueuesCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/ListMessageMoveTasksCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/ListQueueTagsCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +14 -23
  93. package/dist-types/ts3.4/commands/PurgeQueueCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/ReceiveMessageCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +14 -23
  96. package/dist-types/ts3.4/commands/SendMessageBatchCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/SetQueueAttributesCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/StartMessageMoveTaskCommand.d.ts +12 -24
  100. package/dist-types/ts3.4/commands/TagQueueCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/UntagQueueCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  103. package/dist-types/ts3.4/pagination/ListDeadLetterSourceQueuesPaginator.d.ts +3 -3
  104. package/dist-types/ts3.4/pagination/ListQueuesPaginator.d.ts +3 -3
  105. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListQueueTagsCommand, se_ListQueueTagsCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class ListQueueTagsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListQueueTagsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "ListQueueTagsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "ListQueueTags",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListQueueTagsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListQueueTagsCommand(output, context);
46
- }
7
+ export class ListQueueTagsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonSQS", "ListQueueTags", {})
19
+ .n("SQSClient", "ListQueueTagsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListQueueTagsCommand)
22
+ .de(de_ListQueueTagsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListQueuesCommand, se_ListQueuesCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class ListQueuesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListQueuesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "ListQueuesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "ListQueues",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListQueuesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListQueuesCommand(output, context);
46
- }
7
+ export class ListQueuesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonSQS", "ListQueues", {})
19
+ .n("SQSClient", "ListQueuesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListQueuesCommand)
22
+ .de(de_ListQueuesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PurgeQueueCommand, se_PurgeQueueCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class PurgeQueueCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PurgeQueueCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "PurgeQueueCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "PurgeQueue",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PurgeQueueCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PurgeQueueCommand(output, context);
46
- }
7
+ export class PurgeQueueCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonSQS", "PurgeQueue", {})
19
+ .n("SQSClient", "PurgeQueueCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PurgeQueueCommand)
22
+ .de(de_PurgeQueueCommand)
23
+ .build() {
47
24
  }
@@ -2,48 +2,25 @@ import { getReceiveMessagePlugin } from "@aws-sdk/middleware-sdk-sqs";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_ReceiveMessageCommand, se_ReceiveMessageCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class ReceiveMessageCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ReceiveMessageCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getReceiveMessagePlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "SQSClient";
28
- const commandName = "ReceiveMessageCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AmazonSQS",
37
- operation: "ReceiveMessage",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_ReceiveMessageCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_ReceiveMessageCommand(output, context);
48
- }
8
+ export class ReceiveMessageCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getReceiveMessagePlugin(config),
18
+ ];
19
+ })
20
+ .s("AmazonSQS", "ReceiveMessage", {})
21
+ .n("SQSClient", "ReceiveMessageCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_ReceiveMessageCommand)
24
+ .de(de_ReceiveMessageCommand)
25
+ .build() {
49
26
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_RemovePermissionCommand, se_RemovePermissionCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class RemovePermissionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, RemovePermissionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "RemovePermissionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "RemovePermission",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_RemovePermissionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_RemovePermissionCommand(output, context);
46
- }
7
+ export class RemovePermissionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonSQS", "RemovePermission", {})
19
+ .n("SQSClient", "RemovePermissionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_RemovePermissionCommand)
22
+ .de(de_RemovePermissionCommand)
23
+ .build() {
47
24
  }
@@ -2,48 +2,25 @@ import { getSendMessageBatchPlugin } from "@aws-sdk/middleware-sdk-sqs";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_SendMessageBatchCommand, se_SendMessageBatchCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class SendMessageBatchCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, SendMessageBatchCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getSendMessageBatchPlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "SQSClient";
28
- const commandName = "SendMessageBatchCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AmazonSQS",
37
- operation: "SendMessageBatch",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_SendMessageBatchCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_SendMessageBatchCommand(output, context);
48
- }
8
+ export class SendMessageBatchCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getSendMessageBatchPlugin(config),
18
+ ];
19
+ })
20
+ .s("AmazonSQS", "SendMessageBatch", {})
21
+ .n("SQSClient", "SendMessageBatchCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_SendMessageBatchCommand)
24
+ .de(de_SendMessageBatchCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getSendMessagePlugin } from "@aws-sdk/middleware-sdk-sqs";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_SendMessageCommand, se_SendMessageCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class SendMessageCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, SendMessageCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getSendMessagePlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "SQSClient";
28
- const commandName = "SendMessageCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AmazonSQS",
37
- operation: "SendMessage",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_SendMessageCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_SendMessageCommand(output, context);
48
- }
8
+ export class SendMessageCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getSendMessagePlugin(config),
18
+ ];
19
+ })
20
+ .s("AmazonSQS", "SendMessage", {})
21
+ .n("SQSClient", "SendMessageCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_SendMessageCommand)
24
+ .de(de_SendMessageCommand)
25
+ .build() {
49
26
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_SetQueueAttributesCommand, se_SetQueueAttributesCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class SetQueueAttributesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SetQueueAttributesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "SetQueueAttributesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "SetQueueAttributes",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SetQueueAttributesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SetQueueAttributesCommand(output, context);
46
- }
7
+ export class SetQueueAttributesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonSQS", "SetQueueAttributes", {})
19
+ .n("SQSClient", "SetQueueAttributesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SetQueueAttributesCommand)
22
+ .de(de_SetQueueAttributesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartMessageMoveTaskCommand, se_StartMessageMoveTaskCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class StartMessageMoveTaskCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartMessageMoveTaskCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "StartMessageMoveTaskCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "StartMessageMoveTask",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartMessageMoveTaskCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartMessageMoveTaskCommand(output, context);
46
- }
7
+ export class StartMessageMoveTaskCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonSQS", "StartMessageMoveTask", {})
19
+ .n("SQSClient", "StartMessageMoveTaskCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartMessageMoveTaskCommand)
22
+ .de(de_StartMessageMoveTaskCommand)
23
+ .build() {
47
24
  }