@aws-sdk/client-sns 3.183.0 → 3.185.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 +11 -0
  2. package/dist-cjs/protocols/Aws_query.js +2 -2
  3. package/dist-es/SNS.js +177 -170
  4. package/dist-es/SNSClient.js +28 -22
  5. package/dist-es/commands/AddPermissionCommand.js +29 -22
  6. package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +28 -21
  7. package/dist-es/commands/ConfirmSubscriptionCommand.js +28 -21
  8. package/dist-es/commands/CreatePlatformApplicationCommand.js +28 -21
  9. package/dist-es/commands/CreatePlatformEndpointCommand.js +28 -21
  10. package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +28 -21
  11. package/dist-es/commands/CreateTopicCommand.js +28 -21
  12. package/dist-es/commands/DeleteEndpointCommand.js +29 -22
  13. package/dist-es/commands/DeletePlatformApplicationCommand.js +29 -22
  14. package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +28 -21
  15. package/dist-es/commands/DeleteTopicCommand.js +29 -22
  16. package/dist-es/commands/GetDataProtectionPolicyCommand.js +28 -21
  17. package/dist-es/commands/GetEndpointAttributesCommand.js +28 -21
  18. package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +28 -21
  19. package/dist-es/commands/GetSMSAttributesCommand.js +28 -21
  20. package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +28 -21
  21. package/dist-es/commands/GetSubscriptionAttributesCommand.js +28 -21
  22. package/dist-es/commands/GetTopicAttributesCommand.js +28 -21
  23. package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +28 -21
  24. package/dist-es/commands/ListOriginationNumbersCommand.js +28 -21
  25. package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +28 -21
  26. package/dist-es/commands/ListPlatformApplicationsCommand.js +28 -21
  27. package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +28 -21
  28. package/dist-es/commands/ListSubscriptionsByTopicCommand.js +28 -21
  29. package/dist-es/commands/ListSubscriptionsCommand.js +28 -21
  30. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  31. package/dist-es/commands/ListTopicsCommand.js +28 -21
  32. package/dist-es/commands/OptInPhoneNumberCommand.js +28 -21
  33. package/dist-es/commands/PublishBatchCommand.js +28 -21
  34. package/dist-es/commands/PublishCommand.js +28 -21
  35. package/dist-es/commands/PutDataProtectionPolicyCommand.js +29 -22
  36. package/dist-es/commands/RemovePermissionCommand.js +29 -22
  37. package/dist-es/commands/SetEndpointAttributesCommand.js +29 -22
  38. package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +29 -22
  39. package/dist-es/commands/SetSMSAttributesCommand.js +28 -21
  40. package/dist-es/commands/SetSubscriptionAttributesCommand.js +29 -22
  41. package/dist-es/commands/SetTopicAttributesCommand.js +29 -22
  42. package/dist-es/commands/SubscribeCommand.js +28 -21
  43. package/dist-es/commands/TagResourceCommand.js +28 -21
  44. package/dist-es/commands/UnsubscribeCommand.js +29 -22
  45. package/dist-es/commands/UntagResourceCommand.js +28 -21
  46. package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +28 -21
  47. package/dist-es/endpoints.js +8 -8
  48. package/dist-es/models/SNSServiceException.js +10 -5
  49. package/dist-es/models/models_0.js +472 -639
  50. package/dist-es/pagination/ListEndpointsByPlatformApplicationPaginator.js +67 -24
  51. package/dist-es/pagination/ListOriginationNumbersPaginator.js +68 -25
  52. package/dist-es/pagination/ListPhoneNumbersOptedOutPaginator.js +67 -24
  53. package/dist-es/pagination/ListPlatformApplicationsPaginator.js +67 -24
  54. package/dist-es/pagination/ListSMSSandboxPhoneNumbersPaginator.js +68 -25
  55. package/dist-es/pagination/ListSubscriptionsByTopicPaginator.js +67 -24
  56. package/dist-es/pagination/ListSubscriptionsPaginator.js +67 -24
  57. package/dist-es/pagination/ListTopicsPaginator.js +67 -24
  58. package/dist-es/protocols/Aws_query.js +4117 -3124
  59. package/dist-es/runtimeConfig.browser.js +12 -26
  60. package/dist-es/runtimeConfig.js +12 -30
  61. package/dist-es/runtimeConfig.native.js +5 -8
  62. package/dist-es/runtimeConfig.shared.js +11 -8
  63. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
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));
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;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ SNSClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return SNSClient;
38
+ }(__Client));
39
+ export { SNSClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AddPermissionInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_queryAddPermissionCommand, serializeAws_queryAddPermissionCommand, } from "../protocols/Aws_query";
5
- export class AddPermissionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AddPermissionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: AddPermissionInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryAddPermissionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AddPermissionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryAddPermissionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AddPermissionCommand;
38
+ }($Command));
39
+ export { AddPermissionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog, CheckIfPhoneNumberIsOptedOutResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand, serializeAws_queryCheckIfPhoneNumberIsOptedOutCommand, } from "../protocols/Aws_query";
5
- export class CheckIfPhoneNumberIsOptedOutCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CheckIfPhoneNumberIsOptedOutCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CheckIfPhoneNumberIsOptedOutResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryCheckIfPhoneNumberIsOptedOutCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CheckIfPhoneNumberIsOptedOutCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CheckIfPhoneNumberIsOptedOutCommand;
38
+ }($Command));
39
+ export { CheckIfPhoneNumberIsOptedOutCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ConfirmSubscriptionInputFilterSensitiveLog, ConfirmSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryConfirmSubscriptionCommand, serializeAws_queryConfirmSubscriptionCommand, } from "../protocols/Aws_query";
5
- export class ConfirmSubscriptionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ConfirmSubscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: ConfirmSubscriptionInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ConfirmSubscriptionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryConfirmSubscriptionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ConfirmSubscriptionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryConfirmSubscriptionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ConfirmSubscriptionCommand;
38
+ }($Command));
39
+ export { ConfirmSubscriptionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreatePlatformApplicationInputFilterSensitiveLog, CreatePlatformApplicationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryCreatePlatformApplicationCommand, serializeAws_queryCreatePlatformApplicationCommand, } from "../protocols/Aws_query";
5
- export class CreatePlatformApplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreatePlatformApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: CreatePlatformApplicationInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreatePlatformApplicationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryCreatePlatformApplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreatePlatformApplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryCreatePlatformApplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreatePlatformApplicationCommand;
38
+ }($Command));
39
+ export { CreatePlatformApplicationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateEndpointResponseFilterSensitiveLog, CreatePlatformEndpointInputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryCreatePlatformEndpointCommand, serializeAws_queryCreatePlatformEndpointCommand, } from "../protocols/Aws_query";
5
- export class CreatePlatformEndpointCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreatePlatformEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: CreatePlatformEndpointInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateEndpointResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryCreatePlatformEndpointCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreatePlatformEndpointCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryCreatePlatformEndpointCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreatePlatformEndpointCommand;
38
+ }($Command));
39
+ export { CreatePlatformEndpointCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateSMSSandboxPhoneNumberInputFilterSensitiveLog, CreateSMSSandboxPhoneNumberResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryCreateSMSSandboxPhoneNumberCommand, serializeAws_queryCreateSMSSandboxPhoneNumberCommand, } from "../protocols/Aws_query";
5
- export class CreateSMSSandboxPhoneNumberCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateSMSSandboxPhoneNumberCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: CreateSMSSandboxPhoneNumberInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateSMSSandboxPhoneNumberResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryCreateSMSSandboxPhoneNumberCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateSMSSandboxPhoneNumberCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryCreateSMSSandboxPhoneNumberCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateSMSSandboxPhoneNumberCommand;
38
+ }($Command));
39
+ export { CreateSMSSandboxPhoneNumberCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateTopicInputFilterSensitiveLog, CreateTopicResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryCreateTopicCommand, serializeAws_queryCreateTopicCommand } from "../protocols/Aws_query";
5
- export class CreateTopicCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateTopicCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: CreateTopicInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateTopicResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryCreateTopicCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateTopicCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryCreateTopicCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateTopicCommand;
38
+ }($Command));
39
+ export { CreateTopicCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteEndpointInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_queryDeleteEndpointCommand, serializeAws_queryDeleteEndpointCommand, } from "../protocols/Aws_query";
5
- export class DeleteEndpointCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: DeleteEndpointInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryDeleteEndpointCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteEndpointCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryDeleteEndpointCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteEndpointCommand;
38
+ }($Command));
39
+ export { DeleteEndpointCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeletePlatformApplicationInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_queryDeletePlatformApplicationCommand, serializeAws_queryDeletePlatformApplicationCommand, } from "../protocols/Aws_query";
5
- export class DeletePlatformApplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeletePlatformApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: DeletePlatformApplicationInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_queryDeletePlatformApplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeletePlatformApplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryDeletePlatformApplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeletePlatformApplicationCommand;
38
+ }($Command));
39
+ export { DeletePlatformApplicationCommand };