@aws-sdk/client-rekognition 3.477.0 → 3.481.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 (377) hide show
  1. package/dist-cjs/commands/AssociateFacesCommand.js +18 -41
  2. package/dist-cjs/commands/CompareFacesCommand.js +18 -41
  3. package/dist-cjs/commands/CopyProjectVersionCommand.js +18 -41
  4. package/dist-cjs/commands/CreateCollectionCommand.js +18 -41
  5. package/dist-cjs/commands/CreateDatasetCommand.js +18 -41
  6. package/dist-cjs/commands/CreateFaceLivenessSessionCommand.js +18 -41
  7. package/dist-cjs/commands/CreateProjectCommand.js +18 -41
  8. package/dist-cjs/commands/CreateProjectVersionCommand.js +18 -41
  9. package/dist-cjs/commands/CreateStreamProcessorCommand.js +18 -41
  10. package/dist-cjs/commands/CreateUserCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteCollectionCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteDatasetCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteFacesCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteProjectCommand.js +18 -41
  15. package/dist-cjs/commands/DeleteProjectPolicyCommand.js +18 -41
  16. package/dist-cjs/commands/DeleteProjectVersionCommand.js +18 -41
  17. package/dist-cjs/commands/DeleteStreamProcessorCommand.js +18 -41
  18. package/dist-cjs/commands/DeleteUserCommand.js +18 -41
  19. package/dist-cjs/commands/DescribeCollectionCommand.js +18 -41
  20. package/dist-cjs/commands/DescribeDatasetCommand.js +18 -41
  21. package/dist-cjs/commands/DescribeProjectVersionsCommand.js +18 -41
  22. package/dist-cjs/commands/DescribeProjectsCommand.js +18 -41
  23. package/dist-cjs/commands/DescribeStreamProcessorCommand.js +18 -41
  24. package/dist-cjs/commands/DetectCustomLabelsCommand.js +18 -41
  25. package/dist-cjs/commands/DetectFacesCommand.js +18 -41
  26. package/dist-cjs/commands/DetectLabelsCommand.js +18 -41
  27. package/dist-cjs/commands/DetectModerationLabelsCommand.js +18 -41
  28. package/dist-cjs/commands/DetectProtectiveEquipmentCommand.js +18 -41
  29. package/dist-cjs/commands/DetectTextCommand.js +18 -41
  30. package/dist-cjs/commands/DisassociateFacesCommand.js +18 -41
  31. package/dist-cjs/commands/DistributeDatasetEntriesCommand.js +18 -41
  32. package/dist-cjs/commands/GetCelebrityInfoCommand.js +18 -41
  33. package/dist-cjs/commands/GetCelebrityRecognitionCommand.js +18 -41
  34. package/dist-cjs/commands/GetContentModerationCommand.js +18 -41
  35. package/dist-cjs/commands/GetFaceDetectionCommand.js +18 -41
  36. package/dist-cjs/commands/GetFaceLivenessSessionResultsCommand.js +18 -41
  37. package/dist-cjs/commands/GetFaceSearchCommand.js +18 -41
  38. package/dist-cjs/commands/GetLabelDetectionCommand.js +18 -41
  39. package/dist-cjs/commands/GetMediaAnalysisJobCommand.js +18 -41
  40. package/dist-cjs/commands/GetPersonTrackingCommand.js +18 -41
  41. package/dist-cjs/commands/GetSegmentDetectionCommand.js +18 -41
  42. package/dist-cjs/commands/GetTextDetectionCommand.js +18 -41
  43. package/dist-cjs/commands/IndexFacesCommand.js +18 -41
  44. package/dist-cjs/commands/ListCollectionsCommand.js +18 -41
  45. package/dist-cjs/commands/ListDatasetEntriesCommand.js +18 -41
  46. package/dist-cjs/commands/ListDatasetLabelsCommand.js +18 -41
  47. package/dist-cjs/commands/ListFacesCommand.js +18 -41
  48. package/dist-cjs/commands/ListMediaAnalysisJobsCommand.js +18 -41
  49. package/dist-cjs/commands/ListProjectPoliciesCommand.js +18 -41
  50. package/dist-cjs/commands/ListStreamProcessorsCommand.js +18 -41
  51. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  52. package/dist-cjs/commands/ListUsersCommand.js +18 -41
  53. package/dist-cjs/commands/PutProjectPolicyCommand.js +18 -41
  54. package/dist-cjs/commands/RecognizeCelebritiesCommand.js +18 -41
  55. package/dist-cjs/commands/SearchFacesByImageCommand.js +18 -41
  56. package/dist-cjs/commands/SearchFacesCommand.js +18 -41
  57. package/dist-cjs/commands/SearchUsersByImageCommand.js +18 -41
  58. package/dist-cjs/commands/SearchUsersCommand.js +18 -41
  59. package/dist-cjs/commands/StartCelebrityRecognitionCommand.js +18 -41
  60. package/dist-cjs/commands/StartContentModerationCommand.js +18 -41
  61. package/dist-cjs/commands/StartFaceDetectionCommand.js +18 -41
  62. package/dist-cjs/commands/StartFaceSearchCommand.js +18 -41
  63. package/dist-cjs/commands/StartLabelDetectionCommand.js +18 -41
  64. package/dist-cjs/commands/StartMediaAnalysisJobCommand.js +18 -41
  65. package/dist-cjs/commands/StartPersonTrackingCommand.js +18 -41
  66. package/dist-cjs/commands/StartProjectVersionCommand.js +18 -41
  67. package/dist-cjs/commands/StartSegmentDetectionCommand.js +18 -41
  68. package/dist-cjs/commands/StartStreamProcessorCommand.js +18 -41
  69. package/dist-cjs/commands/StartTextDetectionCommand.js +18 -41
  70. package/dist-cjs/commands/StopProjectVersionCommand.js +18 -41
  71. package/dist-cjs/commands/StopStreamProcessorCommand.js +18 -41
  72. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  73. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  74. package/dist-cjs/commands/UpdateDatasetEntriesCommand.js +18 -41
  75. package/dist-cjs/commands/UpdateStreamProcessorCommand.js +18 -41
  76. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  77. package/dist-cjs/pagination/DescribeProjectVersionsPaginator.js +2 -24
  78. package/dist-cjs/pagination/DescribeProjectsPaginator.js +2 -24
  79. package/dist-cjs/pagination/GetCelebrityRecognitionPaginator.js +2 -24
  80. package/dist-cjs/pagination/GetContentModerationPaginator.js +2 -24
  81. package/dist-cjs/pagination/GetFaceDetectionPaginator.js +2 -24
  82. package/dist-cjs/pagination/GetFaceSearchPaginator.js +2 -24
  83. package/dist-cjs/pagination/GetLabelDetectionPaginator.js +2 -24
  84. package/dist-cjs/pagination/GetPersonTrackingPaginator.js +2 -24
  85. package/dist-cjs/pagination/GetSegmentDetectionPaginator.js +2 -24
  86. package/dist-cjs/pagination/GetTextDetectionPaginator.js +2 -24
  87. package/dist-cjs/pagination/ListCollectionsPaginator.js +2 -24
  88. package/dist-cjs/pagination/ListDatasetEntriesPaginator.js +2 -24
  89. package/dist-cjs/pagination/ListDatasetLabelsPaginator.js +2 -24
  90. package/dist-cjs/pagination/ListFacesPaginator.js +2 -24
  91. package/dist-cjs/pagination/ListMediaAnalysisJobsPaginator.js +2 -24
  92. package/dist-cjs/pagination/ListProjectPoliciesPaginator.js +2 -24
  93. package/dist-cjs/pagination/ListStreamProcessorsPaginator.js +2 -24
  94. package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
  95. package/dist-es/commands/AssociateFacesCommand.js +18 -41
  96. package/dist-es/commands/CompareFacesCommand.js +18 -41
  97. package/dist-es/commands/CopyProjectVersionCommand.js +18 -41
  98. package/dist-es/commands/CreateCollectionCommand.js +18 -41
  99. package/dist-es/commands/CreateDatasetCommand.js +18 -41
  100. package/dist-es/commands/CreateFaceLivenessSessionCommand.js +18 -41
  101. package/dist-es/commands/CreateProjectCommand.js +18 -41
  102. package/dist-es/commands/CreateProjectVersionCommand.js +18 -41
  103. package/dist-es/commands/CreateStreamProcessorCommand.js +18 -41
  104. package/dist-es/commands/CreateUserCommand.js +18 -41
  105. package/dist-es/commands/DeleteCollectionCommand.js +18 -41
  106. package/dist-es/commands/DeleteDatasetCommand.js +18 -41
  107. package/dist-es/commands/DeleteFacesCommand.js +18 -41
  108. package/dist-es/commands/DeleteProjectCommand.js +18 -41
  109. package/dist-es/commands/DeleteProjectPolicyCommand.js +18 -41
  110. package/dist-es/commands/DeleteProjectVersionCommand.js +18 -41
  111. package/dist-es/commands/DeleteStreamProcessorCommand.js +18 -41
  112. package/dist-es/commands/DeleteUserCommand.js +18 -41
  113. package/dist-es/commands/DescribeCollectionCommand.js +18 -41
  114. package/dist-es/commands/DescribeDatasetCommand.js +18 -41
  115. package/dist-es/commands/DescribeProjectVersionsCommand.js +18 -41
  116. package/dist-es/commands/DescribeProjectsCommand.js +18 -41
  117. package/dist-es/commands/DescribeStreamProcessorCommand.js +18 -41
  118. package/dist-es/commands/DetectCustomLabelsCommand.js +18 -41
  119. package/dist-es/commands/DetectFacesCommand.js +18 -41
  120. package/dist-es/commands/DetectLabelsCommand.js +18 -41
  121. package/dist-es/commands/DetectModerationLabelsCommand.js +18 -41
  122. package/dist-es/commands/DetectProtectiveEquipmentCommand.js +18 -41
  123. package/dist-es/commands/DetectTextCommand.js +18 -41
  124. package/dist-es/commands/DisassociateFacesCommand.js +18 -41
  125. package/dist-es/commands/DistributeDatasetEntriesCommand.js +18 -41
  126. package/dist-es/commands/GetCelebrityInfoCommand.js +18 -41
  127. package/dist-es/commands/GetCelebrityRecognitionCommand.js +18 -41
  128. package/dist-es/commands/GetContentModerationCommand.js +18 -41
  129. package/dist-es/commands/GetFaceDetectionCommand.js +18 -41
  130. package/dist-es/commands/GetFaceLivenessSessionResultsCommand.js +18 -41
  131. package/dist-es/commands/GetFaceSearchCommand.js +18 -41
  132. package/dist-es/commands/GetLabelDetectionCommand.js +18 -41
  133. package/dist-es/commands/GetMediaAnalysisJobCommand.js +18 -41
  134. package/dist-es/commands/GetPersonTrackingCommand.js +18 -41
  135. package/dist-es/commands/GetSegmentDetectionCommand.js +18 -41
  136. package/dist-es/commands/GetTextDetectionCommand.js +18 -41
  137. package/dist-es/commands/IndexFacesCommand.js +18 -41
  138. package/dist-es/commands/ListCollectionsCommand.js +18 -41
  139. package/dist-es/commands/ListDatasetEntriesCommand.js +18 -41
  140. package/dist-es/commands/ListDatasetLabelsCommand.js +18 -41
  141. package/dist-es/commands/ListFacesCommand.js +18 -41
  142. package/dist-es/commands/ListMediaAnalysisJobsCommand.js +18 -41
  143. package/dist-es/commands/ListProjectPoliciesCommand.js +18 -41
  144. package/dist-es/commands/ListStreamProcessorsCommand.js +18 -41
  145. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  146. package/dist-es/commands/ListUsersCommand.js +18 -41
  147. package/dist-es/commands/PutProjectPolicyCommand.js +18 -41
  148. package/dist-es/commands/RecognizeCelebritiesCommand.js +18 -41
  149. package/dist-es/commands/SearchFacesByImageCommand.js +18 -41
  150. package/dist-es/commands/SearchFacesCommand.js +18 -41
  151. package/dist-es/commands/SearchUsersByImageCommand.js +18 -41
  152. package/dist-es/commands/SearchUsersCommand.js +18 -41
  153. package/dist-es/commands/StartCelebrityRecognitionCommand.js +18 -41
  154. package/dist-es/commands/StartContentModerationCommand.js +18 -41
  155. package/dist-es/commands/StartFaceDetectionCommand.js +18 -41
  156. package/dist-es/commands/StartFaceSearchCommand.js +18 -41
  157. package/dist-es/commands/StartLabelDetectionCommand.js +18 -41
  158. package/dist-es/commands/StartMediaAnalysisJobCommand.js +18 -41
  159. package/dist-es/commands/StartPersonTrackingCommand.js +18 -41
  160. package/dist-es/commands/StartProjectVersionCommand.js +18 -41
  161. package/dist-es/commands/StartSegmentDetectionCommand.js +18 -41
  162. package/dist-es/commands/StartStreamProcessorCommand.js +18 -41
  163. package/dist-es/commands/StartTextDetectionCommand.js +18 -41
  164. package/dist-es/commands/StopProjectVersionCommand.js +18 -41
  165. package/dist-es/commands/StopStreamProcessorCommand.js +18 -41
  166. package/dist-es/commands/TagResourceCommand.js +18 -41
  167. package/dist-es/commands/UntagResourceCommand.js +18 -41
  168. package/dist-es/commands/UpdateDatasetEntriesCommand.js +18 -41
  169. package/dist-es/commands/UpdateStreamProcessorCommand.js +18 -41
  170. package/dist-es/endpoint/EndpointParameters.js +6 -0
  171. package/dist-es/pagination/DescribeProjectVersionsPaginator.js +2 -23
  172. package/dist-es/pagination/DescribeProjectsPaginator.js +2 -23
  173. package/dist-es/pagination/GetCelebrityRecognitionPaginator.js +2 -23
  174. package/dist-es/pagination/GetContentModerationPaginator.js +2 -23
  175. package/dist-es/pagination/GetFaceDetectionPaginator.js +2 -23
  176. package/dist-es/pagination/GetFaceSearchPaginator.js +2 -23
  177. package/dist-es/pagination/GetLabelDetectionPaginator.js +2 -23
  178. package/dist-es/pagination/GetPersonTrackingPaginator.js +2 -23
  179. package/dist-es/pagination/GetSegmentDetectionPaginator.js +2 -23
  180. package/dist-es/pagination/GetTextDetectionPaginator.js +2 -23
  181. package/dist-es/pagination/ListCollectionsPaginator.js +2 -23
  182. package/dist-es/pagination/ListDatasetEntriesPaginator.js +2 -23
  183. package/dist-es/pagination/ListDatasetLabelsPaginator.js +2 -23
  184. package/dist-es/pagination/ListFacesPaginator.js +2 -23
  185. package/dist-es/pagination/ListMediaAnalysisJobsPaginator.js +2 -23
  186. package/dist-es/pagination/ListProjectPoliciesPaginator.js +2 -23
  187. package/dist-es/pagination/ListStreamProcessorsPaginator.js +2 -23
  188. package/dist-es/pagination/ListUsersPaginator.js +2 -23
  189. package/dist-types/commands/AssociateFacesCommand.d.ts +6 -21
  190. package/dist-types/commands/CompareFacesCommand.d.ts +6 -21
  191. package/dist-types/commands/CopyProjectVersionCommand.d.ts +6 -21
  192. package/dist-types/commands/CreateCollectionCommand.d.ts +6 -21
  193. package/dist-types/commands/CreateDatasetCommand.d.ts +6 -21
  194. package/dist-types/commands/CreateFaceLivenessSessionCommand.d.ts +6 -21
  195. package/dist-types/commands/CreateProjectCommand.d.ts +6 -21
  196. package/dist-types/commands/CreateProjectVersionCommand.d.ts +6 -21
  197. package/dist-types/commands/CreateStreamProcessorCommand.d.ts +6 -21
  198. package/dist-types/commands/CreateUserCommand.d.ts +6 -21
  199. package/dist-types/commands/DeleteCollectionCommand.d.ts +6 -21
  200. package/dist-types/commands/DeleteDatasetCommand.d.ts +6 -21
  201. package/dist-types/commands/DeleteFacesCommand.d.ts +6 -21
  202. package/dist-types/commands/DeleteProjectCommand.d.ts +6 -21
  203. package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +6 -21
  204. package/dist-types/commands/DeleteProjectVersionCommand.d.ts +6 -21
  205. package/dist-types/commands/DeleteStreamProcessorCommand.d.ts +6 -21
  206. package/dist-types/commands/DeleteUserCommand.d.ts +6 -21
  207. package/dist-types/commands/DescribeCollectionCommand.d.ts +6 -21
  208. package/dist-types/commands/DescribeDatasetCommand.d.ts +6 -21
  209. package/dist-types/commands/DescribeProjectVersionsCommand.d.ts +6 -21
  210. package/dist-types/commands/DescribeProjectsCommand.d.ts +6 -21
  211. package/dist-types/commands/DescribeStreamProcessorCommand.d.ts +6 -21
  212. package/dist-types/commands/DetectCustomLabelsCommand.d.ts +6 -21
  213. package/dist-types/commands/DetectFacesCommand.d.ts +6 -21
  214. package/dist-types/commands/DetectLabelsCommand.d.ts +6 -21
  215. package/dist-types/commands/DetectModerationLabelsCommand.d.ts +6 -21
  216. package/dist-types/commands/DetectProtectiveEquipmentCommand.d.ts +6 -21
  217. package/dist-types/commands/DetectTextCommand.d.ts +6 -21
  218. package/dist-types/commands/DisassociateFacesCommand.d.ts +6 -21
  219. package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +6 -21
  220. package/dist-types/commands/GetCelebrityInfoCommand.d.ts +6 -21
  221. package/dist-types/commands/GetCelebrityRecognitionCommand.d.ts +6 -21
  222. package/dist-types/commands/GetContentModerationCommand.d.ts +6 -21
  223. package/dist-types/commands/GetFaceDetectionCommand.d.ts +6 -21
  224. package/dist-types/commands/GetFaceLivenessSessionResultsCommand.d.ts +6 -21
  225. package/dist-types/commands/GetFaceSearchCommand.d.ts +6 -21
  226. package/dist-types/commands/GetLabelDetectionCommand.d.ts +6 -21
  227. package/dist-types/commands/GetMediaAnalysisJobCommand.d.ts +6 -21
  228. package/dist-types/commands/GetPersonTrackingCommand.d.ts +6 -21
  229. package/dist-types/commands/GetSegmentDetectionCommand.d.ts +6 -21
  230. package/dist-types/commands/GetTextDetectionCommand.d.ts +6 -21
  231. package/dist-types/commands/IndexFacesCommand.d.ts +6 -21
  232. package/dist-types/commands/ListCollectionsCommand.d.ts +6 -21
  233. package/dist-types/commands/ListDatasetEntriesCommand.d.ts +6 -21
  234. package/dist-types/commands/ListDatasetLabelsCommand.d.ts +6 -21
  235. package/dist-types/commands/ListFacesCommand.d.ts +6 -21
  236. package/dist-types/commands/ListMediaAnalysisJobsCommand.d.ts +6 -21
  237. package/dist-types/commands/ListProjectPoliciesCommand.d.ts +6 -21
  238. package/dist-types/commands/ListStreamProcessorsCommand.d.ts +6 -21
  239. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  240. package/dist-types/commands/ListUsersCommand.d.ts +6 -21
  241. package/dist-types/commands/PutProjectPolicyCommand.d.ts +6 -21
  242. package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +6 -21
  243. package/dist-types/commands/SearchFacesByImageCommand.d.ts +6 -21
  244. package/dist-types/commands/SearchFacesCommand.d.ts +6 -21
  245. package/dist-types/commands/SearchUsersByImageCommand.d.ts +6 -21
  246. package/dist-types/commands/SearchUsersCommand.d.ts +6 -21
  247. package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +6 -21
  248. package/dist-types/commands/StartContentModerationCommand.d.ts +6 -21
  249. package/dist-types/commands/StartFaceDetectionCommand.d.ts +6 -21
  250. package/dist-types/commands/StartFaceSearchCommand.d.ts +6 -21
  251. package/dist-types/commands/StartLabelDetectionCommand.d.ts +6 -21
  252. package/dist-types/commands/StartMediaAnalysisJobCommand.d.ts +6 -21
  253. package/dist-types/commands/StartPersonTrackingCommand.d.ts +6 -21
  254. package/dist-types/commands/StartProjectVersionCommand.d.ts +6 -21
  255. package/dist-types/commands/StartSegmentDetectionCommand.d.ts +6 -21
  256. package/dist-types/commands/StartStreamProcessorCommand.d.ts +6 -21
  257. package/dist-types/commands/StartTextDetectionCommand.d.ts +6 -21
  258. package/dist-types/commands/StopProjectVersionCommand.d.ts +6 -21
  259. package/dist-types/commands/StopStreamProcessorCommand.d.ts +6 -21
  260. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  261. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  262. package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +6 -21
  263. package/dist-types/commands/UpdateStreamProcessorCommand.d.ts +6 -21
  264. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  265. package/dist-types/pagination/DescribeProjectVersionsPaginator.d.ts +1 -1
  266. package/dist-types/pagination/DescribeProjectsPaginator.d.ts +1 -1
  267. package/dist-types/pagination/GetCelebrityRecognitionPaginator.d.ts +1 -1
  268. package/dist-types/pagination/GetContentModerationPaginator.d.ts +1 -1
  269. package/dist-types/pagination/GetFaceDetectionPaginator.d.ts +1 -1
  270. package/dist-types/pagination/GetFaceSearchPaginator.d.ts +1 -1
  271. package/dist-types/pagination/GetLabelDetectionPaginator.d.ts +1 -1
  272. package/dist-types/pagination/GetPersonTrackingPaginator.d.ts +1 -1
  273. package/dist-types/pagination/GetSegmentDetectionPaginator.d.ts +1 -1
  274. package/dist-types/pagination/GetTextDetectionPaginator.d.ts +1 -1
  275. package/dist-types/pagination/ListCollectionsPaginator.d.ts +1 -1
  276. package/dist-types/pagination/ListDatasetEntriesPaginator.d.ts +1 -1
  277. package/dist-types/pagination/ListDatasetLabelsPaginator.d.ts +1 -1
  278. package/dist-types/pagination/ListFacesPaginator.d.ts +1 -1
  279. package/dist-types/pagination/ListMediaAnalysisJobsPaginator.d.ts +1 -1
  280. package/dist-types/pagination/ListProjectPoliciesPaginator.d.ts +1 -1
  281. package/dist-types/pagination/ListStreamProcessorsPaginator.d.ts +1 -1
  282. package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
  283. package/dist-types/ts3.4/commands/AssociateFacesCommand.d.ts +14 -23
  284. package/dist-types/ts3.4/commands/CompareFacesCommand.d.ts +14 -23
  285. package/dist-types/ts3.4/commands/CopyProjectVersionCommand.d.ts +14 -23
  286. package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +14 -23
  287. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +14 -23
  288. package/dist-types/ts3.4/commands/CreateFaceLivenessSessionCommand.d.ts +12 -24
  289. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +14 -23
  290. package/dist-types/ts3.4/commands/CreateProjectVersionCommand.d.ts +12 -24
  291. package/dist-types/ts3.4/commands/CreateStreamProcessorCommand.d.ts +12 -24
  292. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +14 -23
  293. package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +14 -23
  294. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +14 -23
  295. package/dist-types/ts3.4/commands/DeleteFacesCommand.d.ts +14 -23
  296. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +14 -23
  297. package/dist-types/ts3.4/commands/DeleteProjectPolicyCommand.d.ts +14 -23
  298. package/dist-types/ts3.4/commands/DeleteProjectVersionCommand.d.ts +12 -24
  299. package/dist-types/ts3.4/commands/DeleteStreamProcessorCommand.d.ts +12 -24
  300. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +14 -23
  301. package/dist-types/ts3.4/commands/DescribeCollectionCommand.d.ts +14 -23
  302. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +14 -23
  303. package/dist-types/ts3.4/commands/DescribeProjectVersionsCommand.d.ts +12 -24
  304. package/dist-types/ts3.4/commands/DescribeProjectsCommand.d.ts +14 -23
  305. package/dist-types/ts3.4/commands/DescribeStreamProcessorCommand.d.ts +12 -24
  306. package/dist-types/ts3.4/commands/DetectCustomLabelsCommand.d.ts +14 -23
  307. package/dist-types/ts3.4/commands/DetectFacesCommand.d.ts +14 -23
  308. package/dist-types/ts3.4/commands/DetectLabelsCommand.d.ts +14 -23
  309. package/dist-types/ts3.4/commands/DetectModerationLabelsCommand.d.ts +12 -24
  310. package/dist-types/ts3.4/commands/DetectProtectiveEquipmentCommand.d.ts +12 -24
  311. package/dist-types/ts3.4/commands/DetectTextCommand.d.ts +14 -23
  312. package/dist-types/ts3.4/commands/DisassociateFacesCommand.d.ts +14 -23
  313. package/dist-types/ts3.4/commands/DistributeDatasetEntriesCommand.d.ts +12 -24
  314. package/dist-types/ts3.4/commands/GetCelebrityInfoCommand.d.ts +14 -23
  315. package/dist-types/ts3.4/commands/GetCelebrityRecognitionCommand.d.ts +12 -24
  316. package/dist-types/ts3.4/commands/GetContentModerationCommand.d.ts +12 -24
  317. package/dist-types/ts3.4/commands/GetFaceDetectionCommand.d.ts +14 -23
  318. package/dist-types/ts3.4/commands/GetFaceLivenessSessionResultsCommand.d.ts +12 -24
  319. package/dist-types/ts3.4/commands/GetFaceSearchCommand.d.ts +14 -23
  320. package/dist-types/ts3.4/commands/GetLabelDetectionCommand.d.ts +14 -23
  321. package/dist-types/ts3.4/commands/GetMediaAnalysisJobCommand.d.ts +14 -23
  322. package/dist-types/ts3.4/commands/GetPersonTrackingCommand.d.ts +14 -23
  323. package/dist-types/ts3.4/commands/GetSegmentDetectionCommand.d.ts +14 -23
  324. package/dist-types/ts3.4/commands/GetTextDetectionCommand.d.ts +14 -23
  325. package/dist-types/ts3.4/commands/IndexFacesCommand.d.ts +14 -23
  326. package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +14 -23
  327. package/dist-types/ts3.4/commands/ListDatasetEntriesCommand.d.ts +14 -23
  328. package/dist-types/ts3.4/commands/ListDatasetLabelsCommand.d.ts +14 -23
  329. package/dist-types/ts3.4/commands/ListFacesCommand.d.ts +14 -23
  330. package/dist-types/ts3.4/commands/ListMediaAnalysisJobsCommand.d.ts +12 -24
  331. package/dist-types/ts3.4/commands/ListProjectPoliciesCommand.d.ts +14 -23
  332. package/dist-types/ts3.4/commands/ListStreamProcessorsCommand.d.ts +12 -24
  333. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  334. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +14 -23
  335. package/dist-types/ts3.4/commands/PutProjectPolicyCommand.d.ts +14 -23
  336. package/dist-types/ts3.4/commands/RecognizeCelebritiesCommand.d.ts +12 -24
  337. package/dist-types/ts3.4/commands/SearchFacesByImageCommand.d.ts +14 -23
  338. package/dist-types/ts3.4/commands/SearchFacesCommand.d.ts +14 -23
  339. package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +14 -23
  340. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +14 -23
  341. package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +12 -24
  342. package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +12 -24
  343. package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +14 -23
  344. package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +14 -23
  345. package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +14 -23
  346. package/dist-types/ts3.4/commands/StartMediaAnalysisJobCommand.d.ts +12 -24
  347. package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +14 -23
  348. package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +14 -23
  349. package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +12 -24
  350. package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +12 -24
  351. package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +14 -23
  352. package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +14 -23
  353. package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +14 -23
  354. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  355. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  356. package/dist-types/ts3.4/commands/UpdateDatasetEntriesCommand.d.ts +12 -24
  357. package/dist-types/ts3.4/commands/UpdateStreamProcessorCommand.d.ts +12 -24
  358. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  359. package/dist-types/ts3.4/pagination/DescribeProjectVersionsPaginator.d.ts +3 -3
  360. package/dist-types/ts3.4/pagination/DescribeProjectsPaginator.d.ts +3 -3
  361. package/dist-types/ts3.4/pagination/GetCelebrityRecognitionPaginator.d.ts +3 -3
  362. package/dist-types/ts3.4/pagination/GetContentModerationPaginator.d.ts +3 -3
  363. package/dist-types/ts3.4/pagination/GetFaceDetectionPaginator.d.ts +3 -3
  364. package/dist-types/ts3.4/pagination/GetFaceSearchPaginator.d.ts +3 -3
  365. package/dist-types/ts3.4/pagination/GetLabelDetectionPaginator.d.ts +3 -3
  366. package/dist-types/ts3.4/pagination/GetPersonTrackingPaginator.d.ts +3 -3
  367. package/dist-types/ts3.4/pagination/GetSegmentDetectionPaginator.d.ts +3 -3
  368. package/dist-types/ts3.4/pagination/GetTextDetectionPaginator.d.ts +3 -3
  369. package/dist-types/ts3.4/pagination/ListCollectionsPaginator.d.ts +3 -3
  370. package/dist-types/ts3.4/pagination/ListDatasetEntriesPaginator.d.ts +3 -3
  371. package/dist-types/ts3.4/pagination/ListDatasetLabelsPaginator.d.ts +3 -3
  372. package/dist-types/ts3.4/pagination/ListFacesPaginator.d.ts +3 -3
  373. package/dist-types/ts3.4/pagination/ListMediaAnalysisJobsPaginator.d.ts +3 -3
  374. package/dist-types/ts3.4/pagination/ListProjectPoliciesPaginator.d.ts +3 -3
  375. package/dist-types/ts3.4/pagination/ListStreamProcessorsPaginator.d.ts +3 -3
  376. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
  377. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopStreamProcessorCommand, se_StopStreamProcessorCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class StopStreamProcessorCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopStreamProcessorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RekognitionClient";
26
- const commandName = "StopStreamProcessorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RekognitionService",
35
- operation: "StopStreamProcessor",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopStreamProcessorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopStreamProcessorCommand(output, context);
46
- }
7
+ export class StopStreamProcessorCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RekognitionService", "StopStreamProcessor", {})
19
+ .n("RekognitionClient", "StopStreamProcessorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopStreamProcessorCommand)
22
+ .de(de_StopStreamProcessorCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RekognitionClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RekognitionService",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RekognitionService", "TagResource", {})
19
+ .n("RekognitionClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RekognitionClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RekognitionService",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RekognitionService", "UntagResource", {})
19
+ .n("RekognitionClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateDatasetEntriesCommand, se_UpdateDatasetEntriesCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateDatasetEntriesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDatasetEntriesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RekognitionClient";
26
- const commandName = "UpdateDatasetEntriesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RekognitionService",
35
- operation: "UpdateDatasetEntries",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateDatasetEntriesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateDatasetEntriesCommand(output, context);
46
- }
7
+ export class UpdateDatasetEntriesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RekognitionService", "UpdateDatasetEntries", {})
19
+ .n("RekognitionClient", "UpdateDatasetEntriesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateDatasetEntriesCommand)
22
+ .de(de_UpdateDatasetEntriesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateStreamProcessorCommand, se_UpdateStreamProcessorCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateStreamProcessorCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateStreamProcessorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RekognitionClient";
26
- const commandName = "UpdateStreamProcessorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RekognitionService",
35
- operation: "UpdateStreamProcessor",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateStreamProcessorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateStreamProcessorCommand(output, context);
46
- }
7
+ export class UpdateStreamProcessorCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RekognitionService", "UpdateStreamProcessor", {})
19
+ .n("RekognitionClient", "UpdateStreamProcessorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateStreamProcessorCommand)
22
+ .de(de_UpdateStreamProcessorCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "rekognition",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeProjectVersionsCommand, } from "../commands/DescribeProjectVersionsCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeProjectVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeProjectVersions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeProjectVersions = createPaginator(RekognitionClient, DescribeProjectVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeProjectsCommand, } from "../commands/DescribeProjectsCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeProjectsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeProjects(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeProjects = createPaginator(RekognitionClient, DescribeProjectsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetCelebrityRecognitionCommand, } from "../commands/GetCelebrityRecognitionCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetCelebrityRecognitionCommand(input), ...args);
5
- };
6
- export async function* paginateGetCelebrityRecognition(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetCelebrityRecognition = createPaginator(RekognitionClient, GetCelebrityRecognitionCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetContentModerationCommand, } from "../commands/GetContentModerationCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetContentModerationCommand(input), ...args);
5
- };
6
- export async function* paginateGetContentModeration(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetContentModeration = createPaginator(RekognitionClient, GetContentModerationCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetFaceDetectionCommand, } from "../commands/GetFaceDetectionCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetFaceDetectionCommand(input), ...args);
5
- };
6
- export async function* paginateGetFaceDetection(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetFaceDetection = createPaginator(RekognitionClient, GetFaceDetectionCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetFaceSearchCommand, } from "../commands/GetFaceSearchCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetFaceSearchCommand(input), ...args);
5
- };
6
- export async function* paginateGetFaceSearch(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetFaceSearch = createPaginator(RekognitionClient, GetFaceSearchCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetLabelDetectionCommand, } from "../commands/GetLabelDetectionCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetLabelDetectionCommand(input), ...args);
5
- };
6
- export async function* paginateGetLabelDetection(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetLabelDetection = createPaginator(RekognitionClient, GetLabelDetectionCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetPersonTrackingCommand, } from "../commands/GetPersonTrackingCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetPersonTrackingCommand(input), ...args);
5
- };
6
- export async function* paginateGetPersonTracking(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetPersonTracking = createPaginator(RekognitionClient, GetPersonTrackingCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetSegmentDetectionCommand, } from "../commands/GetSegmentDetectionCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetSegmentDetectionCommand(input), ...args);
5
- };
6
- export async function* paginateGetSegmentDetection(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetSegmentDetection = createPaginator(RekognitionClient, GetSegmentDetectionCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetTextDetectionCommand, } from "../commands/GetTextDetectionCommand";
2
3
  import { RekognitionClient } from "../RekognitionClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetTextDetectionCommand(input), ...args);
5
- };
6
- export async function* paginateGetTextDetection(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof RekognitionClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Rekognition | RekognitionClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetTextDetection = createPaginator(RekognitionClient, GetTextDetectionCommand, "NextToken", "NextToken", "MaxResults");