@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,108 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
15
|
-
import {
|
|
16
|
-
StartDominantLanguageDetectionJobRequest,
|
|
17
|
-
StartDominantLanguageDetectionJobResponse,
|
|
18
|
-
} from "../models/models_0";
|
|
19
|
-
import {
|
|
20
|
-
deserializeAws_json1_1StartDominantLanguageDetectionJobCommand,
|
|
21
|
-
serializeAws_json1_1StartDominantLanguageDetectionJobCommand,
|
|
22
|
-
} from "../protocols/Aws_json1_1";
|
|
23
|
-
|
|
24
|
-
export interface StartDominantLanguageDetectionJobCommandInput extends StartDominantLanguageDetectionJobRequest {}
|
|
25
|
-
export interface StartDominantLanguageDetectionJobCommandOutput
|
|
26
|
-
extends StartDominantLanguageDetectionJobResponse,
|
|
27
|
-
__MetadataBearer {}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* <p>Starts an asynchronous dominant language detection job for a collection of documents. Use
|
|
31
|
-
* the operation to track the status
|
|
32
|
-
* of a job.</p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { ComprehendClient, StartDominantLanguageDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
37
|
-
* // const { ComprehendClient, StartDominantLanguageDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
38
|
-
* const client = new ComprehendClient(config);
|
|
39
|
-
* const command = new StartDominantLanguageDetectionJobCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link StartDominantLanguageDetectionJobCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link StartDominantLanguageDetectionJobCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class StartDominantLanguageDetectionJobCommand extends $Command<
|
|
49
|
-
StartDominantLanguageDetectionJobCommandInput,
|
|
50
|
-
StartDominantLanguageDetectionJobCommandOutput,
|
|
51
|
-
ComprehendClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: StartDominantLanguageDetectionJobCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: ComprehendClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<StartDominantLanguageDetectionJobCommandInput, StartDominantLanguageDetectionJobCommandOutput> {
|
|
70
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
|
-
|
|
72
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
73
|
-
|
|
74
|
-
const { logger } = configuration;
|
|
75
|
-
const clientName = "ComprehendClient";
|
|
76
|
-
const commandName = "StartDominantLanguageDetectionJobCommand";
|
|
77
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
78
|
-
logger,
|
|
79
|
-
clientName,
|
|
80
|
-
commandName,
|
|
81
|
-
inputFilterSensitiveLog: StartDominantLanguageDetectionJobRequest.filterSensitiveLog,
|
|
82
|
-
outputFilterSensitiveLog: StartDominantLanguageDetectionJobResponse.filterSensitiveLog,
|
|
83
|
-
};
|
|
84
|
-
const { requestHandler } = configuration;
|
|
85
|
-
return stack.resolve(
|
|
86
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
87
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
88
|
-
handlerExecutionContext
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private serialize(
|
|
93
|
-
input: StartDominantLanguageDetectionJobCommandInput,
|
|
94
|
-
context: __SerdeContext
|
|
95
|
-
): Promise<__HttpRequest> {
|
|
96
|
-
return serializeAws_json1_1StartDominantLanguageDetectionJobCommand(input, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private deserialize(
|
|
100
|
-
output: __HttpResponse,
|
|
101
|
-
context: __SerdeContext
|
|
102
|
-
): Promise<StartDominantLanguageDetectionJobCommandOutput> {
|
|
103
|
-
return deserializeAws_json1_1StartDominantLanguageDetectionJobCommand(output, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Start section: command_body_extra
|
|
107
|
-
// End section: command_body_extra
|
|
108
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
15
|
-
import { StartEntitiesDetectionJobRequest, StartEntitiesDetectionJobResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1StartEntitiesDetectionJobCommand,
|
|
18
|
-
serializeAws_json1_1StartEntitiesDetectionJobCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface StartEntitiesDetectionJobCommandInput extends StartEntitiesDetectionJobRequest {}
|
|
22
|
-
export interface StartEntitiesDetectionJobCommandOutput extends StartEntitiesDetectionJobResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.</p>
|
|
26
|
-
* <p>This API can be used for either standard entity detection or custom entity recognition. In
|
|
27
|
-
* order to be used for custom entity recognition, the optional <code>EntityRecognizerArn</code>
|
|
28
|
-
* must be used in order to provide access to the recognizer being used to detect the custom
|
|
29
|
-
* entity.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { ComprehendClient, StartEntitiesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
34
|
-
* // const { ComprehendClient, StartEntitiesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
35
|
-
* const client = new ComprehendClient(config);
|
|
36
|
-
* const command = new StartEntitiesDetectionJobCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link StartEntitiesDetectionJobCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link StartEntitiesDetectionJobCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class StartEntitiesDetectionJobCommand extends $Command<
|
|
46
|
-
StartEntitiesDetectionJobCommandInput,
|
|
47
|
-
StartEntitiesDetectionJobCommandOutput,
|
|
48
|
-
ComprehendClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: StartEntitiesDetectionJobCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: ComprehendClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<StartEntitiesDetectionJobCommandInput, StartEntitiesDetectionJobCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "ComprehendClient";
|
|
73
|
-
const commandName = "StartEntitiesDetectionJobCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: StartEntitiesDetectionJobRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: StartEntitiesDetectionJobResponse.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: StartEntitiesDetectionJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_json1_1StartEntitiesDetectionJobCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(
|
|
94
|
-
output: __HttpResponse,
|
|
95
|
-
context: __SerdeContext
|
|
96
|
-
): Promise<StartEntitiesDetectionJobCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1StartEntitiesDetectionJobCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
15
|
-
import { StartEventsDetectionJobRequest, StartEventsDetectionJobResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1StartEventsDetectionJobCommand,
|
|
18
|
-
serializeAws_json1_1StartEventsDetectionJobCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface StartEventsDetectionJobCommandInput extends StartEventsDetectionJobRequest {}
|
|
22
|
-
export interface StartEventsDetectionJobCommandOutput extends StartEventsDetectionJobResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Starts an asynchronous event detection job for a collection of documents.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { ComprehendClient, StartEventsDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
30
|
-
* // const { ComprehendClient, StartEventsDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
31
|
-
* const client = new ComprehendClient(config);
|
|
32
|
-
* const command = new StartEventsDetectionJobCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link StartEventsDetectionJobCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link StartEventsDetectionJobCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class StartEventsDetectionJobCommand extends $Command<
|
|
42
|
-
StartEventsDetectionJobCommandInput,
|
|
43
|
-
StartEventsDetectionJobCommandOutput,
|
|
44
|
-
ComprehendClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: StartEventsDetectionJobCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: ComprehendClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<StartEventsDetectionJobCommandInput, StartEventsDetectionJobCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "ComprehendClient";
|
|
69
|
-
const commandName = "StartEventsDetectionJobCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: StartEventsDetectionJobRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: StartEventsDetectionJobResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: StartEventsDetectionJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1StartEventsDetectionJobCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartEventsDetectionJobCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1StartEventsDetectionJobCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
15
|
-
import { StartKeyPhrasesDetectionJobRequest, StartKeyPhrasesDetectionJobResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand,
|
|
18
|
-
serializeAws_json1_1StartKeyPhrasesDetectionJobCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface StartKeyPhrasesDetectionJobCommandInput extends StartKeyPhrasesDetectionJobRequest {}
|
|
22
|
-
export interface StartKeyPhrasesDetectionJobCommandOutput
|
|
23
|
-
extends StartKeyPhrasesDetectionJobResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Starts an asynchronous key phrase detection job for a collection of documents. Use the
|
|
28
|
-
* operation to track the status of a
|
|
29
|
-
* job.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { ComprehendClient, StartKeyPhrasesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
34
|
-
* // const { ComprehendClient, StartKeyPhrasesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
35
|
-
* const client = new ComprehendClient(config);
|
|
36
|
-
* const command = new StartKeyPhrasesDetectionJobCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link StartKeyPhrasesDetectionJobCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link StartKeyPhrasesDetectionJobCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class StartKeyPhrasesDetectionJobCommand extends $Command<
|
|
46
|
-
StartKeyPhrasesDetectionJobCommandInput,
|
|
47
|
-
StartKeyPhrasesDetectionJobCommandOutput,
|
|
48
|
-
ComprehendClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: StartKeyPhrasesDetectionJobCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: ComprehendClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<StartKeyPhrasesDetectionJobCommandInput, StartKeyPhrasesDetectionJobCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "ComprehendClient";
|
|
73
|
-
const commandName = "StartKeyPhrasesDetectionJobCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: StartKeyPhrasesDetectionJobRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: StartKeyPhrasesDetectionJobResponse.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: StartKeyPhrasesDetectionJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_json1_1StartKeyPhrasesDetectionJobCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(
|
|
94
|
-
output: __HttpResponse,
|
|
95
|
-
context: __SerdeContext
|
|
96
|
-
): Promise<StartKeyPhrasesDetectionJobCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
15
|
-
import { StartPiiEntitiesDetectionJobRequest, StartPiiEntitiesDetectionJobResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand,
|
|
18
|
-
serializeAws_json1_1StartPiiEntitiesDetectionJobCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface StartPiiEntitiesDetectionJobCommandInput extends StartPiiEntitiesDetectionJobRequest {}
|
|
22
|
-
export interface StartPiiEntitiesDetectionJobCommandOutput
|
|
23
|
-
extends StartPiiEntitiesDetectionJobResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Starts an asynchronous PII entity detection job for a collection of documents.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { ComprehendClient, StartPiiEntitiesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
32
|
-
* // const { ComprehendClient, StartPiiEntitiesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
33
|
-
* const client = new ComprehendClient(config);
|
|
34
|
-
* const command = new StartPiiEntitiesDetectionJobCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link StartPiiEntitiesDetectionJobCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link StartPiiEntitiesDetectionJobCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class StartPiiEntitiesDetectionJobCommand extends $Command<
|
|
44
|
-
StartPiiEntitiesDetectionJobCommandInput,
|
|
45
|
-
StartPiiEntitiesDetectionJobCommandOutput,
|
|
46
|
-
ComprehendClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: StartPiiEntitiesDetectionJobCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: ComprehendClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<StartPiiEntitiesDetectionJobCommandInput, StartPiiEntitiesDetectionJobCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "ComprehendClient";
|
|
71
|
-
const commandName = "StartPiiEntitiesDetectionJobCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: StartPiiEntitiesDetectionJobRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: StartPiiEntitiesDetectionJobResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: StartPiiEntitiesDetectionJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1StartPiiEntitiesDetectionJobCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(
|
|
92
|
-
output: __HttpResponse,
|
|
93
|
-
context: __SerdeContext
|
|
94
|
-
): Promise<StartPiiEntitiesDetectionJobCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
15
|
-
import { StartSentimentDetectionJobRequest, StartSentimentDetectionJobResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1StartSentimentDetectionJobCommand,
|
|
18
|
-
serializeAws_json1_1StartSentimentDetectionJobCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface StartSentimentDetectionJobCommandInput extends StartSentimentDetectionJobRequest {}
|
|
22
|
-
export interface StartSentimentDetectionJobCommandOutput extends StartSentimentDetectionJobResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Starts an asynchronous sentiment detection job for a collection of documents. use the
|
|
26
|
-
* operation to track the status of a
|
|
27
|
-
* job.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { ComprehendClient, StartSentimentDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
32
|
-
* // const { ComprehendClient, StartSentimentDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
33
|
-
* const client = new ComprehendClient(config);
|
|
34
|
-
* const command = new StartSentimentDetectionJobCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link StartSentimentDetectionJobCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link StartSentimentDetectionJobCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class StartSentimentDetectionJobCommand extends $Command<
|
|
44
|
-
StartSentimentDetectionJobCommandInput,
|
|
45
|
-
StartSentimentDetectionJobCommandOutput,
|
|
46
|
-
ComprehendClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: StartSentimentDetectionJobCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: ComprehendClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<StartSentimentDetectionJobCommandInput, StartSentimentDetectionJobCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "ComprehendClient";
|
|
71
|
-
const commandName = "StartSentimentDetectionJobCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: StartSentimentDetectionJobRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: StartSentimentDetectionJobResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: StartSentimentDetectionJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1StartSentimentDetectionJobCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(
|
|
92
|
-
output: __HttpResponse,
|
|
93
|
-
context: __SerdeContext
|
|
94
|
-
): Promise<StartSentimentDetectionJobCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1StartSentimentDetectionJobCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|