@aws-sdk/client-pinpoint-sms-voice-v2 3.61.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 (280) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +221 -0
  4. package/dist-cjs/PinpointSMSVoiceV2.js +652 -0
  5. package/dist-cjs/PinpointSMSVoiceV2Client.js +35 -0
  6. package/dist-cjs/commands/AssociateOriginationIdentityCommand.js +36 -0
  7. package/dist-cjs/commands/CreateConfigurationSetCommand.js +36 -0
  8. package/dist-cjs/commands/CreateEventDestinationCommand.js +36 -0
  9. package/dist-cjs/commands/CreateOptOutListCommand.js +36 -0
  10. package/dist-cjs/commands/CreatePoolCommand.js +36 -0
  11. package/dist-cjs/commands/DeleteConfigurationSetCommand.js +36 -0
  12. package/dist-cjs/commands/DeleteDefaultMessageTypeCommand.js +36 -0
  13. package/dist-cjs/commands/DeleteDefaultSenderIdCommand.js +36 -0
  14. package/dist-cjs/commands/DeleteEventDestinationCommand.js +36 -0
  15. package/dist-cjs/commands/DeleteKeywordCommand.js +36 -0
  16. package/dist-cjs/commands/DeleteOptOutListCommand.js +36 -0
  17. package/dist-cjs/commands/DeleteOptedOutNumberCommand.js +36 -0
  18. package/dist-cjs/commands/DeletePoolCommand.js +36 -0
  19. package/dist-cjs/commands/DeleteTextMessageSpendLimitOverrideCommand.js +36 -0
  20. package/dist-cjs/commands/DeleteVoiceMessageSpendLimitOverrideCommand.js +36 -0
  21. package/dist-cjs/commands/DescribeAccountAttributesCommand.js +36 -0
  22. package/dist-cjs/commands/DescribeAccountLimitsCommand.js +36 -0
  23. package/dist-cjs/commands/DescribeConfigurationSetsCommand.js +36 -0
  24. package/dist-cjs/commands/DescribeKeywordsCommand.js +36 -0
  25. package/dist-cjs/commands/DescribeOptOutListsCommand.js +36 -0
  26. package/dist-cjs/commands/DescribeOptedOutNumbersCommand.js +36 -0
  27. package/dist-cjs/commands/DescribePhoneNumbersCommand.js +36 -0
  28. package/dist-cjs/commands/DescribePoolsCommand.js +36 -0
  29. package/dist-cjs/commands/DescribeSenderIdsCommand.js +36 -0
  30. package/dist-cjs/commands/DescribeSpendLimitsCommand.js +36 -0
  31. package/dist-cjs/commands/DisassociateOriginationIdentityCommand.js +36 -0
  32. package/dist-cjs/commands/ListPoolOriginationIdentitiesCommand.js +36 -0
  33. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  34. package/dist-cjs/commands/PutKeywordCommand.js +36 -0
  35. package/dist-cjs/commands/PutOptedOutNumberCommand.js +36 -0
  36. package/dist-cjs/commands/ReleasePhoneNumberCommand.js +36 -0
  37. package/dist-cjs/commands/RequestPhoneNumberCommand.js +36 -0
  38. package/dist-cjs/commands/SendTextMessageCommand.js +36 -0
  39. package/dist-cjs/commands/SendVoiceMessageCommand.js +36 -0
  40. package/dist-cjs/commands/SetDefaultMessageTypeCommand.js +36 -0
  41. package/dist-cjs/commands/SetDefaultSenderIdCommand.js +36 -0
  42. package/dist-cjs/commands/SetTextMessageSpendLimitOverrideCommand.js +36 -0
  43. package/dist-cjs/commands/SetVoiceMessageSpendLimitOverrideCommand.js +36 -0
  44. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  45. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  46. package/dist-cjs/commands/UpdateEventDestinationCommand.js +36 -0
  47. package/dist-cjs/commands/UpdatePhoneNumberCommand.js +36 -0
  48. package/dist-cjs/commands/UpdatePoolCommand.js +36 -0
  49. package/dist-cjs/commands/index.js +46 -0
  50. package/dist-cjs/endpoints.js +131 -0
  51. package/dist-cjs/index.js +11 -0
  52. package/dist-cjs/models/PinpointSMSVoiceV2ServiceException.js +11 -0
  53. package/dist-cjs/models/index.js +4 -0
  54. package/dist-cjs/models/models_0.js +1074 -0
  55. package/dist-cjs/pagination/DescribeAccountAttributesPaginator.js +35 -0
  56. package/dist-cjs/pagination/DescribeAccountLimitsPaginator.js +35 -0
  57. package/dist-cjs/pagination/DescribeConfigurationSetsPaginator.js +35 -0
  58. package/dist-cjs/pagination/DescribeKeywordsPaginator.js +35 -0
  59. package/dist-cjs/pagination/DescribeOptOutListsPaginator.js +35 -0
  60. package/dist-cjs/pagination/DescribeOptedOutNumbersPaginator.js +35 -0
  61. package/dist-cjs/pagination/DescribePhoneNumbersPaginator.js +35 -0
  62. package/dist-cjs/pagination/DescribePoolsPaginator.js +35 -0
  63. package/dist-cjs/pagination/DescribeSenderIdsPaginator.js +35 -0
  64. package/dist-cjs/pagination/DescribeSpendLimitsPaginator.js +35 -0
  65. package/dist-cjs/pagination/Interfaces.js +2 -0
  66. package/dist-cjs/pagination/ListPoolOriginationIdentitiesPaginator.js +35 -0
  67. package/dist-cjs/pagination/index.js +15 -0
  68. package/dist-cjs/protocols/Aws_json1_0.js +4247 -0
  69. package/dist-cjs/runtimeConfig.browser.js +45 -0
  70. package/dist-cjs/runtimeConfig.js +50 -0
  71. package/dist-cjs/runtimeConfig.native.js +16 -0
  72. package/dist-cjs/runtimeConfig.shared.js +17 -0
  73. package/dist-es/PinpointSMSVoiceV2.js +655 -0
  74. package/dist-es/PinpointSMSVoiceV2Client.js +37 -0
  75. package/dist-es/commands/AssociateOriginationIdentityCommand.js +39 -0
  76. package/dist-es/commands/CreateConfigurationSetCommand.js +39 -0
  77. package/dist-es/commands/CreateEventDestinationCommand.js +39 -0
  78. package/dist-es/commands/CreateOptOutListCommand.js +39 -0
  79. package/dist-es/commands/CreatePoolCommand.js +39 -0
  80. package/dist-es/commands/DeleteConfigurationSetCommand.js +39 -0
  81. package/dist-es/commands/DeleteDefaultMessageTypeCommand.js +39 -0
  82. package/dist-es/commands/DeleteDefaultSenderIdCommand.js +39 -0
  83. package/dist-es/commands/DeleteEventDestinationCommand.js +39 -0
  84. package/dist-es/commands/DeleteKeywordCommand.js +39 -0
  85. package/dist-es/commands/DeleteOptOutListCommand.js +39 -0
  86. package/dist-es/commands/DeleteOptedOutNumberCommand.js +39 -0
  87. package/dist-es/commands/DeletePoolCommand.js +39 -0
  88. package/dist-es/commands/DeleteTextMessageSpendLimitOverrideCommand.js +39 -0
  89. package/dist-es/commands/DeleteVoiceMessageSpendLimitOverrideCommand.js +39 -0
  90. package/dist-es/commands/DescribeAccountAttributesCommand.js +39 -0
  91. package/dist-es/commands/DescribeAccountLimitsCommand.js +39 -0
  92. package/dist-es/commands/DescribeConfigurationSetsCommand.js +39 -0
  93. package/dist-es/commands/DescribeKeywordsCommand.js +39 -0
  94. package/dist-es/commands/DescribeOptOutListsCommand.js +39 -0
  95. package/dist-es/commands/DescribeOptedOutNumbersCommand.js +39 -0
  96. package/dist-es/commands/DescribePhoneNumbersCommand.js +39 -0
  97. package/dist-es/commands/DescribePoolsCommand.js +39 -0
  98. package/dist-es/commands/DescribeSenderIdsCommand.js +39 -0
  99. package/dist-es/commands/DescribeSpendLimitsCommand.js +39 -0
  100. package/dist-es/commands/DisassociateOriginationIdentityCommand.js +39 -0
  101. package/dist-es/commands/ListPoolOriginationIdentitiesCommand.js +39 -0
  102. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  103. package/dist-es/commands/PutKeywordCommand.js +39 -0
  104. package/dist-es/commands/PutOptedOutNumberCommand.js +39 -0
  105. package/dist-es/commands/ReleasePhoneNumberCommand.js +39 -0
  106. package/dist-es/commands/RequestPhoneNumberCommand.js +39 -0
  107. package/dist-es/commands/SendTextMessageCommand.js +39 -0
  108. package/dist-es/commands/SendVoiceMessageCommand.js +39 -0
  109. package/dist-es/commands/SetDefaultMessageTypeCommand.js +39 -0
  110. package/dist-es/commands/SetDefaultSenderIdCommand.js +39 -0
  111. package/dist-es/commands/SetTextMessageSpendLimitOverrideCommand.js +39 -0
  112. package/dist-es/commands/SetVoiceMessageSpendLimitOverrideCommand.js +39 -0
  113. package/dist-es/commands/TagResourceCommand.js +39 -0
  114. package/dist-es/commands/UntagResourceCommand.js +39 -0
  115. package/dist-es/commands/UpdateEventDestinationCommand.js +39 -0
  116. package/dist-es/commands/UpdatePhoneNumberCommand.js +39 -0
  117. package/dist-es/commands/UpdatePoolCommand.js +39 -0
  118. package/dist-es/commands/index.js +43 -0
  119. package/dist-es/endpoints.js +127 -0
  120. package/dist-es/index.js +6 -0
  121. package/dist-es/models/PinpointSMSVoiceV2ServiceException.js +12 -0
  122. package/dist-es/models/index.js +1 -0
  123. package/dist-es/models/models_0.js +841 -0
  124. package/dist-es/pagination/DescribeAccountAttributesPaginator.js +74 -0
  125. package/dist-es/pagination/DescribeAccountLimitsPaginator.js +74 -0
  126. package/dist-es/pagination/DescribeConfigurationSetsPaginator.js +74 -0
  127. package/dist-es/pagination/DescribeKeywordsPaginator.js +74 -0
  128. package/dist-es/pagination/DescribeOptOutListsPaginator.js +74 -0
  129. package/dist-es/pagination/DescribeOptedOutNumbersPaginator.js +74 -0
  130. package/dist-es/pagination/DescribePhoneNumbersPaginator.js +74 -0
  131. package/dist-es/pagination/DescribePoolsPaginator.js +74 -0
  132. package/dist-es/pagination/DescribeSenderIdsPaginator.js +74 -0
  133. package/dist-es/pagination/DescribeSpendLimitsPaginator.js +74 -0
  134. package/dist-es/pagination/Interfaces.js +1 -0
  135. package/dist-es/pagination/ListPoolOriginationIdentitiesPaginator.js +74 -0
  136. package/dist-es/pagination/index.js +12 -0
  137. package/dist-es/protocols/Aws_json1_0.js +4868 -0
  138. package/dist-es/runtimeConfig.browser.js +26 -0
  139. package/dist-es/runtimeConfig.js +28 -0
  140. package/dist-es/runtimeConfig.native.js +8 -0
  141. package/dist-es/runtimeConfig.shared.js +13 -0
  142. package/dist-types/PinpointSMSVoiceV2.d.ts +517 -0
  143. package/dist-types/PinpointSMSVoiceV2Client.d.ts +202 -0
  144. package/dist-types/commands/AssociateOriginationIdentityCommand.d.ts +39 -0
  145. package/dist-types/commands/CreateConfigurationSetCommand.d.ts +39 -0
  146. package/dist-types/commands/CreateEventDestinationCommand.d.ts +43 -0
  147. package/dist-types/commands/CreateOptOutListCommand.d.ts +43 -0
  148. package/dist-types/commands/CreatePoolCommand.d.ts +43 -0
  149. package/dist-types/commands/DeleteConfigurationSetCommand.d.ts +38 -0
  150. package/dist-types/commands/DeleteDefaultMessageTypeCommand.d.ts +40 -0
  151. package/dist-types/commands/DeleteDefaultSenderIdCommand.d.ts +38 -0
  152. package/dist-types/commands/DeleteEventDestinationCommand.d.ts +39 -0
  153. package/dist-types/commands/DeleteKeywordCommand.d.ts +41 -0
  154. package/dist-types/commands/DeleteOptOutListCommand.d.ts +38 -0
  155. package/dist-types/commands/DeleteOptedOutNumberCommand.d.ts +39 -0
  156. package/dist-types/commands/DeletePoolCommand.d.ts +41 -0
  157. package/dist-types/commands/DeleteTextMessageSpendLimitOverrideCommand.d.ts +39 -0
  158. package/dist-types/commands/DeleteVoiceMessageSpendLimitOverrideCommand.d.ts +39 -0
  159. package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +41 -0
  160. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +42 -0
  161. package/dist-types/commands/DescribeConfigurationSetsCommand.d.ts +41 -0
  162. package/dist-types/commands/DescribeKeywordsCommand.d.ts +42 -0
  163. package/dist-types/commands/DescribeOptOutListsCommand.d.ts +40 -0
  164. package/dist-types/commands/DescribeOptedOutNumbersCommand.d.ts +42 -0
  165. package/dist-types/commands/DescribePhoneNumbersCommand.d.ts +41 -0
  166. package/dist-types/commands/DescribePoolsCommand.d.ts +44 -0
  167. package/dist-types/commands/DescribeSenderIdsCommand.d.ts +40 -0
  168. package/dist-types/commands/DescribeSpendLimitsCommand.d.ts +41 -0
  169. package/dist-types/commands/DisassociateOriginationIdentityCommand.d.ts +37 -0
  170. package/dist-types/commands/ListPoolOriginationIdentitiesCommand.d.ts +37 -0
  171. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  172. package/dist-types/commands/PutKeywordCommand.d.ts +42 -0
  173. package/dist-types/commands/PutOptedOutNumberCommand.d.ts +37 -0
  174. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +38 -0
  175. package/dist-types/commands/RequestPhoneNumberCommand.d.ts +37 -0
  176. package/dist-types/commands/SendTextMessageCommand.d.ts +40 -0
  177. package/dist-types/commands/SendVoiceMessageCommand.d.ts +37 -0
  178. package/dist-types/commands/SetDefaultMessageTypeCommand.d.ts +40 -0
  179. package/dist-types/commands/SetDefaultSenderIdCommand.d.ts +38 -0
  180. package/dist-types/commands/SetTextMessageSpendLimitOverrideCommand.d.ts +37 -0
  181. package/dist-types/commands/SetVoiceMessageSpendLimitOverrideCommand.d.ts +37 -0
  182. package/dist-types/commands/TagResourceCommand.d.ts +40 -0
  183. package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
  184. package/dist-types/commands/UpdateEventDestinationCommand.d.ts +40 -0
  185. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +39 -0
  186. package/dist-types/commands/UpdatePoolCommand.d.ts +38 -0
  187. package/dist-types/commands/index.d.ts +43 -0
  188. package/dist-types/endpoints.d.ts +2 -0
  189. package/dist-types/index.d.ts +6 -0
  190. package/dist-types/models/PinpointSMSVoiceV2ServiceException.d.ts +10 -0
  191. package/dist-types/models/index.d.ts +1 -0
  192. package/dist-types/models/models_0.d.ts +3339 -0
  193. package/dist-types/pagination/DescribeAccountAttributesPaginator.d.ts +4 -0
  194. package/dist-types/pagination/DescribeAccountLimitsPaginator.d.ts +4 -0
  195. package/dist-types/pagination/DescribeConfigurationSetsPaginator.d.ts +4 -0
  196. package/dist-types/pagination/DescribeKeywordsPaginator.d.ts +4 -0
  197. package/dist-types/pagination/DescribeOptOutListsPaginator.d.ts +4 -0
  198. package/dist-types/pagination/DescribeOptedOutNumbersPaginator.d.ts +4 -0
  199. package/dist-types/pagination/DescribePhoneNumbersPaginator.d.ts +4 -0
  200. package/dist-types/pagination/DescribePoolsPaginator.d.ts +4 -0
  201. package/dist-types/pagination/DescribeSenderIdsPaginator.d.ts +4 -0
  202. package/dist-types/pagination/DescribeSpendLimitsPaginator.d.ts +4 -0
  203. package/dist-types/pagination/Interfaces.d.ts +6 -0
  204. package/dist-types/pagination/ListPoolOriginationIdentitiesPaginator.d.ts +4 -0
  205. package/dist-types/pagination/index.d.ts +12 -0
  206. package/dist-types/protocols/Aws_json1_0.d.ts +131 -0
  207. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  208. package/dist-types/runtimeConfig.d.ts +40 -0
  209. package/dist-types/runtimeConfig.native.d.ts +39 -0
  210. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  211. package/dist-types/ts3.4/PinpointSMSVoiceV2.d.ts +220 -0
  212. package/dist-types/ts3.4/PinpointSMSVoiceV2Client.d.ts +116 -0
  213. package/dist-types/ts3.4/commands/AssociateOriginationIdentityCommand.d.ts +17 -0
  214. package/dist-types/ts3.4/commands/CreateConfigurationSetCommand.d.ts +17 -0
  215. package/dist-types/ts3.4/commands/CreateEventDestinationCommand.d.ts +17 -0
  216. package/dist-types/ts3.4/commands/CreateOptOutListCommand.d.ts +17 -0
  217. package/dist-types/ts3.4/commands/CreatePoolCommand.d.ts +17 -0
  218. package/dist-types/ts3.4/commands/DeleteConfigurationSetCommand.d.ts +17 -0
  219. package/dist-types/ts3.4/commands/DeleteDefaultMessageTypeCommand.d.ts +17 -0
  220. package/dist-types/ts3.4/commands/DeleteDefaultSenderIdCommand.d.ts +17 -0
  221. package/dist-types/ts3.4/commands/DeleteEventDestinationCommand.d.ts +17 -0
  222. package/dist-types/ts3.4/commands/DeleteKeywordCommand.d.ts +17 -0
  223. package/dist-types/ts3.4/commands/DeleteOptOutListCommand.d.ts +17 -0
  224. package/dist-types/ts3.4/commands/DeleteOptedOutNumberCommand.d.ts +17 -0
  225. package/dist-types/ts3.4/commands/DeletePoolCommand.d.ts +17 -0
  226. package/dist-types/ts3.4/commands/DeleteTextMessageSpendLimitOverrideCommand.d.ts +17 -0
  227. package/dist-types/ts3.4/commands/DeleteVoiceMessageSpendLimitOverrideCommand.d.ts +17 -0
  228. package/dist-types/ts3.4/commands/DescribeAccountAttributesCommand.d.ts +17 -0
  229. package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +17 -0
  230. package/dist-types/ts3.4/commands/DescribeConfigurationSetsCommand.d.ts +17 -0
  231. package/dist-types/ts3.4/commands/DescribeKeywordsCommand.d.ts +17 -0
  232. package/dist-types/ts3.4/commands/DescribeOptOutListsCommand.d.ts +17 -0
  233. package/dist-types/ts3.4/commands/DescribeOptedOutNumbersCommand.d.ts +17 -0
  234. package/dist-types/ts3.4/commands/DescribePhoneNumbersCommand.d.ts +17 -0
  235. package/dist-types/ts3.4/commands/DescribePoolsCommand.d.ts +17 -0
  236. package/dist-types/ts3.4/commands/DescribeSenderIdsCommand.d.ts +17 -0
  237. package/dist-types/ts3.4/commands/DescribeSpendLimitsCommand.d.ts +17 -0
  238. package/dist-types/ts3.4/commands/DisassociateOriginationIdentityCommand.d.ts +17 -0
  239. package/dist-types/ts3.4/commands/ListPoolOriginationIdentitiesCommand.d.ts +17 -0
  240. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  241. package/dist-types/ts3.4/commands/PutKeywordCommand.d.ts +17 -0
  242. package/dist-types/ts3.4/commands/PutOptedOutNumberCommand.d.ts +17 -0
  243. package/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +17 -0
  244. package/dist-types/ts3.4/commands/RequestPhoneNumberCommand.d.ts +17 -0
  245. package/dist-types/ts3.4/commands/SendTextMessageCommand.d.ts +17 -0
  246. package/dist-types/ts3.4/commands/SendVoiceMessageCommand.d.ts +17 -0
  247. package/dist-types/ts3.4/commands/SetDefaultMessageTypeCommand.d.ts +17 -0
  248. package/dist-types/ts3.4/commands/SetDefaultSenderIdCommand.d.ts +17 -0
  249. package/dist-types/ts3.4/commands/SetTextMessageSpendLimitOverrideCommand.d.ts +17 -0
  250. package/dist-types/ts3.4/commands/SetVoiceMessageSpendLimitOverrideCommand.d.ts +17 -0
  251. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  252. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  253. package/dist-types/ts3.4/commands/UpdateEventDestinationCommand.d.ts +17 -0
  254. package/dist-types/ts3.4/commands/UpdatePhoneNumberCommand.d.ts +17 -0
  255. package/dist-types/ts3.4/commands/UpdatePoolCommand.d.ts +17 -0
  256. package/dist-types/ts3.4/commands/index.d.ts +43 -0
  257. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  258. package/dist-types/ts3.4/index.d.ts +6 -0
  259. package/dist-types/ts3.4/models/PinpointSMSVoiceV2ServiceException.d.ts +6 -0
  260. package/dist-types/ts3.4/models/index.d.ts +1 -0
  261. package/dist-types/ts3.4/models/models_0.d.ts +1883 -0
  262. package/dist-types/ts3.4/pagination/DescribeAccountAttributesPaginator.d.ts +4 -0
  263. package/dist-types/ts3.4/pagination/DescribeAccountLimitsPaginator.d.ts +4 -0
  264. package/dist-types/ts3.4/pagination/DescribeConfigurationSetsPaginator.d.ts +4 -0
  265. package/dist-types/ts3.4/pagination/DescribeKeywordsPaginator.d.ts +4 -0
  266. package/dist-types/ts3.4/pagination/DescribeOptOutListsPaginator.d.ts +4 -0
  267. package/dist-types/ts3.4/pagination/DescribeOptedOutNumbersPaginator.d.ts +4 -0
  268. package/dist-types/ts3.4/pagination/DescribePhoneNumbersPaginator.d.ts +4 -0
  269. package/dist-types/ts3.4/pagination/DescribePoolsPaginator.d.ts +4 -0
  270. package/dist-types/ts3.4/pagination/DescribeSenderIdsPaginator.d.ts +4 -0
  271. package/dist-types/ts3.4/pagination/DescribeSpendLimitsPaginator.d.ts +4 -0
  272. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  273. package/dist-types/ts3.4/pagination/ListPoolOriginationIdentitiesPaginator.d.ts +4 -0
  274. package/dist-types/ts3.4/pagination/index.d.ts +12 -0
  275. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +131 -0
  276. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  277. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  278. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  279. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  280. package/package.json +95 -0
@@ -0,0 +1,655 @@
1
+ import { __extends } from "tslib";
2
+ import { AssociateOriginationIdentityCommand, } from "./commands/AssociateOriginationIdentityCommand";
3
+ import { CreateConfigurationSetCommand, } from "./commands/CreateConfigurationSetCommand";
4
+ import { CreateEventDestinationCommand, } from "./commands/CreateEventDestinationCommand";
5
+ import { CreateOptOutListCommand, } from "./commands/CreateOptOutListCommand";
6
+ import { CreatePoolCommand } from "./commands/CreatePoolCommand";
7
+ import { DeleteConfigurationSetCommand, } from "./commands/DeleteConfigurationSetCommand";
8
+ import { DeleteDefaultMessageTypeCommand, } from "./commands/DeleteDefaultMessageTypeCommand";
9
+ import { DeleteDefaultSenderIdCommand, } from "./commands/DeleteDefaultSenderIdCommand";
10
+ import { DeleteEventDestinationCommand, } from "./commands/DeleteEventDestinationCommand";
11
+ import { DeleteKeywordCommand, } from "./commands/DeleteKeywordCommand";
12
+ import { DeleteOptedOutNumberCommand, } from "./commands/DeleteOptedOutNumberCommand";
13
+ import { DeleteOptOutListCommand, } from "./commands/DeleteOptOutListCommand";
14
+ import { DeletePoolCommand } from "./commands/DeletePoolCommand";
15
+ import { DeleteTextMessageSpendLimitOverrideCommand, } from "./commands/DeleteTextMessageSpendLimitOverrideCommand";
16
+ import { DeleteVoiceMessageSpendLimitOverrideCommand, } from "./commands/DeleteVoiceMessageSpendLimitOverrideCommand";
17
+ import { DescribeAccountAttributesCommand, } from "./commands/DescribeAccountAttributesCommand";
18
+ import { DescribeAccountLimitsCommand, } from "./commands/DescribeAccountLimitsCommand";
19
+ import { DescribeConfigurationSetsCommand, } from "./commands/DescribeConfigurationSetsCommand";
20
+ import { DescribeKeywordsCommand, } from "./commands/DescribeKeywordsCommand";
21
+ import { DescribeOptedOutNumbersCommand, } from "./commands/DescribeOptedOutNumbersCommand";
22
+ import { DescribeOptOutListsCommand, } from "./commands/DescribeOptOutListsCommand";
23
+ import { DescribePhoneNumbersCommand, } from "./commands/DescribePhoneNumbersCommand";
24
+ import { DescribePoolsCommand, } from "./commands/DescribePoolsCommand";
25
+ import { DescribeSenderIdsCommand, } from "./commands/DescribeSenderIdsCommand";
26
+ import { DescribeSpendLimitsCommand, } from "./commands/DescribeSpendLimitsCommand";
27
+ import { DisassociateOriginationIdentityCommand, } from "./commands/DisassociateOriginationIdentityCommand";
28
+ import { ListPoolOriginationIdentitiesCommand, } from "./commands/ListPoolOriginationIdentitiesCommand";
29
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
30
+ import { PutKeywordCommand } from "./commands/PutKeywordCommand";
31
+ import { PutOptedOutNumberCommand, } from "./commands/PutOptedOutNumberCommand";
32
+ import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
33
+ import { RequestPhoneNumberCommand, } from "./commands/RequestPhoneNumberCommand";
34
+ import { SendTextMessageCommand, } from "./commands/SendTextMessageCommand";
35
+ import { SendVoiceMessageCommand, } from "./commands/SendVoiceMessageCommand";
36
+ import { SetDefaultMessageTypeCommand, } from "./commands/SetDefaultMessageTypeCommand";
37
+ import { SetDefaultSenderIdCommand, } from "./commands/SetDefaultSenderIdCommand";
38
+ import { SetTextMessageSpendLimitOverrideCommand, } from "./commands/SetTextMessageSpendLimitOverrideCommand";
39
+ import { SetVoiceMessageSpendLimitOverrideCommand, } from "./commands/SetVoiceMessageSpendLimitOverrideCommand";
40
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
41
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
42
+ import { UpdateEventDestinationCommand, } from "./commands/UpdateEventDestinationCommand";
43
+ import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
44
+ import { UpdatePoolCommand } from "./commands/UpdatePoolCommand";
45
+ import { PinpointSMSVoiceV2Client } from "./PinpointSMSVoiceV2Client";
46
+ var PinpointSMSVoiceV2 = (function (_super) {
47
+ __extends(PinpointSMSVoiceV2, _super);
48
+ function PinpointSMSVoiceV2() {
49
+ return _super !== null && _super.apply(this, arguments) || this;
50
+ }
51
+ PinpointSMSVoiceV2.prototype.associateOriginationIdentity = function (args, optionsOrCb, cb) {
52
+ var command = new AssociateOriginationIdentityCommand(args);
53
+ if (typeof optionsOrCb === "function") {
54
+ this.send(command, optionsOrCb);
55
+ }
56
+ else if (typeof cb === "function") {
57
+ if (typeof optionsOrCb !== "object")
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
+ this.send(command, optionsOrCb || {}, cb);
60
+ }
61
+ else {
62
+ return this.send(command, optionsOrCb);
63
+ }
64
+ };
65
+ PinpointSMSVoiceV2.prototype.createConfigurationSet = function (args, optionsOrCb, cb) {
66
+ var command = new CreateConfigurationSetCommand(args);
67
+ if (typeof optionsOrCb === "function") {
68
+ this.send(command, optionsOrCb);
69
+ }
70
+ else if (typeof cb === "function") {
71
+ if (typeof optionsOrCb !== "object")
72
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
+ this.send(command, optionsOrCb || {}, cb);
74
+ }
75
+ else {
76
+ return this.send(command, optionsOrCb);
77
+ }
78
+ };
79
+ PinpointSMSVoiceV2.prototype.createEventDestination = function (args, optionsOrCb, cb) {
80
+ var command = new CreateEventDestinationCommand(args);
81
+ if (typeof optionsOrCb === "function") {
82
+ this.send(command, optionsOrCb);
83
+ }
84
+ else if (typeof cb === "function") {
85
+ if (typeof optionsOrCb !== "object")
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
+ this.send(command, optionsOrCb || {}, cb);
88
+ }
89
+ else {
90
+ return this.send(command, optionsOrCb);
91
+ }
92
+ };
93
+ PinpointSMSVoiceV2.prototype.createOptOutList = function (args, optionsOrCb, cb) {
94
+ var command = new CreateOptOutListCommand(args);
95
+ if (typeof optionsOrCb === "function") {
96
+ this.send(command, optionsOrCb);
97
+ }
98
+ else if (typeof cb === "function") {
99
+ if (typeof optionsOrCb !== "object")
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
+ this.send(command, optionsOrCb || {}, cb);
102
+ }
103
+ else {
104
+ return this.send(command, optionsOrCb);
105
+ }
106
+ };
107
+ PinpointSMSVoiceV2.prototype.createPool = function (args, optionsOrCb, cb) {
108
+ var command = new CreatePoolCommand(args);
109
+ if (typeof optionsOrCb === "function") {
110
+ this.send(command, optionsOrCb);
111
+ }
112
+ else if (typeof cb === "function") {
113
+ if (typeof optionsOrCb !== "object")
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
+ this.send(command, optionsOrCb || {}, cb);
116
+ }
117
+ else {
118
+ return this.send(command, optionsOrCb);
119
+ }
120
+ };
121
+ PinpointSMSVoiceV2.prototype.deleteConfigurationSet = function (args, optionsOrCb, cb) {
122
+ var command = new DeleteConfigurationSetCommand(args);
123
+ if (typeof optionsOrCb === "function") {
124
+ this.send(command, optionsOrCb);
125
+ }
126
+ else if (typeof cb === "function") {
127
+ if (typeof optionsOrCb !== "object")
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
+ this.send(command, optionsOrCb || {}, cb);
130
+ }
131
+ else {
132
+ return this.send(command, optionsOrCb);
133
+ }
134
+ };
135
+ PinpointSMSVoiceV2.prototype.deleteDefaultMessageType = function (args, optionsOrCb, cb) {
136
+ var command = new DeleteDefaultMessageTypeCommand(args);
137
+ if (typeof optionsOrCb === "function") {
138
+ this.send(command, optionsOrCb);
139
+ }
140
+ else if (typeof cb === "function") {
141
+ if (typeof optionsOrCb !== "object")
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
+ this.send(command, optionsOrCb || {}, cb);
144
+ }
145
+ else {
146
+ return this.send(command, optionsOrCb);
147
+ }
148
+ };
149
+ PinpointSMSVoiceV2.prototype.deleteDefaultSenderId = function (args, optionsOrCb, cb) {
150
+ var command = new DeleteDefaultSenderIdCommand(args);
151
+ if (typeof optionsOrCb === "function") {
152
+ this.send(command, optionsOrCb);
153
+ }
154
+ else if (typeof cb === "function") {
155
+ if (typeof optionsOrCb !== "object")
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
+ this.send(command, optionsOrCb || {}, cb);
158
+ }
159
+ else {
160
+ return this.send(command, optionsOrCb);
161
+ }
162
+ };
163
+ PinpointSMSVoiceV2.prototype.deleteEventDestination = function (args, optionsOrCb, cb) {
164
+ var command = new DeleteEventDestinationCommand(args);
165
+ if (typeof optionsOrCb === "function") {
166
+ this.send(command, optionsOrCb);
167
+ }
168
+ else if (typeof cb === "function") {
169
+ if (typeof optionsOrCb !== "object")
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
+ this.send(command, optionsOrCb || {}, cb);
172
+ }
173
+ else {
174
+ return this.send(command, optionsOrCb);
175
+ }
176
+ };
177
+ PinpointSMSVoiceV2.prototype.deleteKeyword = function (args, optionsOrCb, cb) {
178
+ var command = new DeleteKeywordCommand(args);
179
+ if (typeof optionsOrCb === "function") {
180
+ this.send(command, optionsOrCb);
181
+ }
182
+ else if (typeof cb === "function") {
183
+ if (typeof optionsOrCb !== "object")
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
+ this.send(command, optionsOrCb || {}, cb);
186
+ }
187
+ else {
188
+ return this.send(command, optionsOrCb);
189
+ }
190
+ };
191
+ PinpointSMSVoiceV2.prototype.deleteOptedOutNumber = function (args, optionsOrCb, cb) {
192
+ var command = new DeleteOptedOutNumberCommand(args);
193
+ if (typeof optionsOrCb === "function") {
194
+ this.send(command, optionsOrCb);
195
+ }
196
+ else if (typeof cb === "function") {
197
+ if (typeof optionsOrCb !== "object")
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
+ this.send(command, optionsOrCb || {}, cb);
200
+ }
201
+ else {
202
+ return this.send(command, optionsOrCb);
203
+ }
204
+ };
205
+ PinpointSMSVoiceV2.prototype.deleteOptOutList = function (args, optionsOrCb, cb) {
206
+ var command = new DeleteOptOutListCommand(args);
207
+ if (typeof optionsOrCb === "function") {
208
+ this.send(command, optionsOrCb);
209
+ }
210
+ else if (typeof cb === "function") {
211
+ if (typeof optionsOrCb !== "object")
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
+ this.send(command, optionsOrCb || {}, cb);
214
+ }
215
+ else {
216
+ return this.send(command, optionsOrCb);
217
+ }
218
+ };
219
+ PinpointSMSVoiceV2.prototype.deletePool = function (args, optionsOrCb, cb) {
220
+ var command = new DeletePoolCommand(args);
221
+ if (typeof optionsOrCb === "function") {
222
+ this.send(command, optionsOrCb);
223
+ }
224
+ else if (typeof cb === "function") {
225
+ if (typeof optionsOrCb !== "object")
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
+ this.send(command, optionsOrCb || {}, cb);
228
+ }
229
+ else {
230
+ return this.send(command, optionsOrCb);
231
+ }
232
+ };
233
+ PinpointSMSVoiceV2.prototype.deleteTextMessageSpendLimitOverride = function (args, optionsOrCb, cb) {
234
+ var command = new DeleteTextMessageSpendLimitOverrideCommand(args);
235
+ if (typeof optionsOrCb === "function") {
236
+ this.send(command, optionsOrCb);
237
+ }
238
+ else if (typeof cb === "function") {
239
+ if (typeof optionsOrCb !== "object")
240
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
+ this.send(command, optionsOrCb || {}, cb);
242
+ }
243
+ else {
244
+ return this.send(command, optionsOrCb);
245
+ }
246
+ };
247
+ PinpointSMSVoiceV2.prototype.deleteVoiceMessageSpendLimitOverride = function (args, optionsOrCb, cb) {
248
+ var command = new DeleteVoiceMessageSpendLimitOverrideCommand(args);
249
+ if (typeof optionsOrCb === "function") {
250
+ this.send(command, optionsOrCb);
251
+ }
252
+ else if (typeof cb === "function") {
253
+ if (typeof optionsOrCb !== "object")
254
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
+ this.send(command, optionsOrCb || {}, cb);
256
+ }
257
+ else {
258
+ return this.send(command, optionsOrCb);
259
+ }
260
+ };
261
+ PinpointSMSVoiceV2.prototype.describeAccountAttributes = function (args, optionsOrCb, cb) {
262
+ var command = new DescribeAccountAttributesCommand(args);
263
+ if (typeof optionsOrCb === "function") {
264
+ this.send(command, optionsOrCb);
265
+ }
266
+ else if (typeof cb === "function") {
267
+ if (typeof optionsOrCb !== "object")
268
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
+ this.send(command, optionsOrCb || {}, cb);
270
+ }
271
+ else {
272
+ return this.send(command, optionsOrCb);
273
+ }
274
+ };
275
+ PinpointSMSVoiceV2.prototype.describeAccountLimits = function (args, optionsOrCb, cb) {
276
+ var command = new DescribeAccountLimitsCommand(args);
277
+ if (typeof optionsOrCb === "function") {
278
+ this.send(command, optionsOrCb);
279
+ }
280
+ else if (typeof cb === "function") {
281
+ if (typeof optionsOrCb !== "object")
282
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
+ this.send(command, optionsOrCb || {}, cb);
284
+ }
285
+ else {
286
+ return this.send(command, optionsOrCb);
287
+ }
288
+ };
289
+ PinpointSMSVoiceV2.prototype.describeConfigurationSets = function (args, optionsOrCb, cb) {
290
+ var command = new DescribeConfigurationSetsCommand(args);
291
+ if (typeof optionsOrCb === "function") {
292
+ this.send(command, optionsOrCb);
293
+ }
294
+ else if (typeof cb === "function") {
295
+ if (typeof optionsOrCb !== "object")
296
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
+ this.send(command, optionsOrCb || {}, cb);
298
+ }
299
+ else {
300
+ return this.send(command, optionsOrCb);
301
+ }
302
+ };
303
+ PinpointSMSVoiceV2.prototype.describeKeywords = function (args, optionsOrCb, cb) {
304
+ var command = new DescribeKeywordsCommand(args);
305
+ if (typeof optionsOrCb === "function") {
306
+ this.send(command, optionsOrCb);
307
+ }
308
+ else if (typeof cb === "function") {
309
+ if (typeof optionsOrCb !== "object")
310
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
311
+ this.send(command, optionsOrCb || {}, cb);
312
+ }
313
+ else {
314
+ return this.send(command, optionsOrCb);
315
+ }
316
+ };
317
+ PinpointSMSVoiceV2.prototype.describeOptedOutNumbers = function (args, optionsOrCb, cb) {
318
+ var command = new DescribeOptedOutNumbersCommand(args);
319
+ if (typeof optionsOrCb === "function") {
320
+ this.send(command, optionsOrCb);
321
+ }
322
+ else if (typeof cb === "function") {
323
+ if (typeof optionsOrCb !== "object")
324
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
325
+ this.send(command, optionsOrCb || {}, cb);
326
+ }
327
+ else {
328
+ return this.send(command, optionsOrCb);
329
+ }
330
+ };
331
+ PinpointSMSVoiceV2.prototype.describeOptOutLists = function (args, optionsOrCb, cb) {
332
+ var command = new DescribeOptOutListsCommand(args);
333
+ if (typeof optionsOrCb === "function") {
334
+ this.send(command, optionsOrCb);
335
+ }
336
+ else if (typeof cb === "function") {
337
+ if (typeof optionsOrCb !== "object")
338
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
339
+ this.send(command, optionsOrCb || {}, cb);
340
+ }
341
+ else {
342
+ return this.send(command, optionsOrCb);
343
+ }
344
+ };
345
+ PinpointSMSVoiceV2.prototype.describePhoneNumbers = function (args, optionsOrCb, cb) {
346
+ var command = new DescribePhoneNumbersCommand(args);
347
+ if (typeof optionsOrCb === "function") {
348
+ this.send(command, optionsOrCb);
349
+ }
350
+ else if (typeof cb === "function") {
351
+ if (typeof optionsOrCb !== "object")
352
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
353
+ this.send(command, optionsOrCb || {}, cb);
354
+ }
355
+ else {
356
+ return this.send(command, optionsOrCb);
357
+ }
358
+ };
359
+ PinpointSMSVoiceV2.prototype.describePools = function (args, optionsOrCb, cb) {
360
+ var command = new DescribePoolsCommand(args);
361
+ if (typeof optionsOrCb === "function") {
362
+ this.send(command, optionsOrCb);
363
+ }
364
+ else if (typeof cb === "function") {
365
+ if (typeof optionsOrCb !== "object")
366
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
367
+ this.send(command, optionsOrCb || {}, cb);
368
+ }
369
+ else {
370
+ return this.send(command, optionsOrCb);
371
+ }
372
+ };
373
+ PinpointSMSVoiceV2.prototype.describeSenderIds = function (args, optionsOrCb, cb) {
374
+ var command = new DescribeSenderIdsCommand(args);
375
+ if (typeof optionsOrCb === "function") {
376
+ this.send(command, optionsOrCb);
377
+ }
378
+ else if (typeof cb === "function") {
379
+ if (typeof optionsOrCb !== "object")
380
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
381
+ this.send(command, optionsOrCb || {}, cb);
382
+ }
383
+ else {
384
+ return this.send(command, optionsOrCb);
385
+ }
386
+ };
387
+ PinpointSMSVoiceV2.prototype.describeSpendLimits = function (args, optionsOrCb, cb) {
388
+ var command = new DescribeSpendLimitsCommand(args);
389
+ if (typeof optionsOrCb === "function") {
390
+ this.send(command, optionsOrCb);
391
+ }
392
+ else if (typeof cb === "function") {
393
+ if (typeof optionsOrCb !== "object")
394
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
395
+ this.send(command, optionsOrCb || {}, cb);
396
+ }
397
+ else {
398
+ return this.send(command, optionsOrCb);
399
+ }
400
+ };
401
+ PinpointSMSVoiceV2.prototype.disassociateOriginationIdentity = function (args, optionsOrCb, cb) {
402
+ var command = new DisassociateOriginationIdentityCommand(args);
403
+ if (typeof optionsOrCb === "function") {
404
+ this.send(command, optionsOrCb);
405
+ }
406
+ else if (typeof cb === "function") {
407
+ if (typeof optionsOrCb !== "object")
408
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
409
+ this.send(command, optionsOrCb || {}, cb);
410
+ }
411
+ else {
412
+ return this.send(command, optionsOrCb);
413
+ }
414
+ };
415
+ PinpointSMSVoiceV2.prototype.listPoolOriginationIdentities = function (args, optionsOrCb, cb) {
416
+ var command = new ListPoolOriginationIdentitiesCommand(args);
417
+ if (typeof optionsOrCb === "function") {
418
+ this.send(command, optionsOrCb);
419
+ }
420
+ else if (typeof cb === "function") {
421
+ if (typeof optionsOrCb !== "object")
422
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
423
+ this.send(command, optionsOrCb || {}, cb);
424
+ }
425
+ else {
426
+ return this.send(command, optionsOrCb);
427
+ }
428
+ };
429
+ PinpointSMSVoiceV2.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
430
+ var command = new ListTagsForResourceCommand(args);
431
+ if (typeof optionsOrCb === "function") {
432
+ this.send(command, optionsOrCb);
433
+ }
434
+ else if (typeof cb === "function") {
435
+ if (typeof optionsOrCb !== "object")
436
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
437
+ this.send(command, optionsOrCb || {}, cb);
438
+ }
439
+ else {
440
+ return this.send(command, optionsOrCb);
441
+ }
442
+ };
443
+ PinpointSMSVoiceV2.prototype.putKeyword = function (args, optionsOrCb, cb) {
444
+ var command = new PutKeywordCommand(args);
445
+ if (typeof optionsOrCb === "function") {
446
+ this.send(command, optionsOrCb);
447
+ }
448
+ else if (typeof cb === "function") {
449
+ if (typeof optionsOrCb !== "object")
450
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
451
+ this.send(command, optionsOrCb || {}, cb);
452
+ }
453
+ else {
454
+ return this.send(command, optionsOrCb);
455
+ }
456
+ };
457
+ PinpointSMSVoiceV2.prototype.putOptedOutNumber = function (args, optionsOrCb, cb) {
458
+ var command = new PutOptedOutNumberCommand(args);
459
+ if (typeof optionsOrCb === "function") {
460
+ this.send(command, optionsOrCb);
461
+ }
462
+ else if (typeof cb === "function") {
463
+ if (typeof optionsOrCb !== "object")
464
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
465
+ this.send(command, optionsOrCb || {}, cb);
466
+ }
467
+ else {
468
+ return this.send(command, optionsOrCb);
469
+ }
470
+ };
471
+ PinpointSMSVoiceV2.prototype.releasePhoneNumber = function (args, optionsOrCb, cb) {
472
+ var command = new ReleasePhoneNumberCommand(args);
473
+ if (typeof optionsOrCb === "function") {
474
+ this.send(command, optionsOrCb);
475
+ }
476
+ else if (typeof cb === "function") {
477
+ if (typeof optionsOrCb !== "object")
478
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
479
+ this.send(command, optionsOrCb || {}, cb);
480
+ }
481
+ else {
482
+ return this.send(command, optionsOrCb);
483
+ }
484
+ };
485
+ PinpointSMSVoiceV2.prototype.requestPhoneNumber = function (args, optionsOrCb, cb) {
486
+ var command = new RequestPhoneNumberCommand(args);
487
+ if (typeof optionsOrCb === "function") {
488
+ this.send(command, optionsOrCb);
489
+ }
490
+ else if (typeof cb === "function") {
491
+ if (typeof optionsOrCb !== "object")
492
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
493
+ this.send(command, optionsOrCb || {}, cb);
494
+ }
495
+ else {
496
+ return this.send(command, optionsOrCb);
497
+ }
498
+ };
499
+ PinpointSMSVoiceV2.prototype.sendTextMessage = function (args, optionsOrCb, cb) {
500
+ var command = new SendTextMessageCommand(args);
501
+ if (typeof optionsOrCb === "function") {
502
+ this.send(command, optionsOrCb);
503
+ }
504
+ else if (typeof cb === "function") {
505
+ if (typeof optionsOrCb !== "object")
506
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
507
+ this.send(command, optionsOrCb || {}, cb);
508
+ }
509
+ else {
510
+ return this.send(command, optionsOrCb);
511
+ }
512
+ };
513
+ PinpointSMSVoiceV2.prototype.sendVoiceMessage = function (args, optionsOrCb, cb) {
514
+ var command = new SendVoiceMessageCommand(args);
515
+ if (typeof optionsOrCb === "function") {
516
+ this.send(command, optionsOrCb);
517
+ }
518
+ else if (typeof cb === "function") {
519
+ if (typeof optionsOrCb !== "object")
520
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
521
+ this.send(command, optionsOrCb || {}, cb);
522
+ }
523
+ else {
524
+ return this.send(command, optionsOrCb);
525
+ }
526
+ };
527
+ PinpointSMSVoiceV2.prototype.setDefaultMessageType = function (args, optionsOrCb, cb) {
528
+ var command = new SetDefaultMessageTypeCommand(args);
529
+ if (typeof optionsOrCb === "function") {
530
+ this.send(command, optionsOrCb);
531
+ }
532
+ else if (typeof cb === "function") {
533
+ if (typeof optionsOrCb !== "object")
534
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
535
+ this.send(command, optionsOrCb || {}, cb);
536
+ }
537
+ else {
538
+ return this.send(command, optionsOrCb);
539
+ }
540
+ };
541
+ PinpointSMSVoiceV2.prototype.setDefaultSenderId = function (args, optionsOrCb, cb) {
542
+ var command = new SetDefaultSenderIdCommand(args);
543
+ if (typeof optionsOrCb === "function") {
544
+ this.send(command, optionsOrCb);
545
+ }
546
+ else if (typeof cb === "function") {
547
+ if (typeof optionsOrCb !== "object")
548
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
549
+ this.send(command, optionsOrCb || {}, cb);
550
+ }
551
+ else {
552
+ return this.send(command, optionsOrCb);
553
+ }
554
+ };
555
+ PinpointSMSVoiceV2.prototype.setTextMessageSpendLimitOverride = function (args, optionsOrCb, cb) {
556
+ var command = new SetTextMessageSpendLimitOverrideCommand(args);
557
+ if (typeof optionsOrCb === "function") {
558
+ this.send(command, optionsOrCb);
559
+ }
560
+ else if (typeof cb === "function") {
561
+ if (typeof optionsOrCb !== "object")
562
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
563
+ this.send(command, optionsOrCb || {}, cb);
564
+ }
565
+ else {
566
+ return this.send(command, optionsOrCb);
567
+ }
568
+ };
569
+ PinpointSMSVoiceV2.prototype.setVoiceMessageSpendLimitOverride = function (args, optionsOrCb, cb) {
570
+ var command = new SetVoiceMessageSpendLimitOverrideCommand(args);
571
+ if (typeof optionsOrCb === "function") {
572
+ this.send(command, optionsOrCb);
573
+ }
574
+ else if (typeof cb === "function") {
575
+ if (typeof optionsOrCb !== "object")
576
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
577
+ this.send(command, optionsOrCb || {}, cb);
578
+ }
579
+ else {
580
+ return this.send(command, optionsOrCb);
581
+ }
582
+ };
583
+ PinpointSMSVoiceV2.prototype.tagResource = function (args, optionsOrCb, cb) {
584
+ var command = new TagResourceCommand(args);
585
+ if (typeof optionsOrCb === "function") {
586
+ this.send(command, optionsOrCb);
587
+ }
588
+ else if (typeof cb === "function") {
589
+ if (typeof optionsOrCb !== "object")
590
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
591
+ this.send(command, optionsOrCb || {}, cb);
592
+ }
593
+ else {
594
+ return this.send(command, optionsOrCb);
595
+ }
596
+ };
597
+ PinpointSMSVoiceV2.prototype.untagResource = function (args, optionsOrCb, cb) {
598
+ var command = new UntagResourceCommand(args);
599
+ if (typeof optionsOrCb === "function") {
600
+ this.send(command, optionsOrCb);
601
+ }
602
+ else if (typeof cb === "function") {
603
+ if (typeof optionsOrCb !== "object")
604
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
605
+ this.send(command, optionsOrCb || {}, cb);
606
+ }
607
+ else {
608
+ return this.send(command, optionsOrCb);
609
+ }
610
+ };
611
+ PinpointSMSVoiceV2.prototype.updateEventDestination = function (args, optionsOrCb, cb) {
612
+ var command = new UpdateEventDestinationCommand(args);
613
+ if (typeof optionsOrCb === "function") {
614
+ this.send(command, optionsOrCb);
615
+ }
616
+ else if (typeof cb === "function") {
617
+ if (typeof optionsOrCb !== "object")
618
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
619
+ this.send(command, optionsOrCb || {}, cb);
620
+ }
621
+ else {
622
+ return this.send(command, optionsOrCb);
623
+ }
624
+ };
625
+ PinpointSMSVoiceV2.prototype.updatePhoneNumber = function (args, optionsOrCb, cb) {
626
+ var command = new UpdatePhoneNumberCommand(args);
627
+ if (typeof optionsOrCb === "function") {
628
+ this.send(command, optionsOrCb);
629
+ }
630
+ else if (typeof cb === "function") {
631
+ if (typeof optionsOrCb !== "object")
632
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
633
+ this.send(command, optionsOrCb || {}, cb);
634
+ }
635
+ else {
636
+ return this.send(command, optionsOrCb);
637
+ }
638
+ };
639
+ PinpointSMSVoiceV2.prototype.updatePool = function (args, optionsOrCb, cb) {
640
+ var command = new UpdatePoolCommand(args);
641
+ if (typeof optionsOrCb === "function") {
642
+ this.send(command, optionsOrCb);
643
+ }
644
+ else if (typeof cb === "function") {
645
+ if (typeof optionsOrCb !== "object")
646
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
647
+ this.send(command, optionsOrCb || {}, cb);
648
+ }
649
+ else {
650
+ return this.send(command, optionsOrCb);
651
+ }
652
+ };
653
+ return PinpointSMSVoiceV2;
654
+ }(PinpointSMSVoiceV2Client));
655
+ export { PinpointSMSVoiceV2 };