@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
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
15
- import { DetectKeyPhrasesRequest, DetectKeyPhrasesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DetectKeyPhrasesCommand,
18
- serializeAws_json1_1DetectKeyPhrasesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DetectKeyPhrasesCommandInput extends DetectKeyPhrasesRequest {}
22
- export interface DetectKeyPhrasesCommandOutput extends DetectKeyPhrasesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Detects the key noun phrases found in the text. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ComprehendClient, DetectKeyPhrasesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
30
- * // const { ComprehendClient, DetectKeyPhrasesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
31
- * const client = new ComprehendClient(config);
32
- * const command = new DetectKeyPhrasesCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DetectKeyPhrasesCommandInput} for command's `input` shape.
37
- * @see {@link DetectKeyPhrasesCommandOutput} for command's `response` shape.
38
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DetectKeyPhrasesCommand extends $Command<
42
- DetectKeyPhrasesCommandInput,
43
- DetectKeyPhrasesCommandOutput,
44
- ComprehendClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DetectKeyPhrasesCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: ComprehendClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DetectKeyPhrasesCommandInput, DetectKeyPhrasesCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "ComprehendClient";
69
- const commandName = "DetectKeyPhrasesCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DetectKeyPhrasesRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DetectKeyPhrasesResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: DetectKeyPhrasesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1DetectKeyPhrasesCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DetectKeyPhrasesCommandOutput> {
90
- return deserializeAws_json1_1DetectKeyPhrasesCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
15
- import { DetectPiiEntitiesRequest, DetectPiiEntitiesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DetectPiiEntitiesCommand,
18
- serializeAws_json1_1DetectPiiEntitiesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DetectPiiEntitiesCommandInput extends DetectPiiEntitiesRequest {}
22
- export interface DetectPiiEntitiesCommandOutput extends DetectPiiEntitiesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Inspects the input text for entities that contain personally identifiable information
26
- * (PII) and returns information about them.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { ComprehendClient, DetectPiiEntitiesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
31
- * // const { ComprehendClient, DetectPiiEntitiesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
32
- * const client = new ComprehendClient(config);
33
- * const command = new DetectPiiEntitiesCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link DetectPiiEntitiesCommandInput} for command's `input` shape.
38
- * @see {@link DetectPiiEntitiesCommandOutput} for command's `response` shape.
39
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class DetectPiiEntitiesCommand extends $Command<
43
- DetectPiiEntitiesCommandInput,
44
- DetectPiiEntitiesCommandOutput,
45
- ComprehendClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: DetectPiiEntitiesCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: ComprehendClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<DetectPiiEntitiesCommandInput, DetectPiiEntitiesCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "ComprehendClient";
70
- const commandName = "DetectPiiEntitiesCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: DetectPiiEntitiesRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: DetectPiiEntitiesResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: DetectPiiEntitiesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1DetectPiiEntitiesCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DetectPiiEntitiesCommandOutput> {
91
- return deserializeAws_json1_1DetectPiiEntitiesCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
15
- import { DetectSentimentRequest, DetectSentimentResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DetectSentimentCommand,
18
- serializeAws_json1_1DetectSentimentCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DetectSentimentCommandInput extends DetectSentimentRequest {}
22
- export interface DetectSentimentCommandOutput extends DetectSentimentResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Inspects text and returns an inference of the prevailing sentiment
26
- * (<code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>). </p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { ComprehendClient, DetectSentimentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
31
- * // const { ComprehendClient, DetectSentimentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
32
- * const client = new ComprehendClient(config);
33
- * const command = new DetectSentimentCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link DetectSentimentCommandInput} for command's `input` shape.
38
- * @see {@link DetectSentimentCommandOutput} for command's `response` shape.
39
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class DetectSentimentCommand extends $Command<
43
- DetectSentimentCommandInput,
44
- DetectSentimentCommandOutput,
45
- ComprehendClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: DetectSentimentCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: ComprehendClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<DetectSentimentCommandInput, DetectSentimentCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "ComprehendClient";
70
- const commandName = "DetectSentimentCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: DetectSentimentRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: DetectSentimentResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: DetectSentimentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1DetectSentimentCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DetectSentimentCommandOutput> {
91
- return deserializeAws_json1_1DetectSentimentCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
15
- import { DetectSyntaxRequest, DetectSyntaxResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DetectSyntaxCommand,
18
- serializeAws_json1_1DetectSyntaxCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DetectSyntaxCommandInput extends DetectSyntaxRequest {}
22
- export interface DetectSyntaxCommandOutput extends DetectSyntaxResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Inspects text for syntax and the part of speech of words in the document. For more
26
- * information, <a>how-syntax</a>.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { ComprehendClient, DetectSyntaxCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
31
- * // const { ComprehendClient, DetectSyntaxCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
32
- * const client = new ComprehendClient(config);
33
- * const command = new DetectSyntaxCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link DetectSyntaxCommandInput} for command's `input` shape.
38
- * @see {@link DetectSyntaxCommandOutput} for command's `response` shape.
39
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class DetectSyntaxCommand extends $Command<
43
- DetectSyntaxCommandInput,
44
- DetectSyntaxCommandOutput,
45
- ComprehendClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: DetectSyntaxCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: ComprehendClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<DetectSyntaxCommandInput, DetectSyntaxCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "ComprehendClient";
70
- const commandName = "DetectSyntaxCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: DetectSyntaxRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: DetectSyntaxResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: DetectSyntaxCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1DetectSyntaxCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DetectSyntaxCommandOutput> {
91
- return deserializeAws_json1_1DetectSyntaxCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,103 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
15
- import { ListDocumentClassificationJobsRequest, ListDocumentClassificationJobsResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListDocumentClassificationJobsCommand,
18
- serializeAws_json1_1ListDocumentClassificationJobsCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListDocumentClassificationJobsCommandInput extends ListDocumentClassificationJobsRequest {}
22
- export interface ListDocumentClassificationJobsCommandOutput
23
- extends ListDocumentClassificationJobsResponse,
24
- __MetadataBearer {}
25
-
26
- /**
27
- * <p>Gets a list of the documentation classification jobs that you have submitted.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { ComprehendClient, ListDocumentClassificationJobsCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
32
- * // const { ComprehendClient, ListDocumentClassificationJobsCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
33
- * const client = new ComprehendClient(config);
34
- * const command = new ListDocumentClassificationJobsCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link ListDocumentClassificationJobsCommandInput} for command's `input` shape.
39
- * @see {@link ListDocumentClassificationJobsCommandOutput} for command's `response` shape.
40
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class ListDocumentClassificationJobsCommand extends $Command<
44
- ListDocumentClassificationJobsCommandInput,
45
- ListDocumentClassificationJobsCommandOutput,
46
- ComprehendClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: ListDocumentClassificationJobsCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: ComprehendClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<ListDocumentClassificationJobsCommandInput, ListDocumentClassificationJobsCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "ComprehendClient";
71
- const commandName = "ListDocumentClassificationJobsCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: ListDocumentClassificationJobsRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ListDocumentClassificationJobsResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(
88
- input: ListDocumentClassificationJobsCommandInput,
89
- context: __SerdeContext
90
- ): Promise<__HttpRequest> {
91
- return serializeAws_json1_1ListDocumentClassificationJobsCommand(input, context);
92
- }
93
-
94
- private deserialize(
95
- output: __HttpResponse,
96
- context: __SerdeContext
97
- ): Promise<ListDocumentClassificationJobsCommandOutput> {
98
- return deserializeAws_json1_1ListDocumentClassificationJobsCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,103 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
15
- import { ListDocumentClassifierSummariesRequest, ListDocumentClassifierSummariesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListDocumentClassifierSummariesCommand,
18
- serializeAws_json1_1ListDocumentClassifierSummariesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListDocumentClassifierSummariesCommandInput extends ListDocumentClassifierSummariesRequest {}
22
- export interface ListDocumentClassifierSummariesCommandOutput
23
- extends ListDocumentClassifierSummariesResponse,
24
- __MetadataBearer {}
25
-
26
- /**
27
- * <p>Gets a list of summaries of the document classifiers that you have created</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { ComprehendClient, ListDocumentClassifierSummariesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
32
- * // const { ComprehendClient, ListDocumentClassifierSummariesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
33
- * const client = new ComprehendClient(config);
34
- * const command = new ListDocumentClassifierSummariesCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link ListDocumentClassifierSummariesCommandInput} for command's `input` shape.
39
- * @see {@link ListDocumentClassifierSummariesCommandOutput} for command's `response` shape.
40
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class ListDocumentClassifierSummariesCommand extends $Command<
44
- ListDocumentClassifierSummariesCommandInput,
45
- ListDocumentClassifierSummariesCommandOutput,
46
- ComprehendClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: ListDocumentClassifierSummariesCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: ComprehendClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<ListDocumentClassifierSummariesCommandInput, ListDocumentClassifierSummariesCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "ComprehendClient";
71
- const commandName = "ListDocumentClassifierSummariesCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: ListDocumentClassifierSummariesRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ListDocumentClassifierSummariesResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(
88
- input: ListDocumentClassifierSummariesCommandInput,
89
- context: __SerdeContext
90
- ): Promise<__HttpRequest> {
91
- return serializeAws_json1_1ListDocumentClassifierSummariesCommand(input, context);
92
- }
93
-
94
- private deserialize(
95
- output: __HttpResponse,
96
- context: __SerdeContext
97
- ): Promise<ListDocumentClassifierSummariesCommandOutput> {
98
- return deserializeAws_json1_1ListDocumentClassifierSummariesCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
15
- import { ListDocumentClassifiersRequest, ListDocumentClassifiersResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListDocumentClassifiersCommand,
18
- serializeAws_json1_1ListDocumentClassifiersCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListDocumentClassifiersCommandInput extends ListDocumentClassifiersRequest {}
22
- export interface ListDocumentClassifiersCommandOutput extends ListDocumentClassifiersResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets a list of the document classifiers that you have created.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ComprehendClient, ListDocumentClassifiersCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
30
- * // const { ComprehendClient, ListDocumentClassifiersCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
31
- * const client = new ComprehendClient(config);
32
- * const command = new ListDocumentClassifiersCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListDocumentClassifiersCommandInput} for command's `input` shape.
37
- * @see {@link ListDocumentClassifiersCommandOutput} for command's `response` shape.
38
- * @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListDocumentClassifiersCommand extends $Command<
42
- ListDocumentClassifiersCommandInput,
43
- ListDocumentClassifiersCommandOutput,
44
- ComprehendClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListDocumentClassifiersCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: ComprehendClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListDocumentClassifiersCommandInput, ListDocumentClassifiersCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "ComprehendClient";
69
- const commandName = "ListDocumentClassifiersCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListDocumentClassifiersRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListDocumentClassifiersResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListDocumentClassifiersCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1ListDocumentClassifiersCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListDocumentClassifiersCommandOutput> {
90
- return deserializeAws_json1_1ListDocumentClassifiersCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }