@aws-sdk/client-comprehend 3.53.0 → 3.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Comprehend.js +60 -0
  3. package/dist-cjs/commands/DescribeTargetedSentimentDetectionJobCommand.js +36 -0
  4. package/dist-cjs/commands/ListTargetedSentimentDetectionJobsCommand.js +36 -0
  5. package/dist-cjs/commands/StartTargetedSentimentDetectionJobCommand.js +36 -0
  6. package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +63 -3
  9. package/dist-cjs/pagination/ListTargetedSentimentDetectionJobsPaginator.js +35 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_json1_1.js +344 -3
  12. package/dist-es/Comprehend.js +60 -0
  13. package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +39 -0
  14. package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +39 -0
  15. package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +39 -0
  16. package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +39 -0
  17. package/dist-es/commands/index.js +4 -0
  18. package/dist-es/models/models_0.js +40 -0
  19. package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +74 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_json1_1.js +390 -0
  22. package/dist-types/Comprehend.d.ts +41 -1
  23. package/dist-types/ComprehendClient.d.ts +8 -4
  24. package/dist-types/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +36 -0
  25. package/dist-types/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +35 -0
  26. package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +1 -1
  27. package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +37 -0
  28. package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +44 -0
  29. package/dist-types/commands/index.d.ts +4 -0
  30. package/dist-types/models/models_0.d.ts +336 -2
  31. package/dist-types/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
  32. package/dist-types/pagination/index.d.ts +1 -0
  33. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/ts3.4/Comprehend.d.ts +20 -0
  38. package/dist-types/ts3.4/ComprehendClient.d.ts +8 -4
  39. package/dist-types/ts3.4/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/StartTargetedSentimentDetectionJobCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +140 -0
  45. package/dist-types/ts3.4/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  48. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  49. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  50. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  51. package/package.json +27 -27
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartDocumentClassificationJobCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.serializeAws_json1_1ListEventsDetectionJobsCommand = exports.serializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.serializeAws_json1_1ListEntityRecognizersCommand = exports.serializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListEndpointsCommand = exports.serializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.serializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.serializeAws_json1_1ListDocumentClassifiersCommand = exports.serializeAws_json1_1ListDocumentClassificationJobsCommand = exports.serializeAws_json1_1ImportModelCommand = exports.serializeAws_json1_1DetectSyntaxCommand = exports.serializeAws_json1_1DetectSentimentCommand = exports.serializeAws_json1_1DetectPiiEntitiesCommand = exports.serializeAws_json1_1DetectKeyPhrasesCommand = exports.serializeAws_json1_1DetectEntitiesCommand = exports.serializeAws_json1_1DetectDominantLanguageCommand = exports.serializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.serializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeResourcePolicyCommand = exports.serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1DescribeEventsDetectionJobCommand = exports.serializeAws_json1_1DescribeEntityRecognizerCommand = exports.serializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeEndpointCommand = exports.serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1DescribeDocumentClassifierCommand = exports.serializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteEntityRecognizerCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteDocumentClassifierCommand = exports.serializeAws_json1_1CreateEntityRecognizerCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CreateDocumentClassifierCommand = exports.serializeAws_json1_1ContainsPiiEntitiesCommand = exports.serializeAws_json1_1ClassifyDocumentCommand = exports.serializeAws_json1_1BatchDetectSyntaxCommand = exports.serializeAws_json1_1BatchDetectSentimentCommand = exports.serializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.serializeAws_json1_1BatchDetectEntitiesCommand = exports.serializeAws_json1_1BatchDetectDominantLanguageCommand = void 0;
4
- exports.deserializeAws_json1_1ImportModelCommand = exports.deserializeAws_json1_1DetectSyntaxCommand = exports.deserializeAws_json1_1DetectSentimentCommand = exports.deserializeAws_json1_1DetectPiiEntitiesCommand = exports.deserializeAws_json1_1DetectKeyPhrasesCommand = exports.deserializeAws_json1_1DetectEntitiesCommand = exports.deserializeAws_json1_1DetectDominantLanguageCommand = exports.deserializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.deserializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeResourcePolicyCommand = exports.deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEventsDetectionJobCommand = exports.deserializeAws_json1_1DescribeEntityRecognizerCommand = exports.deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEndpointCommand = exports.deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1DescribeDocumentClassifierCommand = exports.deserializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteEntityRecognizerCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteDocumentClassifierCommand = exports.deserializeAws_json1_1CreateEntityRecognizerCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CreateDocumentClassifierCommand = exports.deserializeAws_json1_1ContainsPiiEntitiesCommand = exports.deserializeAws_json1_1ClassifyDocumentCommand = exports.deserializeAws_json1_1BatchDetectSyntaxCommand = exports.deserializeAws_json1_1BatchDetectSentimentCommand = exports.deserializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.deserializeAws_json1_1BatchDetectEntitiesCommand = exports.deserializeAws_json1_1BatchDetectDominantLanguageCommand = exports.serializeAws_json1_1UpdateEndpointCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.serializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.serializeAws_json1_1StopSentimentDetectionJobCommand = exports.serializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StopEventsDetectionJobCommand = exports.serializeAws_json1_1StopEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartTopicsDetectionJobCommand = exports.serializeAws_json1_1StartSentimentDetectionJobCommand = exports.serializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StartEventsDetectionJobCommand = exports.serializeAws_json1_1StartEntitiesDetectionJobCommand = void 0;
5
- exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.deserializeAws_json1_1StopSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StopEventsDetectionJobCommand = exports.deserializeAws_json1_1StopEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartTopicsDetectionJobCommand = exports.deserializeAws_json1_1StartSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StartEventsDetectionJobCommand = exports.deserializeAws_json1_1StartEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartDocumentClassificationJobCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListTopicsDetectionJobsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.deserializeAws_json1_1ListEventsDetectionJobsCommand = exports.deserializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.deserializeAws_json1_1ListEntityRecognizersCommand = exports.deserializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListEndpointsCommand = exports.deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.deserializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.deserializeAws_json1_1ListDocumentClassifiersCommand = exports.deserializeAws_json1_1ListDocumentClassificationJobsCommand = void 0;
3
+ exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = exports.serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.serializeAws_json1_1ListEventsDetectionJobsCommand = exports.serializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.serializeAws_json1_1ListEntityRecognizersCommand = exports.serializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListEndpointsCommand = exports.serializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.serializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.serializeAws_json1_1ListDocumentClassifiersCommand = exports.serializeAws_json1_1ListDocumentClassificationJobsCommand = exports.serializeAws_json1_1ImportModelCommand = exports.serializeAws_json1_1DetectSyntaxCommand = exports.serializeAws_json1_1DetectSentimentCommand = exports.serializeAws_json1_1DetectPiiEntitiesCommand = exports.serializeAws_json1_1DetectKeyPhrasesCommand = exports.serializeAws_json1_1DetectEntitiesCommand = exports.serializeAws_json1_1DetectDominantLanguageCommand = exports.serializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeResourcePolicyCommand = exports.serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1DescribeEventsDetectionJobCommand = exports.serializeAws_json1_1DescribeEntityRecognizerCommand = exports.serializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeEndpointCommand = exports.serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1DescribeDocumentClassifierCommand = exports.serializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteEntityRecognizerCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteDocumentClassifierCommand = exports.serializeAws_json1_1CreateEntityRecognizerCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CreateDocumentClassifierCommand = exports.serializeAws_json1_1ContainsPiiEntitiesCommand = exports.serializeAws_json1_1ClassifyDocumentCommand = exports.serializeAws_json1_1BatchDetectSyntaxCommand = exports.serializeAws_json1_1BatchDetectSentimentCommand = exports.serializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.serializeAws_json1_1BatchDetectEntitiesCommand = exports.serializeAws_json1_1BatchDetectDominantLanguageCommand = void 0;
4
+ exports.deserializeAws_json1_1DetectEntitiesCommand = exports.deserializeAws_json1_1DetectDominantLanguageCommand = exports.deserializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeResourcePolicyCommand = exports.deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEventsDetectionJobCommand = exports.deserializeAws_json1_1DescribeEntityRecognizerCommand = exports.deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEndpointCommand = exports.deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1DescribeDocumentClassifierCommand = exports.deserializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteEntityRecognizerCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteDocumentClassifierCommand = exports.deserializeAws_json1_1CreateEntityRecognizerCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CreateDocumentClassifierCommand = exports.deserializeAws_json1_1ContainsPiiEntitiesCommand = exports.deserializeAws_json1_1ClassifyDocumentCommand = exports.deserializeAws_json1_1BatchDetectSyntaxCommand = exports.deserializeAws_json1_1BatchDetectSentimentCommand = exports.deserializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.deserializeAws_json1_1BatchDetectEntitiesCommand = exports.deserializeAws_json1_1BatchDetectDominantLanguageCommand = exports.serializeAws_json1_1UpdateEndpointCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.serializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1StopSentimentDetectionJobCommand = exports.serializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StopEventsDetectionJobCommand = exports.serializeAws_json1_1StopEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartTopicsDetectionJobCommand = exports.serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1StartSentimentDetectionJobCommand = exports.serializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StartEventsDetectionJobCommand = exports.serializeAws_json1_1StartEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartDocumentClassificationJobCommand = void 0;
5
+ exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StopEventsDetectionJobCommand = exports.deserializeAws_json1_1StopEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartTopicsDetectionJobCommand = exports.deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StartEventsDetectionJobCommand = exports.deserializeAws_json1_1StartEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartDocumentClassificationJobCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListTopicsDetectionJobsCommand = exports.deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.deserializeAws_json1_1ListEventsDetectionJobsCommand = exports.deserializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.deserializeAws_json1_1ListEntityRecognizersCommand = exports.deserializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListEndpointsCommand = exports.deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.deserializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.deserializeAws_json1_1ListDocumentClassifiersCommand = exports.deserializeAws_json1_1ListDocumentClassificationJobsCommand = exports.deserializeAws_json1_1ImportModelCommand = exports.deserializeAws_json1_1DetectSyntaxCommand = exports.deserializeAws_json1_1DetectSentimentCommand = exports.deserializeAws_json1_1DetectPiiEntitiesCommand = exports.deserializeAws_json1_1DetectKeyPhrasesCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const uuid_1 = require("uuid");
@@ -258,6 +258,16 @@ const serializeAws_json1_1DescribeSentimentDetectionJobCommand = async (input, c
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
260
  exports.serializeAws_json1_1DescribeSentimentDetectionJobCommand = serializeAws_json1_1DescribeSentimentDetectionJobCommand;
261
+ const serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = async (input, context) => {
262
+ const headers = {
263
+ "content-type": "application/x-amz-json-1.1",
264
+ "x-amz-target": "Comprehend_20171127.DescribeTargetedSentimentDetectionJob",
265
+ };
266
+ let body;
267
+ body = JSON.stringify(serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest(input, context));
268
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
+ };
270
+ exports.serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand;
261
271
  const serializeAws_json1_1DescribeTopicsDetectionJobCommand = async (input, context) => {
262
272
  const headers = {
263
273
  "content-type": "application/x-amz-json-1.1",
@@ -468,6 +478,16 @@ const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) =>
468
478
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
469
479
  };
470
480
  exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
481
+ const serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = async (input, context) => {
482
+ const headers = {
483
+ "content-type": "application/x-amz-json-1.1",
484
+ "x-amz-target": "Comprehend_20171127.ListTargetedSentimentDetectionJobs",
485
+ };
486
+ let body;
487
+ body = JSON.stringify(serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest(input, context));
488
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
489
+ };
490
+ exports.serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand;
471
491
  const serializeAws_json1_1ListTopicsDetectionJobsCommand = async (input, context) => {
472
492
  const headers = {
473
493
  "content-type": "application/x-amz-json-1.1",
@@ -558,6 +578,16 @@ const serializeAws_json1_1StartSentimentDetectionJobCommand = async (input, cont
558
578
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
559
579
  };
560
580
  exports.serializeAws_json1_1StartSentimentDetectionJobCommand = serializeAws_json1_1StartSentimentDetectionJobCommand;
581
+ const serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = async (input, context) => {
582
+ const headers = {
583
+ "content-type": "application/x-amz-json-1.1",
584
+ "x-amz-target": "Comprehend_20171127.StartTargetedSentimentDetectionJob",
585
+ };
586
+ let body;
587
+ body = JSON.stringify(serializeAws_json1_1StartTargetedSentimentDetectionJobRequest(input, context));
588
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
589
+ };
590
+ exports.serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = serializeAws_json1_1StartTargetedSentimentDetectionJobCommand;
561
591
  const serializeAws_json1_1StartTopicsDetectionJobCommand = async (input, context) => {
562
592
  const headers = {
563
593
  "content-type": "application/x-amz-json-1.1",
@@ -628,6 +658,16 @@ const serializeAws_json1_1StopSentimentDetectionJobCommand = async (input, conte
628
658
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
629
659
  };
630
660
  exports.serializeAws_json1_1StopSentimentDetectionJobCommand = serializeAws_json1_1StopSentimentDetectionJobCommand;
661
+ const serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = async (input, context) => {
662
+ const headers = {
663
+ "content-type": "application/x-amz-json-1.1",
664
+ "x-amz-target": "Comprehend_20171127.StopTargetedSentimentDetectionJob",
665
+ };
666
+ let body;
667
+ body = JSON.stringify(serializeAws_json1_1StopTargetedSentimentDetectionJobRequest(input, context));
668
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
669
+ };
670
+ exports.serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = serializeAws_json1_1StopTargetedSentimentDetectionJobCommand;
631
671
  const serializeAws_json1_1StopTrainingDocumentClassifierCommand = async (input, context) => {
632
672
  const headers = {
633
673
  "content-type": "application/x-amz-json-1.1",
@@ -1860,6 +1900,51 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = async (o
1860
1900
  throw smithy_client_1.decorateServiceException(response, parsedBody);
1861
1901
  }
1862
1902
  };
1903
+ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = async (output, context) => {
1904
+ if (output.statusCode >= 300) {
1905
+ return deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError(output, context);
1906
+ }
1907
+ const data = await parseBody(output.body, context);
1908
+ let contents = {};
1909
+ contents = deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse(data, context);
1910
+ const response = {
1911
+ $metadata: deserializeMetadata(output),
1912
+ ...contents,
1913
+ };
1914
+ return Promise.resolve(response);
1915
+ };
1916
+ exports.deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand;
1917
+ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError = async (output, context) => {
1918
+ const parsedOutput = {
1919
+ ...output,
1920
+ body: await parseBody(output.body, context),
1921
+ };
1922
+ let response;
1923
+ let errorCode = "UnknownError";
1924
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1925
+ switch (errorCode) {
1926
+ case "InternalServerException":
1927
+ case "com.amazonaws.comprehend#InternalServerException":
1928
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
1929
+ case "InvalidRequestException":
1930
+ case "com.amazonaws.comprehend#InvalidRequestException":
1931
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1932
+ case "JobNotFoundException":
1933
+ case "com.amazonaws.comprehend#JobNotFoundException":
1934
+ throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
1935
+ case "TooManyRequestsException":
1936
+ case "com.amazonaws.comprehend#TooManyRequestsException":
1937
+ throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
1938
+ default:
1939
+ const parsedBody = parsedOutput.body;
1940
+ response = new ComprehendServiceException_1.ComprehendServiceException({
1941
+ name: parsedBody.code || parsedBody.Code || errorCode,
1942
+ $fault: "client",
1943
+ $metadata: deserializeMetadata(output),
1944
+ });
1945
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1946
+ }
1947
+ };
1863
1948
  const deserializeAws_json1_1DescribeTopicsDetectionJobCommand = async (output, context) => {
1864
1949
  if (output.statusCode >= 300) {
1865
1950
  return deserializeAws_json1_1DescribeTopicsDetectionJobCommandError(output, context);
@@ -2808,6 +2893,51 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2808
2893
  throw smithy_client_1.decorateServiceException(response, parsedBody);
2809
2894
  }
2810
2895
  };
2896
+ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = async (output, context) => {
2897
+ if (output.statusCode >= 300) {
2898
+ return deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError(output, context);
2899
+ }
2900
+ const data = await parseBody(output.body, context);
2901
+ let contents = {};
2902
+ contents = deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse(data, context);
2903
+ const response = {
2904
+ $metadata: deserializeMetadata(output),
2905
+ ...contents,
2906
+ };
2907
+ return Promise.resolve(response);
2908
+ };
2909
+ exports.deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand;
2910
+ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = async (output, context) => {
2911
+ const parsedOutput = {
2912
+ ...output,
2913
+ body: await parseBody(output.body, context),
2914
+ };
2915
+ let response;
2916
+ let errorCode = "UnknownError";
2917
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2918
+ switch (errorCode) {
2919
+ case "InternalServerException":
2920
+ case "com.amazonaws.comprehend#InternalServerException":
2921
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
2922
+ case "InvalidFilterException":
2923
+ case "com.amazonaws.comprehend#InvalidFilterException":
2924
+ throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
2925
+ case "InvalidRequestException":
2926
+ case "com.amazonaws.comprehend#InvalidRequestException":
2927
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2928
+ case "TooManyRequestsException":
2929
+ case "com.amazonaws.comprehend#TooManyRequestsException":
2930
+ throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
2931
+ default:
2932
+ const parsedBody = parsedOutput.body;
2933
+ response = new ComprehendServiceException_1.ComprehendServiceException({
2934
+ name: parsedBody.code || parsedBody.Code || errorCode,
2935
+ $fault: "client",
2936
+ $metadata: deserializeMetadata(output),
2937
+ });
2938
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2939
+ }
2940
+ };
2811
2941
  const deserializeAws_json1_1ListTopicsDetectionJobsCommand = async (output, context) => {
2812
2942
  if (output.statusCode >= 300) {
2813
2943
  return deserializeAws_json1_1ListTopicsDetectionJobsCommandError(output, context);
@@ -3243,6 +3373,54 @@ const deserializeAws_json1_1StartSentimentDetectionJobCommandError = async (outp
3243
3373
  throw smithy_client_1.decorateServiceException(response, parsedBody);
3244
3374
  }
3245
3375
  };
3376
+ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = async (output, context) => {
3377
+ if (output.statusCode >= 300) {
3378
+ return deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError(output, context);
3379
+ }
3380
+ const data = await parseBody(output.body, context);
3381
+ let contents = {};
3382
+ contents = deserializeAws_json1_1StartTargetedSentimentDetectionJobResponse(data, context);
3383
+ const response = {
3384
+ $metadata: deserializeMetadata(output),
3385
+ ...contents,
3386
+ };
3387
+ return Promise.resolve(response);
3388
+ };
3389
+ exports.deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand;
3390
+ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = async (output, context) => {
3391
+ const parsedOutput = {
3392
+ ...output,
3393
+ body: await parseBody(output.body, context),
3394
+ };
3395
+ let response;
3396
+ let errorCode = "UnknownError";
3397
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3398
+ switch (errorCode) {
3399
+ case "InternalServerException":
3400
+ case "com.amazonaws.comprehend#InternalServerException":
3401
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
3402
+ case "InvalidRequestException":
3403
+ case "com.amazonaws.comprehend#InvalidRequestException":
3404
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
3405
+ case "KmsKeyValidationException":
3406
+ case "com.amazonaws.comprehend#KmsKeyValidationException":
3407
+ throw await deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context);
3408
+ case "TooManyRequestsException":
3409
+ case "com.amazonaws.comprehend#TooManyRequestsException":
3410
+ throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
3411
+ case "TooManyTagsException":
3412
+ case "com.amazonaws.comprehend#TooManyTagsException":
3413
+ throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
3414
+ default:
3415
+ const parsedBody = parsedOutput.body;
3416
+ response = new ComprehendServiceException_1.ComprehendServiceException({
3417
+ name: parsedBody.code || parsedBody.Code || errorCode,
3418
+ $fault: "client",
3419
+ $metadata: deserializeMetadata(output),
3420
+ });
3421
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
3422
+ }
3423
+ };
3246
3424
  const deserializeAws_json1_1StartTopicsDetectionJobCommand = async (output, context) => {
3247
3425
  if (output.statusCode >= 300) {
3248
3426
  return deserializeAws_json1_1StartTopicsDetectionJobCommandError(output, context);
@@ -3543,6 +3721,48 @@ const deserializeAws_json1_1StopSentimentDetectionJobCommandError = async (outpu
3543
3721
  throw smithy_client_1.decorateServiceException(response, parsedBody);
3544
3722
  }
3545
3723
  };
3724
+ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = async (output, context) => {
3725
+ if (output.statusCode >= 300) {
3726
+ return deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError(output, context);
3727
+ }
3728
+ const data = await parseBody(output.body, context);
3729
+ let contents = {};
3730
+ contents = deserializeAws_json1_1StopTargetedSentimentDetectionJobResponse(data, context);
3731
+ const response = {
3732
+ $metadata: deserializeMetadata(output),
3733
+ ...contents,
3734
+ };
3735
+ return Promise.resolve(response);
3736
+ };
3737
+ exports.deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand;
3738
+ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = async (output, context) => {
3739
+ const parsedOutput = {
3740
+ ...output,
3741
+ body: await parseBody(output.body, context),
3742
+ };
3743
+ let response;
3744
+ let errorCode = "UnknownError";
3745
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3746
+ switch (errorCode) {
3747
+ case "InternalServerException":
3748
+ case "com.amazonaws.comprehend#InternalServerException":
3749
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
3750
+ case "InvalidRequestException":
3751
+ case "com.amazonaws.comprehend#InvalidRequestException":
3752
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
3753
+ case "JobNotFoundException":
3754
+ case "com.amazonaws.comprehend#JobNotFoundException":
3755
+ throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
3756
+ default:
3757
+ const parsedBody = parsedOutput.body;
3758
+ response = new ComprehendServiceException_1.ComprehendServiceException({
3759
+ name: parsedBody.code || parsedBody.Code || errorCode,
3760
+ $fault: "client",
3761
+ $metadata: deserializeMetadata(output),
3762
+ });
3763
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
3764
+ }
3765
+ };
3546
3766
  const deserializeAws_json1_1StopTrainingDocumentClassifierCommand = async (output, context) => {
3547
3767
  if (output.statusCode >= 300) {
3548
3768
  return deserializeAws_json1_1StopTrainingDocumentClassifierCommandError(output, context);
@@ -4153,6 +4373,11 @@ const serializeAws_json1_1DescribeSentimentDetectionJobRequest = (input, context
4153
4373
  ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
4154
4374
  };
4155
4375
  };
4376
+ const serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest = (input, context) => {
4377
+ return {
4378
+ ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
4379
+ };
4380
+ };
4156
4381
  const serializeAws_json1_1DescribeTopicsDetectionJobRequest = (input, context) => {
4157
4382
  return {
4158
4383
  ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
@@ -4526,6 +4751,16 @@ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
4526
4751
  ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4527
4752
  };
4528
4753
  };
4754
+ const serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest = (input, context) => {
4755
+ return {
4756
+ ...(input.Filter !== undefined &&
4757
+ input.Filter !== null && {
4758
+ Filter: serializeAws_json1_1TargetedSentimentDetectionJobFilter(input.Filter, context),
4759
+ }),
4760
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4761
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4762
+ };
4763
+ };
4529
4764
  const serializeAws_json1_1ListTopicsDetectionJobsRequest = (input, context) => {
4530
4765
  return {
4531
4766
  ...(input.Filter !== undefined &&
@@ -4753,6 +4988,29 @@ const serializeAws_json1_1StartSentimentDetectionJobRequest = (input, context) =
4753
4988
  input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
4754
4989
  };
4755
4990
  };
4991
+ const serializeAws_json1_1StartTargetedSentimentDetectionJobRequest = (input, context) => {
4992
+ var _a;
4993
+ return {
4994
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4995
+ ...(input.DataAccessRoleArn !== undefined &&
4996
+ input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4997
+ ...(input.InputDataConfig !== undefined &&
4998
+ input.InputDataConfig !== null && {
4999
+ InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
5000
+ }),
5001
+ ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
5002
+ ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
5003
+ ...(input.OutputDataConfig !== undefined &&
5004
+ input.OutputDataConfig !== null && {
5005
+ OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
5006
+ }),
5007
+ ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
5008
+ ...(input.VolumeKmsKeyId !== undefined &&
5009
+ input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
5010
+ ...(input.VpcConfig !== undefined &&
5011
+ input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
5012
+ };
5013
+ };
4756
5014
  const serializeAws_json1_1StartTopicsDetectionJobRequest = (input, context) => {
4757
5015
  var _a;
4758
5016
  return {
@@ -4807,6 +5065,11 @@ const serializeAws_json1_1StopSentimentDetectionJobRequest = (input, context) =>
4807
5065
  ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
4808
5066
  };
4809
5067
  };
5068
+ const serializeAws_json1_1StopTargetedSentimentDetectionJobRequest = (input, context) => {
5069
+ return {
5070
+ ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
5071
+ };
5072
+ };
4810
5073
  const serializeAws_json1_1StopTrainingDocumentClassifierRequest = (input, context) => {
4811
5074
  return {
4812
5075
  ...(input.DocumentClassifierArn !== undefined &&
@@ -4861,6 +5124,16 @@ const serializeAws_json1_1TagResourceRequest = (input, context) => {
4861
5124
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4862
5125
  };
4863
5126
  };
5127
+ const serializeAws_json1_1TargetedSentimentDetectionJobFilter = (input, context) => {
5128
+ return {
5129
+ ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
5130
+ ...(input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus }),
5131
+ ...(input.SubmitTimeAfter !== undefined &&
5132
+ input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
5133
+ ...(input.SubmitTimeBefore !== undefined &&
5134
+ input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
5135
+ };
5136
+ };
4864
5137
  const serializeAws_json1_1TargetEventTypes = (input, context) => {
4865
5138
  return input
4866
5139
  .filter((e) => e != null)
@@ -5200,6 +5473,14 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobResponse = (output, con
5200
5473
  : undefined,
5201
5474
  };
5202
5475
  };
5476
+ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse = (output, context) => {
5477
+ return {
5478
+ TargetedSentimentDetectionJobProperties: output.TargetedSentimentDetectionJobProperties !== undefined &&
5479
+ output.TargetedSentimentDetectionJobProperties !== null
5480
+ ? deserializeAws_json1_1TargetedSentimentDetectionJobProperties(output.TargetedSentimentDetectionJobProperties, context)
5481
+ : undefined,
5482
+ };
5483
+ };
5203
5484
  const deserializeAws_json1_1DescribeTopicsDetectionJobResponse = (output, context) => {
5204
5485
  return {
5205
5486
  TopicsDetectionJobProperties: output.TopicsDetectionJobProperties !== undefined && output.TopicsDetectionJobProperties !== null
@@ -6107,6 +6388,15 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
6107
6388
  : undefined,
6108
6389
  };
6109
6390
  };
6391
+ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse = (output, context) => {
6392
+ return {
6393
+ NextToken: smithy_client_1.expectString(output.NextToken),
6394
+ TargetedSentimentDetectionJobPropertiesList: output.TargetedSentimentDetectionJobPropertiesList !== undefined &&
6395
+ output.TargetedSentimentDetectionJobPropertiesList !== null
6396
+ ? deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList(output.TargetedSentimentDetectionJobPropertiesList, context)
6397
+ : undefined,
6398
+ };
6399
+ };
6110
6400
  const deserializeAws_json1_1ListTopicsDetectionJobsResponse = (output, context) => {
6111
6401
  return {
6112
6402
  NextToken: smithy_client_1.expectString(output.NextToken),
@@ -6319,6 +6609,13 @@ const deserializeAws_json1_1StartSentimentDetectionJobResponse = (output, contex
6319
6609
  JobStatus: smithy_client_1.expectString(output.JobStatus),
6320
6610
  };
6321
6611
  };
6612
+ const deserializeAws_json1_1StartTargetedSentimentDetectionJobResponse = (output, context) => {
6613
+ return {
6614
+ JobArn: smithy_client_1.expectString(output.JobArn),
6615
+ JobId: smithy_client_1.expectString(output.JobId),
6616
+ JobStatus: smithy_client_1.expectString(output.JobStatus),
6617
+ };
6618
+ };
6322
6619
  const deserializeAws_json1_1StartTopicsDetectionJobResponse = (output, context) => {
6323
6620
  return {
6324
6621
  JobArn: smithy_client_1.expectString(output.JobArn),
@@ -6362,6 +6659,12 @@ const deserializeAws_json1_1StopSentimentDetectionJobResponse = (output, context
6362
6659
  JobStatus: smithy_client_1.expectString(output.JobStatus),
6363
6660
  };
6364
6661
  };
6662
+ const deserializeAws_json1_1StopTargetedSentimentDetectionJobResponse = (output, context) => {
6663
+ return {
6664
+ JobId: smithy_client_1.expectString(output.JobId),
6665
+ JobStatus: smithy_client_1.expectString(output.JobStatus),
6666
+ };
6667
+ };
6365
6668
  const deserializeAws_json1_1StopTrainingDocumentClassifierResponse = (output, context) => {
6366
6669
  return {};
6367
6670
  };
@@ -6410,6 +6713,44 @@ const deserializeAws_json1_1TagList = (output, context) => {
6410
6713
  const deserializeAws_json1_1TagResourceResponse = (output, context) => {
6411
6714
  return {};
6412
6715
  };
6716
+ const deserializeAws_json1_1TargetedSentimentDetectionJobProperties = (output, context) => {
6717
+ return {
6718
+ DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
6719
+ EndTime: output.EndTime !== undefined && output.EndTime !== null
6720
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
6721
+ : undefined,
6722
+ InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
6723
+ ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
6724
+ : undefined,
6725
+ JobArn: smithy_client_1.expectString(output.JobArn),
6726
+ JobId: smithy_client_1.expectString(output.JobId),
6727
+ JobName: smithy_client_1.expectString(output.JobName),
6728
+ JobStatus: smithy_client_1.expectString(output.JobStatus),
6729
+ LanguageCode: smithy_client_1.expectString(output.LanguageCode),
6730
+ Message: smithy_client_1.expectString(output.Message),
6731
+ OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
6732
+ ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
6733
+ : undefined,
6734
+ SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
6735
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
6736
+ : undefined,
6737
+ VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
6738
+ VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
6739
+ ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
6740
+ : undefined,
6741
+ };
6742
+ };
6743
+ const deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList = (output, context) => {
6744
+ const retVal = (output || [])
6745
+ .filter((e) => e != null)
6746
+ .map((entry) => {
6747
+ if (entry === null) {
6748
+ return null;
6749
+ }
6750
+ return deserializeAws_json1_1TargetedSentimentDetectionJobProperties(entry, context);
6751
+ });
6752
+ return retVal;
6753
+ };
6413
6754
  const deserializeAws_json1_1TargetEventTypes = (output, context) => {
6414
6755
  const retVal = (output || [])
6415
6756
  .filter((e) => e != null)
@@ -24,6 +24,7 @@ import { DescribeKeyPhrasesDetectionJobCommand, } from "./commands/DescribeKeyPh
24
24
  import { DescribePiiEntitiesDetectionJobCommand, } from "./commands/DescribePiiEntitiesDetectionJobCommand";
25
25
  import { DescribeResourcePolicyCommand, } from "./commands/DescribeResourcePolicyCommand";
26
26
  import { DescribeSentimentDetectionJobCommand, } from "./commands/DescribeSentimentDetectionJobCommand";
27
+ import { DescribeTargetedSentimentDetectionJobCommand, } from "./commands/DescribeTargetedSentimentDetectionJobCommand";
27
28
  import { DescribeTopicsDetectionJobCommand, } from "./commands/DescribeTopicsDetectionJobCommand";
28
29
  import { DetectDominantLanguageCommand, } from "./commands/DetectDominantLanguageCommand";
29
30
  import { DetectEntitiesCommand, } from "./commands/DetectEntitiesCommand";
@@ -45,6 +46,7 @@ import { ListKeyPhrasesDetectionJobsCommand, } from "./commands/ListKeyPhrasesDe
45
46
  import { ListPiiEntitiesDetectionJobsCommand, } from "./commands/ListPiiEntitiesDetectionJobsCommand";
46
47
  import { ListSentimentDetectionJobsCommand, } from "./commands/ListSentimentDetectionJobsCommand";
47
48
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
49
+ import { ListTargetedSentimentDetectionJobsCommand, } from "./commands/ListTargetedSentimentDetectionJobsCommand";
48
50
  import { ListTopicsDetectionJobsCommand, } from "./commands/ListTopicsDetectionJobsCommand";
49
51
  import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
50
52
  import { StartDocumentClassificationJobCommand, } from "./commands/StartDocumentClassificationJobCommand";
@@ -54,6 +56,7 @@ import { StartEventsDetectionJobCommand, } from "./commands/StartEventsDetection
54
56
  import { StartKeyPhrasesDetectionJobCommand, } from "./commands/StartKeyPhrasesDetectionJobCommand";
55
57
  import { StartPiiEntitiesDetectionJobCommand, } from "./commands/StartPiiEntitiesDetectionJobCommand";
56
58
  import { StartSentimentDetectionJobCommand, } from "./commands/StartSentimentDetectionJobCommand";
59
+ import { StartTargetedSentimentDetectionJobCommand, } from "./commands/StartTargetedSentimentDetectionJobCommand";
57
60
  import { StartTopicsDetectionJobCommand, } from "./commands/StartTopicsDetectionJobCommand";
58
61
  import { StopDominantLanguageDetectionJobCommand, } from "./commands/StopDominantLanguageDetectionJobCommand";
59
62
  import { StopEntitiesDetectionJobCommand, } from "./commands/StopEntitiesDetectionJobCommand";
@@ -61,6 +64,7 @@ import { StopEventsDetectionJobCommand, } from "./commands/StopEventsDetectionJo
61
64
  import { StopKeyPhrasesDetectionJobCommand, } from "./commands/StopKeyPhrasesDetectionJobCommand";
62
65
  import { StopPiiEntitiesDetectionJobCommand, } from "./commands/StopPiiEntitiesDetectionJobCommand";
63
66
  import { StopSentimentDetectionJobCommand, } from "./commands/StopSentimentDetectionJobCommand";
67
+ import { StopTargetedSentimentDetectionJobCommand, } from "./commands/StopTargetedSentimentDetectionJobCommand";
64
68
  import { StopTrainingDocumentClassifierCommand, } from "./commands/StopTrainingDocumentClassifierCommand";
65
69
  import { StopTrainingEntityRecognizerCommand, } from "./commands/StopTrainingEntityRecognizerCommand";
66
70
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -422,6 +426,20 @@ var Comprehend = (function (_super) {
422
426
  return this.send(command, optionsOrCb);
423
427
  }
424
428
  };
429
+ Comprehend.prototype.describeTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
430
+ var command = new DescribeTargetedSentimentDetectionJobCommand(args);
431
+ if (typeof optionsOrCb === "function") {
432
+ this.send(command, optionsOrCb);
433
+ }
434
+ else if (typeof cb === "function") {
435
+ if (typeof optionsOrCb !== "object")
436
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
437
+ this.send(command, optionsOrCb || {}, cb);
438
+ }
439
+ else {
440
+ return this.send(command, optionsOrCb);
441
+ }
442
+ };
425
443
  Comprehend.prototype.describeTopicsDetectionJob = function (args, optionsOrCb, cb) {
426
444
  var command = new DescribeTopicsDetectionJobCommand(args);
427
445
  if (typeof optionsOrCb === "function") {
@@ -716,6 +734,20 @@ var Comprehend = (function (_super) {
716
734
  return this.send(command, optionsOrCb);
717
735
  }
718
736
  };
737
+ Comprehend.prototype.listTargetedSentimentDetectionJobs = function (args, optionsOrCb, cb) {
738
+ var command = new ListTargetedSentimentDetectionJobsCommand(args);
739
+ if (typeof optionsOrCb === "function") {
740
+ this.send(command, optionsOrCb);
741
+ }
742
+ else if (typeof cb === "function") {
743
+ if (typeof optionsOrCb !== "object")
744
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
745
+ this.send(command, optionsOrCb || {}, cb);
746
+ }
747
+ else {
748
+ return this.send(command, optionsOrCb);
749
+ }
750
+ };
719
751
  Comprehend.prototype.listTopicsDetectionJobs = function (args, optionsOrCb, cb) {
720
752
  var command = new ListTopicsDetectionJobsCommand(args);
721
753
  if (typeof optionsOrCb === "function") {
@@ -842,6 +874,20 @@ var Comprehend = (function (_super) {
842
874
  return this.send(command, optionsOrCb);
843
875
  }
844
876
  };
877
+ Comprehend.prototype.startTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
878
+ var command = new StartTargetedSentimentDetectionJobCommand(args);
879
+ if (typeof optionsOrCb === "function") {
880
+ this.send(command, optionsOrCb);
881
+ }
882
+ else if (typeof cb === "function") {
883
+ if (typeof optionsOrCb !== "object")
884
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
885
+ this.send(command, optionsOrCb || {}, cb);
886
+ }
887
+ else {
888
+ return this.send(command, optionsOrCb);
889
+ }
890
+ };
845
891
  Comprehend.prototype.startTopicsDetectionJob = function (args, optionsOrCb, cb) {
846
892
  var command = new StartTopicsDetectionJobCommand(args);
847
893
  if (typeof optionsOrCb === "function") {
@@ -940,6 +986,20 @@ var Comprehend = (function (_super) {
940
986
  return this.send(command, optionsOrCb);
941
987
  }
942
988
  };
989
+ Comprehend.prototype.stopTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
990
+ var command = new StopTargetedSentimentDetectionJobCommand(args);
991
+ if (typeof optionsOrCb === "function") {
992
+ this.send(command, optionsOrCb);
993
+ }
994
+ else if (typeof cb === "function") {
995
+ if (typeof optionsOrCb !== "object")
996
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
997
+ this.send(command, optionsOrCb || {}, cb);
998
+ }
999
+ else {
1000
+ return this.send(command, optionsOrCb);
1001
+ }
1002
+ };
943
1003
  Comprehend.prototype.stopTrainingDocumentClassifier = function (args, optionsOrCb, cb) {
944
1004
  var command = new StopTrainingDocumentClassifierCommand(args);
945
1005
  if (typeof optionsOrCb === "function") {