@aws-sdk/client-comprehend 3.52.0 → 3.54.1
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 +30 -0
- package/dist-cjs/Comprehend.js +60 -0
- package/dist-cjs/commands/DescribeTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/ListTargetedSentimentDetectionJobsCommand.js +36 -0
- package/dist-cjs/commands/StartTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ComprehendServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +290 -5
- package/dist-cjs/pagination/ListTargetedSentimentDetectionJobsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1043 -2586
- package/dist-es/Comprehend.js +60 -0
- 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/index.js +1 -0
- package/dist-es/models/ComprehendServiceException.js +12 -0
- package/dist-es/models/models_0.js +250 -1
- package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1917 -2813
- 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/index.d.ts +1 -0
- package/dist-types/models/ComprehendServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +450 -51
- 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 +1 -1
- 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/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ComprehendServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +222 -49
- 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 +1 -1
- package/package.json +27 -27
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateEndpointResponse = exports.UpdateEndpointRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopTrainingEntityRecognizerResponse = exports.StopTrainingEntityRecognizerRequest = exports.StopTrainingDocumentClassifierResponse = exports.StopTrainingDocumentClassifierRequest = exports.StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobRequest = exports.StopPiiEntitiesDetectionJobResponse = exports.StopPiiEntitiesDetectionJobRequest = exports.StopKeyPhrasesDetectionJobResponse = void 0;
|
|
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
|
+
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.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
|
+
const ComprehendServiceException_1 = require("./ComprehendServiceException");
|
|
9
10
|
var AugmentedManifestsDocumentTypeFormat;
|
|
10
11
|
(function (AugmentedManifestsDocumentTypeFormat) {
|
|
11
12
|
AugmentedManifestsDocumentTypeFormat["PLAIN_TEXT_DOCUMENT"] = "PLAIN_TEXT_DOCUMENT";
|
|
@@ -53,6 +54,62 @@ var BatchDetectDominantLanguageResponse;
|
|
|
53
54
|
...obj,
|
|
54
55
|
});
|
|
55
56
|
})(BatchDetectDominantLanguageResponse = exports.BatchDetectDominantLanguageResponse || (exports.BatchDetectDominantLanguageResponse = {}));
|
|
57
|
+
class BatchSizeLimitExceededException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "BatchSizeLimitExceededException",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
this.name = "BatchSizeLimitExceededException";
|
|
65
|
+
this.$fault = "client";
|
|
66
|
+
Object.setPrototypeOf(this, BatchSizeLimitExceededException.prototype);
|
|
67
|
+
this.Message = opts.Message;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.BatchSizeLimitExceededException = BatchSizeLimitExceededException;
|
|
71
|
+
class InternalServerException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "InternalServerException",
|
|
75
|
+
$fault: "server",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "InternalServerException";
|
|
79
|
+
this.$fault = "server";
|
|
80
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
81
|
+
this.Message = opts.Message;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.InternalServerException = InternalServerException;
|
|
85
|
+
class InvalidRequestException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "InvalidRequestException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
this.name = "InvalidRequestException";
|
|
93
|
+
this.$fault = "client";
|
|
94
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
95
|
+
this.Message = opts.Message;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
99
|
+
class TextSizeLimitExceededException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
100
|
+
constructor(opts) {
|
|
101
|
+
super({
|
|
102
|
+
name: "TextSizeLimitExceededException",
|
|
103
|
+
$fault: "client",
|
|
104
|
+
...opts,
|
|
105
|
+
});
|
|
106
|
+
this.name = "TextSizeLimitExceededException";
|
|
107
|
+
this.$fault = "client";
|
|
108
|
+
Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
|
|
109
|
+
this.Message = opts.Message;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.TextSizeLimitExceededException = TextSizeLimitExceededException;
|
|
56
113
|
var LanguageCode;
|
|
57
114
|
(function (LanguageCode) {
|
|
58
115
|
LanguageCode["AR"] = "ar";
|
|
@@ -105,6 +162,20 @@ var BatchDetectEntitiesResponse;
|
|
|
105
162
|
...obj,
|
|
106
163
|
});
|
|
107
164
|
})(BatchDetectEntitiesResponse = exports.BatchDetectEntitiesResponse || (exports.BatchDetectEntitiesResponse = {}));
|
|
165
|
+
class UnsupportedLanguageException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "UnsupportedLanguageException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
this.name = "UnsupportedLanguageException";
|
|
173
|
+
this.$fault = "client";
|
|
174
|
+
Object.setPrototypeOf(this, UnsupportedLanguageException.prototype);
|
|
175
|
+
this.Message = opts.Message;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
exports.UnsupportedLanguageException = UnsupportedLanguageException;
|
|
108
179
|
var BatchDetectKeyPhrasesRequest;
|
|
109
180
|
(function (BatchDetectKeyPhrasesRequest) {
|
|
110
181
|
BatchDetectKeyPhrasesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -260,6 +331,20 @@ var ClassifyDocumentResponse;
|
|
|
260
331
|
...obj,
|
|
261
332
|
});
|
|
262
333
|
})(ClassifyDocumentResponse = exports.ClassifyDocumentResponse || (exports.ClassifyDocumentResponse = {}));
|
|
334
|
+
class ResourceUnavailableException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
335
|
+
constructor(opts) {
|
|
336
|
+
super({
|
|
337
|
+
name: "ResourceUnavailableException",
|
|
338
|
+
$fault: "client",
|
|
339
|
+
...opts,
|
|
340
|
+
});
|
|
341
|
+
this.name = "ResourceUnavailableException";
|
|
342
|
+
this.$fault = "client";
|
|
343
|
+
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
344
|
+
this.Message = opts.Message;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
263
348
|
var ContainsPiiEntitiesRequest;
|
|
264
349
|
(function (ContainsPiiEntitiesRequest) {
|
|
265
350
|
ContainsPiiEntitiesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -350,6 +435,76 @@ var CreateDocumentClassifierResponse;
|
|
|
350
435
|
...obj,
|
|
351
436
|
});
|
|
352
437
|
})(CreateDocumentClassifierResponse = exports.CreateDocumentClassifierResponse || (exports.CreateDocumentClassifierResponse = {}));
|
|
438
|
+
class KmsKeyValidationException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
439
|
+
constructor(opts) {
|
|
440
|
+
super({
|
|
441
|
+
name: "KmsKeyValidationException",
|
|
442
|
+
$fault: "client",
|
|
443
|
+
...opts,
|
|
444
|
+
});
|
|
445
|
+
this.name = "KmsKeyValidationException";
|
|
446
|
+
this.$fault = "client";
|
|
447
|
+
Object.setPrototypeOf(this, KmsKeyValidationException.prototype);
|
|
448
|
+
this.Message = opts.Message;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
exports.KmsKeyValidationException = KmsKeyValidationException;
|
|
452
|
+
class ResourceInUseException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
453
|
+
constructor(opts) {
|
|
454
|
+
super({
|
|
455
|
+
name: "ResourceInUseException",
|
|
456
|
+
$fault: "client",
|
|
457
|
+
...opts,
|
|
458
|
+
});
|
|
459
|
+
this.name = "ResourceInUseException";
|
|
460
|
+
this.$fault = "client";
|
|
461
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
462
|
+
this.Message = opts.Message;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
466
|
+
class ResourceLimitExceededException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
467
|
+
constructor(opts) {
|
|
468
|
+
super({
|
|
469
|
+
name: "ResourceLimitExceededException",
|
|
470
|
+
$fault: "client",
|
|
471
|
+
...opts,
|
|
472
|
+
});
|
|
473
|
+
this.name = "ResourceLimitExceededException";
|
|
474
|
+
this.$fault = "client";
|
|
475
|
+
Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
|
|
476
|
+
this.Message = opts.Message;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
exports.ResourceLimitExceededException = ResourceLimitExceededException;
|
|
480
|
+
class TooManyRequestsException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
481
|
+
constructor(opts) {
|
|
482
|
+
super({
|
|
483
|
+
name: "TooManyRequestsException",
|
|
484
|
+
$fault: "client",
|
|
485
|
+
...opts,
|
|
486
|
+
});
|
|
487
|
+
this.name = "TooManyRequestsException";
|
|
488
|
+
this.$fault = "client";
|
|
489
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
490
|
+
this.Message = opts.Message;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
494
|
+
class TooManyTagsException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
495
|
+
constructor(opts) {
|
|
496
|
+
super({
|
|
497
|
+
name: "TooManyTagsException",
|
|
498
|
+
$fault: "client",
|
|
499
|
+
...opts,
|
|
500
|
+
});
|
|
501
|
+
this.name = "TooManyTagsException";
|
|
502
|
+
this.$fault = "client";
|
|
503
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
504
|
+
this.Message = opts.Message;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
353
508
|
var CreateEndpointRequest;
|
|
354
509
|
(function (CreateEndpointRequest) {
|
|
355
510
|
CreateEndpointRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -362,6 +517,20 @@ var CreateEndpointResponse;
|
|
|
362
517
|
...obj,
|
|
363
518
|
});
|
|
364
519
|
})(CreateEndpointResponse = exports.CreateEndpointResponse || (exports.CreateEndpointResponse = {}));
|
|
520
|
+
class ResourceNotFoundException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
521
|
+
constructor(opts) {
|
|
522
|
+
super({
|
|
523
|
+
name: "ResourceNotFoundException",
|
|
524
|
+
$fault: "client",
|
|
525
|
+
...opts,
|
|
526
|
+
});
|
|
527
|
+
this.name = "ResourceNotFoundException";
|
|
528
|
+
this.$fault = "client";
|
|
529
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
530
|
+
this.Message = opts.Message;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
365
534
|
var EntityRecognizerAnnotations;
|
|
366
535
|
(function (EntityRecognizerAnnotations) {
|
|
367
536
|
EntityRecognizerAnnotations.filterSensitiveLog = (obj) => ({
|
|
@@ -522,6 +691,20 @@ var DescribeDocumentClassificationJobResponse;
|
|
|
522
691
|
...obj,
|
|
523
692
|
});
|
|
524
693
|
})(DescribeDocumentClassificationJobResponse = exports.DescribeDocumentClassificationJobResponse || (exports.DescribeDocumentClassificationJobResponse = {}));
|
|
694
|
+
class JobNotFoundException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
695
|
+
constructor(opts) {
|
|
696
|
+
super({
|
|
697
|
+
name: "JobNotFoundException",
|
|
698
|
+
$fault: "client",
|
|
699
|
+
...opts,
|
|
700
|
+
});
|
|
701
|
+
this.name = "JobNotFoundException";
|
|
702
|
+
this.$fault = "client";
|
|
703
|
+
Object.setPrototypeOf(this, JobNotFoundException.prototype);
|
|
704
|
+
this.Message = opts.Message;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
exports.JobNotFoundException = JobNotFoundException;
|
|
525
708
|
var DescribeDocumentClassifierRequest;
|
|
526
709
|
(function (DescribeDocumentClassifierRequest) {
|
|
527
710
|
DescribeDocumentClassifierRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -768,6 +951,24 @@ var DescribeSentimentDetectionJobResponse;
|
|
|
768
951
|
...obj,
|
|
769
952
|
});
|
|
770
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 = {}));
|
|
771
972
|
var DescribeTopicsDetectionJobRequest;
|
|
772
973
|
(function (DescribeTopicsDetectionJobRequest) {
|
|
773
974
|
DescribeTopicsDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -881,6 +1082,20 @@ var ImportModelResponse;
|
|
|
881
1082
|
...obj,
|
|
882
1083
|
});
|
|
883
1084
|
})(ImportModelResponse = exports.ImportModelResponse || (exports.ImportModelResponse = {}));
|
|
1085
|
+
class InvalidFilterException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
1086
|
+
constructor(opts) {
|
|
1087
|
+
super({
|
|
1088
|
+
name: "InvalidFilterException",
|
|
1089
|
+
$fault: "client",
|
|
1090
|
+
...opts,
|
|
1091
|
+
});
|
|
1092
|
+
this.name = "InvalidFilterException";
|
|
1093
|
+
this.$fault = "client";
|
|
1094
|
+
Object.setPrototypeOf(this, InvalidFilterException.prototype);
|
|
1095
|
+
this.Message = opts.Message;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
exports.InvalidFilterException = InvalidFilterException;
|
|
884
1099
|
var DocumentClassificationJobFilter;
|
|
885
1100
|
(function (DocumentClassificationJobFilter) {
|
|
886
1101
|
DocumentClassificationJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -1115,6 +1330,24 @@ var ListTagsForResourceResponse;
|
|
|
1115
1330
|
...obj,
|
|
1116
1331
|
});
|
|
1117
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 = {}));
|
|
1118
1351
|
var TopicsDetectionJobFilter;
|
|
1119
1352
|
(function (TopicsDetectionJobFilter) {
|
|
1120
1353
|
TopicsDetectionJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -1229,6 +1462,18 @@ var StartSentimentDetectionJobResponse;
|
|
|
1229
1462
|
...obj,
|
|
1230
1463
|
});
|
|
1231
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 = {}));
|
|
1232
1477
|
var StartTopicsDetectionJobRequest;
|
|
1233
1478
|
(function (StartTopicsDetectionJobRequest) {
|
|
1234
1479
|
StartTopicsDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1313,6 +1558,18 @@ var StopSentimentDetectionJobResponse;
|
|
|
1313
1558
|
...obj,
|
|
1314
1559
|
});
|
|
1315
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 = {}));
|
|
1316
1573
|
var StopTrainingDocumentClassifierRequest;
|
|
1317
1574
|
(function (StopTrainingDocumentClassifierRequest) {
|
|
1318
1575
|
StopTrainingDocumentClassifierRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1337,6 +1594,20 @@ var StopTrainingEntityRecognizerResponse;
|
|
|
1337
1594
|
...obj,
|
|
1338
1595
|
});
|
|
1339
1596
|
})(StopTrainingEntityRecognizerResponse = exports.StopTrainingEntityRecognizerResponse || (exports.StopTrainingEntityRecognizerResponse = {}));
|
|
1597
|
+
class ConcurrentModificationException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
1598
|
+
constructor(opts) {
|
|
1599
|
+
super({
|
|
1600
|
+
name: "ConcurrentModificationException",
|
|
1601
|
+
$fault: "client",
|
|
1602
|
+
...opts,
|
|
1603
|
+
});
|
|
1604
|
+
this.name = "ConcurrentModificationException";
|
|
1605
|
+
this.$fault = "client";
|
|
1606
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
1607
|
+
this.Message = opts.Message;
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
1340
1611
|
var TagResourceRequest;
|
|
1341
1612
|
(function (TagResourceRequest) {
|
|
1342
1613
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1349,6 +1620,20 @@ var TagResourceResponse;
|
|
|
1349
1620
|
...obj,
|
|
1350
1621
|
});
|
|
1351
1622
|
})(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
|
|
1623
|
+
class TooManyTagKeysException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
1624
|
+
constructor(opts) {
|
|
1625
|
+
super({
|
|
1626
|
+
name: "TooManyTagKeysException",
|
|
1627
|
+
$fault: "client",
|
|
1628
|
+
...opts,
|
|
1629
|
+
});
|
|
1630
|
+
this.name = "TooManyTagKeysException";
|
|
1631
|
+
this.$fault = "client";
|
|
1632
|
+
Object.setPrototypeOf(this, TooManyTagKeysException.prototype);
|
|
1633
|
+
this.Message = opts.Message;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
exports.TooManyTagKeysException = TooManyTagKeysException;
|
|
1352
1637
|
var UntagResourceRequest;
|
|
1353
1638
|
(function (UntagResourceRequest) {
|
|
1354
1639
|
UntagResourceRequest.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);
|