@aws-sdk/client-sns 3.185.0 → 3.188.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 (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-cjs/protocols/Aws_query.js +8 -4
  3. package/dist-es/SNS.js +170 -177
  4. package/dist-es/SNSClient.js +22 -28
  5. package/dist-es/commands/AddPermissionCommand.js +22 -29
  6. package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +21 -28
  7. package/dist-es/commands/ConfirmSubscriptionCommand.js +21 -28
  8. package/dist-es/commands/CreatePlatformApplicationCommand.js +21 -28
  9. package/dist-es/commands/CreatePlatformEndpointCommand.js +21 -28
  10. package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +21 -28
  11. package/dist-es/commands/CreateTopicCommand.js +21 -28
  12. package/dist-es/commands/DeleteEndpointCommand.js +22 -29
  13. package/dist-es/commands/DeletePlatformApplicationCommand.js +22 -29
  14. package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +21 -28
  15. package/dist-es/commands/DeleteTopicCommand.js +22 -29
  16. package/dist-es/commands/GetDataProtectionPolicyCommand.js +21 -28
  17. package/dist-es/commands/GetEndpointAttributesCommand.js +21 -28
  18. package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +21 -28
  19. package/dist-es/commands/GetSMSAttributesCommand.js +21 -28
  20. package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +21 -28
  21. package/dist-es/commands/GetSubscriptionAttributesCommand.js +21 -28
  22. package/dist-es/commands/GetTopicAttributesCommand.js +21 -28
  23. package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +21 -28
  24. package/dist-es/commands/ListOriginationNumbersCommand.js +21 -28
  25. package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +21 -28
  26. package/dist-es/commands/ListPlatformApplicationsCommand.js +21 -28
  27. package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +21 -28
  28. package/dist-es/commands/ListSubscriptionsByTopicCommand.js +21 -28
  29. package/dist-es/commands/ListSubscriptionsCommand.js +21 -28
  30. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  31. package/dist-es/commands/ListTopicsCommand.js +21 -28
  32. package/dist-es/commands/OptInPhoneNumberCommand.js +21 -28
  33. package/dist-es/commands/PublishBatchCommand.js +21 -28
  34. package/dist-es/commands/PublishCommand.js +21 -28
  35. package/dist-es/commands/PutDataProtectionPolicyCommand.js +22 -29
  36. package/dist-es/commands/RemovePermissionCommand.js +22 -29
  37. package/dist-es/commands/SetEndpointAttributesCommand.js +22 -29
  38. package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +22 -29
  39. package/dist-es/commands/SetSMSAttributesCommand.js +21 -28
  40. package/dist-es/commands/SetSubscriptionAttributesCommand.js +22 -29
  41. package/dist-es/commands/SetTopicAttributesCommand.js +22 -29
  42. package/dist-es/commands/SubscribeCommand.js +21 -28
  43. package/dist-es/commands/TagResourceCommand.js +21 -28
  44. package/dist-es/commands/UnsubscribeCommand.js +22 -29
  45. package/dist-es/commands/UntagResourceCommand.js +21 -28
  46. package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +21 -28
  47. package/dist-es/endpoints.js +8 -8
  48. package/dist-es/models/SNSServiceException.js +5 -10
  49. package/dist-es/models/models_0.js +639 -472
  50. package/dist-es/pagination/ListEndpointsByPlatformApplicationPaginator.js +24 -67
  51. package/dist-es/pagination/ListOriginationNumbersPaginator.js +25 -68
  52. package/dist-es/pagination/ListPhoneNumbersOptedOutPaginator.js +24 -67
  53. package/dist-es/pagination/ListPlatformApplicationsPaginator.js +24 -67
  54. package/dist-es/pagination/ListSMSSandboxPhoneNumbersPaginator.js +25 -68
  55. package/dist-es/pagination/ListSubscriptionsByTopicPaginator.js +24 -67
  56. package/dist-es/pagination/ListSubscriptionsPaginator.js +24 -67
  57. package/dist-es/pagination/ListTopicsPaginator.js +24 -67
  58. package/dist-es/protocols/Aws_query.js +3120 -4109
  59. package/dist-es/runtimeConfig.browser.js +26 -12
  60. package/dist-es/runtimeConfig.js +30 -12
  61. package/dist-es/runtimeConfig.native.js +8 -5
  62. package/dist-es/runtimeConfig.shared.js +8 -11
  63. package/package.json +34 -35
@@ -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 { ListOriginationNumbersRequestFilterSensitiveLog, ListOriginationNumbersResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListOriginationNumbersCommand, serializeAws_queryListOriginationNumbersCommand, } from "../protocols/Aws_query";
6
- var ListOriginationNumbersCommand = (function (_super) {
7
- __extends(ListOriginationNumbersCommand, _super);
8
- function ListOriginationNumbersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListOriginationNumbersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListOriginationNumbersCommand.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 = "SNSClient";
18
- var commandName = "ListOriginationNumbersCommand";
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 = "SNSClient";
15
+ const commandName = "ListOriginationNumbersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListOriginationNumbersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListOriginationNumbersResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListOriginationNumbersCommand.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_queryListOriginationNumbersCommand(input, context);
33
- };
34
- ListOriginationNumbersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListOriginationNumbersCommand(output, context);
36
- };
37
- return ListOriginationNumbersCommand;
38
- }($Command));
39
- export { ListOriginationNumbersCommand };
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 { ListPhoneNumbersOptedOutInputFilterSensitiveLog, ListPhoneNumbersOptedOutResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListPhoneNumbersOptedOutCommand, serializeAws_queryListPhoneNumbersOptedOutCommand, } from "../protocols/Aws_query";
6
- var ListPhoneNumbersOptedOutCommand = (function (_super) {
7
- __extends(ListPhoneNumbersOptedOutCommand, _super);
8
- function ListPhoneNumbersOptedOutCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPhoneNumbersOptedOutCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPhoneNumbersOptedOutCommand.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 = "SNSClient";
18
- var commandName = "ListPhoneNumbersOptedOutCommand";
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 = "SNSClient";
15
+ const commandName = "ListPhoneNumbersOptedOutCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPhoneNumbersOptedOutInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPhoneNumbersOptedOutResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPhoneNumbersOptedOutCommand.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_queryListPhoneNumbersOptedOutCommand(input, context);
33
- };
34
- ListPhoneNumbersOptedOutCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListPhoneNumbersOptedOutCommand(output, context);
36
- };
37
- return ListPhoneNumbersOptedOutCommand;
38
- }($Command));
39
- export { ListPhoneNumbersOptedOutCommand };
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 { ListPlatformApplicationsInputFilterSensitiveLog, ListPlatformApplicationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListPlatformApplicationsCommand, serializeAws_queryListPlatformApplicationsCommand, } from "../protocols/Aws_query";
6
- var ListPlatformApplicationsCommand = (function (_super) {
7
- __extends(ListPlatformApplicationsCommand, _super);
8
- function ListPlatformApplicationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPlatformApplicationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPlatformApplicationsCommand.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 = "SNSClient";
18
- var commandName = "ListPlatformApplicationsCommand";
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 = "SNSClient";
15
+ const commandName = "ListPlatformApplicationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPlatformApplicationsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPlatformApplicationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPlatformApplicationsCommand.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_queryListPlatformApplicationsCommand(input, context);
33
- };
34
- ListPlatformApplicationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListPlatformApplicationsCommand(output, context);
36
- };
37
- return ListPlatformApplicationsCommand;
38
- }($Command));
39
- export { ListPlatformApplicationsCommand };
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 { ListSMSSandboxPhoneNumbersInputFilterSensitiveLog, ListSMSSandboxPhoneNumbersResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListSMSSandboxPhoneNumbersCommand, serializeAws_queryListSMSSandboxPhoneNumbersCommand, } from "../protocols/Aws_query";
6
- var ListSMSSandboxPhoneNumbersCommand = (function (_super) {
7
- __extends(ListSMSSandboxPhoneNumbersCommand, _super);
8
- function ListSMSSandboxPhoneNumbersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSMSSandboxPhoneNumbersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSMSSandboxPhoneNumbersCommand.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 = "SNSClient";
18
- var commandName = "ListSMSSandboxPhoneNumbersCommand";
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 = "SNSClient";
15
+ const commandName = "ListSMSSandboxPhoneNumbersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSMSSandboxPhoneNumbersInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSMSSandboxPhoneNumbersResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSMSSandboxPhoneNumbersCommand.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_queryListSMSSandboxPhoneNumbersCommand(input, context);
33
- };
34
- ListSMSSandboxPhoneNumbersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListSMSSandboxPhoneNumbersCommand(output, context);
36
- };
37
- return ListSMSSandboxPhoneNumbersCommand;
38
- }($Command));
39
- export { ListSMSSandboxPhoneNumbersCommand };
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 { ListSubscriptionsByTopicInputFilterSensitiveLog, ListSubscriptionsByTopicResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListSubscriptionsByTopicCommand, serializeAws_queryListSubscriptionsByTopicCommand, } from "../protocols/Aws_query";
6
- var ListSubscriptionsByTopicCommand = (function (_super) {
7
- __extends(ListSubscriptionsByTopicCommand, _super);
8
- function ListSubscriptionsByTopicCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSubscriptionsByTopicCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSubscriptionsByTopicCommand.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 = "SNSClient";
18
- var commandName = "ListSubscriptionsByTopicCommand";
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 = "SNSClient";
15
+ const commandName = "ListSubscriptionsByTopicCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSubscriptionsByTopicInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSubscriptionsByTopicResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSubscriptionsByTopicCommand.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_queryListSubscriptionsByTopicCommand(input, context);
33
- };
34
- ListSubscriptionsByTopicCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListSubscriptionsByTopicCommand(output, context);
36
- };
37
- return ListSubscriptionsByTopicCommand;
38
- }($Command));
39
- export { ListSubscriptionsByTopicCommand };
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 { ListSubscriptionsInputFilterSensitiveLog, ListSubscriptionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListSubscriptionsCommand, serializeAws_queryListSubscriptionsCommand, } from "../protocols/Aws_query";
6
- var ListSubscriptionsCommand = (function (_super) {
7
- __extends(ListSubscriptionsCommand, _super);
8
- function ListSubscriptionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSubscriptionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSubscriptionsCommand.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 = "SNSClient";
18
- var commandName = "ListSubscriptionsCommand";
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 = "SNSClient";
15
+ const commandName = "ListSubscriptionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSubscriptionsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSubscriptionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSubscriptionsCommand.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_queryListSubscriptionsCommand(input, context);
33
- };
34
- ListSubscriptionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListSubscriptionsCommand(output, context);
36
- };
37
- return ListSubscriptionsCommand;
38
- }($Command));
39
- export { ListSubscriptionsCommand };
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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListTagsForResourceCommand, serializeAws_queryListTagsForResourceCommand, } from "../protocols/Aws_query";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "SNSClient";
18
- var commandName = "ListTagsForResourceCommand";
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 = "SNSClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_queryListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { ListTopicsInputFilterSensitiveLog, ListTopicsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListTopicsCommand, serializeAws_queryListTopicsCommand } from "../protocols/Aws_query";
6
- var ListTopicsCommand = (function (_super) {
7
- __extends(ListTopicsCommand, _super);
8
- function ListTopicsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTopicsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTopicsCommand.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 = "SNSClient";
18
- var commandName = "ListTopicsCommand";
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 = "SNSClient";
15
+ const commandName = "ListTopicsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTopicsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTopicsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTopicsCommand.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_queryListTopicsCommand(input, context);
33
- };
34
- ListTopicsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListTopicsCommand(output, context);
36
- };
37
- return ListTopicsCommand;
38
- }($Command));
39
- export { ListTopicsCommand };
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 { OptInPhoneNumberInputFilterSensitiveLog, OptInPhoneNumberResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryOptInPhoneNumberCommand, serializeAws_queryOptInPhoneNumberCommand, } from "../protocols/Aws_query";
6
- var OptInPhoneNumberCommand = (function (_super) {
7
- __extends(OptInPhoneNumberCommand, _super);
8
- function OptInPhoneNumberCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class OptInPhoneNumberCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- OptInPhoneNumberCommand.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 = "SNSClient";
18
- var commandName = "OptInPhoneNumberCommand";
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 = "SNSClient";
15
+ const commandName = "OptInPhoneNumberCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: OptInPhoneNumberInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: OptInPhoneNumberResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- OptInPhoneNumberCommand.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_queryOptInPhoneNumberCommand(input, context);
33
- };
34
- OptInPhoneNumberCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryOptInPhoneNumberCommand(output, context);
36
- };
37
- return OptInPhoneNumberCommand;
38
- }($Command));
39
- export { OptInPhoneNumberCommand };
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 { PublishBatchInputFilterSensitiveLog, PublishBatchResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryPublishBatchCommand, serializeAws_queryPublishBatchCommand } from "../protocols/Aws_query";
6
- var PublishBatchCommand = (function (_super) {
7
- __extends(PublishBatchCommand, _super);
8
- function PublishBatchCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PublishBatchCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PublishBatchCommand.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 = "SNSClient";
18
- var commandName = "PublishBatchCommand";
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 = "SNSClient";
15
+ const commandName = "PublishBatchCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PublishBatchInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PublishBatchResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PublishBatchCommand.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_queryPublishBatchCommand(input, context);
33
- };
34
- PublishBatchCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPublishBatchCommand(output, context);
36
- };
37
- return PublishBatchCommand;
38
- }($Command));
39
- export { PublishBatchCommand };
31
+ }
32
+ }