@aws-sdk/client-sns 3.185.0 → 3.188.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-cjs/protocols/Aws_query.js +8 -4
  3. package/dist-es/SNS.js +170 -177
  4. package/dist-es/SNSClient.js +22 -28
  5. package/dist-es/commands/AddPermissionCommand.js +22 -29
  6. package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +21 -28
  7. package/dist-es/commands/ConfirmSubscriptionCommand.js +21 -28
  8. package/dist-es/commands/CreatePlatformApplicationCommand.js +21 -28
  9. package/dist-es/commands/CreatePlatformEndpointCommand.js +21 -28
  10. package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +21 -28
  11. package/dist-es/commands/CreateTopicCommand.js +21 -28
  12. package/dist-es/commands/DeleteEndpointCommand.js +22 -29
  13. package/dist-es/commands/DeletePlatformApplicationCommand.js +22 -29
  14. package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +21 -28
  15. package/dist-es/commands/DeleteTopicCommand.js +22 -29
  16. package/dist-es/commands/GetDataProtectionPolicyCommand.js +21 -28
  17. package/dist-es/commands/GetEndpointAttributesCommand.js +21 -28
  18. package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +21 -28
  19. package/dist-es/commands/GetSMSAttributesCommand.js +21 -28
  20. package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +21 -28
  21. package/dist-es/commands/GetSubscriptionAttributesCommand.js +21 -28
  22. package/dist-es/commands/GetTopicAttributesCommand.js +21 -28
  23. package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +21 -28
  24. package/dist-es/commands/ListOriginationNumbersCommand.js +21 -28
  25. package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +21 -28
  26. package/dist-es/commands/ListPlatformApplicationsCommand.js +21 -28
  27. package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +21 -28
  28. package/dist-es/commands/ListSubscriptionsByTopicCommand.js +21 -28
  29. package/dist-es/commands/ListSubscriptionsCommand.js +21 -28
  30. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  31. package/dist-es/commands/ListTopicsCommand.js +21 -28
  32. package/dist-es/commands/OptInPhoneNumberCommand.js +21 -28
  33. package/dist-es/commands/PublishBatchCommand.js +21 -28
  34. package/dist-es/commands/PublishCommand.js +21 -28
  35. package/dist-es/commands/PutDataProtectionPolicyCommand.js +22 -29
  36. package/dist-es/commands/RemovePermissionCommand.js +22 -29
  37. package/dist-es/commands/SetEndpointAttributesCommand.js +22 -29
  38. package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +22 -29
  39. package/dist-es/commands/SetSMSAttributesCommand.js +21 -28
  40. package/dist-es/commands/SetSubscriptionAttributesCommand.js +22 -29
  41. package/dist-es/commands/SetTopicAttributesCommand.js +22 -29
  42. package/dist-es/commands/SubscribeCommand.js +21 -28
  43. package/dist-es/commands/TagResourceCommand.js +21 -28
  44. package/dist-es/commands/UnsubscribeCommand.js +22 -29
  45. package/dist-es/commands/UntagResourceCommand.js +21 -28
  46. package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +21 -28
  47. package/dist-es/endpoints.js +8 -8
  48. package/dist-es/models/SNSServiceException.js +5 -10
  49. package/dist-es/models/models_0.js +639 -472
  50. package/dist-es/pagination/ListEndpointsByPlatformApplicationPaginator.js +24 -67
  51. package/dist-es/pagination/ListOriginationNumbersPaginator.js +25 -68
  52. package/dist-es/pagination/ListPhoneNumbersOptedOutPaginator.js +24 -67
  53. package/dist-es/pagination/ListPlatformApplicationsPaginator.js +24 -67
  54. package/dist-es/pagination/ListSMSSandboxPhoneNumbersPaginator.js +25 -68
  55. package/dist-es/pagination/ListSubscriptionsByTopicPaginator.js +24 -67
  56. package/dist-es/pagination/ListSubscriptionsPaginator.js +24 -67
  57. package/dist-es/pagination/ListTopicsPaginator.js +24 -67
  58. package/dist-es/protocols/Aws_query.js +3120 -4109
  59. package/dist-es/runtimeConfig.browser.js +26 -12
  60. package/dist-es/runtimeConfig.js +30 -12
  61. package/dist-es/runtimeConfig.native.js +8 -5
  62. package/dist-es/runtimeConfig.shared.js +8 -11
  63. package/package.json +34 -35
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteSMSSandboxPhoneNumberInputFilterSensitiveLog, DeleteSMSSandboxPhoneNumberResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand, serializeAws_queryDeleteSMSSandboxPhoneNumberCommand, } from "../protocols/Aws_query";
6
- var DeleteSMSSandboxPhoneNumberCommand = (function (_super) {
7
- __extends(DeleteSMSSandboxPhoneNumberCommand, _super);
8
- function DeleteSMSSandboxPhoneNumberCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSMSSandboxPhoneNumberCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSMSSandboxPhoneNumberCommand.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 = "DeleteSMSSandboxPhoneNumberCommand";
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 = "DeleteSMSSandboxPhoneNumberCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSMSSandboxPhoneNumberInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSMSSandboxPhoneNumberResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSMSSandboxPhoneNumberCommand.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_queryDeleteSMSSandboxPhoneNumberCommand(input, context);
33
- };
34
- DeleteSMSSandboxPhoneNumberCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand(output, context);
36
- };
37
- return DeleteSMSSandboxPhoneNumberCommand;
38
- }($Command));
39
- export { DeleteSMSSandboxPhoneNumberCommand };
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 { DeleteTopicInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteTopicCommand, serializeAws_queryDeleteTopicCommand } from "../protocols/Aws_query";
6
- var DeleteTopicCommand = (function (_super) {
7
- __extends(DeleteTopicCommand, _super);
8
- function DeleteTopicCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteTopicCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteTopicCommand.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 = "DeleteTopicCommand";
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 = "DeleteTopicCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteTopicInputFilterSensitiveLog,
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
- DeleteTopicCommand.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_queryDeleteTopicCommand(input, context);
33
- };
34
- DeleteTopicCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteTopicCommand(output, context);
36
- };
37
- return DeleteTopicCommand;
38
- }($Command));
39
- export { DeleteTopicCommand };
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 { GetDataProtectionPolicyInputFilterSensitiveLog, GetDataProtectionPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetDataProtectionPolicyCommand, serializeAws_queryGetDataProtectionPolicyCommand, } from "../protocols/Aws_query";
6
- var GetDataProtectionPolicyCommand = (function (_super) {
7
- __extends(GetDataProtectionPolicyCommand, _super);
8
- function GetDataProtectionPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDataProtectionPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDataProtectionPolicyCommand.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 = "GetDataProtectionPolicyCommand";
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 = "GetDataProtectionPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDataProtectionPolicyInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDataProtectionPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDataProtectionPolicyCommand.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_queryGetDataProtectionPolicyCommand(input, context);
33
- };
34
- GetDataProtectionPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetDataProtectionPolicyCommand(output, context);
36
- };
37
- return GetDataProtectionPolicyCommand;
38
- }($Command));
39
- export { GetDataProtectionPolicyCommand };
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 { GetEndpointAttributesInputFilterSensitiveLog, GetEndpointAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetEndpointAttributesCommand, serializeAws_queryGetEndpointAttributesCommand, } from "../protocols/Aws_query";
6
- var GetEndpointAttributesCommand = (function (_super) {
7
- __extends(GetEndpointAttributesCommand, _super);
8
- function GetEndpointAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEndpointAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEndpointAttributesCommand.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 = "GetEndpointAttributesCommand";
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 = "GetEndpointAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEndpointAttributesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEndpointAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEndpointAttributesCommand.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_queryGetEndpointAttributesCommand(input, context);
33
- };
34
- GetEndpointAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetEndpointAttributesCommand(output, context);
36
- };
37
- return GetEndpointAttributesCommand;
38
- }($Command));
39
- export { GetEndpointAttributesCommand };
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 { GetPlatformApplicationAttributesInputFilterSensitiveLog, GetPlatformApplicationAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetPlatformApplicationAttributesCommand, serializeAws_queryGetPlatformApplicationAttributesCommand, } from "../protocols/Aws_query";
6
- var GetPlatformApplicationAttributesCommand = (function (_super) {
7
- __extends(GetPlatformApplicationAttributesCommand, _super);
8
- function GetPlatformApplicationAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetPlatformApplicationAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetPlatformApplicationAttributesCommand.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 = "GetPlatformApplicationAttributesCommand";
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 = "GetPlatformApplicationAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetPlatformApplicationAttributesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetPlatformApplicationAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetPlatformApplicationAttributesCommand.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_queryGetPlatformApplicationAttributesCommand(input, context);
33
- };
34
- GetPlatformApplicationAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetPlatformApplicationAttributesCommand(output, context);
36
- };
37
- return GetPlatformApplicationAttributesCommand;
38
- }($Command));
39
- export { GetPlatformApplicationAttributesCommand };
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 { GetSMSAttributesInputFilterSensitiveLog, GetSMSAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetSMSAttributesCommand, serializeAws_queryGetSMSAttributesCommand, } from "../protocols/Aws_query";
6
- var GetSMSAttributesCommand = (function (_super) {
7
- __extends(GetSMSAttributesCommand, _super);
8
- function GetSMSAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSMSAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSMSAttributesCommand.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 = "GetSMSAttributesCommand";
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 = "GetSMSAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSMSAttributesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSMSAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSMSAttributesCommand.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_queryGetSMSAttributesCommand(input, context);
33
- };
34
- GetSMSAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetSMSAttributesCommand(output, context);
36
- };
37
- return GetSMSAttributesCommand;
38
- }($Command));
39
- export { GetSMSAttributesCommand };
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 { GetSMSSandboxAccountStatusInputFilterSensitiveLog, GetSMSSandboxAccountStatusResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetSMSSandboxAccountStatusCommand, serializeAws_queryGetSMSSandboxAccountStatusCommand, } from "../protocols/Aws_query";
6
- var GetSMSSandboxAccountStatusCommand = (function (_super) {
7
- __extends(GetSMSSandboxAccountStatusCommand, _super);
8
- function GetSMSSandboxAccountStatusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSMSSandboxAccountStatusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSMSSandboxAccountStatusCommand.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 = "GetSMSSandboxAccountStatusCommand";
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 = "GetSMSSandboxAccountStatusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSMSSandboxAccountStatusInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSMSSandboxAccountStatusResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSMSSandboxAccountStatusCommand.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_queryGetSMSSandboxAccountStatusCommand(input, context);
33
- };
34
- GetSMSSandboxAccountStatusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetSMSSandboxAccountStatusCommand(output, context);
36
- };
37
- return GetSMSSandboxAccountStatusCommand;
38
- }($Command));
39
- export { GetSMSSandboxAccountStatusCommand };
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 { GetSubscriptionAttributesInputFilterSensitiveLog, GetSubscriptionAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetSubscriptionAttributesCommand, serializeAws_queryGetSubscriptionAttributesCommand, } from "../protocols/Aws_query";
6
- var GetSubscriptionAttributesCommand = (function (_super) {
7
- __extends(GetSubscriptionAttributesCommand, _super);
8
- function GetSubscriptionAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSubscriptionAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSubscriptionAttributesCommand.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 = "GetSubscriptionAttributesCommand";
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 = "GetSubscriptionAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSubscriptionAttributesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSubscriptionAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSubscriptionAttributesCommand.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_queryGetSubscriptionAttributesCommand(input, context);
33
- };
34
- GetSubscriptionAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetSubscriptionAttributesCommand(output, context);
36
- };
37
- return GetSubscriptionAttributesCommand;
38
- }($Command));
39
- export { GetSubscriptionAttributesCommand };
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 { GetTopicAttributesInputFilterSensitiveLog, GetTopicAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetTopicAttributesCommand, serializeAws_queryGetTopicAttributesCommand, } from "../protocols/Aws_query";
6
- var GetTopicAttributesCommand = (function (_super) {
7
- __extends(GetTopicAttributesCommand, _super);
8
- function GetTopicAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetTopicAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetTopicAttributesCommand.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 = "GetTopicAttributesCommand";
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 = "GetTopicAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetTopicAttributesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetTopicAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetTopicAttributesCommand.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_queryGetTopicAttributesCommand(input, context);
33
- };
34
- GetTopicAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetTopicAttributesCommand(output, context);
36
- };
37
- return GetTopicAttributesCommand;
38
- }($Command));
39
- export { GetTopicAttributesCommand };
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 { ListEndpointsByPlatformApplicationInputFilterSensitiveLog, ListEndpointsByPlatformApplicationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListEndpointsByPlatformApplicationCommand, serializeAws_queryListEndpointsByPlatformApplicationCommand, } from "../protocols/Aws_query";
6
- var ListEndpointsByPlatformApplicationCommand = (function (_super) {
7
- __extends(ListEndpointsByPlatformApplicationCommand, _super);
8
- function ListEndpointsByPlatformApplicationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListEndpointsByPlatformApplicationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListEndpointsByPlatformApplicationCommand.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 = "ListEndpointsByPlatformApplicationCommand";
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 = "ListEndpointsByPlatformApplicationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListEndpointsByPlatformApplicationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListEndpointsByPlatformApplicationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListEndpointsByPlatformApplicationCommand.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_queryListEndpointsByPlatformApplicationCommand(input, context);
33
- };
34
- ListEndpointsByPlatformApplicationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListEndpointsByPlatformApplicationCommand(output, context);
36
- };
37
- return ListEndpointsByPlatformApplicationCommand;
38
- }($Command));
39
- export { ListEndpointsByPlatformApplicationCommand };
31
+ }
32
+ }