@aws-sdk/client-sns 3.928.0 → 3.930.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 (66) hide show
  1. package/dist-cjs/index.js +1273 -3290
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/SNSClient.js +2 -0
  4. package/dist-es/commands/AddPermissionCommand.js +3 -9
  5. package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +3 -10
  6. package/dist-es/commands/ConfirmSubscriptionCommand.js +3 -9
  7. package/dist-es/commands/CreatePlatformApplicationCommand.js +3 -9
  8. package/dist-es/commands/CreatePlatformEndpointCommand.js +3 -9
  9. package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +3 -10
  10. package/dist-es/commands/CreateTopicCommand.js +3 -9
  11. package/dist-es/commands/DeleteEndpointCommand.js +3 -9
  12. package/dist-es/commands/DeletePlatformApplicationCommand.js +3 -9
  13. package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +3 -10
  14. package/dist-es/commands/DeleteTopicCommand.js +3 -9
  15. package/dist-es/commands/GetDataProtectionPolicyCommand.js +3 -9
  16. package/dist-es/commands/GetEndpointAttributesCommand.js +3 -9
  17. package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +3 -9
  18. package/dist-es/commands/GetSMSAttributesCommand.js +3 -9
  19. package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +3 -9
  20. package/dist-es/commands/GetSubscriptionAttributesCommand.js +3 -9
  21. package/dist-es/commands/GetTopicAttributesCommand.js +3 -9
  22. package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +3 -9
  23. package/dist-es/commands/ListOriginationNumbersCommand.js +3 -10
  24. package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +3 -10
  25. package/dist-es/commands/ListPlatformApplicationsCommand.js +3 -9
  26. package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +3 -10
  27. package/dist-es/commands/ListSubscriptionsByTopicCommand.js +3 -9
  28. package/dist-es/commands/ListSubscriptionsCommand.js +3 -9
  29. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  30. package/dist-es/commands/ListTopicsCommand.js +3 -9
  31. package/dist-es/commands/OptInPhoneNumberCommand.js +3 -10
  32. package/dist-es/commands/PublishBatchCommand.js +3 -9
  33. package/dist-es/commands/PublishCommand.js +3 -10
  34. package/dist-es/commands/PutDataProtectionPolicyCommand.js +3 -9
  35. package/dist-es/commands/RemovePermissionCommand.js +3 -9
  36. package/dist-es/commands/SetEndpointAttributesCommand.js +3 -9
  37. package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +3 -9
  38. package/dist-es/commands/SetSMSAttributesCommand.js +3 -9
  39. package/dist-es/commands/SetSubscriptionAttributesCommand.js +3 -9
  40. package/dist-es/commands/SetTopicAttributesCommand.js +3 -9
  41. package/dist-es/commands/SubscribeCommand.js +3 -9
  42. package/dist-es/commands/TagResourceCommand.js +3 -9
  43. package/dist-es/commands/UnsubscribeCommand.js +3 -9
  44. package/dist-es/commands/UntagResourceCommand.js +3 -9
  45. package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +3 -10
  46. package/dist-es/models/models_0.js +0 -49
  47. package/dist-es/runtimeConfig.shared.js +7 -0
  48. package/dist-es/schemas/schemas_0.js +1192 -0
  49. package/dist-types/SNSClient.d.ts +10 -1
  50. package/dist-types/models/models_0.d.ts +0 -44
  51. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  52. package/dist-types/runtimeConfig.d.ts +1 -0
  53. package/dist-types/runtimeConfig.native.d.ts +1 -0
  54. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  55. package/dist-types/schemas/schemas_0.d.ts +185 -0
  56. package/dist-types/ts3.4/SNSClient.d.ts +4 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  58. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  59. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  60. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  61. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  62. package/dist-types/ts3.4/schemas/schemas_0.d.ts +192 -0
  63. package/package.json +33 -33
  64. package/dist-es/protocols/Aws_query.js +0 -2938
  65. package/dist-types/protocols/Aws_query.d.ts +0 -380
  66. package/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -509
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ListSMSSandboxPhoneNumbersResultFilterSensitiveLog, } from "../models/models_0";
6
- import { de_ListSMSSandboxPhoneNumbersCommand, se_ListSMSSandboxPhoneNumbersCommand } from "../protocols/Aws_query";
4
+ import { ListSMSSandboxPhoneNumbers } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class ListSMSSandboxPhoneNumbersCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonSimpleNotificationService", "ListSMSSandboxPhoneNumbers", {})
18
13
  .n("SNSClient", "ListSMSSandboxPhoneNumbersCommand")
19
- .f(void 0, ListSMSSandboxPhoneNumbersResultFilterSensitiveLog)
20
- .ser(se_ListSMSSandboxPhoneNumbersCommand)
21
- .de(de_ListSMSSandboxPhoneNumbersCommand)
14
+ .sc(ListSMSSandboxPhoneNumbers)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListSubscriptionsByTopicCommand, se_ListSubscriptionsByTopicCommand } from "../protocols/Aws_query";
4
+ import { ListSubscriptionsByTopic } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListSubscriptionsByTopicCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "ListSubscriptionsByTopic", {})
17
13
  .n("SNSClient", "ListSubscriptionsByTopicCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListSubscriptionsByTopicCommand)
20
- .de(de_ListSubscriptionsByTopicCommand)
14
+ .sc(ListSubscriptionsByTopic)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListSubscriptionsCommand, se_ListSubscriptionsCommand } from "../protocols/Aws_query";
4
+ import { ListSubscriptions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListSubscriptionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "ListSubscriptions", {})
17
13
  .n("SNSClient", "ListSubscriptionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListSubscriptionsCommand)
20
- .de(de_ListSubscriptionsCommand)
14
+ .sc(ListSubscriptions)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_query";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "ListTagsForResource", {})
17
13
  .n("SNSClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTopicsCommand, se_ListTopicsCommand } from "../protocols/Aws_query";
4
+ import { ListTopics } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTopicsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "ListTopics", {})
17
13
  .n("SNSClient", "ListTopicsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTopicsCommand)
20
- .de(de_ListTopicsCommand)
14
+ .sc(ListTopics)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { OptInPhoneNumberInputFilterSensitiveLog, } from "../models/models_0";
6
- import { de_OptInPhoneNumberCommand, se_OptInPhoneNumberCommand } from "../protocols/Aws_query";
4
+ import { OptInPhoneNumber } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class OptInPhoneNumberCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonSimpleNotificationService", "OptInPhoneNumber", {})
18
13
  .n("SNSClient", "OptInPhoneNumberCommand")
19
- .f(OptInPhoneNumberInputFilterSensitiveLog, void 0)
20
- .ser(se_OptInPhoneNumberCommand)
21
- .de(de_OptInPhoneNumberCommand)
14
+ .sc(OptInPhoneNumber)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PublishBatchCommand, se_PublishBatchCommand } from "../protocols/Aws_query";
4
+ import { PublishBatch } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PublishBatchCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "PublishBatch", {})
17
13
  .n("SNSClient", "PublishBatchCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PublishBatchCommand)
20
- .de(de_PublishBatchCommand)
14
+ .sc(PublishBatch)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PublishInputFilterSensitiveLog } from "../models/models_0";
6
- import { de_PublishCommand, se_PublishCommand } from "../protocols/Aws_query";
4
+ import { Publish } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PublishCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonSimpleNotificationService", "Publish", {})
18
13
  .n("SNSClient", "PublishCommand")
19
- .f(PublishInputFilterSensitiveLog, void 0)
20
- .ser(se_PublishCommand)
21
- .de(de_PublishCommand)
14
+ .sc(Publish)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutDataProtectionPolicyCommand, se_PutDataProtectionPolicyCommand } from "../protocols/Aws_query";
4
+ import { PutDataProtectionPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutDataProtectionPolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "PutDataProtectionPolicy", {})
17
13
  .n("SNSClient", "PutDataProtectionPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutDataProtectionPolicyCommand)
20
- .de(de_PutDataProtectionPolicyCommand)
14
+ .sc(PutDataProtectionPolicy)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_RemovePermissionCommand, se_RemovePermissionCommand } from "../protocols/Aws_query";
4
+ import { RemovePermission } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class RemovePermissionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "RemovePermission", {})
17
13
  .n("SNSClient", "RemovePermissionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_RemovePermissionCommand)
20
- .de(de_RemovePermissionCommand)
14
+ .sc(RemovePermission)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SetEndpointAttributesCommand, se_SetEndpointAttributesCommand } from "../protocols/Aws_query";
4
+ import { SetEndpointAttributes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetEndpointAttributesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "SetEndpointAttributes", {})
17
13
  .n("SNSClient", "SetEndpointAttributesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetEndpointAttributesCommand)
20
- .de(de_SetEndpointAttributesCommand)
14
+ .sc(SetEndpointAttributes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SetPlatformApplicationAttributesCommand, se_SetPlatformApplicationAttributesCommand, } from "../protocols/Aws_query";
4
+ import { SetPlatformApplicationAttributes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetPlatformApplicationAttributesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "SetPlatformApplicationAttributes", {})
17
13
  .n("SNSClient", "SetPlatformApplicationAttributesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetPlatformApplicationAttributesCommand)
20
- .de(de_SetPlatformApplicationAttributesCommand)
14
+ .sc(SetPlatformApplicationAttributes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SetSMSAttributesCommand, se_SetSMSAttributesCommand } from "../protocols/Aws_query";
4
+ import { SetSMSAttributes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetSMSAttributesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "SetSMSAttributes", {})
17
13
  .n("SNSClient", "SetSMSAttributesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetSMSAttributesCommand)
20
- .de(de_SetSMSAttributesCommand)
14
+ .sc(SetSMSAttributes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SetSubscriptionAttributesCommand, se_SetSubscriptionAttributesCommand } from "../protocols/Aws_query";
4
+ import { SetSubscriptionAttributes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetSubscriptionAttributesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "SetSubscriptionAttributes", {})
17
13
  .n("SNSClient", "SetSubscriptionAttributesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetSubscriptionAttributesCommand)
20
- .de(de_SetSubscriptionAttributesCommand)
14
+ .sc(SetSubscriptionAttributes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SetTopicAttributesCommand, se_SetTopicAttributesCommand } from "../protocols/Aws_query";
4
+ import { SetTopicAttributes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetTopicAttributesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "SetTopicAttributes", {})
17
13
  .n("SNSClient", "SetTopicAttributesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetTopicAttributesCommand)
20
- .de(de_SetTopicAttributesCommand)
14
+ .sc(SetTopicAttributes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SubscribeCommand, se_SubscribeCommand } from "../protocols/Aws_query";
4
+ import { Subscribe } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SubscribeCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "Subscribe", {})
17
13
  .n("SNSClient", "SubscribeCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SubscribeCommand)
20
- .de(de_SubscribeCommand)
14
+ .sc(Subscribe)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_query";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "TagResource", {})
17
13
  .n("SNSClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UnsubscribeCommand, se_UnsubscribeCommand } from "../protocols/Aws_query";
4
+ import { Unsubscribe } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UnsubscribeCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "Unsubscribe", {})
17
13
  .n("SNSClient", "UnsubscribeCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UnsubscribeCommand)
20
- .de(de_UnsubscribeCommand)
14
+ .sc(Unsubscribe)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_query";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonSimpleNotificationService", "UntagResource", {})
17
13
  .n("SNSClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { VerifySMSSandboxPhoneNumberInputFilterSensitiveLog, } from "../models/models_0";
6
- import { de_VerifySMSSandboxPhoneNumberCommand, se_VerifySMSSandboxPhoneNumberCommand } from "../protocols/Aws_query";
4
+ import { VerifySMSSandboxPhoneNumber } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class VerifySMSSandboxPhoneNumberCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonSimpleNotificationService", "VerifySMSSandboxPhoneNumber", {})
18
13
  .n("SNSClient", "VerifySMSSandboxPhoneNumberCommand")
19
- .f(VerifySMSSandboxPhoneNumberInputFilterSensitiveLog, void 0)
20
- .ser(se_VerifySMSSandboxPhoneNumberCommand)
21
- .de(de_VerifySMSSandboxPhoneNumberCommand)
14
+ .sc(VerifySMSSandboxPhoneNumber)
22
15
  .build() {
23
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { SNSServiceException as __BaseException } from "./SNSServiceException";
3
2
  export class AuthorizationErrorException extends __BaseException {
4
3
  name = "AuthorizationErrorException";
@@ -443,51 +442,3 @@ export class VerificationException extends __BaseException {
443
442
  this.Status = opts.Status;
444
443
  }
445
444
  }
446
- export const CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog = (obj) => ({
447
- ...obj,
448
- ...(obj.phoneNumber && { phoneNumber: SENSITIVE_STRING }),
449
- });
450
- export const CreateSMSSandboxPhoneNumberInputFilterSensitiveLog = (obj) => ({
451
- ...obj,
452
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
453
- });
454
- export const DeleteSMSSandboxPhoneNumberInputFilterSensitiveLog = (obj) => ({
455
- ...obj,
456
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
457
- });
458
- export const PhoneNumberInformationFilterSensitiveLog = (obj) => ({
459
- ...obj,
460
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
461
- });
462
- export const ListOriginationNumbersResultFilterSensitiveLog = (obj) => ({
463
- ...obj,
464
- ...(obj.PhoneNumbers && {
465
- PhoneNumbers: obj.PhoneNumbers.map((item) => PhoneNumberInformationFilterSensitiveLog(item)),
466
- }),
467
- });
468
- export const ListPhoneNumbersOptedOutResponseFilterSensitiveLog = (obj) => ({
469
- ...obj,
470
- ...(obj.phoneNumbers && { phoneNumbers: SENSITIVE_STRING }),
471
- });
472
- export const SMSSandboxPhoneNumberFilterSensitiveLog = (obj) => ({
473
- ...obj,
474
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
475
- });
476
- export const ListSMSSandboxPhoneNumbersResultFilterSensitiveLog = (obj) => ({
477
- ...obj,
478
- ...(obj.PhoneNumbers && {
479
- PhoneNumbers: obj.PhoneNumbers.map((item) => SMSSandboxPhoneNumberFilterSensitiveLog(item)),
480
- }),
481
- });
482
- export const OptInPhoneNumberInputFilterSensitiveLog = (obj) => ({
483
- ...obj,
484
- ...(obj.phoneNumber && { phoneNumber: SENSITIVE_STRING }),
485
- });
486
- export const PublishInputFilterSensitiveLog = (obj) => ({
487
- ...obj,
488
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
489
- });
490
- export const VerifySMSSandboxPhoneNumberInputFilterSensitiveLog = (obj) => ({
491
- ...obj,
492
- ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
493
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsQueryProtocol({
28
+ defaultNamespace: "com.amazonaws.sns",
29
+ xmlNamespace: "http://sns.amazonaws.com/doc/2010-03-31/",
30
+ version: "2010-03-31",
31
+ }),
25
32
  serviceId: config?.serviceId ?? "SNS",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,