@aws-sdk/client-sns 3.186.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 +8 -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,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var SNSClient = (function (_super) {
13
- __extends(SNSClient, _super);
14
- function SNSClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class SNSClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- SNSClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return SNSClient;
38
- }(__Client));
39
- export { SNSClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { AddPermissionInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryAddPermissionCommand, serializeAws_queryAddPermissionCommand, } from "../protocols/Aws_query";
6
- var AddPermissionCommand = (function (_super) {
7
- __extends(AddPermissionCommand, _super);
8
- function AddPermissionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AddPermissionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AddPermissionCommand.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 = "AddPermissionCommand";
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 = "AddPermissionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AddPermissionInputFilterSensitiveLog,
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
- AddPermissionCommand.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_queryAddPermissionCommand(input, context);
33
- };
34
- AddPermissionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryAddPermissionCommand(output, context);
36
- };
37
- return AddPermissionCommand;
38
- }($Command));
39
- export { AddPermissionCommand };
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 { CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog, CheckIfPhoneNumberIsOptedOutResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand, serializeAws_queryCheckIfPhoneNumberIsOptedOutCommand, } from "../protocols/Aws_query";
6
- var CheckIfPhoneNumberIsOptedOutCommand = (function (_super) {
7
- __extends(CheckIfPhoneNumberIsOptedOutCommand, _super);
8
- function CheckIfPhoneNumberIsOptedOutCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CheckIfPhoneNumberIsOptedOutCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CheckIfPhoneNumberIsOptedOutCommand.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 = "CheckIfPhoneNumberIsOptedOutCommand";
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 = "CheckIfPhoneNumberIsOptedOutCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CheckIfPhoneNumberIsOptedOutResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CheckIfPhoneNumberIsOptedOutCommand.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_queryCheckIfPhoneNumberIsOptedOutCommand(input, context);
33
- };
34
- CheckIfPhoneNumberIsOptedOutCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand(output, context);
36
- };
37
- return CheckIfPhoneNumberIsOptedOutCommand;
38
- }($Command));
39
- export { CheckIfPhoneNumberIsOptedOutCommand };
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 { ConfirmSubscriptionInputFilterSensitiveLog, ConfirmSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryConfirmSubscriptionCommand, serializeAws_queryConfirmSubscriptionCommand, } from "../protocols/Aws_query";
6
- var ConfirmSubscriptionCommand = (function (_super) {
7
- __extends(ConfirmSubscriptionCommand, _super);
8
- function ConfirmSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ConfirmSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ConfirmSubscriptionCommand.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 = "ConfirmSubscriptionCommand";
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 = "ConfirmSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ConfirmSubscriptionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ConfirmSubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ConfirmSubscriptionCommand.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_queryConfirmSubscriptionCommand(input, context);
33
- };
34
- ConfirmSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryConfirmSubscriptionCommand(output, context);
36
- };
37
- return ConfirmSubscriptionCommand;
38
- }($Command));
39
- export { ConfirmSubscriptionCommand };
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 { CreatePlatformApplicationInputFilterSensitiveLog, CreatePlatformApplicationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryCreatePlatformApplicationCommand, serializeAws_queryCreatePlatformApplicationCommand, } from "../protocols/Aws_query";
6
- var CreatePlatformApplicationCommand = (function (_super) {
7
- __extends(CreatePlatformApplicationCommand, _super);
8
- function CreatePlatformApplicationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePlatformApplicationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePlatformApplicationCommand.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 = "CreatePlatformApplicationCommand";
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 = "CreatePlatformApplicationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePlatformApplicationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreatePlatformApplicationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreatePlatformApplicationCommand.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_queryCreatePlatformApplicationCommand(input, context);
33
- };
34
- CreatePlatformApplicationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryCreatePlatformApplicationCommand(output, context);
36
- };
37
- return CreatePlatformApplicationCommand;
38
- }($Command));
39
- export { CreatePlatformApplicationCommand };
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 { CreateEndpointResponseFilterSensitiveLog, CreatePlatformEndpointInputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryCreatePlatformEndpointCommand, serializeAws_queryCreatePlatformEndpointCommand, } from "../protocols/Aws_query";
6
- var CreatePlatformEndpointCommand = (function (_super) {
7
- __extends(CreatePlatformEndpointCommand, _super);
8
- function CreatePlatformEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePlatformEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePlatformEndpointCommand.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 = "CreatePlatformEndpointCommand";
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 = "CreatePlatformEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePlatformEndpointInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateEndpointResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreatePlatformEndpointCommand.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_queryCreatePlatformEndpointCommand(input, context);
33
- };
34
- CreatePlatformEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryCreatePlatformEndpointCommand(output, context);
36
- };
37
- return CreatePlatformEndpointCommand;
38
- }($Command));
39
- export { CreatePlatformEndpointCommand };
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 { CreateSMSSandboxPhoneNumberInputFilterSensitiveLog, CreateSMSSandboxPhoneNumberResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryCreateSMSSandboxPhoneNumberCommand, serializeAws_queryCreateSMSSandboxPhoneNumberCommand, } from "../protocols/Aws_query";
6
- var CreateSMSSandboxPhoneNumberCommand = (function (_super) {
7
- __extends(CreateSMSSandboxPhoneNumberCommand, _super);
8
- function CreateSMSSandboxPhoneNumberCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateSMSSandboxPhoneNumberCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSMSSandboxPhoneNumberCommand.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 = "CreateSMSSandboxPhoneNumberCommand";
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 = "CreateSMSSandboxPhoneNumberCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSMSSandboxPhoneNumberInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSMSSandboxPhoneNumberResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateSMSSandboxPhoneNumberCommand.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_queryCreateSMSSandboxPhoneNumberCommand(input, context);
33
- };
34
- CreateSMSSandboxPhoneNumberCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryCreateSMSSandboxPhoneNumberCommand(output, context);
36
- };
37
- return CreateSMSSandboxPhoneNumberCommand;
38
- }($Command));
39
- export { CreateSMSSandboxPhoneNumberCommand };
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 { CreateTopicInputFilterSensitiveLog, CreateTopicResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryCreateTopicCommand, serializeAws_queryCreateTopicCommand } from "../protocols/Aws_query";
6
- var CreateTopicCommand = (function (_super) {
7
- __extends(CreateTopicCommand, _super);
8
- function CreateTopicCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateTopicCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateTopicCommand.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 = "CreateTopicCommand";
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 = "CreateTopicCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateTopicInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateTopicResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateTopicCommand.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_queryCreateTopicCommand(input, context);
33
- };
34
- CreateTopicCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryCreateTopicCommand(output, context);
36
- };
37
- return CreateTopicCommand;
38
- }($Command));
39
- export { CreateTopicCommand };
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 { DeleteEndpointInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteEndpointCommand, serializeAws_queryDeleteEndpointCommand, } from "../protocols/Aws_query";
6
- var DeleteEndpointCommand = (function (_super) {
7
- __extends(DeleteEndpointCommand, _super);
8
- function DeleteEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteEndpointCommand.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 = "DeleteEndpointCommand";
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 = "DeleteEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteEndpointInputFilterSensitiveLog,
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
- DeleteEndpointCommand.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_queryDeleteEndpointCommand(input, context);
33
- };
34
- DeleteEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteEndpointCommand(output, context);
36
- };
37
- return DeleteEndpointCommand;
38
- }($Command));
39
- export { DeleteEndpointCommand };
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 { DeletePlatformApplicationInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryDeletePlatformApplicationCommand, serializeAws_queryDeletePlatformApplicationCommand, } from "../protocols/Aws_query";
6
- var DeletePlatformApplicationCommand = (function (_super) {
7
- __extends(DeletePlatformApplicationCommand, _super);
8
- function DeletePlatformApplicationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeletePlatformApplicationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeletePlatformApplicationCommand.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 = "DeletePlatformApplicationCommand";
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 = "DeletePlatformApplicationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeletePlatformApplicationInputFilterSensitiveLog,
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
- DeletePlatformApplicationCommand.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_queryDeletePlatformApplicationCommand(input, context);
33
- };
34
- DeletePlatformApplicationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeletePlatformApplicationCommand(output, context);
36
- };
37
- return DeletePlatformApplicationCommand;
38
- }($Command));
39
- export { DeletePlatformApplicationCommand };
31
+ }
32
+ }