@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_ChangeMessageVisibilityCommand, se_ChangeMessageVisibilityCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class ChangeMessageVisibilityCommand 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, ChangeMessageVisibilityCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "ChangeMessageVisibilityCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "ChangeMessageVisibility",
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_ChangeMessageVisibilityCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ChangeMessageVisibilityCommand(output, context);
46
- }
7
+ export class ChangeMessageVisibilityCommand 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", "ChangeMessageVisibility", {})
19
+ .n("SQSClient", "ChangeMessageVisibilityCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ChangeMessageVisibilityCommand)
22
+ .de(de_ChangeMessageVisibilityCommand)
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_CreateQueueCommand, se_CreateQueueCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class CreateQueueCommand 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, CreateQueueCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "CreateQueueCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "CreateQueue",
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_CreateQueueCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateQueueCommand(output, context);
46
- }
7
+ export class CreateQueueCommand 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", "CreateQueue", {})
19
+ .n("SQSClient", "CreateQueueCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateQueueCommand)
22
+ .de(de_CreateQueueCommand)
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_DeleteMessageBatchCommand, se_DeleteMessageBatchCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class DeleteMessageBatchCommand 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, DeleteMessageBatchCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "DeleteMessageBatchCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "DeleteMessageBatch",
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_DeleteMessageBatchCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteMessageBatchCommand(output, context);
46
- }
7
+ export class DeleteMessageBatchCommand 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", "DeleteMessageBatch", {})
19
+ .n("SQSClient", "DeleteMessageBatchCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteMessageBatchCommand)
22
+ .de(de_DeleteMessageBatchCommand)
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_DeleteMessageCommand, se_DeleteMessageCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class DeleteMessageCommand 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, DeleteMessageCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "DeleteMessageCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "DeleteMessage",
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_DeleteMessageCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteMessageCommand(output, context);
46
- }
7
+ export class DeleteMessageCommand 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", "DeleteMessage", {})
19
+ .n("SQSClient", "DeleteMessageCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteMessageCommand)
22
+ .de(de_DeleteMessageCommand)
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_DeleteQueueCommand, se_DeleteQueueCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class DeleteQueueCommand 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, DeleteQueueCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "DeleteQueueCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "DeleteQueue",
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_DeleteQueueCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteQueueCommand(output, context);
46
- }
7
+ export class DeleteQueueCommand 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", "DeleteQueue", {})
19
+ .n("SQSClient", "DeleteQueueCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteQueueCommand)
22
+ .de(de_DeleteQueueCommand)
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_GetQueueAttributesCommand, se_GetQueueAttributesCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class GetQueueAttributesCommand 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, GetQueueAttributesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "GetQueueAttributesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "GetQueueAttributes",
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_GetQueueAttributesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetQueueAttributesCommand(output, context);
46
- }
7
+ export class GetQueueAttributesCommand 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", "GetQueueAttributes", {})
19
+ .n("SQSClient", "GetQueueAttributesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetQueueAttributesCommand)
22
+ .de(de_GetQueueAttributesCommand)
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_GetQueueUrlCommand, se_GetQueueUrlCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class GetQueueUrlCommand 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, GetQueueUrlCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "GetQueueUrlCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "GetQueueUrl",
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_GetQueueUrlCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetQueueUrlCommand(output, context);
46
- }
7
+ export class GetQueueUrlCommand 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", "GetQueueUrl", {})
19
+ .n("SQSClient", "GetQueueUrlCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetQueueUrlCommand)
22
+ .de(de_GetQueueUrlCommand)
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_ListDeadLetterSourceQueuesCommand, se_ListDeadLetterSourceQueuesCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class ListDeadLetterSourceQueuesCommand 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, ListDeadLetterSourceQueuesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "ListDeadLetterSourceQueuesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "ListDeadLetterSourceQueues",
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_ListDeadLetterSourceQueuesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListDeadLetterSourceQueuesCommand(output, context);
46
- }
7
+ export class ListDeadLetterSourceQueuesCommand 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", "ListDeadLetterSourceQueues", {})
19
+ .n("SQSClient", "ListDeadLetterSourceQueuesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListDeadLetterSourceQueuesCommand)
22
+ .de(de_ListDeadLetterSourceQueuesCommand)
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_ListMessageMoveTasksCommand, se_ListMessageMoveTasksCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class ListMessageMoveTasksCommand 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, ListMessageMoveTasksCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SQSClient";
26
- const commandName = "ListMessageMoveTasksCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonSQS",
35
- operation: "ListMessageMoveTasks",
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_ListMessageMoveTasksCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListMessageMoveTasksCommand(output, context);
46
- }
7
+ export class ListMessageMoveTasksCommand 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", "ListMessageMoveTasks", {})
19
+ .n("SQSClient", "ListMessageMoveTasksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListMessageMoveTasksCommand)
22
+ .de(de_ListMessageMoveTasksCommand)
23
+ .build() {
47
24
  }