@aws-sdk/client-comprehend 3.53.0 → 3.55.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 +27 -0
- package/dist-cjs/Comprehend.js +60 -0
- package/dist-cjs/ComprehendClient.js +13 -13
- package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js +3 -3
- package/dist-cjs/commands/BatchDetectEntitiesCommand.js +3 -3
- package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js +3 -3
- package/dist-cjs/commands/BatchDetectSentimentCommand.js +3 -3
- package/dist-cjs/commands/BatchDetectSyntaxCommand.js +3 -3
- package/dist-cjs/commands/ClassifyDocumentCommand.js +3 -3
- package/dist-cjs/commands/ContainsPiiEntitiesCommand.js +3 -3
- package/dist-cjs/commands/CreateDocumentClassifierCommand.js +3 -3
- package/dist-cjs/commands/CreateEndpointCommand.js +3 -3
- package/dist-cjs/commands/CreateEntityRecognizerCommand.js +3 -3
- package/dist-cjs/commands/DeleteDocumentClassifierCommand.js +3 -3
- package/dist-cjs/commands/DeleteEndpointCommand.js +3 -3
- package/dist-cjs/commands/DeleteEntityRecognizerCommand.js +3 -3
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeDocumentClassifierCommand.js +3 -3
- package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeEndpointCommand.js +3 -3
- package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeEntityRecognizerCommand.js +3 -3
- package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +3 -3
- package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/DetectDominantLanguageCommand.js +3 -3
- package/dist-cjs/commands/DetectEntitiesCommand.js +3 -3
- package/dist-cjs/commands/DetectKeyPhrasesCommand.js +3 -3
- package/dist-cjs/commands/DetectPiiEntitiesCommand.js +3 -3
- package/dist-cjs/commands/DetectSentimentCommand.js +3 -3
- package/dist-cjs/commands/DetectSyntaxCommand.js +3 -3
- package/dist-cjs/commands/ImportModelCommand.js +3 -3
- package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js +3 -3
- package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js +3 -3
- package/dist-cjs/commands/ListDocumentClassifiersCommand.js +3 -3
- package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js +3 -3
- package/dist-cjs/commands/ListEndpointsCommand.js +3 -3
- package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js +3 -3
- package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js +3 -3
- package/dist-cjs/commands/ListEntityRecognizersCommand.js +3 -3
- package/dist-cjs/commands/ListEventsDetectionJobsCommand.js +3 -3
- package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js +3 -3
- package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js +3 -3
- package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListTargetedSentimentDetectionJobsCommand.js +36 -0
- package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js +3 -3
- package/dist-cjs/commands/PutResourcePolicyCommand.js +3 -3
- package/dist-cjs/commands/StartDocumentClassificationJobCommand.js +3 -3
- package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StartEventsDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StartSentimentDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StartTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/StartTopicsDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopEventsDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopSentimentDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +3 -3
- package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateEndpointCommand.js +3 -3
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +63 -3
- package/dist-cjs/pagination/ListTargetedSentimentDetectionJobsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +740 -399
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Comprehend.js +127 -67
- package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +39 -0
- package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +39 -0
- package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +39 -0
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +40 -0
- package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +4 -4
- package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +4 -4
- package/dist-es/pagination/ListDocumentClassifiersPaginator.js +4 -4
- package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +4 -4
- package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +4 -4
- package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +4 -4
- package/dist-es/pagination/ListEntityRecognizersPaginator.js +4 -4
- package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +4 -4
- package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +4 -4
- package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +4 -4
- package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +74 -0
- package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +4 -4
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +390 -0
- package/dist-types/Comprehend.d.ts +41 -1
- package/dist-types/ComprehendClient.d.ts +8 -4
- package/dist-types/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +36 -0
- package/dist-types/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +35 -0
- package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +37 -0
- package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +44 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +336 -2
- package/dist-types/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/Comprehend.d.ts +20 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +8 -4
- package/dist-types/ts3.4/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartTargetedSentimentDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +140 -0
- package/dist-types/ts3.4/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -11,7 +11,7 @@ class UpdateEndpointCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "ComprehendClient";
|
|
@@ -27,10 +27,10 @@ class UpdateEndpointCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_1_1.serializeAws_json1_1UpdateEndpointCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1UpdateEndpointCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_1_1.deserializeAws_json1_1UpdateEndpointCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateEndpointCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.UpdateEndpointCommand = UpdateEndpointCommand;
|
|
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./DescribeKeyPhrasesDetectionJobCommand"), exports
|
|
|
26
26
|
tslib_1.__exportStar(require("./DescribePiiEntitiesDetectionJobCommand"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./DescribeResourcePolicyCommand"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./DescribeSentimentDetectionJobCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./DescribeTargetedSentimentDetectionJobCommand"), exports);
|
|
29
30
|
tslib_1.__exportStar(require("./DescribeTopicsDetectionJobCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./DetectDominantLanguageCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./DetectEntitiesCommand"), exports);
|
|
@@ -47,6 +48,7 @@ tslib_1.__exportStar(require("./ListKeyPhrasesDetectionJobsCommand"), exports);
|
|
|
47
48
|
tslib_1.__exportStar(require("./ListPiiEntitiesDetectionJobsCommand"), exports);
|
|
48
49
|
tslib_1.__exportStar(require("./ListSentimentDetectionJobsCommand"), exports);
|
|
49
50
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./ListTargetedSentimentDetectionJobsCommand"), exports);
|
|
50
52
|
tslib_1.__exportStar(require("./ListTopicsDetectionJobsCommand"), exports);
|
|
51
53
|
tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports);
|
|
52
54
|
tslib_1.__exportStar(require("./StartDocumentClassificationJobCommand"), exports);
|
|
@@ -56,6 +58,7 @@ tslib_1.__exportStar(require("./StartEventsDetectionJobCommand"), exports);
|
|
|
56
58
|
tslib_1.__exportStar(require("./StartKeyPhrasesDetectionJobCommand"), exports);
|
|
57
59
|
tslib_1.__exportStar(require("./StartPiiEntitiesDetectionJobCommand"), exports);
|
|
58
60
|
tslib_1.__exportStar(require("./StartSentimentDetectionJobCommand"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./StartTargetedSentimentDetectionJobCommand"), exports);
|
|
59
62
|
tslib_1.__exportStar(require("./StartTopicsDetectionJobCommand"), exports);
|
|
60
63
|
tslib_1.__exportStar(require("./StopDominantLanguageDetectionJobCommand"), exports);
|
|
61
64
|
tslib_1.__exportStar(require("./StopEntitiesDetectionJobCommand"), exports);
|
|
@@ -63,6 +66,7 @@ tslib_1.__exportStar(require("./StopEventsDetectionJobCommand"), exports);
|
|
|
63
66
|
tslib_1.__exportStar(require("./StopKeyPhrasesDetectionJobCommand"), exports);
|
|
64
67
|
tslib_1.__exportStar(require("./StopPiiEntitiesDetectionJobCommand"), exports);
|
|
65
68
|
tslib_1.__exportStar(require("./StopSentimentDetectionJobCommand"), exports);
|
|
69
|
+
tslib_1.__exportStar(require("./StopTargetedSentimentDetectionJobCommand"), exports);
|
|
66
70
|
tslib_1.__exportStar(require("./StopTrainingDocumentClassifierCommand"), exports);
|
|
67
71
|
tslib_1.__exportStar(require("./StopTrainingEntityRecognizerCommand"), exports);
|
|
68
72
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -158,7 +158,7 @@ const partitionHash = {
|
|
|
158
158
|
],
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
161
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
162
162
|
...options,
|
|
163
163
|
signingService: "comprehend",
|
|
164
164
|
regionHash,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DocumentClassifierOutputDataConfig = exports.DocumentClassifierMode = exports.DocumentClassifierInputDataConfig = exports.DocumentClassifierDataFormat = exports.ContainsPiiEntitiesResponse = exports.EntityLabel = exports.PiiEntityType = exports.ContainsPiiEntitiesRequest = exports.ResourceUnavailableException = exports.ClassifyDocumentResponse = exports.DocumentLabel = exports.DocumentClass = exports.ClassifyDocumentRequest = exports.ClassifierMetadata = exports.ClassifierEvaluationMetrics = exports.BatchDetectSyntaxResponse = exports.BatchDetectSyntaxItemResult = exports.SyntaxToken = exports.PartOfSpeechTag = exports.PartOfSpeechTagType = exports.BatchDetectSyntaxRequest = exports.SyntaxLanguageCode = exports.BatchDetectSentimentResponse = exports.BatchDetectSentimentItemResult = exports.SentimentScore = exports.SentimentType = exports.BatchDetectSentimentRequest = exports.BatchDetectKeyPhrasesResponse = exports.BatchDetectKeyPhrasesItemResult = exports.KeyPhrase = exports.BatchDetectKeyPhrasesRequest = exports.UnsupportedLanguageException = exports.BatchDetectEntitiesResponse = exports.BatchDetectEntitiesItemResult = exports.Entity = exports.EntityType = exports.BatchDetectEntitiesRequest = exports.LanguageCode = exports.TextSizeLimitExceededException = exports.InvalidRequestException = exports.InternalServerException = exports.BatchSizeLimitExceededException = exports.BatchDetectDominantLanguageResponse = exports.BatchDetectDominantLanguageItemResult = exports.DominantLanguage = exports.BatchItemError = exports.BatchDetectDominantLanguageRequest = exports.AugmentedManifestsListItem = exports.Split = exports.AugmentedManifestsDocumentTypeFormat = void 0;
|
|
4
4
|
exports.EndpointProperties = exports.EndpointStatus = exports.DescribeEndpointRequest = exports.DescribeDominantLanguageDetectionJobResponse = exports.DominantLanguageDetectionJobProperties = exports.DescribeDominantLanguageDetectionJobRequest = exports.DescribeDocumentClassifierResponse = exports.DocumentClassifierProperties = exports.ModelStatus = exports.DescribeDocumentClassifierRequest = exports.JobNotFoundException = exports.DescribeDocumentClassificationJobResponse = exports.DocumentClassificationJobProperties = exports.OutputDataConfig = exports.JobStatus = exports.InputDataConfig = exports.DocumentReaderConfig = exports.DocumentReadFeatureTypes = exports.DocumentReadMode = exports.DocumentReadAction = exports.DescribeDocumentClassificationJobRequest = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteEntityRecognizerResponse = exports.DeleteEntityRecognizerRequest = exports.DeleteEndpointResponse = exports.DeleteEndpointRequest = exports.DeleteDocumentClassifierResponse = exports.DeleteDocumentClassifierRequest = exports.CreateEntityRecognizerResponse = exports.CreateEntityRecognizerRequest = exports.EntityRecognizerInputDataConfig = exports.EntityTypesListItem = exports.EntityRecognizerEntityList = exports.EntityRecognizerDocuments = exports.InputFormat = exports.EntityRecognizerDataFormat = exports.EntityRecognizerAnnotations = exports.ResourceNotFoundException = exports.CreateEndpointResponse = exports.CreateEndpointRequest = exports.TooManyTagsException = exports.TooManyRequestsException = exports.ResourceLimitExceededException = exports.ResourceInUseException = exports.KmsKeyValidationException = exports.CreateDocumentClassifierResponse = exports.CreateDocumentClassifierRequest = exports.VpcConfig = exports.Tag = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateEndpointResponse = exports.UpdateEndpointRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagKeysException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ConcurrentModificationException = exports.StopTrainingEntityRecognizerResponse = exports.StopTrainingEntityRecognizerRequest = exports.StopTrainingDocumentClassifierResponse = exports.StopTrainingDocumentClassifierRequest = exports.StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobRequest = exports.StopPiiEntitiesDetectionJobResponse = exports.StopPiiEntitiesDetectionJobRequest = exports.StopKeyPhrasesDetectionJobResponse = exports.StopKeyPhrasesDetectionJobRequest = exports.StopEventsDetectionJobResponse = exports.StopEventsDetectionJobRequest = exports.StopEntitiesDetectionJobResponse = exports.StopEntitiesDetectionJobRequest = exports.StopDominantLanguageDetectionJobResponse = exports.StopDominantLanguageDetectionJobRequest = exports.StartTopicsDetectionJobResponse = exports.StartTopicsDetectionJobRequest = exports.StartSentimentDetectionJobResponse = exports.StartSentimentDetectionJobRequest = exports.StartPiiEntitiesDetectionJobResponse = exports.StartPiiEntitiesDetectionJobRequest = exports.StartKeyPhrasesDetectionJobResponse = void 0;
|
|
5
|
+
exports.ImportModelResponse = exports.ImportModelRequest = exports.DetectSyntaxResponse = exports.DetectSyntaxRequest = exports.DetectSentimentResponse = exports.DetectSentimentRequest = exports.DetectPiiEntitiesResponse = exports.PiiEntity = exports.DetectPiiEntitiesRequest = exports.DetectKeyPhrasesResponse = exports.DetectKeyPhrasesRequest = exports.DetectEntitiesResponse = exports.DetectEntitiesRequest = exports.DetectDominantLanguageResponse = exports.DetectDominantLanguageRequest = exports.DescribeTopicsDetectionJobResponse = exports.TopicsDetectionJobProperties = exports.DescribeTopicsDetectionJobRequest = exports.DescribeTargetedSentimentDetectionJobResponse = exports.TargetedSentimentDetectionJobProperties = exports.DescribeTargetedSentimentDetectionJobRequest = exports.DescribeSentimentDetectionJobResponse = exports.SentimentDetectionJobProperties = exports.DescribeSentimentDetectionJobRequest = exports.DescribeResourcePolicyResponse = exports.DescribeResourcePolicyRequest = exports.DescribePiiEntitiesDetectionJobResponse = exports.PiiEntitiesDetectionJobProperties = exports.RedactionConfig = exports.PiiEntitiesDetectionMaskMode = exports.PiiOutputDataConfig = exports.PiiEntitiesDetectionMode = exports.DescribePiiEntitiesDetectionJobRequest = exports.DescribeKeyPhrasesDetectionJobResponse = exports.KeyPhrasesDetectionJobProperties = exports.DescribeKeyPhrasesDetectionJobRequest = exports.DescribeEventsDetectionJobResponse = exports.EventsDetectionJobProperties = exports.DescribeEventsDetectionJobRequest = exports.DescribeEntityRecognizerResponse = exports.EntityRecognizerProperties = exports.EntityRecognizerMetadata = exports.EntityRecognizerEvaluationMetrics = exports.EntityRecognizerMetadataEntityTypesListItem = exports.EntityTypesEvaluationMetrics = exports.DescribeEntityRecognizerRequest = exports.DescribeEntitiesDetectionJobResponse = exports.EntitiesDetectionJobProperties = exports.DescribeEntitiesDetectionJobRequest = exports.DescribeEndpointResponse = void 0;
|
|
6
|
+
exports.StartDominantLanguageDetectionJobRequest = exports.StartDocumentClassificationJobResponse = exports.StartDocumentClassificationJobRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.ListTopicsDetectionJobsResponse = exports.ListTopicsDetectionJobsRequest = exports.TopicsDetectionJobFilter = exports.ListTargetedSentimentDetectionJobsResponse = exports.ListTargetedSentimentDetectionJobsRequest = exports.TargetedSentimentDetectionJobFilter = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSentimentDetectionJobsResponse = exports.ListSentimentDetectionJobsRequest = exports.SentimentDetectionJobFilter = exports.ListPiiEntitiesDetectionJobsResponse = exports.ListPiiEntitiesDetectionJobsRequest = exports.PiiEntitiesDetectionJobFilter = exports.ListKeyPhrasesDetectionJobsResponse = exports.ListKeyPhrasesDetectionJobsRequest = exports.KeyPhrasesDetectionJobFilter = exports.ListEventsDetectionJobsResponse = exports.ListEventsDetectionJobsRequest = exports.EventsDetectionJobFilter = exports.ListEntityRecognizerSummariesResponse = exports.EntityRecognizerSummary = exports.ListEntityRecognizerSummariesRequest = exports.ListEntityRecognizersResponse = exports.ListEntityRecognizersRequest = exports.EntityRecognizerFilter = exports.ListEntitiesDetectionJobsResponse = exports.ListEntitiesDetectionJobsRequest = exports.EntitiesDetectionJobFilter = exports.ListEndpointsResponse = exports.ListEndpointsRequest = exports.EndpointFilter = exports.ListDominantLanguageDetectionJobsResponse = exports.ListDominantLanguageDetectionJobsRequest = exports.DominantLanguageDetectionJobFilter = exports.ListDocumentClassifierSummariesResponse = exports.DocumentClassifierSummary = exports.ListDocumentClassifierSummariesRequest = exports.ListDocumentClassifiersResponse = exports.ListDocumentClassifiersRequest = exports.DocumentClassifierFilter = exports.ListDocumentClassificationJobsResponse = exports.ListDocumentClassificationJobsRequest = exports.DocumentClassificationJobFilter = exports.InvalidFilterException = void 0;
|
|
7
|
+
exports.UpdateEndpointResponse = exports.UpdateEndpointRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagKeysException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ConcurrentModificationException = exports.StopTrainingEntityRecognizerResponse = exports.StopTrainingEntityRecognizerRequest = exports.StopTrainingDocumentClassifierResponse = exports.StopTrainingDocumentClassifierRequest = exports.StopTargetedSentimentDetectionJobResponse = exports.StopTargetedSentimentDetectionJobRequest = exports.StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobRequest = exports.StopPiiEntitiesDetectionJobResponse = exports.StopPiiEntitiesDetectionJobRequest = exports.StopKeyPhrasesDetectionJobResponse = exports.StopKeyPhrasesDetectionJobRequest = exports.StopEventsDetectionJobResponse = exports.StopEventsDetectionJobRequest = exports.StopEntitiesDetectionJobResponse = exports.StopEntitiesDetectionJobRequest = exports.StopDominantLanguageDetectionJobResponse = exports.StopDominantLanguageDetectionJobRequest = exports.StartTopicsDetectionJobResponse = exports.StartTopicsDetectionJobRequest = exports.StartTargetedSentimentDetectionJobResponse = exports.StartTargetedSentimentDetectionJobRequest = exports.StartSentimentDetectionJobResponse = exports.StartSentimentDetectionJobRequest = exports.StartPiiEntitiesDetectionJobResponse = exports.StartPiiEntitiesDetectionJobRequest = exports.StartKeyPhrasesDetectionJobResponse = exports.StartKeyPhrasesDetectionJobRequest = exports.StartEventsDetectionJobResponse = exports.StartEventsDetectionJobRequest = exports.StartEntitiesDetectionJobResponse = exports.StartEntitiesDetectionJobRequest = exports.StartDominantLanguageDetectionJobResponse = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const ComprehendServiceException_1 = require("./ComprehendServiceException");
|
|
10
10
|
var AugmentedManifestsDocumentTypeFormat;
|
|
@@ -951,6 +951,24 @@ var DescribeSentimentDetectionJobResponse;
|
|
|
951
951
|
...obj,
|
|
952
952
|
});
|
|
953
953
|
})(DescribeSentimentDetectionJobResponse = exports.DescribeSentimentDetectionJobResponse || (exports.DescribeSentimentDetectionJobResponse = {}));
|
|
954
|
+
var DescribeTargetedSentimentDetectionJobRequest;
|
|
955
|
+
(function (DescribeTargetedSentimentDetectionJobRequest) {
|
|
956
|
+
DescribeTargetedSentimentDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
957
|
+
...obj,
|
|
958
|
+
});
|
|
959
|
+
})(DescribeTargetedSentimentDetectionJobRequest = exports.DescribeTargetedSentimentDetectionJobRequest || (exports.DescribeTargetedSentimentDetectionJobRequest = {}));
|
|
960
|
+
var TargetedSentimentDetectionJobProperties;
|
|
961
|
+
(function (TargetedSentimentDetectionJobProperties) {
|
|
962
|
+
TargetedSentimentDetectionJobProperties.filterSensitiveLog = (obj) => ({
|
|
963
|
+
...obj,
|
|
964
|
+
});
|
|
965
|
+
})(TargetedSentimentDetectionJobProperties = exports.TargetedSentimentDetectionJobProperties || (exports.TargetedSentimentDetectionJobProperties = {}));
|
|
966
|
+
var DescribeTargetedSentimentDetectionJobResponse;
|
|
967
|
+
(function (DescribeTargetedSentimentDetectionJobResponse) {
|
|
968
|
+
DescribeTargetedSentimentDetectionJobResponse.filterSensitiveLog = (obj) => ({
|
|
969
|
+
...obj,
|
|
970
|
+
});
|
|
971
|
+
})(DescribeTargetedSentimentDetectionJobResponse = exports.DescribeTargetedSentimentDetectionJobResponse || (exports.DescribeTargetedSentimentDetectionJobResponse = {}));
|
|
954
972
|
var DescribeTopicsDetectionJobRequest;
|
|
955
973
|
(function (DescribeTopicsDetectionJobRequest) {
|
|
956
974
|
DescribeTopicsDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1312,6 +1330,24 @@ var ListTagsForResourceResponse;
|
|
|
1312
1330
|
...obj,
|
|
1313
1331
|
});
|
|
1314
1332
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
1333
|
+
var TargetedSentimentDetectionJobFilter;
|
|
1334
|
+
(function (TargetedSentimentDetectionJobFilter) {
|
|
1335
|
+
TargetedSentimentDetectionJobFilter.filterSensitiveLog = (obj) => ({
|
|
1336
|
+
...obj,
|
|
1337
|
+
});
|
|
1338
|
+
})(TargetedSentimentDetectionJobFilter = exports.TargetedSentimentDetectionJobFilter || (exports.TargetedSentimentDetectionJobFilter = {}));
|
|
1339
|
+
var ListTargetedSentimentDetectionJobsRequest;
|
|
1340
|
+
(function (ListTargetedSentimentDetectionJobsRequest) {
|
|
1341
|
+
ListTargetedSentimentDetectionJobsRequest.filterSensitiveLog = (obj) => ({
|
|
1342
|
+
...obj,
|
|
1343
|
+
});
|
|
1344
|
+
})(ListTargetedSentimentDetectionJobsRequest = exports.ListTargetedSentimentDetectionJobsRequest || (exports.ListTargetedSentimentDetectionJobsRequest = {}));
|
|
1345
|
+
var ListTargetedSentimentDetectionJobsResponse;
|
|
1346
|
+
(function (ListTargetedSentimentDetectionJobsResponse) {
|
|
1347
|
+
ListTargetedSentimentDetectionJobsResponse.filterSensitiveLog = (obj) => ({
|
|
1348
|
+
...obj,
|
|
1349
|
+
});
|
|
1350
|
+
})(ListTargetedSentimentDetectionJobsResponse = exports.ListTargetedSentimentDetectionJobsResponse || (exports.ListTargetedSentimentDetectionJobsResponse = {}));
|
|
1315
1351
|
var TopicsDetectionJobFilter;
|
|
1316
1352
|
(function (TopicsDetectionJobFilter) {
|
|
1317
1353
|
TopicsDetectionJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -1426,6 +1462,18 @@ var StartSentimentDetectionJobResponse;
|
|
|
1426
1462
|
...obj,
|
|
1427
1463
|
});
|
|
1428
1464
|
})(StartSentimentDetectionJobResponse = exports.StartSentimentDetectionJobResponse || (exports.StartSentimentDetectionJobResponse = {}));
|
|
1465
|
+
var StartTargetedSentimentDetectionJobRequest;
|
|
1466
|
+
(function (StartTargetedSentimentDetectionJobRequest) {
|
|
1467
|
+
StartTargetedSentimentDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
1468
|
+
...obj,
|
|
1469
|
+
});
|
|
1470
|
+
})(StartTargetedSentimentDetectionJobRequest = exports.StartTargetedSentimentDetectionJobRequest || (exports.StartTargetedSentimentDetectionJobRequest = {}));
|
|
1471
|
+
var StartTargetedSentimentDetectionJobResponse;
|
|
1472
|
+
(function (StartTargetedSentimentDetectionJobResponse) {
|
|
1473
|
+
StartTargetedSentimentDetectionJobResponse.filterSensitiveLog = (obj) => ({
|
|
1474
|
+
...obj,
|
|
1475
|
+
});
|
|
1476
|
+
})(StartTargetedSentimentDetectionJobResponse = exports.StartTargetedSentimentDetectionJobResponse || (exports.StartTargetedSentimentDetectionJobResponse = {}));
|
|
1429
1477
|
var StartTopicsDetectionJobRequest;
|
|
1430
1478
|
(function (StartTopicsDetectionJobRequest) {
|
|
1431
1479
|
StartTopicsDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1510,6 +1558,18 @@ var StopSentimentDetectionJobResponse;
|
|
|
1510
1558
|
...obj,
|
|
1511
1559
|
});
|
|
1512
1560
|
})(StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobResponse || (exports.StopSentimentDetectionJobResponse = {}));
|
|
1561
|
+
var StopTargetedSentimentDetectionJobRequest;
|
|
1562
|
+
(function (StopTargetedSentimentDetectionJobRequest) {
|
|
1563
|
+
StopTargetedSentimentDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
1564
|
+
...obj,
|
|
1565
|
+
});
|
|
1566
|
+
})(StopTargetedSentimentDetectionJobRequest = exports.StopTargetedSentimentDetectionJobRequest || (exports.StopTargetedSentimentDetectionJobRequest = {}));
|
|
1567
|
+
var StopTargetedSentimentDetectionJobResponse;
|
|
1568
|
+
(function (StopTargetedSentimentDetectionJobResponse) {
|
|
1569
|
+
StopTargetedSentimentDetectionJobResponse.filterSensitiveLog = (obj) => ({
|
|
1570
|
+
...obj,
|
|
1571
|
+
});
|
|
1572
|
+
})(StopTargetedSentimentDetectionJobResponse = exports.StopTargetedSentimentDetectionJobResponse || (exports.StopTargetedSentimentDetectionJobResponse = {}));
|
|
1513
1573
|
var StopTrainingDocumentClassifierRequest;
|
|
1514
1574
|
(function (StopTrainingDocumentClassifierRequest) {
|
|
1515
1575
|
StopTrainingDocumentClassifierRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTargetedSentimentDetectionJobs = void 0;
|
|
4
|
+
const ListTargetedSentimentDetectionJobsCommand_1 = require("../commands/ListTargetedSentimentDetectionJobsCommand");
|
|
5
|
+
const Comprehend_1 = require("../Comprehend");
|
|
6
|
+
const ComprehendClient_1 = require("../ComprehendClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListTargetedSentimentDetectionJobsCommand_1.ListTargetedSentimentDetectionJobsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listTargetedSentimentDetectionJobs(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListTargetedSentimentDetectionJobs(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Comprehend_1.Comprehend) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ComprehendClient_1.ComprehendClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListTargetedSentimentDetectionJobs = paginateListTargetedSentimentDetectionJobs;
|
|
@@ -12,4 +12,5 @@ tslib_1.__exportStar(require("./ListEntityRecognizersPaginator"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./ListEventsDetectionJobsPaginator"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./ListKeyPhrasesDetectionJobsPaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./ListSentimentDetectionJobsPaginator"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListTargetedSentimentDetectionJobsPaginator"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./ListTopicsDetectionJobsPaginator"), exports);
|