@aws-sdk/client-comprehend 3.35.0 → 3.38.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 (516) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Comprehend.js +0 -7
  3. package/dist-cjs/ComprehendClient.js +0 -12
  4. package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js +0 -27
  5. package/dist-cjs/commands/BatchDetectEntitiesCommand.js +0 -27
  6. package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js +0 -25
  7. package/dist-cjs/commands/BatchDetectSentimentCommand.js +0 -27
  8. package/dist-cjs/commands/BatchDetectSyntaxCommand.js +0 -26
  9. package/dist-cjs/commands/ClassifyDocumentCommand.js +0 -26
  10. package/dist-cjs/commands/ContainsPiiEntitiesCommand.js +0 -27
  11. package/dist-cjs/commands/CreateDocumentClassifierCommand.js +0 -28
  12. package/dist-cjs/commands/CreateEndpointCommand.js +0 -27
  13. package/dist-cjs/commands/CreateEntityRecognizerCommand.js +0 -27
  14. package/dist-cjs/commands/DeleteDocumentClassifierCommand.js +0 -31
  15. package/dist-cjs/commands/DeleteEndpointCommand.js +0 -26
  16. package/dist-cjs/commands/DeleteEntityRecognizerCommand.js +0 -31
  17. package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js +0 -26
  18. package/dist-cjs/commands/DescribeDocumentClassifierCommand.js +0 -25
  19. package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js +0 -26
  20. package/dist-cjs/commands/DescribeEndpointCommand.js +0 -26
  21. package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js +0 -26
  22. package/dist-cjs/commands/DescribeEntityRecognizerCommand.js +0 -26
  23. package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js +0 -25
  24. package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js +0 -26
  25. package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js +0 -26
  26. package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js +0 -26
  27. package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js +0 -26
  28. package/dist-cjs/commands/DetectDominantLanguageCommand.js +0 -26
  29. package/dist-cjs/commands/DetectEntitiesCommand.js +0 -26
  30. package/dist-cjs/commands/DetectKeyPhrasesCommand.js +0 -25
  31. package/dist-cjs/commands/DetectPiiEntitiesCommand.js +0 -26
  32. package/dist-cjs/commands/DetectSentimentCommand.js +0 -26
  33. package/dist-cjs/commands/DetectSyntaxCommand.js +0 -26
  34. package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js +0 -25
  35. package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js +0 -25
  36. package/dist-cjs/commands/ListDocumentClassifiersCommand.js +0 -25
  37. package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js +0 -25
  38. package/dist-cjs/commands/ListEndpointsCommand.js +0 -25
  39. package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js +0 -25
  40. package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js +0 -25
  41. package/dist-cjs/commands/ListEntityRecognizersCommand.js +0 -30
  42. package/dist-cjs/commands/ListEventsDetectionJobsCommand.js +0 -25
  43. package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js +0 -25
  44. package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js +0 -25
  45. package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js +0 -25
  46. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  47. package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js +0 -25
  48. package/dist-cjs/commands/StartDocumentClassificationJobCommand.js +0 -26
  49. package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js +0 -27
  50. package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js +0 -29
  51. package/dist-cjs/commands/StartEventsDetectionJobCommand.js +0 -25
  52. package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js +0 -27
  53. package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js +0 -25
  54. package/dist-cjs/commands/StartSentimentDetectionJobCommand.js +0 -27
  55. package/dist-cjs/commands/StartTopicsDetectionJobCommand.js +0 -26
  56. package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js +0 -34
  57. package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js +0 -34
  58. package/dist-cjs/commands/StopEventsDetectionJobCommand.js +0 -25
  59. package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js +0 -34
  60. package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js +0 -25
  61. package/dist-cjs/commands/StopSentimentDetectionJobCommand.js +0 -34
  62. package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +0 -30
  63. package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +0 -30
  64. package/dist-cjs/commands/TagResourceCommand.js +0 -28
  65. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  66. package/dist-cjs/commands/UpdateEndpointCommand.js +0 -25
  67. package/dist-cjs/commands/index.js +66 -0
  68. package/dist-cjs/endpoints.js +1 -2
  69. package/dist-cjs/index.js +4 -78
  70. package/dist-cjs/models/index.js +0 -1
  71. package/dist-cjs/models/models_0.js +0 -610
  72. package/dist-cjs/pagination/Interfaces.js +0 -1
  73. package/dist-cjs/pagination/ListDocumentClassificationJobsPaginator.js +0 -11
  74. package/dist-cjs/pagination/ListDocumentClassifierSummariesPaginator.js +0 -11
  75. package/dist-cjs/pagination/ListDocumentClassifiersPaginator.js +0 -11
  76. package/dist-cjs/pagination/ListDominantLanguageDetectionJobsPaginator.js +0 -11
  77. package/dist-cjs/pagination/ListEntitiesDetectionJobsPaginator.js +0 -11
  78. package/dist-cjs/pagination/ListEntityRecognizerSummariesPaginator.js +0 -11
  79. package/dist-cjs/pagination/ListEntityRecognizersPaginator.js +0 -11
  80. package/dist-cjs/pagination/ListEventsDetectionJobsPaginator.js +0 -11
  81. package/dist-cjs/pagination/ListKeyPhrasesDetectionJobsPaginator.js +0 -11
  82. package/dist-cjs/pagination/ListSentimentDetectionJobsPaginator.js +0 -11
  83. package/dist-cjs/pagination/ListTopicsDetectionJobsPaginator.js +0 -11
  84. package/dist-cjs/pagination/index.js +15 -0
  85. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  86. package/dist-cjs/runtimeConfig.browser.js +1 -6
  87. package/dist-cjs/runtimeConfig.js +2 -7
  88. package/dist-cjs/runtimeConfig.native.js +0 -4
  89. package/dist-cjs/runtimeConfig.shared.js +0 -4
  90. package/dist-es/Comprehend.js +0 -1
  91. package/dist-es/ComprehendClient.js +0 -1
  92. package/dist-es/commands/BatchDetectDominantLanguageCommand.js +0 -1
  93. package/dist-es/commands/BatchDetectEntitiesCommand.js +0 -1
  94. package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +0 -1
  95. package/dist-es/commands/BatchDetectSentimentCommand.js +0 -1
  96. package/dist-es/commands/BatchDetectSyntaxCommand.js +0 -1
  97. package/dist-es/commands/ClassifyDocumentCommand.js +0 -1
  98. package/dist-es/commands/ContainsPiiEntitiesCommand.js +0 -1
  99. package/dist-es/commands/CreateDocumentClassifierCommand.js +0 -1
  100. package/dist-es/commands/CreateEndpointCommand.js +0 -1
  101. package/dist-es/commands/CreateEntityRecognizerCommand.js +0 -1
  102. package/dist-es/commands/DeleteDocumentClassifierCommand.js +0 -1
  103. package/dist-es/commands/DeleteEndpointCommand.js +0 -1
  104. package/dist-es/commands/DeleteEntityRecognizerCommand.js +0 -1
  105. package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +0 -1
  106. package/dist-es/commands/DescribeDocumentClassifierCommand.js +0 -1
  107. package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +0 -1
  108. package/dist-es/commands/DescribeEndpointCommand.js +0 -1
  109. package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +0 -1
  110. package/dist-es/commands/DescribeEntityRecognizerCommand.js +0 -1
  111. package/dist-es/commands/DescribeEventsDetectionJobCommand.js +0 -1
  112. package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +0 -1
  113. package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +0 -1
  114. package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +0 -1
  115. package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +0 -1
  116. package/dist-es/commands/DetectDominantLanguageCommand.js +0 -1
  117. package/dist-es/commands/DetectEntitiesCommand.js +0 -1
  118. package/dist-es/commands/DetectKeyPhrasesCommand.js +0 -1
  119. package/dist-es/commands/DetectPiiEntitiesCommand.js +0 -1
  120. package/dist-es/commands/DetectSentimentCommand.js +0 -1
  121. package/dist-es/commands/DetectSyntaxCommand.js +0 -1
  122. package/dist-es/commands/ListDocumentClassificationJobsCommand.js +0 -1
  123. package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +0 -1
  124. package/dist-es/commands/ListDocumentClassifiersCommand.js +0 -1
  125. package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +0 -1
  126. package/dist-es/commands/ListEndpointsCommand.js +0 -1
  127. package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +0 -1
  128. package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +0 -1
  129. package/dist-es/commands/ListEntityRecognizersCommand.js +0 -1
  130. package/dist-es/commands/ListEventsDetectionJobsCommand.js +0 -1
  131. package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +0 -1
  132. package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +0 -1
  133. package/dist-es/commands/ListSentimentDetectionJobsCommand.js +0 -1
  134. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  135. package/dist-es/commands/ListTopicsDetectionJobsCommand.js +0 -1
  136. package/dist-es/commands/StartDocumentClassificationJobCommand.js +0 -1
  137. package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +0 -1
  138. package/dist-es/commands/StartEntitiesDetectionJobCommand.js +0 -1
  139. package/dist-es/commands/StartEventsDetectionJobCommand.js +0 -1
  140. package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +0 -1
  141. package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +0 -1
  142. package/dist-es/commands/StartSentimentDetectionJobCommand.js +0 -1
  143. package/dist-es/commands/StartTopicsDetectionJobCommand.js +0 -1
  144. package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +0 -1
  145. package/dist-es/commands/StopEntitiesDetectionJobCommand.js +0 -1
  146. package/dist-es/commands/StopEventsDetectionJobCommand.js +0 -1
  147. package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +0 -1
  148. package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +0 -1
  149. package/dist-es/commands/StopSentimentDetectionJobCommand.js +0 -1
  150. package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +0 -1
  151. package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +0 -1
  152. package/dist-es/commands/TagResourceCommand.js +0 -1
  153. package/dist-es/commands/UntagResourceCommand.js +0 -1
  154. package/dist-es/commands/UpdateEndpointCommand.js +0 -1
  155. package/dist-es/commands/index.js +63 -0
  156. package/dist-es/endpoints.js +1 -2
  157. package/dist-es/index.js +4 -78
  158. package/dist-es/models/index.js +0 -1
  159. package/dist-es/models/models_0.js +0 -1
  160. package/dist-es/pagination/Interfaces.js +0 -1
  161. package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +0 -1
  162. package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +0 -1
  163. package/dist-es/pagination/ListDocumentClassifiersPaginator.js +0 -1
  164. package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +0 -1
  165. package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +0 -1
  166. package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +0 -1
  167. package/dist-es/pagination/ListEntityRecognizersPaginator.js +0 -1
  168. package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +0 -1
  169. package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +0 -1
  170. package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +0 -1
  171. package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +0 -1
  172. package/dist-es/pagination/index.js +12 -0
  173. package/dist-es/protocols/Aws_json1_1.js +0 -1
  174. package/dist-es/runtimeConfig.browser.js +1 -2
  175. package/dist-es/runtimeConfig.js +2 -3
  176. package/dist-es/runtimeConfig.native.js +0 -1
  177. package/dist-es/runtimeConfig.shared.js +0 -1
  178. package/dist-types/commands/index.d.ts +63 -0
  179. package/dist-types/index.d.ts +4 -77
  180. package/dist-types/pagination/index.d.ts +12 -0
  181. package/dist-types/ts3.4/Comprehend.d.ts +64 -305
  182. package/dist-types/ts3.4/ComprehendClient.d.ts +24 -92
  183. package/dist-types/ts3.4/commands/BatchDetectDominantLanguageCommand.d.ts +2 -22
  184. package/dist-types/ts3.4/commands/BatchDetectEntitiesCommand.d.ts +2 -22
  185. package/dist-types/ts3.4/commands/BatchDetectKeyPhrasesCommand.d.ts +2 -20
  186. package/dist-types/ts3.4/commands/BatchDetectSentimentCommand.d.ts +2 -22
  187. package/dist-types/ts3.4/commands/BatchDetectSyntaxCommand.d.ts +2 -21
  188. package/dist-types/ts3.4/commands/ClassifyDocumentCommand.d.ts +2 -21
  189. package/dist-types/ts3.4/commands/ContainsPiiEntitiesCommand.d.ts +2 -22
  190. package/dist-types/ts3.4/commands/CreateDocumentClassifierCommand.d.ts +2 -23
  191. package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +2 -22
  192. package/dist-types/ts3.4/commands/CreateEntityRecognizerCommand.d.ts +2 -22
  193. package/dist-types/ts3.4/commands/DeleteDocumentClassifierCommand.d.ts +2 -26
  194. package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +2 -21
  195. package/dist-types/ts3.4/commands/DeleteEntityRecognizerCommand.d.ts +2 -26
  196. package/dist-types/ts3.4/commands/DescribeDocumentClassificationJobCommand.d.ts +2 -21
  197. package/dist-types/ts3.4/commands/DescribeDocumentClassifierCommand.d.ts +2 -20
  198. package/dist-types/ts3.4/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +2 -21
  199. package/dist-types/ts3.4/commands/DescribeEndpointCommand.d.ts +2 -21
  200. package/dist-types/ts3.4/commands/DescribeEntitiesDetectionJobCommand.d.ts +2 -21
  201. package/dist-types/ts3.4/commands/DescribeEntityRecognizerCommand.d.ts +2 -21
  202. package/dist-types/ts3.4/commands/DescribeEventsDetectionJobCommand.d.ts +2 -20
  203. package/dist-types/ts3.4/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +2 -21
  204. package/dist-types/ts3.4/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +2 -21
  205. package/dist-types/ts3.4/commands/DescribeSentimentDetectionJobCommand.d.ts +2 -21
  206. package/dist-types/ts3.4/commands/DescribeTopicsDetectionJobCommand.d.ts +2 -21
  207. package/dist-types/ts3.4/commands/DetectDominantLanguageCommand.d.ts +2 -21
  208. package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -21
  209. package/dist-types/ts3.4/commands/DetectKeyPhrasesCommand.d.ts +2 -20
  210. package/dist-types/ts3.4/commands/DetectPiiEntitiesCommand.d.ts +2 -21
  211. package/dist-types/ts3.4/commands/DetectSentimentCommand.d.ts +2 -21
  212. package/dist-types/ts3.4/commands/DetectSyntaxCommand.d.ts +2 -21
  213. package/dist-types/ts3.4/commands/ListDocumentClassificationJobsCommand.d.ts +2 -20
  214. package/dist-types/ts3.4/commands/ListDocumentClassifierSummariesCommand.d.ts +2 -20
  215. package/dist-types/ts3.4/commands/ListDocumentClassifiersCommand.d.ts +2 -20
  216. package/dist-types/ts3.4/commands/ListDominantLanguageDetectionJobsCommand.d.ts +2 -20
  217. package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +2 -20
  218. package/dist-types/ts3.4/commands/ListEntitiesDetectionJobsCommand.d.ts +2 -20
  219. package/dist-types/ts3.4/commands/ListEntityRecognizerSummariesCommand.d.ts +2 -20
  220. package/dist-types/ts3.4/commands/ListEntityRecognizersCommand.d.ts +2 -25
  221. package/dist-types/ts3.4/commands/ListEventsDetectionJobsCommand.d.ts +2 -20
  222. package/dist-types/ts3.4/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +2 -20
  223. package/dist-types/ts3.4/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +2 -20
  224. package/dist-types/ts3.4/commands/ListSentimentDetectionJobsCommand.d.ts +2 -20
  225. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  226. package/dist-types/ts3.4/commands/ListTopicsDetectionJobsCommand.d.ts +2 -20
  227. package/dist-types/ts3.4/commands/StartDocumentClassificationJobCommand.d.ts +2 -21
  228. package/dist-types/ts3.4/commands/StartDominantLanguageDetectionJobCommand.d.ts +2 -22
  229. package/dist-types/ts3.4/commands/StartEntitiesDetectionJobCommand.d.ts +2 -24
  230. package/dist-types/ts3.4/commands/StartEventsDetectionJobCommand.d.ts +2 -20
  231. package/dist-types/ts3.4/commands/StartKeyPhrasesDetectionJobCommand.d.ts +2 -22
  232. package/dist-types/ts3.4/commands/StartPiiEntitiesDetectionJobCommand.d.ts +2 -20
  233. package/dist-types/ts3.4/commands/StartSentimentDetectionJobCommand.d.ts +2 -22
  234. package/dist-types/ts3.4/commands/StartTopicsDetectionJobCommand.d.ts +2 -21
  235. package/dist-types/ts3.4/commands/StopDominantLanguageDetectionJobCommand.d.ts +2 -29
  236. package/dist-types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts +2 -29
  237. package/dist-types/ts3.4/commands/StopEventsDetectionJobCommand.d.ts +2 -20
  238. package/dist-types/ts3.4/commands/StopKeyPhrasesDetectionJobCommand.d.ts +2 -29
  239. package/dist-types/ts3.4/commands/StopPiiEntitiesDetectionJobCommand.d.ts +2 -20
  240. package/dist-types/ts3.4/commands/StopSentimentDetectionJobCommand.d.ts +2 -29
  241. package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +2 -25
  242. package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +2 -25
  243. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
  244. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  245. package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +2 -20
  246. package/dist-types/ts3.4/commands/index.d.ts +63 -0
  247. package/dist-types/ts3.4/index.d.ts +4 -77
  248. package/dist-types/ts3.4/models/models_0.d.ts +884 -3867
  249. package/dist-types/ts3.4/pagination/index.d.ts +12 -0
  250. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  251. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  252. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  253. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  254. package/package.json +33 -30
  255. package/dist-cjs/Comprehend.js.map +0 -1
  256. package/dist-cjs/ComprehendClient.js.map +0 -1
  257. package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js.map +0 -1
  258. package/dist-cjs/commands/BatchDetectEntitiesCommand.js.map +0 -1
  259. package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js.map +0 -1
  260. package/dist-cjs/commands/BatchDetectSentimentCommand.js.map +0 -1
  261. package/dist-cjs/commands/BatchDetectSyntaxCommand.js.map +0 -1
  262. package/dist-cjs/commands/ClassifyDocumentCommand.js.map +0 -1
  263. package/dist-cjs/commands/ContainsPiiEntitiesCommand.js.map +0 -1
  264. package/dist-cjs/commands/CreateDocumentClassifierCommand.js.map +0 -1
  265. package/dist-cjs/commands/CreateEndpointCommand.js.map +0 -1
  266. package/dist-cjs/commands/CreateEntityRecognizerCommand.js.map +0 -1
  267. package/dist-cjs/commands/DeleteDocumentClassifierCommand.js.map +0 -1
  268. package/dist-cjs/commands/DeleteEndpointCommand.js.map +0 -1
  269. package/dist-cjs/commands/DeleteEntityRecognizerCommand.js.map +0 -1
  270. package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js.map +0 -1
  271. package/dist-cjs/commands/DescribeDocumentClassifierCommand.js.map +0 -1
  272. package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js.map +0 -1
  273. package/dist-cjs/commands/DescribeEndpointCommand.js.map +0 -1
  274. package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js.map +0 -1
  275. package/dist-cjs/commands/DescribeEntityRecognizerCommand.js.map +0 -1
  276. package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js.map +0 -1
  277. package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js.map +0 -1
  278. package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js.map +0 -1
  279. package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js.map +0 -1
  280. package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js.map +0 -1
  281. package/dist-cjs/commands/DetectDominantLanguageCommand.js.map +0 -1
  282. package/dist-cjs/commands/DetectEntitiesCommand.js.map +0 -1
  283. package/dist-cjs/commands/DetectKeyPhrasesCommand.js.map +0 -1
  284. package/dist-cjs/commands/DetectPiiEntitiesCommand.js.map +0 -1
  285. package/dist-cjs/commands/DetectSentimentCommand.js.map +0 -1
  286. package/dist-cjs/commands/DetectSyntaxCommand.js.map +0 -1
  287. package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js.map +0 -1
  288. package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js.map +0 -1
  289. package/dist-cjs/commands/ListDocumentClassifiersCommand.js.map +0 -1
  290. package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js.map +0 -1
  291. package/dist-cjs/commands/ListEndpointsCommand.js.map +0 -1
  292. package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js.map +0 -1
  293. package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js.map +0 -1
  294. package/dist-cjs/commands/ListEntityRecognizersCommand.js.map +0 -1
  295. package/dist-cjs/commands/ListEventsDetectionJobsCommand.js.map +0 -1
  296. package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js.map +0 -1
  297. package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js.map +0 -1
  298. package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js.map +0 -1
  299. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  300. package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js.map +0 -1
  301. package/dist-cjs/commands/StartDocumentClassificationJobCommand.js.map +0 -1
  302. package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js.map +0 -1
  303. package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js.map +0 -1
  304. package/dist-cjs/commands/StartEventsDetectionJobCommand.js.map +0 -1
  305. package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js.map +0 -1
  306. package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js.map +0 -1
  307. package/dist-cjs/commands/StartSentimentDetectionJobCommand.js.map +0 -1
  308. package/dist-cjs/commands/StartTopicsDetectionJobCommand.js.map +0 -1
  309. package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js.map +0 -1
  310. package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js.map +0 -1
  311. package/dist-cjs/commands/StopEventsDetectionJobCommand.js.map +0 -1
  312. package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js.map +0 -1
  313. package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js.map +0 -1
  314. package/dist-cjs/commands/StopSentimentDetectionJobCommand.js.map +0 -1
  315. package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js.map +0 -1
  316. package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js.map +0 -1
  317. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  318. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  319. package/dist-cjs/commands/UpdateEndpointCommand.js.map +0 -1
  320. package/dist-cjs/endpoints.js.map +0 -1
  321. package/dist-cjs/index.js.map +0 -1
  322. package/dist-cjs/models/index.js.map +0 -1
  323. package/dist-cjs/models/models_0.js.map +0 -1
  324. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  325. package/dist-cjs/pagination/ListDocumentClassificationJobsPaginator.js.map +0 -1
  326. package/dist-cjs/pagination/ListDocumentClassifierSummariesPaginator.js.map +0 -1
  327. package/dist-cjs/pagination/ListDocumentClassifiersPaginator.js.map +0 -1
  328. package/dist-cjs/pagination/ListDominantLanguageDetectionJobsPaginator.js.map +0 -1
  329. package/dist-cjs/pagination/ListEntitiesDetectionJobsPaginator.js.map +0 -1
  330. package/dist-cjs/pagination/ListEntityRecognizerSummariesPaginator.js.map +0 -1
  331. package/dist-cjs/pagination/ListEntityRecognizersPaginator.js.map +0 -1
  332. package/dist-cjs/pagination/ListEventsDetectionJobsPaginator.js.map +0 -1
  333. package/dist-cjs/pagination/ListKeyPhrasesDetectionJobsPaginator.js.map +0 -1
  334. package/dist-cjs/pagination/ListSentimentDetectionJobsPaginator.js.map +0 -1
  335. package/dist-cjs/pagination/ListTopicsDetectionJobsPaginator.js.map +0 -1
  336. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  337. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  338. package/dist-cjs/runtimeConfig.js.map +0 -1
  339. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  340. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  341. package/dist-es/Comprehend.js.map +0 -1
  342. package/dist-es/ComprehendClient.js.map +0 -1
  343. package/dist-es/commands/BatchDetectDominantLanguageCommand.js.map +0 -1
  344. package/dist-es/commands/BatchDetectEntitiesCommand.js.map +0 -1
  345. package/dist-es/commands/BatchDetectKeyPhrasesCommand.js.map +0 -1
  346. package/dist-es/commands/BatchDetectSentimentCommand.js.map +0 -1
  347. package/dist-es/commands/BatchDetectSyntaxCommand.js.map +0 -1
  348. package/dist-es/commands/ClassifyDocumentCommand.js.map +0 -1
  349. package/dist-es/commands/ContainsPiiEntitiesCommand.js.map +0 -1
  350. package/dist-es/commands/CreateDocumentClassifierCommand.js.map +0 -1
  351. package/dist-es/commands/CreateEndpointCommand.js.map +0 -1
  352. package/dist-es/commands/CreateEntityRecognizerCommand.js.map +0 -1
  353. package/dist-es/commands/DeleteDocumentClassifierCommand.js.map +0 -1
  354. package/dist-es/commands/DeleteEndpointCommand.js.map +0 -1
  355. package/dist-es/commands/DeleteEntityRecognizerCommand.js.map +0 -1
  356. package/dist-es/commands/DescribeDocumentClassificationJobCommand.js.map +0 -1
  357. package/dist-es/commands/DescribeDocumentClassifierCommand.js.map +0 -1
  358. package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js.map +0 -1
  359. package/dist-es/commands/DescribeEndpointCommand.js.map +0 -1
  360. package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js.map +0 -1
  361. package/dist-es/commands/DescribeEntityRecognizerCommand.js.map +0 -1
  362. package/dist-es/commands/DescribeEventsDetectionJobCommand.js.map +0 -1
  363. package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js.map +0 -1
  364. package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js.map +0 -1
  365. package/dist-es/commands/DescribeSentimentDetectionJobCommand.js.map +0 -1
  366. package/dist-es/commands/DescribeTopicsDetectionJobCommand.js.map +0 -1
  367. package/dist-es/commands/DetectDominantLanguageCommand.js.map +0 -1
  368. package/dist-es/commands/DetectEntitiesCommand.js.map +0 -1
  369. package/dist-es/commands/DetectKeyPhrasesCommand.js.map +0 -1
  370. package/dist-es/commands/DetectPiiEntitiesCommand.js.map +0 -1
  371. package/dist-es/commands/DetectSentimentCommand.js.map +0 -1
  372. package/dist-es/commands/DetectSyntaxCommand.js.map +0 -1
  373. package/dist-es/commands/ListDocumentClassificationJobsCommand.js.map +0 -1
  374. package/dist-es/commands/ListDocumentClassifierSummariesCommand.js.map +0 -1
  375. package/dist-es/commands/ListDocumentClassifiersCommand.js.map +0 -1
  376. package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js.map +0 -1
  377. package/dist-es/commands/ListEndpointsCommand.js.map +0 -1
  378. package/dist-es/commands/ListEntitiesDetectionJobsCommand.js.map +0 -1
  379. package/dist-es/commands/ListEntityRecognizerSummariesCommand.js.map +0 -1
  380. package/dist-es/commands/ListEntityRecognizersCommand.js.map +0 -1
  381. package/dist-es/commands/ListEventsDetectionJobsCommand.js.map +0 -1
  382. package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js.map +0 -1
  383. package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js.map +0 -1
  384. package/dist-es/commands/ListSentimentDetectionJobsCommand.js.map +0 -1
  385. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  386. package/dist-es/commands/ListTopicsDetectionJobsCommand.js.map +0 -1
  387. package/dist-es/commands/StartDocumentClassificationJobCommand.js.map +0 -1
  388. package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js.map +0 -1
  389. package/dist-es/commands/StartEntitiesDetectionJobCommand.js.map +0 -1
  390. package/dist-es/commands/StartEventsDetectionJobCommand.js.map +0 -1
  391. package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js.map +0 -1
  392. package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js.map +0 -1
  393. package/dist-es/commands/StartSentimentDetectionJobCommand.js.map +0 -1
  394. package/dist-es/commands/StartTopicsDetectionJobCommand.js.map +0 -1
  395. package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js.map +0 -1
  396. package/dist-es/commands/StopEntitiesDetectionJobCommand.js.map +0 -1
  397. package/dist-es/commands/StopEventsDetectionJobCommand.js.map +0 -1
  398. package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js.map +0 -1
  399. package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js.map +0 -1
  400. package/dist-es/commands/StopSentimentDetectionJobCommand.js.map +0 -1
  401. package/dist-es/commands/StopTrainingDocumentClassifierCommand.js.map +0 -1
  402. package/dist-es/commands/StopTrainingEntityRecognizerCommand.js.map +0 -1
  403. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  404. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  405. package/dist-es/commands/UpdateEndpointCommand.js.map +0 -1
  406. package/dist-es/endpoints.js.map +0 -1
  407. package/dist-es/index.js.map +0 -1
  408. package/dist-es/models/index.js.map +0 -1
  409. package/dist-es/models/models_0.js.map +0 -1
  410. package/dist-es/pagination/Interfaces.js.map +0 -1
  411. package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js.map +0 -1
  412. package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js.map +0 -1
  413. package/dist-es/pagination/ListDocumentClassifiersPaginator.js.map +0 -1
  414. package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js.map +0 -1
  415. package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js.map +0 -1
  416. package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js.map +0 -1
  417. package/dist-es/pagination/ListEntityRecognizersPaginator.js.map +0 -1
  418. package/dist-es/pagination/ListEventsDetectionJobsPaginator.js.map +0 -1
  419. package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js.map +0 -1
  420. package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js.map +0 -1
  421. package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js.map +0 -1
  422. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  423. package/dist-es/runtimeConfig.browser.js.map +0 -1
  424. package/dist-es/runtimeConfig.js.map +0 -1
  425. package/dist-es/runtimeConfig.native.js.map +0 -1
  426. package/dist-es/runtimeConfig.shared.js.map +0 -1
  427. package/jest.config.js +0 -4
  428. package/src/Comprehend.ts +0 -2439
  429. package/src/ComprehendClient.ts +0 -575
  430. package/src/commands/BatchDetectDominantLanguageCommand.ts +0 -102
  431. package/src/commands/BatchDetectEntitiesCommand.ts +0 -97
  432. package/src/commands/BatchDetectKeyPhrasesCommand.ts +0 -95
  433. package/src/commands/BatchDetectSentimentCommand.ts +0 -97
  434. package/src/commands/BatchDetectSyntaxCommand.ts +0 -96
  435. package/src/commands/ClassifyDocumentCommand.ts +0 -96
  436. package/src/commands/ContainsPiiEntitiesCommand.ts +0 -97
  437. package/src/commands/CreateDocumentClassifierCommand.ts +0 -98
  438. package/src/commands/CreateEndpointCommand.ts +0 -97
  439. package/src/commands/CreateEntityRecognizerCommand.ts +0 -97
  440. package/src/commands/DeleteDocumentClassifierCommand.ts +0 -101
  441. package/src/commands/DeleteEndpointCommand.ts +0 -96
  442. package/src/commands/DeleteEntityRecognizerCommand.ts +0 -101
  443. package/src/commands/DescribeDocumentClassificationJobCommand.ts +0 -107
  444. package/src/commands/DescribeDocumentClassifierCommand.ts +0 -98
  445. package/src/commands/DescribeDominantLanguageDetectionJobCommand.ts +0 -107
  446. package/src/commands/DescribeEndpointCommand.ts +0 -96
  447. package/src/commands/DescribeEntitiesDetectionJobCommand.ts +0 -101
  448. package/src/commands/DescribeEntityRecognizerCommand.ts +0 -96
  449. package/src/commands/DescribeEventsDetectionJobCommand.ts +0 -98
  450. package/src/commands/DescribeKeyPhrasesDetectionJobCommand.ts +0 -104
  451. package/src/commands/DescribePiiEntitiesDetectionJobCommand.ts +0 -104
  452. package/src/commands/DescribeSentimentDetectionJobCommand.ts +0 -101
  453. package/src/commands/DescribeTopicsDetectionJobCommand.ts +0 -99
  454. package/src/commands/DetectDominantLanguageCommand.ts +0 -96
  455. package/src/commands/DetectEntitiesCommand.ts +0 -96
  456. package/src/commands/DetectKeyPhrasesCommand.ts +0 -95
  457. package/src/commands/DetectPiiEntitiesCommand.ts +0 -96
  458. package/src/commands/DetectSentimentCommand.ts +0 -96
  459. package/src/commands/DetectSyntaxCommand.ts +0 -96
  460. package/src/commands/ListDocumentClassificationJobsCommand.ts +0 -103
  461. package/src/commands/ListDocumentClassifierSummariesCommand.ts +0 -103
  462. package/src/commands/ListDocumentClassifiersCommand.ts +0 -95
  463. package/src/commands/ListDominantLanguageDetectionJobsCommand.ts +0 -106
  464. package/src/commands/ListEndpointsCommand.ts +0 -95
  465. package/src/commands/ListEntitiesDetectionJobsCommand.ts +0 -98
  466. package/src/commands/ListEntityRecognizerSummariesCommand.ts +0 -100
  467. package/src/commands/ListEntityRecognizersCommand.ts +0 -100
  468. package/src/commands/ListEventsDetectionJobsCommand.ts +0 -95
  469. package/src/commands/ListKeyPhrasesDetectionJobsCommand.ts +0 -100
  470. package/src/commands/ListPiiEntitiesDetectionJobsCommand.ts +0 -100
  471. package/src/commands/ListSentimentDetectionJobsCommand.ts +0 -98
  472. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  473. package/src/commands/ListTopicsDetectionJobsCommand.ts +0 -95
  474. package/src/commands/StartDocumentClassificationJobCommand.ts +0 -104
  475. package/src/commands/StartDominantLanguageDetectionJobCommand.ts +0 -108
  476. package/src/commands/StartEntitiesDetectionJobCommand.ts +0 -102
  477. package/src/commands/StartEventsDetectionJobCommand.ts +0 -95
  478. package/src/commands/StartKeyPhrasesDetectionJobCommand.ts +0 -102
  479. package/src/commands/StartPiiEntitiesDetectionJobCommand.ts +0 -100
  480. package/src/commands/StartSentimentDetectionJobCommand.ts +0 -100
  481. package/src/commands/StartTopicsDetectionJobCommand.ts +0 -96
  482. package/src/commands/StopDominantLanguageDetectionJobCommand.ts +0 -112
  483. package/src/commands/StopEntitiesDetectionJobCommand.ts +0 -104
  484. package/src/commands/StopEventsDetectionJobCommand.ts +0 -95
  485. package/src/commands/StopKeyPhrasesDetectionJobCommand.ts +0 -107
  486. package/src/commands/StopPiiEntitiesDetectionJobCommand.ts +0 -100
  487. package/src/commands/StopSentimentDetectionJobCommand.ts +0 -107
  488. package/src/commands/StopTrainingDocumentClassifierCommand.ts +0 -108
  489. package/src/commands/StopTrainingEntityRecognizerCommand.ts +0 -105
  490. package/src/commands/TagResourceCommand.ts +0 -98
  491. package/src/commands/UntagResourceCommand.ts +0 -95
  492. package/src/commands/UpdateEndpointCommand.ts +0 -95
  493. package/src/endpoints.ts +0 -77
  494. package/src/index.ts +0 -78
  495. package/src/models/index.ts +0 -1
  496. package/src/models/models_0.ts +0 -6966
  497. package/src/pagination/Interfaces.ts +0 -8
  498. package/src/pagination/ListDocumentClassificationJobsPaginator.ts +0 -59
  499. package/src/pagination/ListDocumentClassifierSummariesPaginator.ts +0 -59
  500. package/src/pagination/ListDocumentClassifiersPaginator.ts +0 -59
  501. package/src/pagination/ListDominantLanguageDetectionJobsPaginator.ts +0 -59
  502. package/src/pagination/ListEntitiesDetectionJobsPaginator.ts +0 -59
  503. package/src/pagination/ListEntityRecognizerSummariesPaginator.ts +0 -59
  504. package/src/pagination/ListEntityRecognizersPaginator.ts +0 -59
  505. package/src/pagination/ListEventsDetectionJobsPaginator.ts +0 -59
  506. package/src/pagination/ListKeyPhrasesDetectionJobsPaginator.ts +0 -59
  507. package/src/pagination/ListSentimentDetectionJobsPaginator.ts +0 -59
  508. package/src/pagination/ListTopicsDetectionJobsPaginator.ts +0 -59
  509. package/src/protocols/Aws_json1_1.ts +0 -10158
  510. package/src/runtimeConfig.browser.ts +0 -41
  511. package/src/runtimeConfig.native.ts +0 -17
  512. package/src/runtimeConfig.shared.ts +0 -17
  513. package/src/runtimeConfig.ts +0 -46
  514. package/tsconfig.es.json +0 -10
  515. package/tsconfig.json +0 -33
  516. package/tsconfig.types.json +0 -9
package/src/Comprehend.ts DELETED
@@ -1,2439 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- BatchDetectDominantLanguageCommand,
5
- BatchDetectDominantLanguageCommandInput,
6
- BatchDetectDominantLanguageCommandOutput,
7
- } from "./commands/BatchDetectDominantLanguageCommand";
8
- import {
9
- BatchDetectEntitiesCommand,
10
- BatchDetectEntitiesCommandInput,
11
- BatchDetectEntitiesCommandOutput,
12
- } from "./commands/BatchDetectEntitiesCommand";
13
- import {
14
- BatchDetectKeyPhrasesCommand,
15
- BatchDetectKeyPhrasesCommandInput,
16
- BatchDetectKeyPhrasesCommandOutput,
17
- } from "./commands/BatchDetectKeyPhrasesCommand";
18
- import {
19
- BatchDetectSentimentCommand,
20
- BatchDetectSentimentCommandInput,
21
- BatchDetectSentimentCommandOutput,
22
- } from "./commands/BatchDetectSentimentCommand";
23
- import {
24
- BatchDetectSyntaxCommand,
25
- BatchDetectSyntaxCommandInput,
26
- BatchDetectSyntaxCommandOutput,
27
- } from "./commands/BatchDetectSyntaxCommand";
28
- import {
29
- ClassifyDocumentCommand,
30
- ClassifyDocumentCommandInput,
31
- ClassifyDocumentCommandOutput,
32
- } from "./commands/ClassifyDocumentCommand";
33
- import {
34
- ContainsPiiEntitiesCommand,
35
- ContainsPiiEntitiesCommandInput,
36
- ContainsPiiEntitiesCommandOutput,
37
- } from "./commands/ContainsPiiEntitiesCommand";
38
- import {
39
- CreateDocumentClassifierCommand,
40
- CreateDocumentClassifierCommandInput,
41
- CreateDocumentClassifierCommandOutput,
42
- } from "./commands/CreateDocumentClassifierCommand";
43
- import {
44
- CreateEndpointCommand,
45
- CreateEndpointCommandInput,
46
- CreateEndpointCommandOutput,
47
- } from "./commands/CreateEndpointCommand";
48
- import {
49
- CreateEntityRecognizerCommand,
50
- CreateEntityRecognizerCommandInput,
51
- CreateEntityRecognizerCommandOutput,
52
- } from "./commands/CreateEntityRecognizerCommand";
53
- import {
54
- DeleteDocumentClassifierCommand,
55
- DeleteDocumentClassifierCommandInput,
56
- DeleteDocumentClassifierCommandOutput,
57
- } from "./commands/DeleteDocumentClassifierCommand";
58
- import {
59
- DeleteEndpointCommand,
60
- DeleteEndpointCommandInput,
61
- DeleteEndpointCommandOutput,
62
- } from "./commands/DeleteEndpointCommand";
63
- import {
64
- DeleteEntityRecognizerCommand,
65
- DeleteEntityRecognizerCommandInput,
66
- DeleteEntityRecognizerCommandOutput,
67
- } from "./commands/DeleteEntityRecognizerCommand";
68
- import {
69
- DescribeDocumentClassificationJobCommand,
70
- DescribeDocumentClassificationJobCommandInput,
71
- DescribeDocumentClassificationJobCommandOutput,
72
- } from "./commands/DescribeDocumentClassificationJobCommand";
73
- import {
74
- DescribeDocumentClassifierCommand,
75
- DescribeDocumentClassifierCommandInput,
76
- DescribeDocumentClassifierCommandOutput,
77
- } from "./commands/DescribeDocumentClassifierCommand";
78
- import {
79
- DescribeDominantLanguageDetectionJobCommand,
80
- DescribeDominantLanguageDetectionJobCommandInput,
81
- DescribeDominantLanguageDetectionJobCommandOutput,
82
- } from "./commands/DescribeDominantLanguageDetectionJobCommand";
83
- import {
84
- DescribeEndpointCommand,
85
- DescribeEndpointCommandInput,
86
- DescribeEndpointCommandOutput,
87
- } from "./commands/DescribeEndpointCommand";
88
- import {
89
- DescribeEntitiesDetectionJobCommand,
90
- DescribeEntitiesDetectionJobCommandInput,
91
- DescribeEntitiesDetectionJobCommandOutput,
92
- } from "./commands/DescribeEntitiesDetectionJobCommand";
93
- import {
94
- DescribeEntityRecognizerCommand,
95
- DescribeEntityRecognizerCommandInput,
96
- DescribeEntityRecognizerCommandOutput,
97
- } from "./commands/DescribeEntityRecognizerCommand";
98
- import {
99
- DescribeEventsDetectionJobCommand,
100
- DescribeEventsDetectionJobCommandInput,
101
- DescribeEventsDetectionJobCommandOutput,
102
- } from "./commands/DescribeEventsDetectionJobCommand";
103
- import {
104
- DescribeKeyPhrasesDetectionJobCommand,
105
- DescribeKeyPhrasesDetectionJobCommandInput,
106
- DescribeKeyPhrasesDetectionJobCommandOutput,
107
- } from "./commands/DescribeKeyPhrasesDetectionJobCommand";
108
- import {
109
- DescribePiiEntitiesDetectionJobCommand,
110
- DescribePiiEntitiesDetectionJobCommandInput,
111
- DescribePiiEntitiesDetectionJobCommandOutput,
112
- } from "./commands/DescribePiiEntitiesDetectionJobCommand";
113
- import {
114
- DescribeSentimentDetectionJobCommand,
115
- DescribeSentimentDetectionJobCommandInput,
116
- DescribeSentimentDetectionJobCommandOutput,
117
- } from "./commands/DescribeSentimentDetectionJobCommand";
118
- import {
119
- DescribeTopicsDetectionJobCommand,
120
- DescribeTopicsDetectionJobCommandInput,
121
- DescribeTopicsDetectionJobCommandOutput,
122
- } from "./commands/DescribeTopicsDetectionJobCommand";
123
- import {
124
- DetectDominantLanguageCommand,
125
- DetectDominantLanguageCommandInput,
126
- DetectDominantLanguageCommandOutput,
127
- } from "./commands/DetectDominantLanguageCommand";
128
- import {
129
- DetectEntitiesCommand,
130
- DetectEntitiesCommandInput,
131
- DetectEntitiesCommandOutput,
132
- } from "./commands/DetectEntitiesCommand";
133
- import {
134
- DetectKeyPhrasesCommand,
135
- DetectKeyPhrasesCommandInput,
136
- DetectKeyPhrasesCommandOutput,
137
- } from "./commands/DetectKeyPhrasesCommand";
138
- import {
139
- DetectPiiEntitiesCommand,
140
- DetectPiiEntitiesCommandInput,
141
- DetectPiiEntitiesCommandOutput,
142
- } from "./commands/DetectPiiEntitiesCommand";
143
- import {
144
- DetectSentimentCommand,
145
- DetectSentimentCommandInput,
146
- DetectSentimentCommandOutput,
147
- } from "./commands/DetectSentimentCommand";
148
- import {
149
- DetectSyntaxCommand,
150
- DetectSyntaxCommandInput,
151
- DetectSyntaxCommandOutput,
152
- } from "./commands/DetectSyntaxCommand";
153
- import {
154
- ListDocumentClassificationJobsCommand,
155
- ListDocumentClassificationJobsCommandInput,
156
- ListDocumentClassificationJobsCommandOutput,
157
- } from "./commands/ListDocumentClassificationJobsCommand";
158
- import {
159
- ListDocumentClassifiersCommand,
160
- ListDocumentClassifiersCommandInput,
161
- ListDocumentClassifiersCommandOutput,
162
- } from "./commands/ListDocumentClassifiersCommand";
163
- import {
164
- ListDocumentClassifierSummariesCommand,
165
- ListDocumentClassifierSummariesCommandInput,
166
- ListDocumentClassifierSummariesCommandOutput,
167
- } from "./commands/ListDocumentClassifierSummariesCommand";
168
- import {
169
- ListDominantLanguageDetectionJobsCommand,
170
- ListDominantLanguageDetectionJobsCommandInput,
171
- ListDominantLanguageDetectionJobsCommandOutput,
172
- } from "./commands/ListDominantLanguageDetectionJobsCommand";
173
- import {
174
- ListEndpointsCommand,
175
- ListEndpointsCommandInput,
176
- ListEndpointsCommandOutput,
177
- } from "./commands/ListEndpointsCommand";
178
- import {
179
- ListEntitiesDetectionJobsCommand,
180
- ListEntitiesDetectionJobsCommandInput,
181
- ListEntitiesDetectionJobsCommandOutput,
182
- } from "./commands/ListEntitiesDetectionJobsCommand";
183
- import {
184
- ListEntityRecognizersCommand,
185
- ListEntityRecognizersCommandInput,
186
- ListEntityRecognizersCommandOutput,
187
- } from "./commands/ListEntityRecognizersCommand";
188
- import {
189
- ListEntityRecognizerSummariesCommand,
190
- ListEntityRecognizerSummariesCommandInput,
191
- ListEntityRecognizerSummariesCommandOutput,
192
- } from "./commands/ListEntityRecognizerSummariesCommand";
193
- import {
194
- ListEventsDetectionJobsCommand,
195
- ListEventsDetectionJobsCommandInput,
196
- ListEventsDetectionJobsCommandOutput,
197
- } from "./commands/ListEventsDetectionJobsCommand";
198
- import {
199
- ListKeyPhrasesDetectionJobsCommand,
200
- ListKeyPhrasesDetectionJobsCommandInput,
201
- ListKeyPhrasesDetectionJobsCommandOutput,
202
- } from "./commands/ListKeyPhrasesDetectionJobsCommand";
203
- import {
204
- ListPiiEntitiesDetectionJobsCommand,
205
- ListPiiEntitiesDetectionJobsCommandInput,
206
- ListPiiEntitiesDetectionJobsCommandOutput,
207
- } from "./commands/ListPiiEntitiesDetectionJobsCommand";
208
- import {
209
- ListSentimentDetectionJobsCommand,
210
- ListSentimentDetectionJobsCommandInput,
211
- ListSentimentDetectionJobsCommandOutput,
212
- } from "./commands/ListSentimentDetectionJobsCommand";
213
- import {
214
- ListTagsForResourceCommand,
215
- ListTagsForResourceCommandInput,
216
- ListTagsForResourceCommandOutput,
217
- } from "./commands/ListTagsForResourceCommand";
218
- import {
219
- ListTopicsDetectionJobsCommand,
220
- ListTopicsDetectionJobsCommandInput,
221
- ListTopicsDetectionJobsCommandOutput,
222
- } from "./commands/ListTopicsDetectionJobsCommand";
223
- import {
224
- StartDocumentClassificationJobCommand,
225
- StartDocumentClassificationJobCommandInput,
226
- StartDocumentClassificationJobCommandOutput,
227
- } from "./commands/StartDocumentClassificationJobCommand";
228
- import {
229
- StartDominantLanguageDetectionJobCommand,
230
- StartDominantLanguageDetectionJobCommandInput,
231
- StartDominantLanguageDetectionJobCommandOutput,
232
- } from "./commands/StartDominantLanguageDetectionJobCommand";
233
- import {
234
- StartEntitiesDetectionJobCommand,
235
- StartEntitiesDetectionJobCommandInput,
236
- StartEntitiesDetectionJobCommandOutput,
237
- } from "./commands/StartEntitiesDetectionJobCommand";
238
- import {
239
- StartEventsDetectionJobCommand,
240
- StartEventsDetectionJobCommandInput,
241
- StartEventsDetectionJobCommandOutput,
242
- } from "./commands/StartEventsDetectionJobCommand";
243
- import {
244
- StartKeyPhrasesDetectionJobCommand,
245
- StartKeyPhrasesDetectionJobCommandInput,
246
- StartKeyPhrasesDetectionJobCommandOutput,
247
- } from "./commands/StartKeyPhrasesDetectionJobCommand";
248
- import {
249
- StartPiiEntitiesDetectionJobCommand,
250
- StartPiiEntitiesDetectionJobCommandInput,
251
- StartPiiEntitiesDetectionJobCommandOutput,
252
- } from "./commands/StartPiiEntitiesDetectionJobCommand";
253
- import {
254
- StartSentimentDetectionJobCommand,
255
- StartSentimentDetectionJobCommandInput,
256
- StartSentimentDetectionJobCommandOutput,
257
- } from "./commands/StartSentimentDetectionJobCommand";
258
- import {
259
- StartTopicsDetectionJobCommand,
260
- StartTopicsDetectionJobCommandInput,
261
- StartTopicsDetectionJobCommandOutput,
262
- } from "./commands/StartTopicsDetectionJobCommand";
263
- import {
264
- StopDominantLanguageDetectionJobCommand,
265
- StopDominantLanguageDetectionJobCommandInput,
266
- StopDominantLanguageDetectionJobCommandOutput,
267
- } from "./commands/StopDominantLanguageDetectionJobCommand";
268
- import {
269
- StopEntitiesDetectionJobCommand,
270
- StopEntitiesDetectionJobCommandInput,
271
- StopEntitiesDetectionJobCommandOutput,
272
- } from "./commands/StopEntitiesDetectionJobCommand";
273
- import {
274
- StopEventsDetectionJobCommand,
275
- StopEventsDetectionJobCommandInput,
276
- StopEventsDetectionJobCommandOutput,
277
- } from "./commands/StopEventsDetectionJobCommand";
278
- import {
279
- StopKeyPhrasesDetectionJobCommand,
280
- StopKeyPhrasesDetectionJobCommandInput,
281
- StopKeyPhrasesDetectionJobCommandOutput,
282
- } from "./commands/StopKeyPhrasesDetectionJobCommand";
283
- import {
284
- StopPiiEntitiesDetectionJobCommand,
285
- StopPiiEntitiesDetectionJobCommandInput,
286
- StopPiiEntitiesDetectionJobCommandOutput,
287
- } from "./commands/StopPiiEntitiesDetectionJobCommand";
288
- import {
289
- StopSentimentDetectionJobCommand,
290
- StopSentimentDetectionJobCommandInput,
291
- StopSentimentDetectionJobCommandOutput,
292
- } from "./commands/StopSentimentDetectionJobCommand";
293
- import {
294
- StopTrainingDocumentClassifierCommand,
295
- StopTrainingDocumentClassifierCommandInput,
296
- StopTrainingDocumentClassifierCommandOutput,
297
- } from "./commands/StopTrainingDocumentClassifierCommand";
298
- import {
299
- StopTrainingEntityRecognizerCommand,
300
- StopTrainingEntityRecognizerCommandInput,
301
- StopTrainingEntityRecognizerCommandOutput,
302
- } from "./commands/StopTrainingEntityRecognizerCommand";
303
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
304
- import {
305
- UntagResourceCommand,
306
- UntagResourceCommandInput,
307
- UntagResourceCommandOutput,
308
- } from "./commands/UntagResourceCommand";
309
- import {
310
- UpdateEndpointCommand,
311
- UpdateEndpointCommandInput,
312
- UpdateEndpointCommandOutput,
313
- } from "./commands/UpdateEndpointCommand";
314
- import { ComprehendClient } from "./ComprehendClient";
315
-
316
- /**
317
- * <p>Amazon Comprehend is an AWS service for gaining insight into the content of documents.
318
- * Use these actions to determine the topics contained in your documents, the topics they
319
- * discuss, the predominant sentiment expressed in them, the predominant language used, and
320
- * more.</p>
321
- */
322
- export class Comprehend extends ComprehendClient {
323
- /**
324
- * <p>Determines the dominant language of the input text for a batch of documents. For a list
325
- * of languages that Amazon Comprehend can detect, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html">Amazon Comprehend Supported Languages</a>.
326
- * </p>
327
- */
328
- public batchDetectDominantLanguage(
329
- args: BatchDetectDominantLanguageCommandInput,
330
- options?: __HttpHandlerOptions
331
- ): Promise<BatchDetectDominantLanguageCommandOutput>;
332
- public batchDetectDominantLanguage(
333
- args: BatchDetectDominantLanguageCommandInput,
334
- cb: (err: any, data?: BatchDetectDominantLanguageCommandOutput) => void
335
- ): void;
336
- public batchDetectDominantLanguage(
337
- args: BatchDetectDominantLanguageCommandInput,
338
- options: __HttpHandlerOptions,
339
- cb: (err: any, data?: BatchDetectDominantLanguageCommandOutput) => void
340
- ): void;
341
- public batchDetectDominantLanguage(
342
- args: BatchDetectDominantLanguageCommandInput,
343
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchDetectDominantLanguageCommandOutput) => void),
344
- cb?: (err: any, data?: BatchDetectDominantLanguageCommandOutput) => void
345
- ): Promise<BatchDetectDominantLanguageCommandOutput> | void {
346
- const command = new BatchDetectDominantLanguageCommand(args);
347
- if (typeof optionsOrCb === "function") {
348
- this.send(command, optionsOrCb);
349
- } else if (typeof cb === "function") {
350
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
- this.send(command, optionsOrCb || {}, cb);
352
- } else {
353
- return this.send(command, optionsOrCb);
354
- }
355
- }
356
-
357
- /**
358
- * <p>Inspects the text of a batch of documents for named entities and returns information
359
- * about them. For more information about named entities, see <a>how-entities</a>
360
- * </p>
361
- */
362
- public batchDetectEntities(
363
- args: BatchDetectEntitiesCommandInput,
364
- options?: __HttpHandlerOptions
365
- ): Promise<BatchDetectEntitiesCommandOutput>;
366
- public batchDetectEntities(
367
- args: BatchDetectEntitiesCommandInput,
368
- cb: (err: any, data?: BatchDetectEntitiesCommandOutput) => void
369
- ): void;
370
- public batchDetectEntities(
371
- args: BatchDetectEntitiesCommandInput,
372
- options: __HttpHandlerOptions,
373
- cb: (err: any, data?: BatchDetectEntitiesCommandOutput) => void
374
- ): void;
375
- public batchDetectEntities(
376
- args: BatchDetectEntitiesCommandInput,
377
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchDetectEntitiesCommandOutput) => void),
378
- cb?: (err: any, data?: BatchDetectEntitiesCommandOutput) => void
379
- ): Promise<BatchDetectEntitiesCommandOutput> | void {
380
- const command = new BatchDetectEntitiesCommand(args);
381
- if (typeof optionsOrCb === "function") {
382
- this.send(command, optionsOrCb);
383
- } else if (typeof cb === "function") {
384
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
385
- this.send(command, optionsOrCb || {}, cb);
386
- } else {
387
- return this.send(command, optionsOrCb);
388
- }
389
- }
390
-
391
- /**
392
- * <p>Detects the key noun phrases found in a batch of documents.</p>
393
- */
394
- public batchDetectKeyPhrases(
395
- args: BatchDetectKeyPhrasesCommandInput,
396
- options?: __HttpHandlerOptions
397
- ): Promise<BatchDetectKeyPhrasesCommandOutput>;
398
- public batchDetectKeyPhrases(
399
- args: BatchDetectKeyPhrasesCommandInput,
400
- cb: (err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void
401
- ): void;
402
- public batchDetectKeyPhrases(
403
- args: BatchDetectKeyPhrasesCommandInput,
404
- options: __HttpHandlerOptions,
405
- cb: (err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void
406
- ): void;
407
- public batchDetectKeyPhrases(
408
- args: BatchDetectKeyPhrasesCommandInput,
409
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void),
410
- cb?: (err: any, data?: BatchDetectKeyPhrasesCommandOutput) => void
411
- ): Promise<BatchDetectKeyPhrasesCommandOutput> | void {
412
- const command = new BatchDetectKeyPhrasesCommand(args);
413
- if (typeof optionsOrCb === "function") {
414
- this.send(command, optionsOrCb);
415
- } else if (typeof cb === "function") {
416
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
- this.send(command, optionsOrCb || {}, cb);
418
- } else {
419
- return this.send(command, optionsOrCb);
420
- }
421
- }
422
-
423
- /**
424
- * <p>Inspects a batch of documents and returns an inference of the prevailing sentiment,
425
- * <code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>,
426
- * in each one.</p>
427
- */
428
- public batchDetectSentiment(
429
- args: BatchDetectSentimentCommandInput,
430
- options?: __HttpHandlerOptions
431
- ): Promise<BatchDetectSentimentCommandOutput>;
432
- public batchDetectSentiment(
433
- args: BatchDetectSentimentCommandInput,
434
- cb: (err: any, data?: BatchDetectSentimentCommandOutput) => void
435
- ): void;
436
- public batchDetectSentiment(
437
- args: BatchDetectSentimentCommandInput,
438
- options: __HttpHandlerOptions,
439
- cb: (err: any, data?: BatchDetectSentimentCommandOutput) => void
440
- ): void;
441
- public batchDetectSentiment(
442
- args: BatchDetectSentimentCommandInput,
443
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchDetectSentimentCommandOutput) => void),
444
- cb?: (err: any, data?: BatchDetectSentimentCommandOutput) => void
445
- ): Promise<BatchDetectSentimentCommandOutput> | void {
446
- const command = new BatchDetectSentimentCommand(args);
447
- if (typeof optionsOrCb === "function") {
448
- this.send(command, optionsOrCb);
449
- } else if (typeof cb === "function") {
450
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
451
- this.send(command, optionsOrCb || {}, cb);
452
- } else {
453
- return this.send(command, optionsOrCb);
454
- }
455
- }
456
-
457
- /**
458
- * <p>Inspects the text of a batch of documents for the syntax and part of speech of the words
459
- * in the document and returns information about them. For more information, see <a>how-syntax</a>.</p>
460
- */
461
- public batchDetectSyntax(
462
- args: BatchDetectSyntaxCommandInput,
463
- options?: __HttpHandlerOptions
464
- ): Promise<BatchDetectSyntaxCommandOutput>;
465
- public batchDetectSyntax(
466
- args: BatchDetectSyntaxCommandInput,
467
- cb: (err: any, data?: BatchDetectSyntaxCommandOutput) => void
468
- ): void;
469
- public batchDetectSyntax(
470
- args: BatchDetectSyntaxCommandInput,
471
- options: __HttpHandlerOptions,
472
- cb: (err: any, data?: BatchDetectSyntaxCommandOutput) => void
473
- ): void;
474
- public batchDetectSyntax(
475
- args: BatchDetectSyntaxCommandInput,
476
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchDetectSyntaxCommandOutput) => void),
477
- cb?: (err: any, data?: BatchDetectSyntaxCommandOutput) => void
478
- ): Promise<BatchDetectSyntaxCommandOutput> | void {
479
- const command = new BatchDetectSyntaxCommand(args);
480
- if (typeof optionsOrCb === "function") {
481
- this.send(command, optionsOrCb);
482
- } else if (typeof cb === "function") {
483
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
484
- this.send(command, optionsOrCb || {}, cb);
485
- } else {
486
- return this.send(command, optionsOrCb);
487
- }
488
- }
489
-
490
- /**
491
- * <p>Creates a new document classification request to analyze a single document in real-time,
492
- * using a previously created and trained custom model and an endpoint.</p>
493
- */
494
- public classifyDocument(
495
- args: ClassifyDocumentCommandInput,
496
- options?: __HttpHandlerOptions
497
- ): Promise<ClassifyDocumentCommandOutput>;
498
- public classifyDocument(
499
- args: ClassifyDocumentCommandInput,
500
- cb: (err: any, data?: ClassifyDocumentCommandOutput) => void
501
- ): void;
502
- public classifyDocument(
503
- args: ClassifyDocumentCommandInput,
504
- options: __HttpHandlerOptions,
505
- cb: (err: any, data?: ClassifyDocumentCommandOutput) => void
506
- ): void;
507
- public classifyDocument(
508
- args: ClassifyDocumentCommandInput,
509
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ClassifyDocumentCommandOutput) => void),
510
- cb?: (err: any, data?: ClassifyDocumentCommandOutput) => void
511
- ): Promise<ClassifyDocumentCommandOutput> | void {
512
- const command = new ClassifyDocumentCommand(args);
513
- if (typeof optionsOrCb === "function") {
514
- this.send(command, optionsOrCb);
515
- } else if (typeof cb === "function") {
516
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
517
- this.send(command, optionsOrCb || {}, cb);
518
- } else {
519
- return this.send(command, optionsOrCb);
520
- }
521
- }
522
-
523
- /**
524
- * <p>Analyzes input text for the presence of personally identifiable information (PII) and
525
- * returns the labels of identified PII entity types such as name, address, bank account number,
526
- * or phone number.</p>
527
- */
528
- public containsPiiEntities(
529
- args: ContainsPiiEntitiesCommandInput,
530
- options?: __HttpHandlerOptions
531
- ): Promise<ContainsPiiEntitiesCommandOutput>;
532
- public containsPiiEntities(
533
- args: ContainsPiiEntitiesCommandInput,
534
- cb: (err: any, data?: ContainsPiiEntitiesCommandOutput) => void
535
- ): void;
536
- public containsPiiEntities(
537
- args: ContainsPiiEntitiesCommandInput,
538
- options: __HttpHandlerOptions,
539
- cb: (err: any, data?: ContainsPiiEntitiesCommandOutput) => void
540
- ): void;
541
- public containsPiiEntities(
542
- args: ContainsPiiEntitiesCommandInput,
543
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ContainsPiiEntitiesCommandOutput) => void),
544
- cb?: (err: any, data?: ContainsPiiEntitiesCommandOutput) => void
545
- ): Promise<ContainsPiiEntitiesCommandOutput> | void {
546
- const command = new ContainsPiiEntitiesCommand(args);
547
- if (typeof optionsOrCb === "function") {
548
- this.send(command, optionsOrCb);
549
- } else if (typeof cb === "function") {
550
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
551
- this.send(command, optionsOrCb || {}, cb);
552
- } else {
553
- return this.send(command, optionsOrCb);
554
- }
555
- }
556
-
557
- /**
558
- * <p>Creates a new document classifier that you can use to categorize documents. To create a
559
- * classifier, you provide a set of training documents that labeled with the categories that you
560
- * want to use. After the classifier is trained you can use it to categorize a set of labeled
561
- * documents into the categories. For more information, see <a>how-document-classification</a>.</p>
562
- */
563
- public createDocumentClassifier(
564
- args: CreateDocumentClassifierCommandInput,
565
- options?: __HttpHandlerOptions
566
- ): Promise<CreateDocumentClassifierCommandOutput>;
567
- public createDocumentClassifier(
568
- args: CreateDocumentClassifierCommandInput,
569
- cb: (err: any, data?: CreateDocumentClassifierCommandOutput) => void
570
- ): void;
571
- public createDocumentClassifier(
572
- args: CreateDocumentClassifierCommandInput,
573
- options: __HttpHandlerOptions,
574
- cb: (err: any, data?: CreateDocumentClassifierCommandOutput) => void
575
- ): void;
576
- public createDocumentClassifier(
577
- args: CreateDocumentClassifierCommandInput,
578
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDocumentClassifierCommandOutput) => void),
579
- cb?: (err: any, data?: CreateDocumentClassifierCommandOutput) => void
580
- ): Promise<CreateDocumentClassifierCommandOutput> | void {
581
- const command = new CreateDocumentClassifierCommand(args);
582
- if (typeof optionsOrCb === "function") {
583
- this.send(command, optionsOrCb);
584
- } else if (typeof cb === "function") {
585
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
586
- this.send(command, optionsOrCb || {}, cb);
587
- } else {
588
- return this.send(command, optionsOrCb);
589
- }
590
- }
591
-
592
- /**
593
- * <p>Creates a model-specific endpoint for synchronous inference for a previously trained
594
- * custom model
595
- * </p>
596
- */
597
- public createEndpoint(
598
- args: CreateEndpointCommandInput,
599
- options?: __HttpHandlerOptions
600
- ): Promise<CreateEndpointCommandOutput>;
601
- public createEndpoint(
602
- args: CreateEndpointCommandInput,
603
- cb: (err: any, data?: CreateEndpointCommandOutput) => void
604
- ): void;
605
- public createEndpoint(
606
- args: CreateEndpointCommandInput,
607
- options: __HttpHandlerOptions,
608
- cb: (err: any, data?: CreateEndpointCommandOutput) => void
609
- ): void;
610
- public createEndpoint(
611
- args: CreateEndpointCommandInput,
612
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEndpointCommandOutput) => void),
613
- cb?: (err: any, data?: CreateEndpointCommandOutput) => void
614
- ): Promise<CreateEndpointCommandOutput> | void {
615
- const command = new CreateEndpointCommand(args);
616
- if (typeof optionsOrCb === "function") {
617
- this.send(command, optionsOrCb);
618
- } else if (typeof cb === "function") {
619
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
620
- this.send(command, optionsOrCb || {}, cb);
621
- } else {
622
- return this.send(command, optionsOrCb);
623
- }
624
- }
625
-
626
- /**
627
- * <p>Creates an entity recognizer using submitted files. After your
628
- * <code>CreateEntityRecognizer</code> request is submitted, you can check job status using the
629
- * API. </p>
630
- */
631
- public createEntityRecognizer(
632
- args: CreateEntityRecognizerCommandInput,
633
- options?: __HttpHandlerOptions
634
- ): Promise<CreateEntityRecognizerCommandOutput>;
635
- public createEntityRecognizer(
636
- args: CreateEntityRecognizerCommandInput,
637
- cb: (err: any, data?: CreateEntityRecognizerCommandOutput) => void
638
- ): void;
639
- public createEntityRecognizer(
640
- args: CreateEntityRecognizerCommandInput,
641
- options: __HttpHandlerOptions,
642
- cb: (err: any, data?: CreateEntityRecognizerCommandOutput) => void
643
- ): void;
644
- public createEntityRecognizer(
645
- args: CreateEntityRecognizerCommandInput,
646
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEntityRecognizerCommandOutput) => void),
647
- cb?: (err: any, data?: CreateEntityRecognizerCommandOutput) => void
648
- ): Promise<CreateEntityRecognizerCommandOutput> | void {
649
- const command = new CreateEntityRecognizerCommand(args);
650
- if (typeof optionsOrCb === "function") {
651
- this.send(command, optionsOrCb);
652
- } else if (typeof cb === "function") {
653
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
654
- this.send(command, optionsOrCb || {}, cb);
655
- } else {
656
- return this.send(command, optionsOrCb);
657
- }
658
- }
659
-
660
- /**
661
- * <p>Deletes a previously created document classifier</p>
662
- * <p>Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted.
663
- * If an active inference job is using the model, a <code>ResourceInUseException</code> will be
664
- * returned.</p>
665
- * <p>This is an asynchronous action that puts the classifier into a DELETING state, and it is
666
- * then removed by a background job. Once removed, the classifier disappears from your account
667
- * and is no longer available for use. </p>
668
- */
669
- public deleteDocumentClassifier(
670
- args: DeleteDocumentClassifierCommandInput,
671
- options?: __HttpHandlerOptions
672
- ): Promise<DeleteDocumentClassifierCommandOutput>;
673
- public deleteDocumentClassifier(
674
- args: DeleteDocumentClassifierCommandInput,
675
- cb: (err: any, data?: DeleteDocumentClassifierCommandOutput) => void
676
- ): void;
677
- public deleteDocumentClassifier(
678
- args: DeleteDocumentClassifierCommandInput,
679
- options: __HttpHandlerOptions,
680
- cb: (err: any, data?: DeleteDocumentClassifierCommandOutput) => void
681
- ): void;
682
- public deleteDocumentClassifier(
683
- args: DeleteDocumentClassifierCommandInput,
684
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDocumentClassifierCommandOutput) => void),
685
- cb?: (err: any, data?: DeleteDocumentClassifierCommandOutput) => void
686
- ): Promise<DeleteDocumentClassifierCommandOutput> | void {
687
- const command = new DeleteDocumentClassifierCommand(args);
688
- if (typeof optionsOrCb === "function") {
689
- this.send(command, optionsOrCb);
690
- } else if (typeof cb === "function") {
691
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
692
- this.send(command, optionsOrCb || {}, cb);
693
- } else {
694
- return this.send(command, optionsOrCb);
695
- }
696
- }
697
-
698
- /**
699
- * <p>Deletes a model-specific endpoint for a previously-trained custom model. All endpoints
700
- * must be deleted in order for the model to be deleted.</p>
701
- */
702
- public deleteEndpoint(
703
- args: DeleteEndpointCommandInput,
704
- options?: __HttpHandlerOptions
705
- ): Promise<DeleteEndpointCommandOutput>;
706
- public deleteEndpoint(
707
- args: DeleteEndpointCommandInput,
708
- cb: (err: any, data?: DeleteEndpointCommandOutput) => void
709
- ): void;
710
- public deleteEndpoint(
711
- args: DeleteEndpointCommandInput,
712
- options: __HttpHandlerOptions,
713
- cb: (err: any, data?: DeleteEndpointCommandOutput) => void
714
- ): void;
715
- public deleteEndpoint(
716
- args: DeleteEndpointCommandInput,
717
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEndpointCommandOutput) => void),
718
- cb?: (err: any, data?: DeleteEndpointCommandOutput) => void
719
- ): Promise<DeleteEndpointCommandOutput> | void {
720
- const command = new DeleteEndpointCommand(args);
721
- if (typeof optionsOrCb === "function") {
722
- this.send(command, optionsOrCb);
723
- } else if (typeof cb === "function") {
724
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
725
- this.send(command, optionsOrCb || {}, cb);
726
- } else {
727
- return this.send(command, optionsOrCb);
728
- }
729
- }
730
-
731
- /**
732
- * <p>Deletes an entity recognizer.</p>
733
- * <p>Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be deleted.
734
- * If an active inference job is using the model, a <code>ResourceInUseException</code> will be
735
- * returned.</p>
736
- * <p>This is an asynchronous action that puts the recognizer into a DELETING state, and it is
737
- * then removed by a background job. Once removed, the recognizer disappears from your account
738
- * and is no longer available for use. </p>
739
- */
740
- public deleteEntityRecognizer(
741
- args: DeleteEntityRecognizerCommandInput,
742
- options?: __HttpHandlerOptions
743
- ): Promise<DeleteEntityRecognizerCommandOutput>;
744
- public deleteEntityRecognizer(
745
- args: DeleteEntityRecognizerCommandInput,
746
- cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void
747
- ): void;
748
- public deleteEntityRecognizer(
749
- args: DeleteEntityRecognizerCommandInput,
750
- options: __HttpHandlerOptions,
751
- cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void
752
- ): void;
753
- public deleteEntityRecognizer(
754
- args: DeleteEntityRecognizerCommandInput,
755
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEntityRecognizerCommandOutput) => void),
756
- cb?: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void
757
- ): Promise<DeleteEntityRecognizerCommandOutput> | void {
758
- const command = new DeleteEntityRecognizerCommand(args);
759
- if (typeof optionsOrCb === "function") {
760
- this.send(command, optionsOrCb);
761
- } else if (typeof cb === "function") {
762
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
763
- this.send(command, optionsOrCb || {}, cb);
764
- } else {
765
- return this.send(command, optionsOrCb);
766
- }
767
- }
768
-
769
- /**
770
- * <p>Gets the properties associated with a document classification job. Use this operation to
771
- * get the status of a classification job.</p>
772
- */
773
- public describeDocumentClassificationJob(
774
- args: DescribeDocumentClassificationJobCommandInput,
775
- options?: __HttpHandlerOptions
776
- ): Promise<DescribeDocumentClassificationJobCommandOutput>;
777
- public describeDocumentClassificationJob(
778
- args: DescribeDocumentClassificationJobCommandInput,
779
- cb: (err: any, data?: DescribeDocumentClassificationJobCommandOutput) => void
780
- ): void;
781
- public describeDocumentClassificationJob(
782
- args: DescribeDocumentClassificationJobCommandInput,
783
- options: __HttpHandlerOptions,
784
- cb: (err: any, data?: DescribeDocumentClassificationJobCommandOutput) => void
785
- ): void;
786
- public describeDocumentClassificationJob(
787
- args: DescribeDocumentClassificationJobCommandInput,
788
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDocumentClassificationJobCommandOutput) => void),
789
- cb?: (err: any, data?: DescribeDocumentClassificationJobCommandOutput) => void
790
- ): Promise<DescribeDocumentClassificationJobCommandOutput> | void {
791
- const command = new DescribeDocumentClassificationJobCommand(args);
792
- if (typeof optionsOrCb === "function") {
793
- this.send(command, optionsOrCb);
794
- } else if (typeof cb === "function") {
795
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
796
- this.send(command, optionsOrCb || {}, cb);
797
- } else {
798
- return this.send(command, optionsOrCb);
799
- }
800
- }
801
-
802
- /**
803
- * <p>Gets the properties associated with a document classifier.</p>
804
- */
805
- public describeDocumentClassifier(
806
- args: DescribeDocumentClassifierCommandInput,
807
- options?: __HttpHandlerOptions
808
- ): Promise<DescribeDocumentClassifierCommandOutput>;
809
- public describeDocumentClassifier(
810
- args: DescribeDocumentClassifierCommandInput,
811
- cb: (err: any, data?: DescribeDocumentClassifierCommandOutput) => void
812
- ): void;
813
- public describeDocumentClassifier(
814
- args: DescribeDocumentClassifierCommandInput,
815
- options: __HttpHandlerOptions,
816
- cb: (err: any, data?: DescribeDocumentClassifierCommandOutput) => void
817
- ): void;
818
- public describeDocumentClassifier(
819
- args: DescribeDocumentClassifierCommandInput,
820
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDocumentClassifierCommandOutput) => void),
821
- cb?: (err: any, data?: DescribeDocumentClassifierCommandOutput) => void
822
- ): Promise<DescribeDocumentClassifierCommandOutput> | void {
823
- const command = new DescribeDocumentClassifierCommand(args);
824
- if (typeof optionsOrCb === "function") {
825
- this.send(command, optionsOrCb);
826
- } else if (typeof cb === "function") {
827
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
828
- this.send(command, optionsOrCb || {}, cb);
829
- } else {
830
- return this.send(command, optionsOrCb);
831
- }
832
- }
833
-
834
- /**
835
- * <p>Gets the properties associated with a dominant language detection job. Use this operation
836
- * to get the status of a detection job.</p>
837
- */
838
- public describeDominantLanguageDetectionJob(
839
- args: DescribeDominantLanguageDetectionJobCommandInput,
840
- options?: __HttpHandlerOptions
841
- ): Promise<DescribeDominantLanguageDetectionJobCommandOutput>;
842
- public describeDominantLanguageDetectionJob(
843
- args: DescribeDominantLanguageDetectionJobCommandInput,
844
- cb: (err: any, data?: DescribeDominantLanguageDetectionJobCommandOutput) => void
845
- ): void;
846
- public describeDominantLanguageDetectionJob(
847
- args: DescribeDominantLanguageDetectionJobCommandInput,
848
- options: __HttpHandlerOptions,
849
- cb: (err: any, data?: DescribeDominantLanguageDetectionJobCommandOutput) => void
850
- ): void;
851
- public describeDominantLanguageDetectionJob(
852
- args: DescribeDominantLanguageDetectionJobCommandInput,
853
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDominantLanguageDetectionJobCommandOutput) => void),
854
- cb?: (err: any, data?: DescribeDominantLanguageDetectionJobCommandOutput) => void
855
- ): Promise<DescribeDominantLanguageDetectionJobCommandOutput> | void {
856
- const command = new DescribeDominantLanguageDetectionJobCommand(args);
857
- if (typeof optionsOrCb === "function") {
858
- this.send(command, optionsOrCb);
859
- } else if (typeof cb === "function") {
860
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
861
- this.send(command, optionsOrCb || {}, cb);
862
- } else {
863
- return this.send(command, optionsOrCb);
864
- }
865
- }
866
-
867
- /**
868
- * <p>Gets the properties associated with a specific endpoint. Use this operation to get the
869
- * status of an endpoint.</p>
870
- */
871
- public describeEndpoint(
872
- args: DescribeEndpointCommandInput,
873
- options?: __HttpHandlerOptions
874
- ): Promise<DescribeEndpointCommandOutput>;
875
- public describeEndpoint(
876
- args: DescribeEndpointCommandInput,
877
- cb: (err: any, data?: DescribeEndpointCommandOutput) => void
878
- ): void;
879
- public describeEndpoint(
880
- args: DescribeEndpointCommandInput,
881
- options: __HttpHandlerOptions,
882
- cb: (err: any, data?: DescribeEndpointCommandOutput) => void
883
- ): void;
884
- public describeEndpoint(
885
- args: DescribeEndpointCommandInput,
886
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEndpointCommandOutput) => void),
887
- cb?: (err: any, data?: DescribeEndpointCommandOutput) => void
888
- ): Promise<DescribeEndpointCommandOutput> | void {
889
- const command = new DescribeEndpointCommand(args);
890
- if (typeof optionsOrCb === "function") {
891
- this.send(command, optionsOrCb);
892
- } else if (typeof cb === "function") {
893
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
894
- this.send(command, optionsOrCb || {}, cb);
895
- } else {
896
- return this.send(command, optionsOrCb);
897
- }
898
- }
899
-
900
- /**
901
- * <p>Gets the properties associated with an entities detection job. Use this operation to get
902
- * the status of a detection job.</p>
903
- */
904
- public describeEntitiesDetectionJob(
905
- args: DescribeEntitiesDetectionJobCommandInput,
906
- options?: __HttpHandlerOptions
907
- ): Promise<DescribeEntitiesDetectionJobCommandOutput>;
908
- public describeEntitiesDetectionJob(
909
- args: DescribeEntitiesDetectionJobCommandInput,
910
- cb: (err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void
911
- ): void;
912
- public describeEntitiesDetectionJob(
913
- args: DescribeEntitiesDetectionJobCommandInput,
914
- options: __HttpHandlerOptions,
915
- cb: (err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void
916
- ): void;
917
- public describeEntitiesDetectionJob(
918
- args: DescribeEntitiesDetectionJobCommandInput,
919
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void),
920
- cb?: (err: any, data?: DescribeEntitiesDetectionJobCommandOutput) => void
921
- ): Promise<DescribeEntitiesDetectionJobCommandOutput> | void {
922
- const command = new DescribeEntitiesDetectionJobCommand(args);
923
- if (typeof optionsOrCb === "function") {
924
- this.send(command, optionsOrCb);
925
- } else if (typeof cb === "function") {
926
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
927
- this.send(command, optionsOrCb || {}, cb);
928
- } else {
929
- return this.send(command, optionsOrCb);
930
- }
931
- }
932
-
933
- /**
934
- * <p>Provides details about an entity recognizer including status, S3 buckets containing
935
- * training data, recognizer metadata, metrics, and so on.</p>
936
- */
937
- public describeEntityRecognizer(
938
- args: DescribeEntityRecognizerCommandInput,
939
- options?: __HttpHandlerOptions
940
- ): Promise<DescribeEntityRecognizerCommandOutput>;
941
- public describeEntityRecognizer(
942
- args: DescribeEntityRecognizerCommandInput,
943
- cb: (err: any, data?: DescribeEntityRecognizerCommandOutput) => void
944
- ): void;
945
- public describeEntityRecognizer(
946
- args: DescribeEntityRecognizerCommandInput,
947
- options: __HttpHandlerOptions,
948
- cb: (err: any, data?: DescribeEntityRecognizerCommandOutput) => void
949
- ): void;
950
- public describeEntityRecognizer(
951
- args: DescribeEntityRecognizerCommandInput,
952
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEntityRecognizerCommandOutput) => void),
953
- cb?: (err: any, data?: DescribeEntityRecognizerCommandOutput) => void
954
- ): Promise<DescribeEntityRecognizerCommandOutput> | void {
955
- const command = new DescribeEntityRecognizerCommand(args);
956
- if (typeof optionsOrCb === "function") {
957
- this.send(command, optionsOrCb);
958
- } else if (typeof cb === "function") {
959
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
960
- this.send(command, optionsOrCb || {}, cb);
961
- } else {
962
- return this.send(command, optionsOrCb);
963
- }
964
- }
965
-
966
- /**
967
- * <p>Gets the status and details of an events detection job.</p>
968
- */
969
- public describeEventsDetectionJob(
970
- args: DescribeEventsDetectionJobCommandInput,
971
- options?: __HttpHandlerOptions
972
- ): Promise<DescribeEventsDetectionJobCommandOutput>;
973
- public describeEventsDetectionJob(
974
- args: DescribeEventsDetectionJobCommandInput,
975
- cb: (err: any, data?: DescribeEventsDetectionJobCommandOutput) => void
976
- ): void;
977
- public describeEventsDetectionJob(
978
- args: DescribeEventsDetectionJobCommandInput,
979
- options: __HttpHandlerOptions,
980
- cb: (err: any, data?: DescribeEventsDetectionJobCommandOutput) => void
981
- ): void;
982
- public describeEventsDetectionJob(
983
- args: DescribeEventsDetectionJobCommandInput,
984
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEventsDetectionJobCommandOutput) => void),
985
- cb?: (err: any, data?: DescribeEventsDetectionJobCommandOutput) => void
986
- ): Promise<DescribeEventsDetectionJobCommandOutput> | void {
987
- const command = new DescribeEventsDetectionJobCommand(args);
988
- if (typeof optionsOrCb === "function") {
989
- this.send(command, optionsOrCb);
990
- } else if (typeof cb === "function") {
991
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
992
- this.send(command, optionsOrCb || {}, cb);
993
- } else {
994
- return this.send(command, optionsOrCb);
995
- }
996
- }
997
-
998
- /**
999
- * <p>Gets the properties associated with a key phrases detection job. Use this operation to get
1000
- * the status of a detection job.</p>
1001
- */
1002
- public describeKeyPhrasesDetectionJob(
1003
- args: DescribeKeyPhrasesDetectionJobCommandInput,
1004
- options?: __HttpHandlerOptions
1005
- ): Promise<DescribeKeyPhrasesDetectionJobCommandOutput>;
1006
- public describeKeyPhrasesDetectionJob(
1007
- args: DescribeKeyPhrasesDetectionJobCommandInput,
1008
- cb: (err: any, data?: DescribeKeyPhrasesDetectionJobCommandOutput) => void
1009
- ): void;
1010
- public describeKeyPhrasesDetectionJob(
1011
- args: DescribeKeyPhrasesDetectionJobCommandInput,
1012
- options: __HttpHandlerOptions,
1013
- cb: (err: any, data?: DescribeKeyPhrasesDetectionJobCommandOutput) => void
1014
- ): void;
1015
- public describeKeyPhrasesDetectionJob(
1016
- args: DescribeKeyPhrasesDetectionJobCommandInput,
1017
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeKeyPhrasesDetectionJobCommandOutput) => void),
1018
- cb?: (err: any, data?: DescribeKeyPhrasesDetectionJobCommandOutput) => void
1019
- ): Promise<DescribeKeyPhrasesDetectionJobCommandOutput> | void {
1020
- const command = new DescribeKeyPhrasesDetectionJobCommand(args);
1021
- if (typeof optionsOrCb === "function") {
1022
- this.send(command, optionsOrCb);
1023
- } else if (typeof cb === "function") {
1024
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1025
- this.send(command, optionsOrCb || {}, cb);
1026
- } else {
1027
- return this.send(command, optionsOrCb);
1028
- }
1029
- }
1030
-
1031
- /**
1032
- * <p>Gets the properties associated with a PII entities detection job. For example, you can use
1033
- * this operation to get the job status.</p>
1034
- */
1035
- public describePiiEntitiesDetectionJob(
1036
- args: DescribePiiEntitiesDetectionJobCommandInput,
1037
- options?: __HttpHandlerOptions
1038
- ): Promise<DescribePiiEntitiesDetectionJobCommandOutput>;
1039
- public describePiiEntitiesDetectionJob(
1040
- args: DescribePiiEntitiesDetectionJobCommandInput,
1041
- cb: (err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void
1042
- ): void;
1043
- public describePiiEntitiesDetectionJob(
1044
- args: DescribePiiEntitiesDetectionJobCommandInput,
1045
- options: __HttpHandlerOptions,
1046
- cb: (err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void
1047
- ): void;
1048
- public describePiiEntitiesDetectionJob(
1049
- args: DescribePiiEntitiesDetectionJobCommandInput,
1050
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void),
1051
- cb?: (err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void
1052
- ): Promise<DescribePiiEntitiesDetectionJobCommandOutput> | void {
1053
- const command = new DescribePiiEntitiesDetectionJobCommand(args);
1054
- if (typeof optionsOrCb === "function") {
1055
- this.send(command, optionsOrCb);
1056
- } else if (typeof cb === "function") {
1057
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1058
- this.send(command, optionsOrCb || {}, cb);
1059
- } else {
1060
- return this.send(command, optionsOrCb);
1061
- }
1062
- }
1063
-
1064
- /**
1065
- * <p>Gets the properties associated with a sentiment detection job. Use this operation to get
1066
- * the status of a detection job.</p>
1067
- */
1068
- public describeSentimentDetectionJob(
1069
- args: DescribeSentimentDetectionJobCommandInput,
1070
- options?: __HttpHandlerOptions
1071
- ): Promise<DescribeSentimentDetectionJobCommandOutput>;
1072
- public describeSentimentDetectionJob(
1073
- args: DescribeSentimentDetectionJobCommandInput,
1074
- cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void
1075
- ): void;
1076
- public describeSentimentDetectionJob(
1077
- args: DescribeSentimentDetectionJobCommandInput,
1078
- options: __HttpHandlerOptions,
1079
- cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void
1080
- ): void;
1081
- public describeSentimentDetectionJob(
1082
- args: DescribeSentimentDetectionJobCommandInput,
1083
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void),
1084
- cb?: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void
1085
- ): Promise<DescribeSentimentDetectionJobCommandOutput> | void {
1086
- const command = new DescribeSentimentDetectionJobCommand(args);
1087
- if (typeof optionsOrCb === "function") {
1088
- this.send(command, optionsOrCb);
1089
- } else if (typeof cb === "function") {
1090
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1091
- this.send(command, optionsOrCb || {}, cb);
1092
- } else {
1093
- return this.send(command, optionsOrCb);
1094
- }
1095
- }
1096
-
1097
- /**
1098
- * <p>Gets the properties associated with a topic detection job. Use this operation to get
1099
- * the status of a detection job.</p>
1100
- */
1101
- public describeTopicsDetectionJob(
1102
- args: DescribeTopicsDetectionJobCommandInput,
1103
- options?: __HttpHandlerOptions
1104
- ): Promise<DescribeTopicsDetectionJobCommandOutput>;
1105
- public describeTopicsDetectionJob(
1106
- args: DescribeTopicsDetectionJobCommandInput,
1107
- cb: (err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void
1108
- ): void;
1109
- public describeTopicsDetectionJob(
1110
- args: DescribeTopicsDetectionJobCommandInput,
1111
- options: __HttpHandlerOptions,
1112
- cb: (err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void
1113
- ): void;
1114
- public describeTopicsDetectionJob(
1115
- args: DescribeTopicsDetectionJobCommandInput,
1116
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void),
1117
- cb?: (err: any, data?: DescribeTopicsDetectionJobCommandOutput) => void
1118
- ): Promise<DescribeTopicsDetectionJobCommandOutput> | void {
1119
- const command = new DescribeTopicsDetectionJobCommand(args);
1120
- if (typeof optionsOrCb === "function") {
1121
- this.send(command, optionsOrCb);
1122
- } else if (typeof cb === "function") {
1123
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1124
- this.send(command, optionsOrCb || {}, cb);
1125
- } else {
1126
- return this.send(command, optionsOrCb);
1127
- }
1128
- }
1129
-
1130
- /**
1131
- * <p>Determines the dominant language of the input text. For a list of languages that Amazon
1132
- * Comprehend can detect, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html">Amazon Comprehend Supported Languages</a>. </p>
1133
- */
1134
- public detectDominantLanguage(
1135
- args: DetectDominantLanguageCommandInput,
1136
- options?: __HttpHandlerOptions
1137
- ): Promise<DetectDominantLanguageCommandOutput>;
1138
- public detectDominantLanguage(
1139
- args: DetectDominantLanguageCommandInput,
1140
- cb: (err: any, data?: DetectDominantLanguageCommandOutput) => void
1141
- ): void;
1142
- public detectDominantLanguage(
1143
- args: DetectDominantLanguageCommandInput,
1144
- options: __HttpHandlerOptions,
1145
- cb: (err: any, data?: DetectDominantLanguageCommandOutput) => void
1146
- ): void;
1147
- public detectDominantLanguage(
1148
- args: DetectDominantLanguageCommandInput,
1149
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DetectDominantLanguageCommandOutput) => void),
1150
- cb?: (err: any, data?: DetectDominantLanguageCommandOutput) => void
1151
- ): Promise<DetectDominantLanguageCommandOutput> | void {
1152
- const command = new DetectDominantLanguageCommand(args);
1153
- if (typeof optionsOrCb === "function") {
1154
- this.send(command, optionsOrCb);
1155
- } else if (typeof cb === "function") {
1156
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1157
- this.send(command, optionsOrCb || {}, cb);
1158
- } else {
1159
- return this.send(command, optionsOrCb);
1160
- }
1161
- }
1162
-
1163
- /**
1164
- * <p>Inspects text for named entities, and returns information about them. For more
1165
- * information, about named entities, see <a>how-entities</a>. </p>
1166
- */
1167
- public detectEntities(
1168
- args: DetectEntitiesCommandInput,
1169
- options?: __HttpHandlerOptions
1170
- ): Promise<DetectEntitiesCommandOutput>;
1171
- public detectEntities(
1172
- args: DetectEntitiesCommandInput,
1173
- cb: (err: any, data?: DetectEntitiesCommandOutput) => void
1174
- ): void;
1175
- public detectEntities(
1176
- args: DetectEntitiesCommandInput,
1177
- options: __HttpHandlerOptions,
1178
- cb: (err: any, data?: DetectEntitiesCommandOutput) => void
1179
- ): void;
1180
- public detectEntities(
1181
- args: DetectEntitiesCommandInput,
1182
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DetectEntitiesCommandOutput) => void),
1183
- cb?: (err: any, data?: DetectEntitiesCommandOutput) => void
1184
- ): Promise<DetectEntitiesCommandOutput> | void {
1185
- const command = new DetectEntitiesCommand(args);
1186
- if (typeof optionsOrCb === "function") {
1187
- this.send(command, optionsOrCb);
1188
- } else if (typeof cb === "function") {
1189
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1190
- this.send(command, optionsOrCb || {}, cb);
1191
- } else {
1192
- return this.send(command, optionsOrCb);
1193
- }
1194
- }
1195
-
1196
- /**
1197
- * <p>Detects the key noun phrases found in the text. </p>
1198
- */
1199
- public detectKeyPhrases(
1200
- args: DetectKeyPhrasesCommandInput,
1201
- options?: __HttpHandlerOptions
1202
- ): Promise<DetectKeyPhrasesCommandOutput>;
1203
- public detectKeyPhrases(
1204
- args: DetectKeyPhrasesCommandInput,
1205
- cb: (err: any, data?: DetectKeyPhrasesCommandOutput) => void
1206
- ): void;
1207
- public detectKeyPhrases(
1208
- args: DetectKeyPhrasesCommandInput,
1209
- options: __HttpHandlerOptions,
1210
- cb: (err: any, data?: DetectKeyPhrasesCommandOutput) => void
1211
- ): void;
1212
- public detectKeyPhrases(
1213
- args: DetectKeyPhrasesCommandInput,
1214
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DetectKeyPhrasesCommandOutput) => void),
1215
- cb?: (err: any, data?: DetectKeyPhrasesCommandOutput) => void
1216
- ): Promise<DetectKeyPhrasesCommandOutput> | void {
1217
- const command = new DetectKeyPhrasesCommand(args);
1218
- if (typeof optionsOrCb === "function") {
1219
- this.send(command, optionsOrCb);
1220
- } else if (typeof cb === "function") {
1221
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1222
- this.send(command, optionsOrCb || {}, cb);
1223
- } else {
1224
- return this.send(command, optionsOrCb);
1225
- }
1226
- }
1227
-
1228
- /**
1229
- * <p>Inspects the input text for entities that contain personally identifiable information
1230
- * (PII) and returns information about them.</p>
1231
- */
1232
- public detectPiiEntities(
1233
- args: DetectPiiEntitiesCommandInput,
1234
- options?: __HttpHandlerOptions
1235
- ): Promise<DetectPiiEntitiesCommandOutput>;
1236
- public detectPiiEntities(
1237
- args: DetectPiiEntitiesCommandInput,
1238
- cb: (err: any, data?: DetectPiiEntitiesCommandOutput) => void
1239
- ): void;
1240
- public detectPiiEntities(
1241
- args: DetectPiiEntitiesCommandInput,
1242
- options: __HttpHandlerOptions,
1243
- cb: (err: any, data?: DetectPiiEntitiesCommandOutput) => void
1244
- ): void;
1245
- public detectPiiEntities(
1246
- args: DetectPiiEntitiesCommandInput,
1247
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DetectPiiEntitiesCommandOutput) => void),
1248
- cb?: (err: any, data?: DetectPiiEntitiesCommandOutput) => void
1249
- ): Promise<DetectPiiEntitiesCommandOutput> | void {
1250
- const command = new DetectPiiEntitiesCommand(args);
1251
- if (typeof optionsOrCb === "function") {
1252
- this.send(command, optionsOrCb);
1253
- } else if (typeof cb === "function") {
1254
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1255
- this.send(command, optionsOrCb || {}, cb);
1256
- } else {
1257
- return this.send(command, optionsOrCb);
1258
- }
1259
- }
1260
-
1261
- /**
1262
- * <p>Inspects text and returns an inference of the prevailing sentiment
1263
- * (<code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>). </p>
1264
- */
1265
- public detectSentiment(
1266
- args: DetectSentimentCommandInput,
1267
- options?: __HttpHandlerOptions
1268
- ): Promise<DetectSentimentCommandOutput>;
1269
- public detectSentiment(
1270
- args: DetectSentimentCommandInput,
1271
- cb: (err: any, data?: DetectSentimentCommandOutput) => void
1272
- ): void;
1273
- public detectSentiment(
1274
- args: DetectSentimentCommandInput,
1275
- options: __HttpHandlerOptions,
1276
- cb: (err: any, data?: DetectSentimentCommandOutput) => void
1277
- ): void;
1278
- public detectSentiment(
1279
- args: DetectSentimentCommandInput,
1280
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DetectSentimentCommandOutput) => void),
1281
- cb?: (err: any, data?: DetectSentimentCommandOutput) => void
1282
- ): Promise<DetectSentimentCommandOutput> | void {
1283
- const command = new DetectSentimentCommand(args);
1284
- if (typeof optionsOrCb === "function") {
1285
- this.send(command, optionsOrCb);
1286
- } else if (typeof cb === "function") {
1287
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1288
- this.send(command, optionsOrCb || {}, cb);
1289
- } else {
1290
- return this.send(command, optionsOrCb);
1291
- }
1292
- }
1293
-
1294
- /**
1295
- * <p>Inspects text for syntax and the part of speech of words in the document. For more
1296
- * information, <a>how-syntax</a>.</p>
1297
- */
1298
- public detectSyntax(
1299
- args: DetectSyntaxCommandInput,
1300
- options?: __HttpHandlerOptions
1301
- ): Promise<DetectSyntaxCommandOutput>;
1302
- public detectSyntax(args: DetectSyntaxCommandInput, cb: (err: any, data?: DetectSyntaxCommandOutput) => void): void;
1303
- public detectSyntax(
1304
- args: DetectSyntaxCommandInput,
1305
- options: __HttpHandlerOptions,
1306
- cb: (err: any, data?: DetectSyntaxCommandOutput) => void
1307
- ): void;
1308
- public detectSyntax(
1309
- args: DetectSyntaxCommandInput,
1310
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DetectSyntaxCommandOutput) => void),
1311
- cb?: (err: any, data?: DetectSyntaxCommandOutput) => void
1312
- ): Promise<DetectSyntaxCommandOutput> | void {
1313
- const command = new DetectSyntaxCommand(args);
1314
- if (typeof optionsOrCb === "function") {
1315
- this.send(command, optionsOrCb);
1316
- } else if (typeof cb === "function") {
1317
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1318
- this.send(command, optionsOrCb || {}, cb);
1319
- } else {
1320
- return this.send(command, optionsOrCb);
1321
- }
1322
- }
1323
-
1324
- /**
1325
- * <p>Gets a list of the documentation classification jobs that you have submitted.</p>
1326
- */
1327
- public listDocumentClassificationJobs(
1328
- args: ListDocumentClassificationJobsCommandInput,
1329
- options?: __HttpHandlerOptions
1330
- ): Promise<ListDocumentClassificationJobsCommandOutput>;
1331
- public listDocumentClassificationJobs(
1332
- args: ListDocumentClassificationJobsCommandInput,
1333
- cb: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void
1334
- ): void;
1335
- public listDocumentClassificationJobs(
1336
- args: ListDocumentClassificationJobsCommandInput,
1337
- options: __HttpHandlerOptions,
1338
- cb: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void
1339
- ): void;
1340
- public listDocumentClassificationJobs(
1341
- args: ListDocumentClassificationJobsCommandInput,
1342
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDocumentClassificationJobsCommandOutput) => void),
1343
- cb?: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void
1344
- ): Promise<ListDocumentClassificationJobsCommandOutput> | void {
1345
- const command = new ListDocumentClassificationJobsCommand(args);
1346
- if (typeof optionsOrCb === "function") {
1347
- this.send(command, optionsOrCb);
1348
- } else if (typeof cb === "function") {
1349
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1350
- this.send(command, optionsOrCb || {}, cb);
1351
- } else {
1352
- return this.send(command, optionsOrCb);
1353
- }
1354
- }
1355
-
1356
- /**
1357
- * <p>Gets a list of the document classifiers that you have created.</p>
1358
- */
1359
- public listDocumentClassifiers(
1360
- args: ListDocumentClassifiersCommandInput,
1361
- options?: __HttpHandlerOptions
1362
- ): Promise<ListDocumentClassifiersCommandOutput>;
1363
- public listDocumentClassifiers(
1364
- args: ListDocumentClassifiersCommandInput,
1365
- cb: (err: any, data?: ListDocumentClassifiersCommandOutput) => void
1366
- ): void;
1367
- public listDocumentClassifiers(
1368
- args: ListDocumentClassifiersCommandInput,
1369
- options: __HttpHandlerOptions,
1370
- cb: (err: any, data?: ListDocumentClassifiersCommandOutput) => void
1371
- ): void;
1372
- public listDocumentClassifiers(
1373
- args: ListDocumentClassifiersCommandInput,
1374
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDocumentClassifiersCommandOutput) => void),
1375
- cb?: (err: any, data?: ListDocumentClassifiersCommandOutput) => void
1376
- ): Promise<ListDocumentClassifiersCommandOutput> | void {
1377
- const command = new ListDocumentClassifiersCommand(args);
1378
- if (typeof optionsOrCb === "function") {
1379
- this.send(command, optionsOrCb);
1380
- } else if (typeof cb === "function") {
1381
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1382
- this.send(command, optionsOrCb || {}, cb);
1383
- } else {
1384
- return this.send(command, optionsOrCb);
1385
- }
1386
- }
1387
-
1388
- /**
1389
- * <p>Gets a list of summaries of the document classifiers that you have created</p>
1390
- */
1391
- public listDocumentClassifierSummaries(
1392
- args: ListDocumentClassifierSummariesCommandInput,
1393
- options?: __HttpHandlerOptions
1394
- ): Promise<ListDocumentClassifierSummariesCommandOutput>;
1395
- public listDocumentClassifierSummaries(
1396
- args: ListDocumentClassifierSummariesCommandInput,
1397
- cb: (err: any, data?: ListDocumentClassifierSummariesCommandOutput) => void
1398
- ): void;
1399
- public listDocumentClassifierSummaries(
1400
- args: ListDocumentClassifierSummariesCommandInput,
1401
- options: __HttpHandlerOptions,
1402
- cb: (err: any, data?: ListDocumentClassifierSummariesCommandOutput) => void
1403
- ): void;
1404
- public listDocumentClassifierSummaries(
1405
- args: ListDocumentClassifierSummariesCommandInput,
1406
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDocumentClassifierSummariesCommandOutput) => void),
1407
- cb?: (err: any, data?: ListDocumentClassifierSummariesCommandOutput) => void
1408
- ): Promise<ListDocumentClassifierSummariesCommandOutput> | void {
1409
- const command = new ListDocumentClassifierSummariesCommand(args);
1410
- if (typeof optionsOrCb === "function") {
1411
- this.send(command, optionsOrCb);
1412
- } else if (typeof cb === "function") {
1413
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1414
- this.send(command, optionsOrCb || {}, cb);
1415
- } else {
1416
- return this.send(command, optionsOrCb);
1417
- }
1418
- }
1419
-
1420
- /**
1421
- * <p>Gets a list of the dominant language detection jobs that you have submitted.</p>
1422
- */
1423
- public listDominantLanguageDetectionJobs(
1424
- args: ListDominantLanguageDetectionJobsCommandInput,
1425
- options?: __HttpHandlerOptions
1426
- ): Promise<ListDominantLanguageDetectionJobsCommandOutput>;
1427
- public listDominantLanguageDetectionJobs(
1428
- args: ListDominantLanguageDetectionJobsCommandInput,
1429
- cb: (err: any, data?: ListDominantLanguageDetectionJobsCommandOutput) => void
1430
- ): void;
1431
- public listDominantLanguageDetectionJobs(
1432
- args: ListDominantLanguageDetectionJobsCommandInput,
1433
- options: __HttpHandlerOptions,
1434
- cb: (err: any, data?: ListDominantLanguageDetectionJobsCommandOutput) => void
1435
- ): void;
1436
- public listDominantLanguageDetectionJobs(
1437
- args: ListDominantLanguageDetectionJobsCommandInput,
1438
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDominantLanguageDetectionJobsCommandOutput) => void),
1439
- cb?: (err: any, data?: ListDominantLanguageDetectionJobsCommandOutput) => void
1440
- ): Promise<ListDominantLanguageDetectionJobsCommandOutput> | void {
1441
- const command = new ListDominantLanguageDetectionJobsCommand(args);
1442
- if (typeof optionsOrCb === "function") {
1443
- this.send(command, optionsOrCb);
1444
- } else if (typeof cb === "function") {
1445
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1446
- this.send(command, optionsOrCb || {}, cb);
1447
- } else {
1448
- return this.send(command, optionsOrCb);
1449
- }
1450
- }
1451
-
1452
- /**
1453
- * <p>Gets a list of all existing endpoints that you've created.</p>
1454
- */
1455
- public listEndpoints(
1456
- args: ListEndpointsCommandInput,
1457
- options?: __HttpHandlerOptions
1458
- ): Promise<ListEndpointsCommandOutput>;
1459
- public listEndpoints(
1460
- args: ListEndpointsCommandInput,
1461
- cb: (err: any, data?: ListEndpointsCommandOutput) => void
1462
- ): void;
1463
- public listEndpoints(
1464
- args: ListEndpointsCommandInput,
1465
- options: __HttpHandlerOptions,
1466
- cb: (err: any, data?: ListEndpointsCommandOutput) => void
1467
- ): void;
1468
- public listEndpoints(
1469
- args: ListEndpointsCommandInput,
1470
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEndpointsCommandOutput) => void),
1471
- cb?: (err: any, data?: ListEndpointsCommandOutput) => void
1472
- ): Promise<ListEndpointsCommandOutput> | void {
1473
- const command = new ListEndpointsCommand(args);
1474
- if (typeof optionsOrCb === "function") {
1475
- this.send(command, optionsOrCb);
1476
- } else if (typeof cb === "function") {
1477
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1478
- this.send(command, optionsOrCb || {}, cb);
1479
- } else {
1480
- return this.send(command, optionsOrCb);
1481
- }
1482
- }
1483
-
1484
- /**
1485
- * <p>Gets a list of the entity detection jobs that you have submitted.</p>
1486
- */
1487
- public listEntitiesDetectionJobs(
1488
- args: ListEntitiesDetectionJobsCommandInput,
1489
- options?: __HttpHandlerOptions
1490
- ): Promise<ListEntitiesDetectionJobsCommandOutput>;
1491
- public listEntitiesDetectionJobs(
1492
- args: ListEntitiesDetectionJobsCommandInput,
1493
- cb: (err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void
1494
- ): void;
1495
- public listEntitiesDetectionJobs(
1496
- args: ListEntitiesDetectionJobsCommandInput,
1497
- options: __HttpHandlerOptions,
1498
- cb: (err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void
1499
- ): void;
1500
- public listEntitiesDetectionJobs(
1501
- args: ListEntitiesDetectionJobsCommandInput,
1502
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void),
1503
- cb?: (err: any, data?: ListEntitiesDetectionJobsCommandOutput) => void
1504
- ): Promise<ListEntitiesDetectionJobsCommandOutput> | void {
1505
- const command = new ListEntitiesDetectionJobsCommand(args);
1506
- if (typeof optionsOrCb === "function") {
1507
- this.send(command, optionsOrCb);
1508
- } else if (typeof cb === "function") {
1509
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1510
- this.send(command, optionsOrCb || {}, cb);
1511
- } else {
1512
- return this.send(command, optionsOrCb);
1513
- }
1514
- }
1515
-
1516
- /**
1517
- * <p>Gets a list of the properties of all entity recognizers that you created, including
1518
- * recognizers currently in training. Allows you to filter the list of recognizers based on
1519
- * criteria such as status and submission time. This call returns up to 500 entity recognizers in
1520
- * the list, with a default number of 100 recognizers in the list.</p>
1521
- * <p>The results of this list are not in any particular order. Please get the list and sort
1522
- * locally if needed.</p>
1523
- */
1524
- public listEntityRecognizers(
1525
- args: ListEntityRecognizersCommandInput,
1526
- options?: __HttpHandlerOptions
1527
- ): Promise<ListEntityRecognizersCommandOutput>;
1528
- public listEntityRecognizers(
1529
- args: ListEntityRecognizersCommandInput,
1530
- cb: (err: any, data?: ListEntityRecognizersCommandOutput) => void
1531
- ): void;
1532
- public listEntityRecognizers(
1533
- args: ListEntityRecognizersCommandInput,
1534
- options: __HttpHandlerOptions,
1535
- cb: (err: any, data?: ListEntityRecognizersCommandOutput) => void
1536
- ): void;
1537
- public listEntityRecognizers(
1538
- args: ListEntityRecognizersCommandInput,
1539
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEntityRecognizersCommandOutput) => void),
1540
- cb?: (err: any, data?: ListEntityRecognizersCommandOutput) => void
1541
- ): Promise<ListEntityRecognizersCommandOutput> | void {
1542
- const command = new ListEntityRecognizersCommand(args);
1543
- if (typeof optionsOrCb === "function") {
1544
- this.send(command, optionsOrCb);
1545
- } else if (typeof cb === "function") {
1546
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1547
- this.send(command, optionsOrCb || {}, cb);
1548
- } else {
1549
- return this.send(command, optionsOrCb);
1550
- }
1551
- }
1552
-
1553
- /**
1554
- * <p>Gets a list of summaries for the entity recognizers that you have created.</p>
1555
- */
1556
- public listEntityRecognizerSummaries(
1557
- args: ListEntityRecognizerSummariesCommandInput,
1558
- options?: __HttpHandlerOptions
1559
- ): Promise<ListEntityRecognizerSummariesCommandOutput>;
1560
- public listEntityRecognizerSummaries(
1561
- args: ListEntityRecognizerSummariesCommandInput,
1562
- cb: (err: any, data?: ListEntityRecognizerSummariesCommandOutput) => void
1563
- ): void;
1564
- public listEntityRecognizerSummaries(
1565
- args: ListEntityRecognizerSummariesCommandInput,
1566
- options: __HttpHandlerOptions,
1567
- cb: (err: any, data?: ListEntityRecognizerSummariesCommandOutput) => void
1568
- ): void;
1569
- public listEntityRecognizerSummaries(
1570
- args: ListEntityRecognizerSummariesCommandInput,
1571
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEntityRecognizerSummariesCommandOutput) => void),
1572
- cb?: (err: any, data?: ListEntityRecognizerSummariesCommandOutput) => void
1573
- ): Promise<ListEntityRecognizerSummariesCommandOutput> | void {
1574
- const command = new ListEntityRecognizerSummariesCommand(args);
1575
- if (typeof optionsOrCb === "function") {
1576
- this.send(command, optionsOrCb);
1577
- } else if (typeof cb === "function") {
1578
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1579
- this.send(command, optionsOrCb || {}, cb);
1580
- } else {
1581
- return this.send(command, optionsOrCb);
1582
- }
1583
- }
1584
-
1585
- /**
1586
- * <p>Gets a list of the events detection jobs that you have submitted.</p>
1587
- */
1588
- public listEventsDetectionJobs(
1589
- args: ListEventsDetectionJobsCommandInput,
1590
- options?: __HttpHandlerOptions
1591
- ): Promise<ListEventsDetectionJobsCommandOutput>;
1592
- public listEventsDetectionJobs(
1593
- args: ListEventsDetectionJobsCommandInput,
1594
- cb: (err: any, data?: ListEventsDetectionJobsCommandOutput) => void
1595
- ): void;
1596
- public listEventsDetectionJobs(
1597
- args: ListEventsDetectionJobsCommandInput,
1598
- options: __HttpHandlerOptions,
1599
- cb: (err: any, data?: ListEventsDetectionJobsCommandOutput) => void
1600
- ): void;
1601
- public listEventsDetectionJobs(
1602
- args: ListEventsDetectionJobsCommandInput,
1603
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventsDetectionJobsCommandOutput) => void),
1604
- cb?: (err: any, data?: ListEventsDetectionJobsCommandOutput) => void
1605
- ): Promise<ListEventsDetectionJobsCommandOutput> | void {
1606
- const command = new ListEventsDetectionJobsCommand(args);
1607
- if (typeof optionsOrCb === "function") {
1608
- this.send(command, optionsOrCb);
1609
- } else if (typeof cb === "function") {
1610
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1611
- this.send(command, optionsOrCb || {}, cb);
1612
- } else {
1613
- return this.send(command, optionsOrCb);
1614
- }
1615
- }
1616
-
1617
- /**
1618
- * <p>Get a list of key phrase detection jobs that you have submitted.</p>
1619
- */
1620
- public listKeyPhrasesDetectionJobs(
1621
- args: ListKeyPhrasesDetectionJobsCommandInput,
1622
- options?: __HttpHandlerOptions
1623
- ): Promise<ListKeyPhrasesDetectionJobsCommandOutput>;
1624
- public listKeyPhrasesDetectionJobs(
1625
- args: ListKeyPhrasesDetectionJobsCommandInput,
1626
- cb: (err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void
1627
- ): void;
1628
- public listKeyPhrasesDetectionJobs(
1629
- args: ListKeyPhrasesDetectionJobsCommandInput,
1630
- options: __HttpHandlerOptions,
1631
- cb: (err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void
1632
- ): void;
1633
- public listKeyPhrasesDetectionJobs(
1634
- args: ListKeyPhrasesDetectionJobsCommandInput,
1635
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void),
1636
- cb?: (err: any, data?: ListKeyPhrasesDetectionJobsCommandOutput) => void
1637
- ): Promise<ListKeyPhrasesDetectionJobsCommandOutput> | void {
1638
- const command = new ListKeyPhrasesDetectionJobsCommand(args);
1639
- if (typeof optionsOrCb === "function") {
1640
- this.send(command, optionsOrCb);
1641
- } else if (typeof cb === "function") {
1642
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1643
- this.send(command, optionsOrCb || {}, cb);
1644
- } else {
1645
- return this.send(command, optionsOrCb);
1646
- }
1647
- }
1648
-
1649
- /**
1650
- * <p>Gets a list of the PII entity detection jobs that you have submitted.</p>
1651
- */
1652
- public listPiiEntitiesDetectionJobs(
1653
- args: ListPiiEntitiesDetectionJobsCommandInput,
1654
- options?: __HttpHandlerOptions
1655
- ): Promise<ListPiiEntitiesDetectionJobsCommandOutput>;
1656
- public listPiiEntitiesDetectionJobs(
1657
- args: ListPiiEntitiesDetectionJobsCommandInput,
1658
- cb: (err: any, data?: ListPiiEntitiesDetectionJobsCommandOutput) => void
1659
- ): void;
1660
- public listPiiEntitiesDetectionJobs(
1661
- args: ListPiiEntitiesDetectionJobsCommandInput,
1662
- options: __HttpHandlerOptions,
1663
- cb: (err: any, data?: ListPiiEntitiesDetectionJobsCommandOutput) => void
1664
- ): void;
1665
- public listPiiEntitiesDetectionJobs(
1666
- args: ListPiiEntitiesDetectionJobsCommandInput,
1667
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPiiEntitiesDetectionJobsCommandOutput) => void),
1668
- cb?: (err: any, data?: ListPiiEntitiesDetectionJobsCommandOutput) => void
1669
- ): Promise<ListPiiEntitiesDetectionJobsCommandOutput> | void {
1670
- const command = new ListPiiEntitiesDetectionJobsCommand(args);
1671
- if (typeof optionsOrCb === "function") {
1672
- this.send(command, optionsOrCb);
1673
- } else if (typeof cb === "function") {
1674
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1675
- this.send(command, optionsOrCb || {}, cb);
1676
- } else {
1677
- return this.send(command, optionsOrCb);
1678
- }
1679
- }
1680
-
1681
- /**
1682
- * <p>Gets a list of sentiment detection jobs that you have submitted.</p>
1683
- */
1684
- public listSentimentDetectionJobs(
1685
- args: ListSentimentDetectionJobsCommandInput,
1686
- options?: __HttpHandlerOptions
1687
- ): Promise<ListSentimentDetectionJobsCommandOutput>;
1688
- public listSentimentDetectionJobs(
1689
- args: ListSentimentDetectionJobsCommandInput,
1690
- cb: (err: any, data?: ListSentimentDetectionJobsCommandOutput) => void
1691
- ): void;
1692
- public listSentimentDetectionJobs(
1693
- args: ListSentimentDetectionJobsCommandInput,
1694
- options: __HttpHandlerOptions,
1695
- cb: (err: any, data?: ListSentimentDetectionJobsCommandOutput) => void
1696
- ): void;
1697
- public listSentimentDetectionJobs(
1698
- args: ListSentimentDetectionJobsCommandInput,
1699
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListSentimentDetectionJobsCommandOutput) => void),
1700
- cb?: (err: any, data?: ListSentimentDetectionJobsCommandOutput) => void
1701
- ): Promise<ListSentimentDetectionJobsCommandOutput> | void {
1702
- const command = new ListSentimentDetectionJobsCommand(args);
1703
- if (typeof optionsOrCb === "function") {
1704
- this.send(command, optionsOrCb);
1705
- } else if (typeof cb === "function") {
1706
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1707
- this.send(command, optionsOrCb || {}, cb);
1708
- } else {
1709
- return this.send(command, optionsOrCb);
1710
- }
1711
- }
1712
-
1713
- /**
1714
- * <p>Lists all tags associated with a given Amazon Comprehend resource. </p>
1715
- */
1716
- public listTagsForResource(
1717
- args: ListTagsForResourceCommandInput,
1718
- options?: __HttpHandlerOptions
1719
- ): Promise<ListTagsForResourceCommandOutput>;
1720
- public listTagsForResource(
1721
- args: ListTagsForResourceCommandInput,
1722
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1723
- ): void;
1724
- public listTagsForResource(
1725
- args: ListTagsForResourceCommandInput,
1726
- options: __HttpHandlerOptions,
1727
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1728
- ): void;
1729
- public listTagsForResource(
1730
- args: ListTagsForResourceCommandInput,
1731
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
1732
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
1733
- ): Promise<ListTagsForResourceCommandOutput> | void {
1734
- const command = new ListTagsForResourceCommand(args);
1735
- if (typeof optionsOrCb === "function") {
1736
- this.send(command, optionsOrCb);
1737
- } else if (typeof cb === "function") {
1738
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1739
- this.send(command, optionsOrCb || {}, cb);
1740
- } else {
1741
- return this.send(command, optionsOrCb);
1742
- }
1743
- }
1744
-
1745
- /**
1746
- * <p>Gets a list of the topic detection jobs that you have submitted.</p>
1747
- */
1748
- public listTopicsDetectionJobs(
1749
- args: ListTopicsDetectionJobsCommandInput,
1750
- options?: __HttpHandlerOptions
1751
- ): Promise<ListTopicsDetectionJobsCommandOutput>;
1752
- public listTopicsDetectionJobs(
1753
- args: ListTopicsDetectionJobsCommandInput,
1754
- cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void
1755
- ): void;
1756
- public listTopicsDetectionJobs(
1757
- args: ListTopicsDetectionJobsCommandInput,
1758
- options: __HttpHandlerOptions,
1759
- cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void
1760
- ): void;
1761
- public listTopicsDetectionJobs(
1762
- args: ListTopicsDetectionJobsCommandInput,
1763
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTopicsDetectionJobsCommandOutput) => void),
1764
- cb?: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void
1765
- ): Promise<ListTopicsDetectionJobsCommandOutput> | void {
1766
- const command = new ListTopicsDetectionJobsCommand(args);
1767
- if (typeof optionsOrCb === "function") {
1768
- this.send(command, optionsOrCb);
1769
- } else if (typeof cb === "function") {
1770
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1771
- this.send(command, optionsOrCb || {}, cb);
1772
- } else {
1773
- return this.send(command, optionsOrCb);
1774
- }
1775
- }
1776
-
1777
- /**
1778
- * <p>Starts an asynchronous document classification job. Use the operation to track the progress of the
1779
- * job.</p>
1780
- */
1781
- public startDocumentClassificationJob(
1782
- args: StartDocumentClassificationJobCommandInput,
1783
- options?: __HttpHandlerOptions
1784
- ): Promise<StartDocumentClassificationJobCommandOutput>;
1785
- public startDocumentClassificationJob(
1786
- args: StartDocumentClassificationJobCommandInput,
1787
- cb: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void
1788
- ): void;
1789
- public startDocumentClassificationJob(
1790
- args: StartDocumentClassificationJobCommandInput,
1791
- options: __HttpHandlerOptions,
1792
- cb: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void
1793
- ): void;
1794
- public startDocumentClassificationJob(
1795
- args: StartDocumentClassificationJobCommandInput,
1796
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartDocumentClassificationJobCommandOutput) => void),
1797
- cb?: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void
1798
- ): Promise<StartDocumentClassificationJobCommandOutput> | void {
1799
- const command = new StartDocumentClassificationJobCommand(args);
1800
- if (typeof optionsOrCb === "function") {
1801
- this.send(command, optionsOrCb);
1802
- } else if (typeof cb === "function") {
1803
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1804
- this.send(command, optionsOrCb || {}, cb);
1805
- } else {
1806
- return this.send(command, optionsOrCb);
1807
- }
1808
- }
1809
-
1810
- /**
1811
- * <p>Starts an asynchronous dominant language detection job for a collection of documents. Use
1812
- * the operation to track the status
1813
- * of a job.</p>
1814
- */
1815
- public startDominantLanguageDetectionJob(
1816
- args: StartDominantLanguageDetectionJobCommandInput,
1817
- options?: __HttpHandlerOptions
1818
- ): Promise<StartDominantLanguageDetectionJobCommandOutput>;
1819
- public startDominantLanguageDetectionJob(
1820
- args: StartDominantLanguageDetectionJobCommandInput,
1821
- cb: (err: any, data?: StartDominantLanguageDetectionJobCommandOutput) => void
1822
- ): void;
1823
- public startDominantLanguageDetectionJob(
1824
- args: StartDominantLanguageDetectionJobCommandInput,
1825
- options: __HttpHandlerOptions,
1826
- cb: (err: any, data?: StartDominantLanguageDetectionJobCommandOutput) => void
1827
- ): void;
1828
- public startDominantLanguageDetectionJob(
1829
- args: StartDominantLanguageDetectionJobCommandInput,
1830
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartDominantLanguageDetectionJobCommandOutput) => void),
1831
- cb?: (err: any, data?: StartDominantLanguageDetectionJobCommandOutput) => void
1832
- ): Promise<StartDominantLanguageDetectionJobCommandOutput> | void {
1833
- const command = new StartDominantLanguageDetectionJobCommand(args);
1834
- if (typeof optionsOrCb === "function") {
1835
- this.send(command, optionsOrCb);
1836
- } else if (typeof cb === "function") {
1837
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1838
- this.send(command, optionsOrCb || {}, cb);
1839
- } else {
1840
- return this.send(command, optionsOrCb);
1841
- }
1842
- }
1843
-
1844
- /**
1845
- * <p>Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.</p>
1846
- * <p>This API can be used for either standard entity detection or custom entity recognition. In
1847
- * order to be used for custom entity recognition, the optional <code>EntityRecognizerArn</code>
1848
- * must be used in order to provide access to the recognizer being used to detect the custom
1849
- * entity.</p>
1850
- */
1851
- public startEntitiesDetectionJob(
1852
- args: StartEntitiesDetectionJobCommandInput,
1853
- options?: __HttpHandlerOptions
1854
- ): Promise<StartEntitiesDetectionJobCommandOutput>;
1855
- public startEntitiesDetectionJob(
1856
- args: StartEntitiesDetectionJobCommandInput,
1857
- cb: (err: any, data?: StartEntitiesDetectionJobCommandOutput) => void
1858
- ): void;
1859
- public startEntitiesDetectionJob(
1860
- args: StartEntitiesDetectionJobCommandInput,
1861
- options: __HttpHandlerOptions,
1862
- cb: (err: any, data?: StartEntitiesDetectionJobCommandOutput) => void
1863
- ): void;
1864
- public startEntitiesDetectionJob(
1865
- args: StartEntitiesDetectionJobCommandInput,
1866
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartEntitiesDetectionJobCommandOutput) => void),
1867
- cb?: (err: any, data?: StartEntitiesDetectionJobCommandOutput) => void
1868
- ): Promise<StartEntitiesDetectionJobCommandOutput> | void {
1869
- const command = new StartEntitiesDetectionJobCommand(args);
1870
- if (typeof optionsOrCb === "function") {
1871
- this.send(command, optionsOrCb);
1872
- } else if (typeof cb === "function") {
1873
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1874
- this.send(command, optionsOrCb || {}, cb);
1875
- } else {
1876
- return this.send(command, optionsOrCb);
1877
- }
1878
- }
1879
-
1880
- /**
1881
- * <p>Starts an asynchronous event detection job for a collection of documents.</p>
1882
- */
1883
- public startEventsDetectionJob(
1884
- args: StartEventsDetectionJobCommandInput,
1885
- options?: __HttpHandlerOptions
1886
- ): Promise<StartEventsDetectionJobCommandOutput>;
1887
- public startEventsDetectionJob(
1888
- args: StartEventsDetectionJobCommandInput,
1889
- cb: (err: any, data?: StartEventsDetectionJobCommandOutput) => void
1890
- ): void;
1891
- public startEventsDetectionJob(
1892
- args: StartEventsDetectionJobCommandInput,
1893
- options: __HttpHandlerOptions,
1894
- cb: (err: any, data?: StartEventsDetectionJobCommandOutput) => void
1895
- ): void;
1896
- public startEventsDetectionJob(
1897
- args: StartEventsDetectionJobCommandInput,
1898
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartEventsDetectionJobCommandOutput) => void),
1899
- cb?: (err: any, data?: StartEventsDetectionJobCommandOutput) => void
1900
- ): Promise<StartEventsDetectionJobCommandOutput> | void {
1901
- const command = new StartEventsDetectionJobCommand(args);
1902
- if (typeof optionsOrCb === "function") {
1903
- this.send(command, optionsOrCb);
1904
- } else if (typeof cb === "function") {
1905
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1906
- this.send(command, optionsOrCb || {}, cb);
1907
- } else {
1908
- return this.send(command, optionsOrCb);
1909
- }
1910
- }
1911
-
1912
- /**
1913
- * <p>Starts an asynchronous key phrase detection job for a collection of documents. Use the
1914
- * operation to track the status of a
1915
- * job.</p>
1916
- */
1917
- public startKeyPhrasesDetectionJob(
1918
- args: StartKeyPhrasesDetectionJobCommandInput,
1919
- options?: __HttpHandlerOptions
1920
- ): Promise<StartKeyPhrasesDetectionJobCommandOutput>;
1921
- public startKeyPhrasesDetectionJob(
1922
- args: StartKeyPhrasesDetectionJobCommandInput,
1923
- cb: (err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void
1924
- ): void;
1925
- public startKeyPhrasesDetectionJob(
1926
- args: StartKeyPhrasesDetectionJobCommandInput,
1927
- options: __HttpHandlerOptions,
1928
- cb: (err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void
1929
- ): void;
1930
- public startKeyPhrasesDetectionJob(
1931
- args: StartKeyPhrasesDetectionJobCommandInput,
1932
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void),
1933
- cb?: (err: any, data?: StartKeyPhrasesDetectionJobCommandOutput) => void
1934
- ): Promise<StartKeyPhrasesDetectionJobCommandOutput> | void {
1935
- const command = new StartKeyPhrasesDetectionJobCommand(args);
1936
- if (typeof optionsOrCb === "function") {
1937
- this.send(command, optionsOrCb);
1938
- } else if (typeof cb === "function") {
1939
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1940
- this.send(command, optionsOrCb || {}, cb);
1941
- } else {
1942
- return this.send(command, optionsOrCb);
1943
- }
1944
- }
1945
-
1946
- /**
1947
- * <p>Starts an asynchronous PII entity detection job for a collection of documents.</p>
1948
- */
1949
- public startPiiEntitiesDetectionJob(
1950
- args: StartPiiEntitiesDetectionJobCommandInput,
1951
- options?: __HttpHandlerOptions
1952
- ): Promise<StartPiiEntitiesDetectionJobCommandOutput>;
1953
- public startPiiEntitiesDetectionJob(
1954
- args: StartPiiEntitiesDetectionJobCommandInput,
1955
- cb: (err: any, data?: StartPiiEntitiesDetectionJobCommandOutput) => void
1956
- ): void;
1957
- public startPiiEntitiesDetectionJob(
1958
- args: StartPiiEntitiesDetectionJobCommandInput,
1959
- options: __HttpHandlerOptions,
1960
- cb: (err: any, data?: StartPiiEntitiesDetectionJobCommandOutput) => void
1961
- ): void;
1962
- public startPiiEntitiesDetectionJob(
1963
- args: StartPiiEntitiesDetectionJobCommandInput,
1964
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartPiiEntitiesDetectionJobCommandOutput) => void),
1965
- cb?: (err: any, data?: StartPiiEntitiesDetectionJobCommandOutput) => void
1966
- ): Promise<StartPiiEntitiesDetectionJobCommandOutput> | void {
1967
- const command = new StartPiiEntitiesDetectionJobCommand(args);
1968
- if (typeof optionsOrCb === "function") {
1969
- this.send(command, optionsOrCb);
1970
- } else if (typeof cb === "function") {
1971
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1972
- this.send(command, optionsOrCb || {}, cb);
1973
- } else {
1974
- return this.send(command, optionsOrCb);
1975
- }
1976
- }
1977
-
1978
- /**
1979
- * <p>Starts an asynchronous sentiment detection job for a collection of documents. use the
1980
- * operation to track the status of a
1981
- * job.</p>
1982
- */
1983
- public startSentimentDetectionJob(
1984
- args: StartSentimentDetectionJobCommandInput,
1985
- options?: __HttpHandlerOptions
1986
- ): Promise<StartSentimentDetectionJobCommandOutput>;
1987
- public startSentimentDetectionJob(
1988
- args: StartSentimentDetectionJobCommandInput,
1989
- cb: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void
1990
- ): void;
1991
- public startSentimentDetectionJob(
1992
- args: StartSentimentDetectionJobCommandInput,
1993
- options: __HttpHandlerOptions,
1994
- cb: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void
1995
- ): void;
1996
- public startSentimentDetectionJob(
1997
- args: StartSentimentDetectionJobCommandInput,
1998
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartSentimentDetectionJobCommandOutput) => void),
1999
- cb?: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void
2000
- ): Promise<StartSentimentDetectionJobCommandOutput> | void {
2001
- const command = new StartSentimentDetectionJobCommand(args);
2002
- if (typeof optionsOrCb === "function") {
2003
- this.send(command, optionsOrCb);
2004
- } else if (typeof cb === "function") {
2005
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2006
- this.send(command, optionsOrCb || {}, cb);
2007
- } else {
2008
- return this.send(command, optionsOrCb);
2009
- }
2010
- }
2011
-
2012
- /**
2013
- * <p>Starts an asynchronous topic detection job. Use the
2014
- * <code>DescribeTopicDetectionJob</code> operation to track the status of a job.</p>
2015
- */
2016
- public startTopicsDetectionJob(
2017
- args: StartTopicsDetectionJobCommandInput,
2018
- options?: __HttpHandlerOptions
2019
- ): Promise<StartTopicsDetectionJobCommandOutput>;
2020
- public startTopicsDetectionJob(
2021
- args: StartTopicsDetectionJobCommandInput,
2022
- cb: (err: any, data?: StartTopicsDetectionJobCommandOutput) => void
2023
- ): void;
2024
- public startTopicsDetectionJob(
2025
- args: StartTopicsDetectionJobCommandInput,
2026
- options: __HttpHandlerOptions,
2027
- cb: (err: any, data?: StartTopicsDetectionJobCommandOutput) => void
2028
- ): void;
2029
- public startTopicsDetectionJob(
2030
- args: StartTopicsDetectionJobCommandInput,
2031
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartTopicsDetectionJobCommandOutput) => void),
2032
- cb?: (err: any, data?: StartTopicsDetectionJobCommandOutput) => void
2033
- ): Promise<StartTopicsDetectionJobCommandOutput> | void {
2034
- const command = new StartTopicsDetectionJobCommand(args);
2035
- if (typeof optionsOrCb === "function") {
2036
- this.send(command, optionsOrCb);
2037
- } else if (typeof cb === "function") {
2038
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2039
- this.send(command, optionsOrCb || {}, cb);
2040
- } else {
2041
- return this.send(command, optionsOrCb);
2042
- }
2043
- }
2044
-
2045
- /**
2046
- * <p>Stops a dominant language detection job in progress.</p>
2047
- * <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
2048
- * into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
2049
- * is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
2050
- * <code>STOPPED</code> state.</p>
2051
- * <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
2052
- * <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
2053
- * Internal Request Exception. </p>
2054
- * <p>When a job is stopped, any documents already processed are written to the output
2055
- * location.</p>
2056
- */
2057
- public stopDominantLanguageDetectionJob(
2058
- args: StopDominantLanguageDetectionJobCommandInput,
2059
- options?: __HttpHandlerOptions
2060
- ): Promise<StopDominantLanguageDetectionJobCommandOutput>;
2061
- public stopDominantLanguageDetectionJob(
2062
- args: StopDominantLanguageDetectionJobCommandInput,
2063
- cb: (err: any, data?: StopDominantLanguageDetectionJobCommandOutput) => void
2064
- ): void;
2065
- public stopDominantLanguageDetectionJob(
2066
- args: StopDominantLanguageDetectionJobCommandInput,
2067
- options: __HttpHandlerOptions,
2068
- cb: (err: any, data?: StopDominantLanguageDetectionJobCommandOutput) => void
2069
- ): void;
2070
- public stopDominantLanguageDetectionJob(
2071
- args: StopDominantLanguageDetectionJobCommandInput,
2072
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopDominantLanguageDetectionJobCommandOutput) => void),
2073
- cb?: (err: any, data?: StopDominantLanguageDetectionJobCommandOutput) => void
2074
- ): Promise<StopDominantLanguageDetectionJobCommandOutput> | void {
2075
- const command = new StopDominantLanguageDetectionJobCommand(args);
2076
- if (typeof optionsOrCb === "function") {
2077
- this.send(command, optionsOrCb);
2078
- } else if (typeof cb === "function") {
2079
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2080
- this.send(command, optionsOrCb || {}, cb);
2081
- } else {
2082
- return this.send(command, optionsOrCb);
2083
- }
2084
- }
2085
-
2086
- /**
2087
- * <p>Stops an entities detection job in progress.</p>
2088
- * <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
2089
- * into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
2090
- * is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
2091
- * <code>STOPPED</code> state.</p>
2092
- * <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
2093
- * <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
2094
- * Internal Request Exception. </p>
2095
- * <p>When a job is stopped, any documents already processed are written to the output
2096
- * location.</p>
2097
- */
2098
- public stopEntitiesDetectionJob(
2099
- args: StopEntitiesDetectionJobCommandInput,
2100
- options?: __HttpHandlerOptions
2101
- ): Promise<StopEntitiesDetectionJobCommandOutput>;
2102
- public stopEntitiesDetectionJob(
2103
- args: StopEntitiesDetectionJobCommandInput,
2104
- cb: (err: any, data?: StopEntitiesDetectionJobCommandOutput) => void
2105
- ): void;
2106
- public stopEntitiesDetectionJob(
2107
- args: StopEntitiesDetectionJobCommandInput,
2108
- options: __HttpHandlerOptions,
2109
- cb: (err: any, data?: StopEntitiesDetectionJobCommandOutput) => void
2110
- ): void;
2111
- public stopEntitiesDetectionJob(
2112
- args: StopEntitiesDetectionJobCommandInput,
2113
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopEntitiesDetectionJobCommandOutput) => void),
2114
- cb?: (err: any, data?: StopEntitiesDetectionJobCommandOutput) => void
2115
- ): Promise<StopEntitiesDetectionJobCommandOutput> | void {
2116
- const command = new StopEntitiesDetectionJobCommand(args);
2117
- if (typeof optionsOrCb === "function") {
2118
- this.send(command, optionsOrCb);
2119
- } else if (typeof cb === "function") {
2120
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2121
- this.send(command, optionsOrCb || {}, cb);
2122
- } else {
2123
- return this.send(command, optionsOrCb);
2124
- }
2125
- }
2126
-
2127
- /**
2128
- * <p>Stops an events detection job in progress.</p>
2129
- */
2130
- public stopEventsDetectionJob(
2131
- args: StopEventsDetectionJobCommandInput,
2132
- options?: __HttpHandlerOptions
2133
- ): Promise<StopEventsDetectionJobCommandOutput>;
2134
- public stopEventsDetectionJob(
2135
- args: StopEventsDetectionJobCommandInput,
2136
- cb: (err: any, data?: StopEventsDetectionJobCommandOutput) => void
2137
- ): void;
2138
- public stopEventsDetectionJob(
2139
- args: StopEventsDetectionJobCommandInput,
2140
- options: __HttpHandlerOptions,
2141
- cb: (err: any, data?: StopEventsDetectionJobCommandOutput) => void
2142
- ): void;
2143
- public stopEventsDetectionJob(
2144
- args: StopEventsDetectionJobCommandInput,
2145
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopEventsDetectionJobCommandOutput) => void),
2146
- cb?: (err: any, data?: StopEventsDetectionJobCommandOutput) => void
2147
- ): Promise<StopEventsDetectionJobCommandOutput> | void {
2148
- const command = new StopEventsDetectionJobCommand(args);
2149
- if (typeof optionsOrCb === "function") {
2150
- this.send(command, optionsOrCb);
2151
- } else if (typeof cb === "function") {
2152
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2153
- this.send(command, optionsOrCb || {}, cb);
2154
- } else {
2155
- return this.send(command, optionsOrCb);
2156
- }
2157
- }
2158
-
2159
- /**
2160
- * <p>Stops a key phrases detection job in progress.</p>
2161
- * <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
2162
- * into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
2163
- * is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
2164
- * <code>STOPPED</code> state.</p>
2165
- * <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
2166
- * <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
2167
- * Internal Request Exception. </p>
2168
- * <p>When a job is stopped, any documents already processed are written to the output
2169
- * location.</p>
2170
- */
2171
- public stopKeyPhrasesDetectionJob(
2172
- args: StopKeyPhrasesDetectionJobCommandInput,
2173
- options?: __HttpHandlerOptions
2174
- ): Promise<StopKeyPhrasesDetectionJobCommandOutput>;
2175
- public stopKeyPhrasesDetectionJob(
2176
- args: StopKeyPhrasesDetectionJobCommandInput,
2177
- cb: (err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void
2178
- ): void;
2179
- public stopKeyPhrasesDetectionJob(
2180
- args: StopKeyPhrasesDetectionJobCommandInput,
2181
- options: __HttpHandlerOptions,
2182
- cb: (err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void
2183
- ): void;
2184
- public stopKeyPhrasesDetectionJob(
2185
- args: StopKeyPhrasesDetectionJobCommandInput,
2186
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void),
2187
- cb?: (err: any, data?: StopKeyPhrasesDetectionJobCommandOutput) => void
2188
- ): Promise<StopKeyPhrasesDetectionJobCommandOutput> | void {
2189
- const command = new StopKeyPhrasesDetectionJobCommand(args);
2190
- if (typeof optionsOrCb === "function") {
2191
- this.send(command, optionsOrCb);
2192
- } else if (typeof cb === "function") {
2193
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2194
- this.send(command, optionsOrCb || {}, cb);
2195
- } else {
2196
- return this.send(command, optionsOrCb);
2197
- }
2198
- }
2199
-
2200
- /**
2201
- * <p>Stops a PII entities detection job in progress.</p>
2202
- */
2203
- public stopPiiEntitiesDetectionJob(
2204
- args: StopPiiEntitiesDetectionJobCommandInput,
2205
- options?: __HttpHandlerOptions
2206
- ): Promise<StopPiiEntitiesDetectionJobCommandOutput>;
2207
- public stopPiiEntitiesDetectionJob(
2208
- args: StopPiiEntitiesDetectionJobCommandInput,
2209
- cb: (err: any, data?: StopPiiEntitiesDetectionJobCommandOutput) => void
2210
- ): void;
2211
- public stopPiiEntitiesDetectionJob(
2212
- args: StopPiiEntitiesDetectionJobCommandInput,
2213
- options: __HttpHandlerOptions,
2214
- cb: (err: any, data?: StopPiiEntitiesDetectionJobCommandOutput) => void
2215
- ): void;
2216
- public stopPiiEntitiesDetectionJob(
2217
- args: StopPiiEntitiesDetectionJobCommandInput,
2218
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopPiiEntitiesDetectionJobCommandOutput) => void),
2219
- cb?: (err: any, data?: StopPiiEntitiesDetectionJobCommandOutput) => void
2220
- ): Promise<StopPiiEntitiesDetectionJobCommandOutput> | void {
2221
- const command = new StopPiiEntitiesDetectionJobCommand(args);
2222
- if (typeof optionsOrCb === "function") {
2223
- this.send(command, optionsOrCb);
2224
- } else if (typeof cb === "function") {
2225
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2226
- this.send(command, optionsOrCb || {}, cb);
2227
- } else {
2228
- return this.send(command, optionsOrCb);
2229
- }
2230
- }
2231
-
2232
- /**
2233
- * <p>Stops a sentiment detection job in progress.</p>
2234
- * <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
2235
- * into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
2236
- * is put into the <code>COMPLETED</code> state; otherwise the job is be stopped and put into the
2237
- * <code>STOPPED</code> state.</p>
2238
- * <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
2239
- * <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
2240
- * Internal Request Exception. </p>
2241
- * <p>When a job is stopped, any documents already processed are written to the output
2242
- * location.</p>
2243
- */
2244
- public stopSentimentDetectionJob(
2245
- args: StopSentimentDetectionJobCommandInput,
2246
- options?: __HttpHandlerOptions
2247
- ): Promise<StopSentimentDetectionJobCommandOutput>;
2248
- public stopSentimentDetectionJob(
2249
- args: StopSentimentDetectionJobCommandInput,
2250
- cb: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void
2251
- ): void;
2252
- public stopSentimentDetectionJob(
2253
- args: StopSentimentDetectionJobCommandInput,
2254
- options: __HttpHandlerOptions,
2255
- cb: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void
2256
- ): void;
2257
- public stopSentimentDetectionJob(
2258
- args: StopSentimentDetectionJobCommandInput,
2259
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopSentimentDetectionJobCommandOutput) => void),
2260
- cb?: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void
2261
- ): Promise<StopSentimentDetectionJobCommandOutput> | void {
2262
- const command = new StopSentimentDetectionJobCommand(args);
2263
- if (typeof optionsOrCb === "function") {
2264
- this.send(command, optionsOrCb);
2265
- } else if (typeof cb === "function") {
2266
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2267
- this.send(command, optionsOrCb || {}, cb);
2268
- } else {
2269
- return this.send(command, optionsOrCb);
2270
- }
2271
- }
2272
-
2273
- /**
2274
- * <p>Stops a document classifier training job while in progress.</p>
2275
- * <p>If the training job state is <code>TRAINING</code>, the job is marked for termination and
2276
- * put into the <code>STOP_REQUESTED</code> state. If the training job completes before it can be
2277
- * stopped, it is put into the <code>TRAINED</code>; otherwise the training job is stopped and
2278
- * put into the <code>STOPPED</code> state and the service sends back an HTTP 200 response with
2279
- * an empty HTTP body. </p>
2280
- */
2281
- public stopTrainingDocumentClassifier(
2282
- args: StopTrainingDocumentClassifierCommandInput,
2283
- options?: __HttpHandlerOptions
2284
- ): Promise<StopTrainingDocumentClassifierCommandOutput>;
2285
- public stopTrainingDocumentClassifier(
2286
- args: StopTrainingDocumentClassifierCommandInput,
2287
- cb: (err: any, data?: StopTrainingDocumentClassifierCommandOutput) => void
2288
- ): void;
2289
- public stopTrainingDocumentClassifier(
2290
- args: StopTrainingDocumentClassifierCommandInput,
2291
- options: __HttpHandlerOptions,
2292
- cb: (err: any, data?: StopTrainingDocumentClassifierCommandOutput) => void
2293
- ): void;
2294
- public stopTrainingDocumentClassifier(
2295
- args: StopTrainingDocumentClassifierCommandInput,
2296
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopTrainingDocumentClassifierCommandOutput) => void),
2297
- cb?: (err: any, data?: StopTrainingDocumentClassifierCommandOutput) => void
2298
- ): Promise<StopTrainingDocumentClassifierCommandOutput> | void {
2299
- const command = new StopTrainingDocumentClassifierCommand(args);
2300
- if (typeof optionsOrCb === "function") {
2301
- this.send(command, optionsOrCb);
2302
- } else if (typeof cb === "function") {
2303
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2304
- this.send(command, optionsOrCb || {}, cb);
2305
- } else {
2306
- return this.send(command, optionsOrCb);
2307
- }
2308
- }
2309
-
2310
- /**
2311
- * <p>Stops an entity recognizer training job while in progress.</p>
2312
- * <p>If the training job state is <code>TRAINING</code>, the job is marked for termination and
2313
- * put into the <code>STOP_REQUESTED</code> state. If the training job completes before it can be
2314
- * stopped, it is put into the <code>TRAINED</code>; otherwise the training job is stopped and
2315
- * putted into the <code>STOPPED</code> state and the service sends back an HTTP 200 response
2316
- * with an empty HTTP body.</p>
2317
- */
2318
- public stopTrainingEntityRecognizer(
2319
- args: StopTrainingEntityRecognizerCommandInput,
2320
- options?: __HttpHandlerOptions
2321
- ): Promise<StopTrainingEntityRecognizerCommandOutput>;
2322
- public stopTrainingEntityRecognizer(
2323
- args: StopTrainingEntityRecognizerCommandInput,
2324
- cb: (err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void
2325
- ): void;
2326
- public stopTrainingEntityRecognizer(
2327
- args: StopTrainingEntityRecognizerCommandInput,
2328
- options: __HttpHandlerOptions,
2329
- cb: (err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void
2330
- ): void;
2331
- public stopTrainingEntityRecognizer(
2332
- args: StopTrainingEntityRecognizerCommandInput,
2333
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void),
2334
- cb?: (err: any, data?: StopTrainingEntityRecognizerCommandOutput) => void
2335
- ): Promise<StopTrainingEntityRecognizerCommandOutput> | void {
2336
- const command = new StopTrainingEntityRecognizerCommand(args);
2337
- if (typeof optionsOrCb === "function") {
2338
- this.send(command, optionsOrCb);
2339
- } else if (typeof cb === "function") {
2340
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2341
- this.send(command, optionsOrCb || {}, cb);
2342
- } else {
2343
- return this.send(command, optionsOrCb);
2344
- }
2345
- }
2346
-
2347
- /**
2348
- * <p>Associates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair
2349
- * that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with
2350
- * "Sales" as the key might be added to a resource to indicate its use by the sales department.
2351
- * </p>
2352
- */
2353
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
2354
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
2355
- public tagResource(
2356
- args: TagResourceCommandInput,
2357
- options: __HttpHandlerOptions,
2358
- cb: (err: any, data?: TagResourceCommandOutput) => void
2359
- ): void;
2360
- public tagResource(
2361
- args: TagResourceCommandInput,
2362
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
2363
- cb?: (err: any, data?: TagResourceCommandOutput) => void
2364
- ): Promise<TagResourceCommandOutput> | void {
2365
- const command = new TagResourceCommand(args);
2366
- if (typeof optionsOrCb === "function") {
2367
- this.send(command, optionsOrCb);
2368
- } else if (typeof cb === "function") {
2369
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2370
- this.send(command, optionsOrCb || {}, cb);
2371
- } else {
2372
- return this.send(command, optionsOrCb);
2373
- }
2374
- }
2375
-
2376
- /**
2377
- * <p>Removes a specific tag associated with an Amazon Comprehend resource. </p>
2378
- */
2379
- public untagResource(
2380
- args: UntagResourceCommandInput,
2381
- options?: __HttpHandlerOptions
2382
- ): Promise<UntagResourceCommandOutput>;
2383
- public untagResource(
2384
- args: UntagResourceCommandInput,
2385
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2386
- ): void;
2387
- public untagResource(
2388
- args: UntagResourceCommandInput,
2389
- options: __HttpHandlerOptions,
2390
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2391
- ): void;
2392
- public untagResource(
2393
- args: UntagResourceCommandInput,
2394
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
2395
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
2396
- ): Promise<UntagResourceCommandOutput> | void {
2397
- const command = new UntagResourceCommand(args);
2398
- if (typeof optionsOrCb === "function") {
2399
- this.send(command, optionsOrCb);
2400
- } else if (typeof cb === "function") {
2401
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2402
- this.send(command, optionsOrCb || {}, cb);
2403
- } else {
2404
- return this.send(command, optionsOrCb);
2405
- }
2406
- }
2407
-
2408
- /**
2409
- * <p>Updates information about the specified endpoint.</p>
2410
- */
2411
- public updateEndpoint(
2412
- args: UpdateEndpointCommandInput,
2413
- options?: __HttpHandlerOptions
2414
- ): Promise<UpdateEndpointCommandOutput>;
2415
- public updateEndpoint(
2416
- args: UpdateEndpointCommandInput,
2417
- cb: (err: any, data?: UpdateEndpointCommandOutput) => void
2418
- ): void;
2419
- public updateEndpoint(
2420
- args: UpdateEndpointCommandInput,
2421
- options: __HttpHandlerOptions,
2422
- cb: (err: any, data?: UpdateEndpointCommandOutput) => void
2423
- ): void;
2424
- public updateEndpoint(
2425
- args: UpdateEndpointCommandInput,
2426
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateEndpointCommandOutput) => void),
2427
- cb?: (err: any, data?: UpdateEndpointCommandOutput) => void
2428
- ): Promise<UpdateEndpointCommandOutput> | void {
2429
- const command = new UpdateEndpointCommand(args);
2430
- if (typeof optionsOrCb === "function") {
2431
- this.send(command, optionsOrCb);
2432
- } else if (typeof cb === "function") {
2433
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2434
- this.send(command, optionsOrCb || {}, cb);
2435
- } else {
2436
- return this.send(command, optionsOrCb);
2437
- }
2438
- }
2439
- }