@aws-sdk/client-sns 3.1076.0 → 3.1078.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 (146) hide show
  1. package/dist-cjs/index.js +135 -507
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AddPermissionCommand.js +2 -14
  4. package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +2 -14
  5. package/dist-es/commands/ConfirmSubscriptionCommand.js +2 -14
  6. package/dist-es/commands/CreatePlatformApplicationCommand.js +2 -14
  7. package/dist-es/commands/CreatePlatformEndpointCommand.js +2 -14
  8. package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +2 -14
  9. package/dist-es/commands/CreateTopicCommand.js +2 -14
  10. package/dist-es/commands/DeleteEndpointCommand.js +2 -14
  11. package/dist-es/commands/DeletePlatformApplicationCommand.js +2 -14
  12. package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +2 -14
  13. package/dist-es/commands/DeleteTopicCommand.js +2 -14
  14. package/dist-es/commands/GetDataProtectionPolicyCommand.js +2 -14
  15. package/dist-es/commands/GetEndpointAttributesCommand.js +2 -14
  16. package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +2 -14
  17. package/dist-es/commands/GetSMSAttributesCommand.js +2 -14
  18. package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +2 -14
  19. package/dist-es/commands/GetSubscriptionAttributesCommand.js +2 -14
  20. package/dist-es/commands/GetTopicAttributesCommand.js +2 -14
  21. package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +2 -14
  22. package/dist-es/commands/ListOriginationNumbersCommand.js +2 -14
  23. package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +2 -14
  24. package/dist-es/commands/ListPlatformApplicationsCommand.js +2 -14
  25. package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +2 -14
  26. package/dist-es/commands/ListSubscriptionsByTopicCommand.js +2 -14
  27. package/dist-es/commands/ListSubscriptionsCommand.js +2 -14
  28. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  29. package/dist-es/commands/ListTopicsCommand.js +2 -14
  30. package/dist-es/commands/OptInPhoneNumberCommand.js +2 -14
  31. package/dist-es/commands/PublishBatchCommand.js +2 -14
  32. package/dist-es/commands/PublishCommand.js +2 -14
  33. package/dist-es/commands/PutDataProtectionPolicyCommand.js +2 -14
  34. package/dist-es/commands/RemovePermissionCommand.js +2 -14
  35. package/dist-es/commands/SetEndpointAttributesCommand.js +2 -14
  36. package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +2 -14
  37. package/dist-es/commands/SetSMSAttributesCommand.js +2 -14
  38. package/dist-es/commands/SetSubscriptionAttributesCommand.js +2 -14
  39. package/dist-es/commands/SetTopicAttributesCommand.js +2 -14
  40. package/dist-es/commands/SubscribeCommand.js +2 -14
  41. package/dist-es/commands/TagResourceCommand.js +2 -14
  42. package/dist-es/commands/UnsubscribeCommand.js +2 -14
  43. package/dist-es/commands/UntagResourceCommand.js +2 -14
  44. package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +2 -14
  45. package/dist-es/index.js +1 -0
  46. package/dist-es/runtimeConfig.browser.js +0 -2
  47. package/dist-es/runtimeConfig.js +1 -2
  48. package/dist-es/runtimeConfig.native.js +0 -2
  49. package/dist-es/runtimeConfig.shared.js +2 -0
  50. package/dist-types/commandBuilder.d.ts +18 -0
  51. package/dist-types/commands/AddPermissionCommand.d.ts +3 -8
  52. package/dist-types/commands/CheckIfPhoneNumberIsOptedOutCommand.d.ts +3 -8
  53. package/dist-types/commands/ConfirmSubscriptionCommand.d.ts +3 -8
  54. package/dist-types/commands/CreatePlatformApplicationCommand.d.ts +3 -8
  55. package/dist-types/commands/CreatePlatformEndpointCommand.d.ts +3 -8
  56. package/dist-types/commands/CreateSMSSandboxPhoneNumberCommand.d.ts +3 -8
  57. package/dist-types/commands/CreateTopicCommand.d.ts +3 -8
  58. package/dist-types/commands/DeleteEndpointCommand.d.ts +3 -8
  59. package/dist-types/commands/DeletePlatformApplicationCommand.d.ts +3 -8
  60. package/dist-types/commands/DeleteSMSSandboxPhoneNumberCommand.d.ts +3 -8
  61. package/dist-types/commands/DeleteTopicCommand.d.ts +3 -8
  62. package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +3 -8
  63. package/dist-types/commands/GetEndpointAttributesCommand.d.ts +3 -8
  64. package/dist-types/commands/GetPlatformApplicationAttributesCommand.d.ts +3 -8
  65. package/dist-types/commands/GetSMSAttributesCommand.d.ts +3 -8
  66. package/dist-types/commands/GetSMSSandboxAccountStatusCommand.d.ts +3 -8
  67. package/dist-types/commands/GetSubscriptionAttributesCommand.d.ts +3 -8
  68. package/dist-types/commands/GetTopicAttributesCommand.d.ts +3 -8
  69. package/dist-types/commands/ListEndpointsByPlatformApplicationCommand.d.ts +3 -8
  70. package/dist-types/commands/ListOriginationNumbersCommand.d.ts +3 -8
  71. package/dist-types/commands/ListPhoneNumbersOptedOutCommand.d.ts +3 -8
  72. package/dist-types/commands/ListPlatformApplicationsCommand.d.ts +3 -8
  73. package/dist-types/commands/ListSMSSandboxPhoneNumbersCommand.d.ts +3 -8
  74. package/dist-types/commands/ListSubscriptionsByTopicCommand.d.ts +3 -8
  75. package/dist-types/commands/ListSubscriptionsCommand.d.ts +3 -8
  76. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  77. package/dist-types/commands/ListTopicsCommand.d.ts +3 -8
  78. package/dist-types/commands/OptInPhoneNumberCommand.d.ts +3 -8
  79. package/dist-types/commands/PublishBatchCommand.d.ts +3 -8
  80. package/dist-types/commands/PublishCommand.d.ts +3 -8
  81. package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +3 -8
  82. package/dist-types/commands/RemovePermissionCommand.d.ts +3 -8
  83. package/dist-types/commands/SetEndpointAttributesCommand.d.ts +3 -8
  84. package/dist-types/commands/SetPlatformApplicationAttributesCommand.d.ts +3 -8
  85. package/dist-types/commands/SetSMSAttributesCommand.d.ts +3 -8
  86. package/dist-types/commands/SetSubscriptionAttributesCommand.d.ts +3 -8
  87. package/dist-types/commands/SetTopicAttributesCommand.d.ts +3 -8
  88. package/dist-types/commands/SubscribeCommand.d.ts +3 -8
  89. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  90. package/dist-types/commands/UnsubscribeCommand.d.ts +3 -8
  91. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  92. package/dist-types/commands/VerifySMSSandboxPhoneNumberCommand.d.ts +3 -8
  93. package/dist-types/index.d.ts +1 -0
  94. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  95. package/dist-types/runtimeConfig.d.ts +1 -1
  96. package/dist-types/runtimeConfig.native.d.ts +1 -1
  97. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  98. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  99. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/CheckIfPhoneNumberIsOptedOutCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/ConfirmSubscriptionCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/CreatePlatformApplicationCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/CreatePlatformEndpointCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/CreateSMSSandboxPhoneNumberCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/CreateTopicCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/DeletePlatformApplicationCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/commands/DeleteSMSSandboxPhoneNumberCommand.d.ts +7 -16
  109. package/dist-types/ts3.4/commands/DeleteTopicCommand.d.ts +7 -16
  110. package/dist-types/ts3.4/commands/GetDataProtectionPolicyCommand.d.ts +7 -16
  111. package/dist-types/ts3.4/commands/GetEndpointAttributesCommand.d.ts +7 -16
  112. package/dist-types/ts3.4/commands/GetPlatformApplicationAttributesCommand.d.ts +7 -16
  113. package/dist-types/ts3.4/commands/GetSMSAttributesCommand.d.ts +7 -16
  114. package/dist-types/ts3.4/commands/GetSMSSandboxAccountStatusCommand.d.ts +7 -16
  115. package/dist-types/ts3.4/commands/GetSubscriptionAttributesCommand.d.ts +7 -16
  116. package/dist-types/ts3.4/commands/GetTopicAttributesCommand.d.ts +7 -16
  117. package/dist-types/ts3.4/commands/ListEndpointsByPlatformApplicationCommand.d.ts +7 -16
  118. package/dist-types/ts3.4/commands/ListOriginationNumbersCommand.d.ts +7 -16
  119. package/dist-types/ts3.4/commands/ListPhoneNumbersOptedOutCommand.d.ts +7 -16
  120. package/dist-types/ts3.4/commands/ListPlatformApplicationsCommand.d.ts +7 -16
  121. package/dist-types/ts3.4/commands/ListSMSSandboxPhoneNumbersCommand.d.ts +7 -16
  122. package/dist-types/ts3.4/commands/ListSubscriptionsByTopicCommand.d.ts +7 -16
  123. package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +7 -16
  124. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  125. package/dist-types/ts3.4/commands/ListTopicsCommand.d.ts +7 -16
  126. package/dist-types/ts3.4/commands/OptInPhoneNumberCommand.d.ts +7 -16
  127. package/dist-types/ts3.4/commands/PublishBatchCommand.d.ts +7 -16
  128. package/dist-types/ts3.4/commands/PublishCommand.d.ts +7 -16
  129. package/dist-types/ts3.4/commands/PutDataProtectionPolicyCommand.d.ts +7 -16
  130. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +7 -16
  131. package/dist-types/ts3.4/commands/SetEndpointAttributesCommand.d.ts +7 -16
  132. package/dist-types/ts3.4/commands/SetPlatformApplicationAttributesCommand.d.ts +7 -16
  133. package/dist-types/ts3.4/commands/SetSMSAttributesCommand.d.ts +7 -16
  134. package/dist-types/ts3.4/commands/SetSubscriptionAttributesCommand.d.ts +7 -16
  135. package/dist-types/ts3.4/commands/SetTopicAttributesCommand.d.ts +7 -16
  136. package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +7 -16
  137. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  138. package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +7 -16
  139. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  140. package/dist-types/ts3.4/commands/VerifySMSSandboxPhoneNumberCommand.d.ts +7 -16
  141. package/dist-types/ts3.4/index.d.ts +1 -0
  142. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  143. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  144. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  145. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  146. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsQueryProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultSNSHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -1633,6 +1635,7 @@ const getRuntimeConfig$1 = (config) => {
1633
1635
  serviceTarget: "AmazonSimpleNotificationService",
1634
1636
  },
1635
1637
  serviceId: config?.serviceId ?? "SNS",
1638
+ sha256: config?.sha256 ?? Sha256,
1636
1639
  urlParser: config?.urlParser ?? parseUrl,
1637
1640
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1638
1641
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1666,7 +1669,6 @@ const getRuntimeConfig = (config) => {
1666
1669
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1667
1670
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1668
1671
  }, config),
1669
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1670
1672
  streamCollector: config?.streamCollector ?? streamCollector,
1671
1673
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1672
1674
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1754,508 +1756,134 @@ class SNSClient extends Client {
1754
1756
  }
1755
1757
  }
1756
1758
 
1757
- class AddPermissionCommand extends Command
1758
- .classBuilder()
1759
- .ep(commonParams)
1760
- .m(function (Command, cs, config, o) {
1761
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1762
- })
1763
- .s("AmazonSimpleNotificationService", "AddPermission", {})
1764
- .n("SNSClient", "AddPermissionCommand")
1765
- .sc(AddPermission$)
1766
- .build() {
1767
- }
1768
-
1769
- class CheckIfPhoneNumberIsOptedOutCommand extends Command
1770
- .classBuilder()
1771
- .ep(commonParams)
1772
- .m(function (Command, cs, config, o) {
1773
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1774
- })
1775
- .s("AmazonSimpleNotificationService", "CheckIfPhoneNumberIsOptedOut", {})
1776
- .n("SNSClient", "CheckIfPhoneNumberIsOptedOutCommand")
1777
- .sc(CheckIfPhoneNumberIsOptedOut$)
1778
- .build() {
1779
- }
1780
-
1781
- class ConfirmSubscriptionCommand extends Command
1782
- .classBuilder()
1783
- .ep(commonParams)
1784
- .m(function (Command, cs, config, o) {
1785
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1786
- })
1787
- .s("AmazonSimpleNotificationService", "ConfirmSubscription", {})
1788
- .n("SNSClient", "ConfirmSubscriptionCommand")
1789
- .sc(ConfirmSubscription$)
1790
- .build() {
1791
- }
1792
-
1793
- class CreatePlatformApplicationCommand extends Command
1794
- .classBuilder()
1795
- .ep(commonParams)
1796
- .m(function (Command, cs, config, o) {
1797
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1798
- })
1799
- .s("AmazonSimpleNotificationService", "CreatePlatformApplication", {})
1800
- .n("SNSClient", "CreatePlatformApplicationCommand")
1801
- .sc(CreatePlatformApplication$)
1802
- .build() {
1803
- }
1804
-
1805
- class CreatePlatformEndpointCommand extends Command
1806
- .classBuilder()
1807
- .ep(commonParams)
1808
- .m(function (Command, cs, config, o) {
1809
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1810
- })
1811
- .s("AmazonSimpleNotificationService", "CreatePlatformEndpoint", {})
1812
- .n("SNSClient", "CreatePlatformEndpointCommand")
1813
- .sc(CreatePlatformEndpoint$)
1814
- .build() {
1815
- }
1816
-
1817
- class CreateSMSSandboxPhoneNumberCommand extends Command
1818
- .classBuilder()
1819
- .ep(commonParams)
1820
- .m(function (Command, cs, config, o) {
1821
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1822
- })
1823
- .s("AmazonSimpleNotificationService", "CreateSMSSandboxPhoneNumber", {})
1824
- .n("SNSClient", "CreateSMSSandboxPhoneNumberCommand")
1825
- .sc(CreateSMSSandboxPhoneNumber$)
1826
- .build() {
1827
- }
1828
-
1829
- class CreateTopicCommand extends Command
1830
- .classBuilder()
1831
- .ep(commonParams)
1832
- .m(function (Command, cs, config, o) {
1833
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1834
- })
1835
- .s("AmazonSimpleNotificationService", "CreateTopic", {})
1836
- .n("SNSClient", "CreateTopicCommand")
1837
- .sc(CreateTopic$)
1838
- .build() {
1839
- }
1840
-
1841
- class DeleteEndpointCommand extends Command
1842
- .classBuilder()
1843
- .ep(commonParams)
1844
- .m(function (Command, cs, config, o) {
1845
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1846
- })
1847
- .s("AmazonSimpleNotificationService", "DeleteEndpoint", {})
1848
- .n("SNSClient", "DeleteEndpointCommand")
1849
- .sc(DeleteEndpoint$)
1850
- .build() {
1851
- }
1852
-
1853
- class DeletePlatformApplicationCommand extends Command
1854
- .classBuilder()
1855
- .ep(commonParams)
1856
- .m(function (Command, cs, config, o) {
1857
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1858
- })
1859
- .s("AmazonSimpleNotificationService", "DeletePlatformApplication", {})
1860
- .n("SNSClient", "DeletePlatformApplicationCommand")
1861
- .sc(DeletePlatformApplication$)
1862
- .build() {
1863
- }
1864
-
1865
- class DeleteSMSSandboxPhoneNumberCommand extends Command
1866
- .classBuilder()
1867
- .ep(commonParams)
1868
- .m(function (Command, cs, config, o) {
1869
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1870
- })
1871
- .s("AmazonSimpleNotificationService", "DeleteSMSSandboxPhoneNumber", {})
1872
- .n("SNSClient", "DeleteSMSSandboxPhoneNumberCommand")
1873
- .sc(DeleteSMSSandboxPhoneNumber$)
1874
- .build() {
1875
- }
1876
-
1877
- class DeleteTopicCommand extends Command
1878
- .classBuilder()
1879
- .ep(commonParams)
1880
- .m(function (Command, cs, config, o) {
1881
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1882
- })
1883
- .s("AmazonSimpleNotificationService", "DeleteTopic", {})
1884
- .n("SNSClient", "DeleteTopicCommand")
1885
- .sc(DeleteTopic$)
1886
- .build() {
1887
- }
1888
-
1889
- class GetDataProtectionPolicyCommand extends Command
1890
- .classBuilder()
1891
- .ep(commonParams)
1892
- .m(function (Command, cs, config, o) {
1893
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1894
- })
1895
- .s("AmazonSimpleNotificationService", "GetDataProtectionPolicy", {})
1896
- .n("SNSClient", "GetDataProtectionPolicyCommand")
1897
- .sc(GetDataProtectionPolicy$)
1898
- .build() {
1899
- }
1900
-
1901
- class GetEndpointAttributesCommand extends Command
1902
- .classBuilder()
1903
- .ep(commonParams)
1904
- .m(function (Command, cs, config, o) {
1905
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1906
- })
1907
- .s("AmazonSimpleNotificationService", "GetEndpointAttributes", {})
1908
- .n("SNSClient", "GetEndpointAttributesCommand")
1909
- .sc(GetEndpointAttributes$)
1910
- .build() {
1911
- }
1912
-
1913
- class GetPlatformApplicationAttributesCommand extends Command
1914
- .classBuilder()
1915
- .ep(commonParams)
1916
- .m(function (Command, cs, config, o) {
1917
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1918
- })
1919
- .s("AmazonSimpleNotificationService", "GetPlatformApplicationAttributes", {})
1920
- .n("SNSClient", "GetPlatformApplicationAttributesCommand")
1921
- .sc(GetPlatformApplicationAttributes$)
1922
- .build() {
1923
- }
1924
-
1925
- class GetSMSAttributesCommand extends Command
1926
- .classBuilder()
1927
- .ep(commonParams)
1928
- .m(function (Command, cs, config, o) {
1929
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1930
- })
1931
- .s("AmazonSimpleNotificationService", "GetSMSAttributes", {})
1932
- .n("SNSClient", "GetSMSAttributesCommand")
1933
- .sc(GetSMSAttributes$)
1934
- .build() {
1935
- }
1936
-
1937
- class GetSMSSandboxAccountStatusCommand extends Command
1938
- .classBuilder()
1939
- .ep(commonParams)
1940
- .m(function (Command, cs, config, o) {
1941
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1942
- })
1943
- .s("AmazonSimpleNotificationService", "GetSMSSandboxAccountStatus", {})
1944
- .n("SNSClient", "GetSMSSandboxAccountStatusCommand")
1945
- .sc(GetSMSSandboxAccountStatus$)
1946
- .build() {
1947
- }
1948
-
1949
- class GetSubscriptionAttributesCommand extends Command
1950
- .classBuilder()
1951
- .ep(commonParams)
1952
- .m(function (Command, cs, config, o) {
1953
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1954
- })
1955
- .s("AmazonSimpleNotificationService", "GetSubscriptionAttributes", {})
1956
- .n("SNSClient", "GetSubscriptionAttributesCommand")
1957
- .sc(GetSubscriptionAttributes$)
1958
- .build() {
1959
- }
1960
-
1961
- class GetTopicAttributesCommand extends Command
1962
- .classBuilder()
1963
- .ep(commonParams)
1964
- .m(function (Command, cs, config, o) {
1965
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1966
- })
1967
- .s("AmazonSimpleNotificationService", "GetTopicAttributes", {})
1968
- .n("SNSClient", "GetTopicAttributesCommand")
1969
- .sc(GetTopicAttributes$)
1970
- .build() {
1971
- }
1972
-
1973
- class ListEndpointsByPlatformApplicationCommand extends Command
1974
- .classBuilder()
1975
- .ep(commonParams)
1976
- .m(function (Command, cs, config, o) {
1977
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1978
- })
1979
- .s("AmazonSimpleNotificationService", "ListEndpointsByPlatformApplication", {})
1980
- .n("SNSClient", "ListEndpointsByPlatformApplicationCommand")
1981
- .sc(ListEndpointsByPlatformApplication$)
1982
- .build() {
1983
- }
1984
-
1985
- class ListOriginationNumbersCommand extends Command
1986
- .classBuilder()
1987
- .ep(commonParams)
1988
- .m(function (Command, cs, config, o) {
1989
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1990
- })
1991
- .s("AmazonSimpleNotificationService", "ListOriginationNumbers", {})
1992
- .n("SNSClient", "ListOriginationNumbersCommand")
1993
- .sc(ListOriginationNumbers$)
1994
- .build() {
1995
- }
1996
-
1997
- class ListPhoneNumbersOptedOutCommand extends Command
1998
- .classBuilder()
1999
- .ep(commonParams)
2000
- .m(function (Command, cs, config, o) {
2001
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2002
- })
2003
- .s("AmazonSimpleNotificationService", "ListPhoneNumbersOptedOut", {})
2004
- .n("SNSClient", "ListPhoneNumbersOptedOutCommand")
2005
- .sc(ListPhoneNumbersOptedOut$)
2006
- .build() {
2007
- }
2008
-
2009
- class ListPlatformApplicationsCommand extends Command
2010
- .classBuilder()
2011
- .ep(commonParams)
2012
- .m(function (Command, cs, config, o) {
2013
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2014
- })
2015
- .s("AmazonSimpleNotificationService", "ListPlatformApplications", {})
2016
- .n("SNSClient", "ListPlatformApplicationsCommand")
2017
- .sc(ListPlatformApplications$)
2018
- .build() {
2019
- }
2020
-
2021
- class ListSMSSandboxPhoneNumbersCommand extends Command
2022
- .classBuilder()
2023
- .ep(commonParams)
2024
- .m(function (Command, cs, config, o) {
2025
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2026
- })
2027
- .s("AmazonSimpleNotificationService", "ListSMSSandboxPhoneNumbers", {})
2028
- .n("SNSClient", "ListSMSSandboxPhoneNumbersCommand")
2029
- .sc(ListSMSSandboxPhoneNumbers$)
2030
- .build() {
2031
- }
2032
-
2033
- class ListSubscriptionsByTopicCommand extends Command
2034
- .classBuilder()
2035
- .ep(commonParams)
2036
- .m(function (Command, cs, config, o) {
2037
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2038
- })
2039
- .s("AmazonSimpleNotificationService", "ListSubscriptionsByTopic", {})
2040
- .n("SNSClient", "ListSubscriptionsByTopicCommand")
2041
- .sc(ListSubscriptionsByTopic$)
2042
- .build() {
2043
- }
2044
-
2045
- class ListSubscriptionsCommand extends Command
2046
- .classBuilder()
2047
- .ep(commonParams)
2048
- .m(function (Command, cs, config, o) {
2049
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2050
- })
2051
- .s("AmazonSimpleNotificationService", "ListSubscriptions", {})
2052
- .n("SNSClient", "ListSubscriptionsCommand")
2053
- .sc(ListSubscriptions$)
2054
- .build() {
2055
- }
2056
-
2057
- class ListTagsForResourceCommand extends Command
2058
- .classBuilder()
2059
- .ep(commonParams)
2060
- .m(function (Command, cs, config, o) {
2061
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2062
- })
2063
- .s("AmazonSimpleNotificationService", "ListTagsForResource", {})
2064
- .n("SNSClient", "ListTagsForResourceCommand")
2065
- .sc(ListTagsForResource$)
2066
- .build() {
2067
- }
2068
-
2069
- class ListTopicsCommand extends Command
2070
- .classBuilder()
2071
- .ep(commonParams)
2072
- .m(function (Command, cs, config, o) {
2073
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2074
- })
2075
- .s("AmazonSimpleNotificationService", "ListTopics", {})
2076
- .n("SNSClient", "ListTopicsCommand")
2077
- .sc(ListTopics$)
2078
- .build() {
2079
- }
2080
-
2081
- class OptInPhoneNumberCommand extends Command
2082
- .classBuilder()
2083
- .ep(commonParams)
2084
- .m(function (Command, cs, config, o) {
2085
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2086
- })
2087
- .s("AmazonSimpleNotificationService", "OptInPhoneNumber", {})
2088
- .n("SNSClient", "OptInPhoneNumberCommand")
2089
- .sc(OptInPhoneNumber$)
2090
- .build() {
2091
- }
2092
-
2093
- class PublishBatchCommand extends Command
2094
- .classBuilder()
2095
- .ep(commonParams)
2096
- .m(function (Command, cs, config, o) {
2097
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2098
- })
2099
- .s("AmazonSimpleNotificationService", "PublishBatch", {})
2100
- .n("SNSClient", "PublishBatchCommand")
2101
- .sc(PublishBatch$)
2102
- .build() {
2103
- }
2104
-
2105
- class PublishCommand extends Command
2106
- .classBuilder()
2107
- .ep(commonParams)
2108
- .m(function (Command, cs, config, o) {
2109
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2110
- })
2111
- .s("AmazonSimpleNotificationService", "Publish", {})
2112
- .n("SNSClient", "PublishCommand")
2113
- .sc(Publish$)
2114
- .build() {
2115
- }
2116
-
2117
- class PutDataProtectionPolicyCommand extends Command
2118
- .classBuilder()
2119
- .ep(commonParams)
2120
- .m(function (Command, cs, config, o) {
2121
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2122
- })
2123
- .s("AmazonSimpleNotificationService", "PutDataProtectionPolicy", {})
2124
- .n("SNSClient", "PutDataProtectionPolicyCommand")
2125
- .sc(PutDataProtectionPolicy$)
2126
- .build() {
2127
- }
2128
-
2129
- class RemovePermissionCommand extends Command
2130
- .classBuilder()
2131
- .ep(commonParams)
2132
- .m(function (Command, cs, config, o) {
2133
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2134
- })
2135
- .s("AmazonSimpleNotificationService", "RemovePermission", {})
2136
- .n("SNSClient", "RemovePermissionCommand")
2137
- .sc(RemovePermission$)
2138
- .build() {
2139
- }
2140
-
2141
- class SetEndpointAttributesCommand extends Command
2142
- .classBuilder()
2143
- .ep(commonParams)
2144
- .m(function (Command, cs, config, o) {
2145
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2146
- })
2147
- .s("AmazonSimpleNotificationService", "SetEndpointAttributes", {})
2148
- .n("SNSClient", "SetEndpointAttributesCommand")
2149
- .sc(SetEndpointAttributes$)
2150
- .build() {
2151
- }
2152
-
2153
- class SetPlatformApplicationAttributesCommand extends Command
2154
- .classBuilder()
2155
- .ep(commonParams)
2156
- .m(function (Command, cs, config, o) {
2157
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2158
- })
2159
- .s("AmazonSimpleNotificationService", "SetPlatformApplicationAttributes", {})
2160
- .n("SNSClient", "SetPlatformApplicationAttributesCommand")
2161
- .sc(SetPlatformApplicationAttributes$)
2162
- .build() {
2163
- }
2164
-
2165
- class SetSMSAttributesCommand extends Command
2166
- .classBuilder()
2167
- .ep(commonParams)
2168
- .m(function (Command, cs, config, o) {
2169
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2170
- })
2171
- .s("AmazonSimpleNotificationService", "SetSMSAttributes", {})
2172
- .n("SNSClient", "SetSMSAttributesCommand")
2173
- .sc(SetSMSAttributes$)
2174
- .build() {
2175
- }
2176
-
2177
- class SetSubscriptionAttributesCommand extends Command
2178
- .classBuilder()
2179
- .ep(commonParams)
2180
- .m(function (Command, cs, config, o) {
2181
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2182
- })
2183
- .s("AmazonSimpleNotificationService", "SetSubscriptionAttributes", {})
2184
- .n("SNSClient", "SetSubscriptionAttributesCommand")
2185
- .sc(SetSubscriptionAttributes$)
2186
- .build() {
2187
- }
2188
-
2189
- class SetTopicAttributesCommand extends Command
2190
- .classBuilder()
2191
- .ep(commonParams)
2192
- .m(function (Command, cs, config, o) {
2193
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2194
- })
2195
- .s("AmazonSimpleNotificationService", "SetTopicAttributes", {})
2196
- .n("SNSClient", "SetTopicAttributesCommand")
2197
- .sc(SetTopicAttributes$)
2198
- .build() {
2199
- }
2200
-
2201
- class SubscribeCommand extends Command
2202
- .classBuilder()
2203
- .ep(commonParams)
2204
- .m(function (Command, cs, config, o) {
2205
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2206
- })
2207
- .s("AmazonSimpleNotificationService", "Subscribe", {})
2208
- .n("SNSClient", "SubscribeCommand")
2209
- .sc(Subscribe$)
2210
- .build() {
2211
- }
2212
-
2213
- class TagResourceCommand extends Command
2214
- .classBuilder()
2215
- .ep(commonParams)
2216
- .m(function (Command, cs, config, o) {
2217
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2218
- })
2219
- .s("AmazonSimpleNotificationService", "TagResource", {})
2220
- .n("SNSClient", "TagResourceCommand")
2221
- .sc(TagResource$)
2222
- .build() {
2223
- }
2224
-
2225
- class UnsubscribeCommand extends Command
2226
- .classBuilder()
2227
- .ep(commonParams)
2228
- .m(function (Command, cs, config, o) {
2229
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2230
- })
2231
- .s("AmazonSimpleNotificationService", "Unsubscribe", {})
2232
- .n("SNSClient", "UnsubscribeCommand")
2233
- .sc(Unsubscribe$)
2234
- .build() {
2235
- }
2236
-
2237
- class UntagResourceCommand extends Command
2238
- .classBuilder()
2239
- .ep(commonParams)
2240
- .m(function (Command, cs, config, o) {
2241
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2242
- })
2243
- .s("AmazonSimpleNotificationService", "UntagResource", {})
2244
- .n("SNSClient", "UntagResourceCommand")
2245
- .sc(UntagResource$)
2246
- .build() {
2247
- }
2248
-
2249
- class VerifySMSSandboxPhoneNumberCommand extends Command
2250
- .classBuilder()
2251
- .ep(commonParams)
2252
- .m(function (Command, cs, config, o) {
2253
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2254
- })
2255
- .s("AmazonSimpleNotificationService", "VerifySMSSandboxPhoneNumber", {})
2256
- .n("SNSClient", "VerifySMSSandboxPhoneNumberCommand")
2257
- .sc(VerifySMSSandboxPhoneNumber$)
2258
- .build() {
1759
+ const command = makeBuilder(commonParams, "AmazonSimpleNotificationService", "SNSClient", getEndpointPlugin);
1760
+ const _ep0 = {};
1761
+ const _mw0 = (Command, cs, config, o) => [];
1762
+
1763
+ class AddPermissionCommand extends command(_ep0, _mw0, "AddPermission", AddPermission$) {
1764
+ }
1765
+
1766
+ class CheckIfPhoneNumberIsOptedOutCommand extends command(_ep0, _mw0, "CheckIfPhoneNumberIsOptedOut", CheckIfPhoneNumberIsOptedOut$) {
1767
+ }
1768
+
1769
+ class ConfirmSubscriptionCommand extends command(_ep0, _mw0, "ConfirmSubscription", ConfirmSubscription$) {
1770
+ }
1771
+
1772
+ class CreatePlatformApplicationCommand extends command(_ep0, _mw0, "CreatePlatformApplication", CreatePlatformApplication$) {
1773
+ }
1774
+
1775
+ class CreatePlatformEndpointCommand extends command(_ep0, _mw0, "CreatePlatformEndpoint", CreatePlatformEndpoint$) {
1776
+ }
1777
+
1778
+ class CreateSMSSandboxPhoneNumberCommand extends command(_ep0, _mw0, "CreateSMSSandboxPhoneNumber", CreateSMSSandboxPhoneNumber$) {
1779
+ }
1780
+
1781
+ class CreateTopicCommand extends command(_ep0, _mw0, "CreateTopic", CreateTopic$) {
1782
+ }
1783
+
1784
+ class DeleteEndpointCommand extends command(_ep0, _mw0, "DeleteEndpoint", DeleteEndpoint$) {
1785
+ }
1786
+
1787
+ class DeletePlatformApplicationCommand extends command(_ep0, _mw0, "DeletePlatformApplication", DeletePlatformApplication$) {
1788
+ }
1789
+
1790
+ class DeleteSMSSandboxPhoneNumberCommand extends command(_ep0, _mw0, "DeleteSMSSandboxPhoneNumber", DeleteSMSSandboxPhoneNumber$) {
1791
+ }
1792
+
1793
+ class DeleteTopicCommand extends command(_ep0, _mw0, "DeleteTopic", DeleteTopic$) {
1794
+ }
1795
+
1796
+ class GetDataProtectionPolicyCommand extends command(_ep0, _mw0, "GetDataProtectionPolicy", GetDataProtectionPolicy$) {
1797
+ }
1798
+
1799
+ class GetEndpointAttributesCommand extends command(_ep0, _mw0, "GetEndpointAttributes", GetEndpointAttributes$) {
1800
+ }
1801
+
1802
+ class GetPlatformApplicationAttributesCommand extends command(_ep0, _mw0, "GetPlatformApplicationAttributes", GetPlatformApplicationAttributes$) {
1803
+ }
1804
+
1805
+ class GetSMSAttributesCommand extends command(_ep0, _mw0, "GetSMSAttributes", GetSMSAttributes$) {
1806
+ }
1807
+
1808
+ class GetSMSSandboxAccountStatusCommand extends command(_ep0, _mw0, "GetSMSSandboxAccountStatus", GetSMSSandboxAccountStatus$) {
1809
+ }
1810
+
1811
+ class GetSubscriptionAttributesCommand extends command(_ep0, _mw0, "GetSubscriptionAttributes", GetSubscriptionAttributes$) {
1812
+ }
1813
+
1814
+ class GetTopicAttributesCommand extends command(_ep0, _mw0, "GetTopicAttributes", GetTopicAttributes$) {
1815
+ }
1816
+
1817
+ class ListEndpointsByPlatformApplicationCommand extends command(_ep0, _mw0, "ListEndpointsByPlatformApplication", ListEndpointsByPlatformApplication$) {
1818
+ }
1819
+
1820
+ class ListOriginationNumbersCommand extends command(_ep0, _mw0, "ListOriginationNumbers", ListOriginationNumbers$) {
1821
+ }
1822
+
1823
+ class ListPhoneNumbersOptedOutCommand extends command(_ep0, _mw0, "ListPhoneNumbersOptedOut", ListPhoneNumbersOptedOut$) {
1824
+ }
1825
+
1826
+ class ListPlatformApplicationsCommand extends command(_ep0, _mw0, "ListPlatformApplications", ListPlatformApplications$) {
1827
+ }
1828
+
1829
+ class ListSMSSandboxPhoneNumbersCommand extends command(_ep0, _mw0, "ListSMSSandboxPhoneNumbers", ListSMSSandboxPhoneNumbers$) {
1830
+ }
1831
+
1832
+ class ListSubscriptionsByTopicCommand extends command(_ep0, _mw0, "ListSubscriptionsByTopic", ListSubscriptionsByTopic$) {
1833
+ }
1834
+
1835
+ class ListSubscriptionsCommand extends command(_ep0, _mw0, "ListSubscriptions", ListSubscriptions$) {
1836
+ }
1837
+
1838
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1839
+ }
1840
+
1841
+ class ListTopicsCommand extends command(_ep0, _mw0, "ListTopics", ListTopics$) {
1842
+ }
1843
+
1844
+ class OptInPhoneNumberCommand extends command(_ep0, _mw0, "OptInPhoneNumber", OptInPhoneNumber$) {
1845
+ }
1846
+
1847
+ class PublishBatchCommand extends command(_ep0, _mw0, "PublishBatch", PublishBatch$) {
1848
+ }
1849
+
1850
+ class PublishCommand extends command(_ep0, _mw0, "Publish", Publish$) {
1851
+ }
1852
+
1853
+ class PutDataProtectionPolicyCommand extends command(_ep0, _mw0, "PutDataProtectionPolicy", PutDataProtectionPolicy$) {
1854
+ }
1855
+
1856
+ class RemovePermissionCommand extends command(_ep0, _mw0, "RemovePermission", RemovePermission$) {
1857
+ }
1858
+
1859
+ class SetEndpointAttributesCommand extends command(_ep0, _mw0, "SetEndpointAttributes", SetEndpointAttributes$) {
1860
+ }
1861
+
1862
+ class SetPlatformApplicationAttributesCommand extends command(_ep0, _mw0, "SetPlatformApplicationAttributes", SetPlatformApplicationAttributes$) {
1863
+ }
1864
+
1865
+ class SetSMSAttributesCommand extends command(_ep0, _mw0, "SetSMSAttributes", SetSMSAttributes$) {
1866
+ }
1867
+
1868
+ class SetSubscriptionAttributesCommand extends command(_ep0, _mw0, "SetSubscriptionAttributes", SetSubscriptionAttributes$) {
1869
+ }
1870
+
1871
+ class SetTopicAttributesCommand extends command(_ep0, _mw0, "SetTopicAttributes", SetTopicAttributes$) {
1872
+ }
1873
+
1874
+ class SubscribeCommand extends command(_ep0, _mw0, "Subscribe", Subscribe$) {
1875
+ }
1876
+
1877
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1878
+ }
1879
+
1880
+ class UnsubscribeCommand extends command(_ep0, _mw0, "Unsubscribe", Unsubscribe$) {
1881
+ }
1882
+
1883
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1884
+ }
1885
+
1886
+ class VerifySMSSandboxPhoneNumberCommand extends command(_ep0, _mw0, "VerifySMSSandboxPhoneNumber", VerifySMSSandboxPhoneNumber$) {
2259
1887
  }
2260
1888
 
2261
1889
  const paginateListEndpointsByPlatformApplication = createPaginator(SNSClient, ListEndpointsByPlatformApplicationCommand, "NextToken", "NextToken", "");