@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/Comprehend.js +0 -7
- package/dist-cjs/ComprehendClient.js +0 -12
- package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js +0 -27
- package/dist-cjs/commands/BatchDetectEntitiesCommand.js +0 -27
- package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js +0 -25
- package/dist-cjs/commands/BatchDetectSentimentCommand.js +0 -27
- package/dist-cjs/commands/BatchDetectSyntaxCommand.js +0 -26
- package/dist-cjs/commands/ClassifyDocumentCommand.js +0 -26
- package/dist-cjs/commands/ContainsPiiEntitiesCommand.js +0 -27
- package/dist-cjs/commands/CreateDocumentClassifierCommand.js +0 -28
- package/dist-cjs/commands/CreateEndpointCommand.js +0 -27
- package/dist-cjs/commands/CreateEntityRecognizerCommand.js +0 -27
- package/dist-cjs/commands/DeleteDocumentClassifierCommand.js +0 -31
- package/dist-cjs/commands/DeleteEndpointCommand.js +0 -26
- package/dist-cjs/commands/DeleteEntityRecognizerCommand.js +0 -31
- package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeDocumentClassifierCommand.js +0 -25
- package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeEndpointCommand.js +0 -26
- package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeEntityRecognizerCommand.js +0 -26
- package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DetectDominantLanguageCommand.js +0 -26
- package/dist-cjs/commands/DetectEntitiesCommand.js +0 -26
- package/dist-cjs/commands/DetectKeyPhrasesCommand.js +0 -25
- package/dist-cjs/commands/DetectPiiEntitiesCommand.js +0 -26
- package/dist-cjs/commands/DetectSentimentCommand.js +0 -26
- package/dist-cjs/commands/DetectSyntaxCommand.js +0 -26
- package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js +0 -25
- package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js +0 -25
- package/dist-cjs/commands/ListDocumentClassifiersCommand.js +0 -25
- package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js +0 -25
- package/dist-cjs/commands/ListEndpointsCommand.js +0 -25
- package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js +0 -25
- package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js +0 -25
- package/dist-cjs/commands/ListEntityRecognizersCommand.js +0 -30
- package/dist-cjs/commands/ListEventsDetectionJobsCommand.js +0 -25
- package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js +0 -25
- package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js +0 -25
- package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js +0 -25
- package/dist-cjs/commands/StartDocumentClassificationJobCommand.js +0 -26
- package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js +0 -27
- package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js +0 -29
- package/dist-cjs/commands/StartEventsDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js +0 -27
- package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/StartSentimentDetectionJobCommand.js +0 -27
- package/dist-cjs/commands/StartTopicsDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js +0 -34
- package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js +0 -34
- package/dist-cjs/commands/StopEventsDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js +0 -34
- package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/StopSentimentDetectionJobCommand.js +0 -34
- package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +0 -30
- package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +0 -30
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateEndpointCommand.js +0 -25
- package/dist-cjs/commands/index.js +66 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -78
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -610
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDocumentClassificationJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListDocumentClassifierSummariesPaginator.js +0 -11
- package/dist-cjs/pagination/ListDocumentClassifiersPaginator.js +0 -11
- package/dist-cjs/pagination/ListDominantLanguageDetectionJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListEntitiesDetectionJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListEntityRecognizerSummariesPaginator.js +0 -11
- package/dist-cjs/pagination/ListEntityRecognizersPaginator.js +0 -11
- package/dist-cjs/pagination/ListEventsDetectionJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListKeyPhrasesDetectionJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListSentimentDetectionJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListTopicsDetectionJobsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +15 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Comprehend.js +0 -1
- package/dist-es/ComprehendClient.js +0 -1
- package/dist-es/commands/BatchDetectDominantLanguageCommand.js +0 -1
- package/dist-es/commands/BatchDetectEntitiesCommand.js +0 -1
- package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +0 -1
- package/dist-es/commands/BatchDetectSentimentCommand.js +0 -1
- package/dist-es/commands/BatchDetectSyntaxCommand.js +0 -1
- package/dist-es/commands/ClassifyDocumentCommand.js +0 -1
- package/dist-es/commands/ContainsPiiEntitiesCommand.js +0 -1
- package/dist-es/commands/CreateDocumentClassifierCommand.js +0 -1
- package/dist-es/commands/CreateEndpointCommand.js +0 -1
- package/dist-es/commands/CreateEntityRecognizerCommand.js +0 -1
- package/dist-es/commands/DeleteDocumentClassifierCommand.js +0 -1
- package/dist-es/commands/DeleteEndpointCommand.js +0 -1
- package/dist-es/commands/DeleteEntityRecognizerCommand.js +0 -1
- package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +0 -1
- package/dist-es/commands/DescribeDocumentClassifierCommand.js +0 -1
- package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribeEndpointCommand.js +0 -1
- package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribeEntityRecognizerCommand.js +0 -1
- package/dist-es/commands/DescribeEventsDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +0 -1
- package/dist-es/commands/DetectDominantLanguageCommand.js +0 -1
- package/dist-es/commands/DetectEntitiesCommand.js +0 -1
- package/dist-es/commands/DetectKeyPhrasesCommand.js +0 -1
- package/dist-es/commands/DetectPiiEntitiesCommand.js +0 -1
- package/dist-es/commands/DetectSentimentCommand.js +0 -1
- package/dist-es/commands/DetectSyntaxCommand.js +0 -1
- package/dist-es/commands/ListDocumentClassificationJobsCommand.js +0 -1
- package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +0 -1
- package/dist-es/commands/ListDocumentClassifiersCommand.js +0 -1
- package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListEndpointsCommand.js +0 -1
- package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +0 -1
- package/dist-es/commands/ListEntityRecognizersCommand.js +0 -1
- package/dist-es/commands/ListEventsDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListSentimentDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListTopicsDetectionJobsCommand.js +0 -1
- package/dist-es/commands/StartDocumentClassificationJobCommand.js +0 -1
- package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartEntitiesDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartEventsDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartSentimentDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartTopicsDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopEntitiesDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopEventsDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopSentimentDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +0 -1
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateEndpointCommand.js +0 -1
- package/dist-es/commands/index.js +63 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -78
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +0 -1
- package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +0 -1
- package/dist-es/pagination/ListDocumentClassifiersPaginator.js +0 -1
- package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +0 -1
- package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +0 -1
- package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +0 -1
- package/dist-es/pagination/ListEntityRecognizersPaginator.js +0 -1
- package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +0 -1
- package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +0 -1
- package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +0 -1
- package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +0 -1
- package/dist-es/pagination/index.js +12 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +63 -0
- package/dist-types/index.d.ts +4 -77
- package/dist-types/pagination/index.d.ts +12 -0
- package/dist-types/ts3.4/Comprehend.d.ts +64 -305
- package/dist-types/ts3.4/ComprehendClient.d.ts +24 -92
- package/dist-types/ts3.4/commands/BatchDetectDominantLanguageCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/BatchDetectEntitiesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/BatchDetectKeyPhrasesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchDetectSentimentCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/BatchDetectSyntaxCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ClassifyDocumentCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ContainsPiiEntitiesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateDocumentClassifierCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateEntityRecognizerCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteDocumentClassifierCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteEntityRecognizerCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DescribeDocumentClassificationJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeDocumentClassifierCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEndpointCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEntitiesDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEntityRecognizerCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEventsDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeSentimentDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeTopicsDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectDominantLanguageCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectKeyPhrasesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DetectPiiEntitiesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectSentimentCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectSyntaxCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListDocumentClassificationJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDocumentClassifierSummariesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDocumentClassifiersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDominantLanguageDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEntitiesDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEntityRecognizerSummariesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEntityRecognizersCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListEventsDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListSentimentDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTopicsDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartDocumentClassificationJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StartDominantLanguageDetectionJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartEntitiesDetectionJobCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/StartEventsDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartKeyPhrasesDetectionJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartPiiEntitiesDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartSentimentDetectionJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartTopicsDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StopDominantLanguageDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopEventsDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopKeyPhrasesDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopPiiEntitiesDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopSentimentDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +63 -0
- package/dist-types/ts3.4/index.d.ts +4 -77
- package/dist-types/ts3.4/models/models_0.d.ts +884 -3867
- package/dist-types/ts3.4/pagination/index.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Comprehend.js.map +0 -1
- package/dist-cjs/ComprehendClient.js.map +0 -1
- package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js.map +0 -1
- package/dist-cjs/commands/BatchDetectEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js.map +0 -1
- package/dist-cjs/commands/BatchDetectSentimentCommand.js.map +0 -1
- package/dist-cjs/commands/BatchDetectSyntaxCommand.js.map +0 -1
- package/dist-cjs/commands/ClassifyDocumentCommand.js.map +0 -1
- package/dist-cjs/commands/ContainsPiiEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDocumentClassifierCommand.js.map +0 -1
- package/dist-cjs/commands/CreateEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/CreateEntityRecognizerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDocumentClassifierCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEntityRecognizerCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDocumentClassifierCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEntityRecognizerCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DetectDominantLanguageCommand.js.map +0 -1
- package/dist-cjs/commands/DetectEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/DetectKeyPhrasesCommand.js.map +0 -1
- package/dist-cjs/commands/DetectPiiEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/DetectSentimentCommand.js.map +0 -1
- package/dist-cjs/commands/DetectSyntaxCommand.js.map +0 -1
- package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js.map +0 -1
- package/dist-cjs/commands/ListDocumentClassifiersCommand.js.map +0 -1
- package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListEndpointsCommand.js.map +0 -1
- package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js.map +0 -1
- package/dist-cjs/commands/ListEntityRecognizersCommand.js.map +0 -1
- package/dist-cjs/commands/ListEventsDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/StartDocumentClassificationJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartEventsDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartSentimentDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartTopicsDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopEventsDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopSentimentDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js.map +0 -1
- package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateEndpointCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListDocumentClassificationJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDocumentClassifierSummariesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDocumentClassifiersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDominantLanguageDetectionJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListEntitiesDetectionJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListEntityRecognizerSummariesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListEntityRecognizersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListEventsDetectionJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListKeyPhrasesDetectionJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSentimentDetectionJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTopicsDetectionJobsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Comprehend.js.map +0 -1
- package/dist-es/ComprehendClient.js.map +0 -1
- package/dist-es/commands/BatchDetectDominantLanguageCommand.js.map +0 -1
- package/dist-es/commands/BatchDetectEntitiesCommand.js.map +0 -1
- package/dist-es/commands/BatchDetectKeyPhrasesCommand.js.map +0 -1
- package/dist-es/commands/BatchDetectSentimentCommand.js.map +0 -1
- package/dist-es/commands/BatchDetectSyntaxCommand.js.map +0 -1
- package/dist-es/commands/ClassifyDocumentCommand.js.map +0 -1
- package/dist-es/commands/ContainsPiiEntitiesCommand.js.map +0 -1
- package/dist-es/commands/CreateDocumentClassifierCommand.js.map +0 -1
- package/dist-es/commands/CreateEndpointCommand.js.map +0 -1
- package/dist-es/commands/CreateEntityRecognizerCommand.js.map +0 -1
- package/dist-es/commands/DeleteDocumentClassifierCommand.js.map +0 -1
- package/dist-es/commands/DeleteEndpointCommand.js.map +0 -1
- package/dist-es/commands/DeleteEntityRecognizerCommand.js.map +0 -1
- package/dist-es/commands/DescribeDocumentClassificationJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeDocumentClassifierCommand.js.map +0 -1
- package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeEndpointCommand.js.map +0 -1
- package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeEntityRecognizerCommand.js.map +0 -1
- package/dist-es/commands/DescribeEventsDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeSentimentDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeTopicsDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DetectDominantLanguageCommand.js.map +0 -1
- package/dist-es/commands/DetectEntitiesCommand.js.map +0 -1
- package/dist-es/commands/DetectKeyPhrasesCommand.js.map +0 -1
- package/dist-es/commands/DetectPiiEntitiesCommand.js.map +0 -1
- package/dist-es/commands/DetectSentimentCommand.js.map +0 -1
- package/dist-es/commands/DetectSyntaxCommand.js.map +0 -1
- package/dist-es/commands/ListDocumentClassificationJobsCommand.js.map +0 -1
- package/dist-es/commands/ListDocumentClassifierSummariesCommand.js.map +0 -1
- package/dist-es/commands/ListDocumentClassifiersCommand.js.map +0 -1
- package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListEndpointsCommand.js.map +0 -1
- package/dist-es/commands/ListEntitiesDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListEntityRecognizerSummariesCommand.js.map +0 -1
- package/dist-es/commands/ListEntityRecognizersCommand.js.map +0 -1
- package/dist-es/commands/ListEventsDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListSentimentDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListTopicsDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/StartDocumentClassificationJobCommand.js.map +0 -1
- package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartEventsDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartSentimentDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartTopicsDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopEventsDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopSentimentDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js.map +0 -1
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateEndpointCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js.map +0 -1
- package/dist-es/pagination/ListDocumentClassifiersPaginator.js.map +0 -1
- package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js.map +0 -1
- package/dist-es/pagination/ListEntityRecognizersPaginator.js.map +0 -1
- package/dist-es/pagination/ListEventsDetectionJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Comprehend.ts +0 -2439
- package/src/ComprehendClient.ts +0 -575
- package/src/commands/BatchDetectDominantLanguageCommand.ts +0 -102
- package/src/commands/BatchDetectEntitiesCommand.ts +0 -97
- package/src/commands/BatchDetectKeyPhrasesCommand.ts +0 -95
- package/src/commands/BatchDetectSentimentCommand.ts +0 -97
- package/src/commands/BatchDetectSyntaxCommand.ts +0 -96
- package/src/commands/ClassifyDocumentCommand.ts +0 -96
- package/src/commands/ContainsPiiEntitiesCommand.ts +0 -97
- package/src/commands/CreateDocumentClassifierCommand.ts +0 -98
- package/src/commands/CreateEndpointCommand.ts +0 -97
- package/src/commands/CreateEntityRecognizerCommand.ts +0 -97
- package/src/commands/DeleteDocumentClassifierCommand.ts +0 -101
- package/src/commands/DeleteEndpointCommand.ts +0 -96
- package/src/commands/DeleteEntityRecognizerCommand.ts +0 -101
- package/src/commands/DescribeDocumentClassificationJobCommand.ts +0 -107
- package/src/commands/DescribeDocumentClassifierCommand.ts +0 -98
- package/src/commands/DescribeDominantLanguageDetectionJobCommand.ts +0 -107
- package/src/commands/DescribeEndpointCommand.ts +0 -96
- package/src/commands/DescribeEntitiesDetectionJobCommand.ts +0 -101
- package/src/commands/DescribeEntityRecognizerCommand.ts +0 -96
- package/src/commands/DescribeEventsDetectionJobCommand.ts +0 -98
- package/src/commands/DescribeKeyPhrasesDetectionJobCommand.ts +0 -104
- package/src/commands/DescribePiiEntitiesDetectionJobCommand.ts +0 -104
- package/src/commands/DescribeSentimentDetectionJobCommand.ts +0 -101
- package/src/commands/DescribeTopicsDetectionJobCommand.ts +0 -99
- package/src/commands/DetectDominantLanguageCommand.ts +0 -96
- package/src/commands/DetectEntitiesCommand.ts +0 -96
- package/src/commands/DetectKeyPhrasesCommand.ts +0 -95
- package/src/commands/DetectPiiEntitiesCommand.ts +0 -96
- package/src/commands/DetectSentimentCommand.ts +0 -96
- package/src/commands/DetectSyntaxCommand.ts +0 -96
- package/src/commands/ListDocumentClassificationJobsCommand.ts +0 -103
- package/src/commands/ListDocumentClassifierSummariesCommand.ts +0 -103
- package/src/commands/ListDocumentClassifiersCommand.ts +0 -95
- package/src/commands/ListDominantLanguageDetectionJobsCommand.ts +0 -106
- package/src/commands/ListEndpointsCommand.ts +0 -95
- package/src/commands/ListEntitiesDetectionJobsCommand.ts +0 -98
- package/src/commands/ListEntityRecognizerSummariesCommand.ts +0 -100
- package/src/commands/ListEntityRecognizersCommand.ts +0 -100
- package/src/commands/ListEventsDetectionJobsCommand.ts +0 -95
- package/src/commands/ListKeyPhrasesDetectionJobsCommand.ts +0 -100
- package/src/commands/ListPiiEntitiesDetectionJobsCommand.ts +0 -100
- package/src/commands/ListSentimentDetectionJobsCommand.ts +0 -98
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListTopicsDetectionJobsCommand.ts +0 -95
- package/src/commands/StartDocumentClassificationJobCommand.ts +0 -104
- package/src/commands/StartDominantLanguageDetectionJobCommand.ts +0 -108
- package/src/commands/StartEntitiesDetectionJobCommand.ts +0 -102
- package/src/commands/StartEventsDetectionJobCommand.ts +0 -95
- package/src/commands/StartKeyPhrasesDetectionJobCommand.ts +0 -102
- package/src/commands/StartPiiEntitiesDetectionJobCommand.ts +0 -100
- package/src/commands/StartSentimentDetectionJobCommand.ts +0 -100
- package/src/commands/StartTopicsDetectionJobCommand.ts +0 -96
- package/src/commands/StopDominantLanguageDetectionJobCommand.ts +0 -112
- package/src/commands/StopEntitiesDetectionJobCommand.ts +0 -104
- package/src/commands/StopEventsDetectionJobCommand.ts +0 -95
- package/src/commands/StopKeyPhrasesDetectionJobCommand.ts +0 -107
- package/src/commands/StopPiiEntitiesDetectionJobCommand.ts +0 -100
- package/src/commands/StopSentimentDetectionJobCommand.ts +0 -107
- package/src/commands/StopTrainingDocumentClassifierCommand.ts +0 -108
- package/src/commands/StopTrainingEntityRecognizerCommand.ts +0 -105
- package/src/commands/TagResourceCommand.ts +0 -98
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateEndpointCommand.ts +0 -95
- package/src/endpoints.ts +0 -77
- package/src/index.ts +0 -78
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -6966
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListDocumentClassificationJobsPaginator.ts +0 -59
- package/src/pagination/ListDocumentClassifierSummariesPaginator.ts +0 -59
- package/src/pagination/ListDocumentClassifiersPaginator.ts +0 -59
- package/src/pagination/ListDominantLanguageDetectionJobsPaginator.ts +0 -59
- package/src/pagination/ListEntitiesDetectionJobsPaginator.ts +0 -59
- package/src/pagination/ListEntityRecognizerSummariesPaginator.ts +0 -59
- package/src/pagination/ListEntityRecognizersPaginator.ts +0 -59
- package/src/pagination/ListEventsDetectionJobsPaginator.ts +0 -59
- package/src/pagination/ListKeyPhrasesDetectionJobsPaginator.ts +0 -59
- package/src/pagination/ListSentimentDetectionJobsPaginator.ts +0 -59
- package/src/pagination/ListTopicsDetectionJobsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -10158
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Comprehend } from "../Comprehend";
|
|
4
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
5
|
-
|
|
6
|
-
export interface ComprehendPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: Comprehend | ComprehendClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListDocumentClassificationJobsCommand,
|
|
5
|
-
ListDocumentClassificationJobsCommandInput,
|
|
6
|
-
ListDocumentClassificationJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListDocumentClassificationJobsCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListDocumentClassificationJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDocumentClassificationJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDocumentClassificationJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListDocumentClassificationJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDocumentClassificationJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDocumentClassificationJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDocumentClassificationJobs(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListDocumentClassificationJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDocumentClassificationJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDocumentClassificationJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListDocumentClassifierSummariesCommand,
|
|
5
|
-
ListDocumentClassifierSummariesCommandInput,
|
|
6
|
-
ListDocumentClassifierSummariesCommandOutput,
|
|
7
|
-
} from "../commands/ListDocumentClassifierSummariesCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListDocumentClassifierSummariesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDocumentClassifierSummariesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDocumentClassifierSummariesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListDocumentClassifierSummariesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDocumentClassifierSummariesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDocumentClassifierSummaries(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDocumentClassifierSummaries(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListDocumentClassifierSummariesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDocumentClassifierSummariesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDocumentClassifierSummariesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListDocumentClassifiersCommand,
|
|
5
|
-
ListDocumentClassifiersCommandInput,
|
|
6
|
-
ListDocumentClassifiersCommandOutput,
|
|
7
|
-
} from "../commands/ListDocumentClassifiersCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListDocumentClassifiersCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDocumentClassifiersCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDocumentClassifiersCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListDocumentClassifiersCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDocumentClassifiersCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDocumentClassifiers(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDocumentClassifiers(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListDocumentClassifiersCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDocumentClassifiersCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDocumentClassifiersCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListDominantLanguageDetectionJobsCommand,
|
|
5
|
-
ListDominantLanguageDetectionJobsCommandInput,
|
|
6
|
-
ListDominantLanguageDetectionJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListDominantLanguageDetectionJobsCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListDominantLanguageDetectionJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDominantLanguageDetectionJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDominantLanguageDetectionJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListDominantLanguageDetectionJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDominantLanguageDetectionJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDominantLanguageDetectionJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDominantLanguageDetectionJobs(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListDominantLanguageDetectionJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDominantLanguageDetectionJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDominantLanguageDetectionJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListEntitiesDetectionJobsCommand,
|
|
5
|
-
ListEntitiesDetectionJobsCommandInput,
|
|
6
|
-
ListEntitiesDetectionJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListEntitiesDetectionJobsCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListEntitiesDetectionJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListEntitiesDetectionJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListEntitiesDetectionJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListEntitiesDetectionJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListEntitiesDetectionJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listEntitiesDetectionJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListEntitiesDetectionJobs(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListEntitiesDetectionJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListEntitiesDetectionJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListEntitiesDetectionJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListEntityRecognizerSummariesCommand,
|
|
5
|
-
ListEntityRecognizerSummariesCommandInput,
|
|
6
|
-
ListEntityRecognizerSummariesCommandOutput,
|
|
7
|
-
} from "../commands/ListEntityRecognizerSummariesCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListEntityRecognizerSummariesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListEntityRecognizerSummariesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListEntityRecognizerSummariesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListEntityRecognizerSummariesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListEntityRecognizerSummariesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listEntityRecognizerSummaries(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListEntityRecognizerSummaries(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListEntityRecognizerSummariesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListEntityRecognizerSummariesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListEntityRecognizerSummariesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListEntityRecognizersCommand,
|
|
5
|
-
ListEntityRecognizersCommandInput,
|
|
6
|
-
ListEntityRecognizersCommandOutput,
|
|
7
|
-
} from "../commands/ListEntityRecognizersCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListEntityRecognizersCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListEntityRecognizersCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListEntityRecognizersCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListEntityRecognizersCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListEntityRecognizersCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listEntityRecognizers(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListEntityRecognizers(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListEntityRecognizersCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListEntityRecognizersCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListEntityRecognizersCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListEventsDetectionJobsCommand,
|
|
5
|
-
ListEventsDetectionJobsCommandInput,
|
|
6
|
-
ListEventsDetectionJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListEventsDetectionJobsCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListEventsDetectionJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListEventsDetectionJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListEventsDetectionJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListEventsDetectionJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListEventsDetectionJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listEventsDetectionJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListEventsDetectionJobs(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListEventsDetectionJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListEventsDetectionJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListEventsDetectionJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListKeyPhrasesDetectionJobsCommand,
|
|
5
|
-
ListKeyPhrasesDetectionJobsCommandInput,
|
|
6
|
-
ListKeyPhrasesDetectionJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListKeyPhrasesDetectionJobsCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListKeyPhrasesDetectionJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListKeyPhrasesDetectionJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListKeyPhrasesDetectionJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListKeyPhrasesDetectionJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListKeyPhrasesDetectionJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listKeyPhrasesDetectionJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListKeyPhrasesDetectionJobs(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListKeyPhrasesDetectionJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListKeyPhrasesDetectionJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListKeyPhrasesDetectionJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListSentimentDetectionJobsCommand,
|
|
5
|
-
ListSentimentDetectionJobsCommandInput,
|
|
6
|
-
ListSentimentDetectionJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListSentimentDetectionJobsCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListSentimentDetectionJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListSentimentDetectionJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListSentimentDetectionJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListSentimentDetectionJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListSentimentDetectionJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listSentimentDetectionJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListSentimentDetectionJobs(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListSentimentDetectionJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListSentimentDetectionJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListSentimentDetectionJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListTopicsDetectionJobsCommand,
|
|
5
|
-
ListTopicsDetectionJobsCommandInput,
|
|
6
|
-
ListTopicsDetectionJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListTopicsDetectionJobsCommand";
|
|
8
|
-
import { Comprehend } from "../Comprehend";
|
|
9
|
-
import { ComprehendClient } from "../ComprehendClient";
|
|
10
|
-
import { ComprehendPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ComprehendClient,
|
|
17
|
-
input: ListTopicsDetectionJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListTopicsDetectionJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListTopicsDetectionJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Comprehend,
|
|
28
|
-
input: ListTopicsDetectionJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListTopicsDetectionJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listTopicsDetectionJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListTopicsDetectionJobs(
|
|
35
|
-
config: ComprehendPaginationConfiguration,
|
|
36
|
-
input: ListTopicsDetectionJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListTopicsDetectionJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListTopicsDetectionJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Comprehend) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ComprehendClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|