@aws-sdk/client-sns 3.180.0 → 3.183.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 +26 -0
  2. package/dist-cjs/protocols/Aws_query.js +270 -262
  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 +3114 -4092
  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 +33 -33
@@ -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 { PublishInputFilterSensitiveLog, PublishResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryPublishCommand, serializeAws_queryPublishCommand } from "../protocols/Aws_query";
6
- var PublishCommand = (function (_super) {
7
- __extends(PublishCommand, _super);
8
- function PublishCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PublishCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PublishCommand.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 = "PublishCommand";
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 = "PublishCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PublishInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PublishResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PublishCommand.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_queryPublishCommand(input, context);
33
- };
34
- PublishCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPublishCommand(output, context);
36
- };
37
- return PublishCommand;
38
- }($Command));
39
- export { PublishCommand };
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 { PutDataProtectionPolicyInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryPutDataProtectionPolicyCommand, serializeAws_queryPutDataProtectionPolicyCommand, } from "../protocols/Aws_query";
6
- var PutDataProtectionPolicyCommand = (function (_super) {
7
- __extends(PutDataProtectionPolicyCommand, _super);
8
- function PutDataProtectionPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutDataProtectionPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutDataProtectionPolicyCommand.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 = "PutDataProtectionPolicyCommand";
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 = "PutDataProtectionPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutDataProtectionPolicyInputFilterSensitiveLog,
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
- PutDataProtectionPolicyCommand.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_queryPutDataProtectionPolicyCommand(input, context);
33
- };
34
- PutDataProtectionPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutDataProtectionPolicyCommand(output, context);
36
- };
37
- return PutDataProtectionPolicyCommand;
38
- }($Command));
39
- export { PutDataProtectionPolicyCommand };
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 { RemovePermissionInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryRemovePermissionCommand, serializeAws_queryRemovePermissionCommand, } from "../protocols/Aws_query";
6
- var RemovePermissionCommand = (function (_super) {
7
- __extends(RemovePermissionCommand, _super);
8
- function RemovePermissionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RemovePermissionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RemovePermissionCommand.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 = "RemovePermissionCommand";
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 = "RemovePermissionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RemovePermissionInputFilterSensitiveLog,
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
- RemovePermissionCommand.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_queryRemovePermissionCommand(input, context);
33
- };
34
- RemovePermissionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryRemovePermissionCommand(output, context);
36
- };
37
- return RemovePermissionCommand;
38
- }($Command));
39
- export { RemovePermissionCommand };
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 { SetEndpointAttributesInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_querySetEndpointAttributesCommand, serializeAws_querySetEndpointAttributesCommand, } from "../protocols/Aws_query";
6
- var SetEndpointAttributesCommand = (function (_super) {
7
- __extends(SetEndpointAttributesCommand, _super);
8
- function SetEndpointAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetEndpointAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetEndpointAttributesCommand.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 = "SetEndpointAttributesCommand";
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 = "SetEndpointAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetEndpointAttributesInputFilterSensitiveLog,
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
- SetEndpointAttributesCommand.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_querySetEndpointAttributesCommand(input, context);
33
- };
34
- SetEndpointAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_querySetEndpointAttributesCommand(output, context);
36
- };
37
- return SetEndpointAttributesCommand;
38
- }($Command));
39
- export { SetEndpointAttributesCommand };
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 { SetPlatformApplicationAttributesInputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_querySetPlatformApplicationAttributesCommand, serializeAws_querySetPlatformApplicationAttributesCommand, } from "../protocols/Aws_query";
6
- var SetPlatformApplicationAttributesCommand = (function (_super) {
7
- __extends(SetPlatformApplicationAttributesCommand, _super);
8
- function SetPlatformApplicationAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetPlatformApplicationAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetPlatformApplicationAttributesCommand.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 = "SetPlatformApplicationAttributesCommand";
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 = "SetPlatformApplicationAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetPlatformApplicationAttributesInputFilterSensitiveLog,
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
- SetPlatformApplicationAttributesCommand.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_querySetPlatformApplicationAttributesCommand(input, context);
33
- };
34
- SetPlatformApplicationAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_querySetPlatformApplicationAttributesCommand(output, context);
36
- };
37
- return SetPlatformApplicationAttributesCommand;
38
- }($Command));
39
- export { SetPlatformApplicationAttributesCommand };
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 { SetSMSAttributesInputFilterSensitiveLog, SetSMSAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_querySetSMSAttributesCommand, serializeAws_querySetSMSAttributesCommand, } from "../protocols/Aws_query";
6
- var SetSMSAttributesCommand = (function (_super) {
7
- __extends(SetSMSAttributesCommand, _super);
8
- function SetSMSAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetSMSAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetSMSAttributesCommand.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 = "SetSMSAttributesCommand";
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 = "SetSMSAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetSMSAttributesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SetSMSAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SetSMSAttributesCommand.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_querySetSMSAttributesCommand(input, context);
33
- };
34
- SetSMSAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_querySetSMSAttributesCommand(output, context);
36
- };
37
- return SetSMSAttributesCommand;
38
- }($Command));
39
- export { SetSMSAttributesCommand };
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 { SetSubscriptionAttributesInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_querySetSubscriptionAttributesCommand, serializeAws_querySetSubscriptionAttributesCommand, } from "../protocols/Aws_query";
6
- var SetSubscriptionAttributesCommand = (function (_super) {
7
- __extends(SetSubscriptionAttributesCommand, _super);
8
- function SetSubscriptionAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetSubscriptionAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetSubscriptionAttributesCommand.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 = "SetSubscriptionAttributesCommand";
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 = "SetSubscriptionAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetSubscriptionAttributesInputFilterSensitiveLog,
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
- SetSubscriptionAttributesCommand.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_querySetSubscriptionAttributesCommand(input, context);
33
- };
34
- SetSubscriptionAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_querySetSubscriptionAttributesCommand(output, context);
36
- };
37
- return SetSubscriptionAttributesCommand;
38
- }($Command));
39
- export { SetSubscriptionAttributesCommand };
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 { SetTopicAttributesInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_querySetTopicAttributesCommand, serializeAws_querySetTopicAttributesCommand, } from "../protocols/Aws_query";
6
- var SetTopicAttributesCommand = (function (_super) {
7
- __extends(SetTopicAttributesCommand, _super);
8
- function SetTopicAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetTopicAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetTopicAttributesCommand.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 = "SetTopicAttributesCommand";
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 = "SetTopicAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetTopicAttributesInputFilterSensitiveLog,
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
- SetTopicAttributesCommand.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_querySetTopicAttributesCommand(input, context);
33
- };
34
- SetTopicAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_querySetTopicAttributesCommand(output, context);
36
- };
37
- return SetTopicAttributesCommand;
38
- }($Command));
39
- export { SetTopicAttributesCommand };
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 { SubscribeInputFilterSensitiveLog, SubscribeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_querySubscribeCommand, serializeAws_querySubscribeCommand } from "../protocols/Aws_query";
6
- var SubscribeCommand = (function (_super) {
7
- __extends(SubscribeCommand, _super);
8
- function SubscribeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SubscribeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SubscribeCommand.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 = "SubscribeCommand";
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 = "SubscribeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SubscribeInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SubscribeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SubscribeCommand.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_querySubscribeCommand(input, context);
33
- };
34
- SubscribeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_querySubscribeCommand(output, context);
36
- };
37
- return SubscribeCommand;
38
- }($Command));
39
- export { SubscribeCommand };
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 { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryTagResourceCommand, serializeAws_queryTagResourceCommand } from "../protocols/Aws_query";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_queryTagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryTagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
31
+ }
32
+ }