@aws-sdk/client-sqs 3.186.0 → 3.190.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 (35) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-cjs/protocols/Aws_query.js +8 -4
  3. package/dist-es/SQS.js +82 -89
  4. package/dist-es/SQSClient.js +22 -28
  5. package/dist-es/commands/AddPermissionCommand.js +22 -29
  6. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +21 -28
  7. package/dist-es/commands/ChangeMessageVisibilityCommand.js +22 -29
  8. package/dist-es/commands/CreateQueueCommand.js +21 -28
  9. package/dist-es/commands/DeleteMessageBatchCommand.js +21 -28
  10. package/dist-es/commands/DeleteMessageCommand.js +22 -29
  11. package/dist-es/commands/DeleteQueueCommand.js +22 -29
  12. package/dist-es/commands/GetQueueAttributesCommand.js +21 -28
  13. package/dist-es/commands/GetQueueUrlCommand.js +21 -28
  14. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +21 -28
  15. package/dist-es/commands/ListQueueTagsCommand.js +21 -28
  16. package/dist-es/commands/ListQueuesCommand.js +21 -28
  17. package/dist-es/commands/PurgeQueueCommand.js +22 -29
  18. package/dist-es/commands/ReceiveMessageCommand.js +21 -28
  19. package/dist-es/commands/RemovePermissionCommand.js +22 -29
  20. package/dist-es/commands/SendMessageBatchCommand.js +21 -28
  21. package/dist-es/commands/SendMessageCommand.js +21 -28
  22. package/dist-es/commands/SetQueueAttributesCommand.js +22 -29
  23. package/dist-es/commands/TagQueueCommand.js +22 -29
  24. package/dist-es/commands/UntagQueueCommand.js +22 -29
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/SQSServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +315 -234
  28. package/dist-es/pagination/ListDeadLetterSourceQueuesPaginator.js +25 -68
  29. package/dist-es/pagination/ListQueuesPaginator.js +25 -68
  30. package/dist-es/protocols/Aws_query.js +1420 -1912
  31. package/dist-es/runtimeConfig.browser.js +27 -12
  32. package/dist-es/runtimeConfig.js +31 -12
  33. package/dist-es/runtimeConfig.native.js +8 -5
  34. package/dist-es/runtimeConfig.shared.js +8 -11
  35. package/package.json +36 -37
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ChangeMessageVisibilityRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryChangeMessageVisibilityCommand, serializeAws_queryChangeMessageVisibilityCommand, } from "../protocols/Aws_query";
6
- var ChangeMessageVisibilityCommand = (function (_super) {
7
- __extends(ChangeMessageVisibilityCommand, _super);
8
- function ChangeMessageVisibilityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ChangeMessageVisibilityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ChangeMessageVisibilityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "ChangeMessageVisibilityCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "ChangeMessageVisibilityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ChangeMessageVisibilityRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ChangeMessageVisibilityCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryChangeMessageVisibilityCommand(input, context);
33
- };
34
- ChangeMessageVisibilityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryChangeMessageVisibilityCommand(output, context);
36
- };
37
- return ChangeMessageVisibilityCommand;
38
- }($Command));
39
- export { ChangeMessageVisibilityCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateQueueRequestFilterSensitiveLog, CreateQueueResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryCreateQueueCommand, serializeAws_queryCreateQueueCommand } from "../protocols/Aws_query";
6
- var CreateQueueCommand = (function (_super) {
7
- __extends(CreateQueueCommand, _super);
8
- function CreateQueueCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateQueueCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateQueueCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "CreateQueueCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "CreateQueueCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateQueueRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateQueueResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateQueueCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryCreateQueueCommand(input, context);
33
- };
34
- CreateQueueCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryCreateQueueCommand(output, context);
36
- };
37
- return CreateQueueCommand;
38
- }($Command));
39
- export { CreateQueueCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteMessageBatchRequestFilterSensitiveLog, DeleteMessageBatchResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteMessageBatchCommand, serializeAws_queryDeleteMessageBatchCommand, } from "../protocols/Aws_query";
6
- var DeleteMessageBatchCommand = (function (_super) {
7
- __extends(DeleteMessageBatchCommand, _super);
8
- function DeleteMessageBatchCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteMessageBatchCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteMessageBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "DeleteMessageBatchCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "DeleteMessageBatchCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteMessageBatchRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteMessageBatchResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteMessageBatchCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteMessageBatchCommand(input, context);
33
- };
34
- DeleteMessageBatchCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteMessageBatchCommand(output, context);
36
- };
37
- return DeleteMessageBatchCommand;
38
- }($Command));
39
- export { DeleteMessageBatchCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteMessageRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteMessageCommand, serializeAws_queryDeleteMessageCommand, } from "../protocols/Aws_query";
6
- var DeleteMessageCommand = (function (_super) {
7
- __extends(DeleteMessageCommand, _super);
8
- function DeleteMessageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteMessageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteMessageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "DeleteMessageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "DeleteMessageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteMessageRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteMessageCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteMessageCommand(input, context);
33
- };
34
- DeleteMessageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteMessageCommand(output, context);
36
- };
37
- return DeleteMessageCommand;
38
- }($Command));
39
- export { DeleteMessageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteQueueRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteQueueCommand, serializeAws_queryDeleteQueueCommand } from "../protocols/Aws_query";
6
- var DeleteQueueCommand = (function (_super) {
7
- __extends(DeleteQueueCommand, _super);
8
- function DeleteQueueCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteQueueCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteQueueCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "DeleteQueueCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "DeleteQueueCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteQueueRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteQueueCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteQueueCommand(input, context);
33
- };
34
- DeleteQueueCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteQueueCommand(output, context);
36
- };
37
- return DeleteQueueCommand;
38
- }($Command));
39
- export { DeleteQueueCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetQueueAttributesRequestFilterSensitiveLog, GetQueueAttributesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetQueueAttributesCommand, serializeAws_queryGetQueueAttributesCommand, } from "../protocols/Aws_query";
6
- var GetQueueAttributesCommand = (function (_super) {
7
- __extends(GetQueueAttributesCommand, _super);
8
- function GetQueueAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetQueueAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetQueueAttributesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "GetQueueAttributesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "GetQueueAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetQueueAttributesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetQueueAttributesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetQueueAttributesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryGetQueueAttributesCommand(input, context);
33
- };
34
- GetQueueAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetQueueAttributesCommand(output, context);
36
- };
37
- return GetQueueAttributesCommand;
38
- }($Command));
39
- export { GetQueueAttributesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetQueueUrlRequestFilterSensitiveLog, GetQueueUrlResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetQueueUrlCommand, serializeAws_queryGetQueueUrlCommand } from "../protocols/Aws_query";
6
- var GetQueueUrlCommand = (function (_super) {
7
- __extends(GetQueueUrlCommand, _super);
8
- function GetQueueUrlCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetQueueUrlCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetQueueUrlCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "GetQueueUrlCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "GetQueueUrlCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetQueueUrlRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetQueueUrlResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetQueueUrlCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryGetQueueUrlCommand(input, context);
33
- };
34
- GetQueueUrlCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetQueueUrlCommand(output, context);
36
- };
37
- return GetQueueUrlCommand;
38
- }($Command));
39
- export { GetQueueUrlCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListDeadLetterSourceQueuesRequestFilterSensitiveLog, ListDeadLetterSourceQueuesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListDeadLetterSourceQueuesCommand, serializeAws_queryListDeadLetterSourceQueuesCommand, } from "../protocols/Aws_query";
6
- var ListDeadLetterSourceQueuesCommand = (function (_super) {
7
- __extends(ListDeadLetterSourceQueuesCommand, _super);
8
- function ListDeadLetterSourceQueuesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDeadLetterSourceQueuesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDeadLetterSourceQueuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "ListDeadLetterSourceQueuesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "ListDeadLetterSourceQueuesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDeadLetterSourceQueuesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDeadLetterSourceQueuesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDeadLetterSourceQueuesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryListDeadLetterSourceQueuesCommand(input, context);
33
- };
34
- ListDeadLetterSourceQueuesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListDeadLetterSourceQueuesCommand(output, context);
36
- };
37
- return ListDeadLetterSourceQueuesCommand;
38
- }($Command));
39
- export { ListDeadLetterSourceQueuesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListQueueTagsRequestFilterSensitiveLog, ListQueueTagsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListQueueTagsCommand, serializeAws_queryListQueueTagsCommand, } from "../protocols/Aws_query";
6
- var ListQueueTagsCommand = (function (_super) {
7
- __extends(ListQueueTagsCommand, _super);
8
- function ListQueueTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListQueueTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListQueueTagsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "ListQueueTagsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "ListQueueTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListQueueTagsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListQueueTagsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListQueueTagsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryListQueueTagsCommand(input, context);
33
- };
34
- ListQueueTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListQueueTagsCommand(output, context);
36
- };
37
- return ListQueueTagsCommand;
38
- }($Command));
39
- export { ListQueueTagsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListQueuesRequestFilterSensitiveLog, ListQueuesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListQueuesCommand, serializeAws_queryListQueuesCommand } from "../protocols/Aws_query";
6
- var ListQueuesCommand = (function (_super) {
7
- __extends(ListQueuesCommand, _super);
8
- function ListQueuesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListQueuesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListQueuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SQSClient";
18
- var commandName = "ListQueuesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SQSClient";
15
+ const commandName = "ListQueuesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListQueuesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListQueuesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListQueuesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryListQueuesCommand(input, context);
33
- };
34
- ListQueuesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListQueuesCommand(output, context);
36
- };
37
- return ListQueuesCommand;
38
- }($Command));
39
- export { ListQueuesCommand };
31
+ }
32
+ }