@aws-sdk/client-comprehend 3.171.0 → 3.178.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 (39) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/Comprehend.js +30 -0
  3. package/dist-cjs/commands/BatchDetectTargetedSentimentCommand.js +36 -0
  4. package/dist-cjs/commands/DetectTargetedSentimentCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +59 -5
  7. package/dist-cjs/protocols/Aws_json1_1.js +218 -3
  8. package/dist-es/Comprehend.js +30 -0
  9. package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +39 -0
  10. package/dist-es/commands/DetectTargetedSentimentCommand.js +39 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +28 -0
  13. package/dist-es/protocols/Aws_json1_1.js +252 -0
  14. package/dist-types/Comprehend.d.ts +31 -6
  15. package/dist-types/ComprehendClient.d.ts +4 -2
  16. package/dist-types/commands/BatchDetectEntitiesCommand.d.ts +3 -2
  17. package/dist-types/commands/BatchDetectSyntaxCommand.d.ts +3 -1
  18. package/dist-types/commands/BatchDetectTargetedSentimentCommand.d.ts +37 -0
  19. package/dist-types/commands/CreateDocumentClassifierCommand.d.ts +3 -1
  20. package/dist-types/commands/DetectEntitiesCommand.d.ts +2 -1
  21. package/dist-types/commands/DetectSyntaxCommand.d.ts +3 -1
  22. package/dist-types/commands/DetectTargetedSentimentCommand.d.ts +36 -0
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/models/models_0.d.ts +230 -68
  25. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  26. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  27. package/dist-types/runtimeConfig.d.ts +1 -1
  28. package/dist-types/runtimeConfig.native.d.ts +1 -1
  29. package/dist-types/ts3.4/Comprehend.d.ts +34 -0
  30. package/dist-types/ts3.4/ComprehendClient.d.ts +12 -0
  31. package/dist-types/ts3.4/commands/BatchDetectTargetedSentimentCommand.d.ts +39 -0
  32. package/dist-types/ts3.4/commands/DetectTargetedSentimentCommand.d.ts +39 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +79 -0
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
  39. package/package.json +26 -26
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ 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_1DetectTargetedSentimentCommand = 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_1BatchDetectTargetedSentimentCommand = 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_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_1BatchDetectTargetedSentimentCommand = 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 = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = 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_1DetectTargetedSentimentCommand = 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 = 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");
@@ -58,6 +58,16 @@ const serializeAws_json1_1BatchDetectSyntaxCommand = async (input, context) => {
58
58
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
59
  };
60
60
  exports.serializeAws_json1_1BatchDetectSyntaxCommand = serializeAws_json1_1BatchDetectSyntaxCommand;
61
+ const serializeAws_json1_1BatchDetectTargetedSentimentCommand = async (input, context) => {
62
+ const headers = {
63
+ "content-type": "application/x-amz-json-1.1",
64
+ "x-amz-target": "Comprehend_20171127.BatchDetectTargetedSentiment",
65
+ };
66
+ let body;
67
+ body = JSON.stringify(serializeAws_json1_1BatchDetectTargetedSentimentRequest(input, context));
68
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
+ };
70
+ exports.serializeAws_json1_1BatchDetectTargetedSentimentCommand = serializeAws_json1_1BatchDetectTargetedSentimentCommand;
61
71
  const serializeAws_json1_1ClassifyDocumentCommand = async (input, context) => {
62
72
  const headers = {
63
73
  "content-type": "application/x-amz-json-1.1",
@@ -338,6 +348,16 @@ const serializeAws_json1_1DetectSyntaxCommand = async (input, context) => {
338
348
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
339
349
  };
340
350
  exports.serializeAws_json1_1DetectSyntaxCommand = serializeAws_json1_1DetectSyntaxCommand;
351
+ const serializeAws_json1_1DetectTargetedSentimentCommand = async (input, context) => {
352
+ const headers = {
353
+ "content-type": "application/x-amz-json-1.1",
354
+ "x-amz-target": "Comprehend_20171127.DetectTargetedSentiment",
355
+ };
356
+ let body;
357
+ body = JSON.stringify(serializeAws_json1_1DetectTargetedSentimentRequest(input, context));
358
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
+ };
360
+ exports.serializeAws_json1_1DetectTargetedSentimentCommand = serializeAws_json1_1DetectTargetedSentimentCommand;
341
361
  const serializeAws_json1_1ImportModelCommand = async (input, context) => {
342
362
  const headers = {
343
363
  "content-type": "application/x-amz-json-1.1",
@@ -945,6 +965,52 @@ const deserializeAws_json1_1BatchDetectSyntaxCommandError = async (output, conte
945
965
  });
946
966
  }
947
967
  };
968
+ const deserializeAws_json1_1BatchDetectTargetedSentimentCommand = async (output, context) => {
969
+ if (output.statusCode >= 300) {
970
+ return deserializeAws_json1_1BatchDetectTargetedSentimentCommandError(output, context);
971
+ }
972
+ const data = await parseBody(output.body, context);
973
+ let contents = {};
974
+ contents = deserializeAws_json1_1BatchDetectTargetedSentimentResponse(data, context);
975
+ const response = {
976
+ $metadata: deserializeMetadata(output),
977
+ ...contents,
978
+ };
979
+ return Promise.resolve(response);
980
+ };
981
+ exports.deserializeAws_json1_1BatchDetectTargetedSentimentCommand = deserializeAws_json1_1BatchDetectTargetedSentimentCommand;
982
+ const deserializeAws_json1_1BatchDetectTargetedSentimentCommandError = async (output, context) => {
983
+ const parsedOutput = {
984
+ ...output,
985
+ body: await parseBody(output.body, context),
986
+ };
987
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
988
+ switch (errorCode) {
989
+ case "BatchSizeLimitExceededException":
990
+ case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
991
+ throw await deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse(parsedOutput, context);
992
+ case "InternalServerException":
993
+ case "com.amazonaws.comprehend#InternalServerException":
994
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
995
+ case "InvalidRequestException":
996
+ case "com.amazonaws.comprehend#InvalidRequestException":
997
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
998
+ case "TextSizeLimitExceededException":
999
+ case "com.amazonaws.comprehend#TextSizeLimitExceededException":
1000
+ throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
1001
+ case "UnsupportedLanguageException":
1002
+ case "com.amazonaws.comprehend#UnsupportedLanguageException":
1003
+ throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
1004
+ default:
1005
+ const parsedBody = parsedOutput.body;
1006
+ (0, smithy_client_1.throwDefaultError)({
1007
+ output,
1008
+ parsedBody,
1009
+ exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
1010
+ errorCode,
1011
+ });
1012
+ }
1013
+ };
948
1014
  const deserializeAws_json1_1ClassifyDocumentCommand = async (output, context) => {
949
1015
  if (output.statusCode >= 300) {
950
1016
  return deserializeAws_json1_1ClassifyDocumentCommandError(output, context);
@@ -2194,6 +2260,49 @@ const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) =
2194
2260
  });
2195
2261
  }
2196
2262
  };
2263
+ const deserializeAws_json1_1DetectTargetedSentimentCommand = async (output, context) => {
2264
+ if (output.statusCode >= 300) {
2265
+ return deserializeAws_json1_1DetectTargetedSentimentCommandError(output, context);
2266
+ }
2267
+ const data = await parseBody(output.body, context);
2268
+ let contents = {};
2269
+ contents = deserializeAws_json1_1DetectTargetedSentimentResponse(data, context);
2270
+ const response = {
2271
+ $metadata: deserializeMetadata(output),
2272
+ ...contents,
2273
+ };
2274
+ return Promise.resolve(response);
2275
+ };
2276
+ exports.deserializeAws_json1_1DetectTargetedSentimentCommand = deserializeAws_json1_1DetectTargetedSentimentCommand;
2277
+ const deserializeAws_json1_1DetectTargetedSentimentCommandError = async (output, context) => {
2278
+ const parsedOutput = {
2279
+ ...output,
2280
+ body: await parseBody(output.body, context),
2281
+ };
2282
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2283
+ switch (errorCode) {
2284
+ case "InternalServerException":
2285
+ case "com.amazonaws.comprehend#InternalServerException":
2286
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
2287
+ case "InvalidRequestException":
2288
+ case "com.amazonaws.comprehend#InvalidRequestException":
2289
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2290
+ case "TextSizeLimitExceededException":
2291
+ case "com.amazonaws.comprehend#TextSizeLimitExceededException":
2292
+ throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
2293
+ case "UnsupportedLanguageException":
2294
+ case "com.amazonaws.comprehend#UnsupportedLanguageException":
2295
+ throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
2296
+ default:
2297
+ const parsedBody = parsedOutput.body;
2298
+ (0, smithy_client_1.throwDefaultError)({
2299
+ output,
2300
+ parsedBody,
2301
+ exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
2302
+ errorCode,
2303
+ });
2304
+ }
2305
+ };
2197
2306
  const deserializeAws_json1_1ImportModelCommand = async (output, context) => {
2198
2307
  if (output.statusCode >= 300) {
2199
2308
  return deserializeAws_json1_1ImportModelCommandError(output, context);
@@ -4053,6 +4162,12 @@ const serializeAws_json1_1BatchDetectSyntaxRequest = (input, context) => {
4053
4162
  ...(input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
4054
4163
  };
4055
4164
  };
4165
+ const serializeAws_json1_1BatchDetectTargetedSentimentRequest = (input, context) => {
4166
+ return {
4167
+ ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
4168
+ ...(input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
4169
+ };
4170
+ };
4056
4171
  const serializeAws_json1_1ClassifyDocumentRequest = (input, context) => {
4057
4172
  return {
4058
4173
  ...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
@@ -4245,6 +4360,12 @@ const serializeAws_json1_1DetectSyntaxRequest = (input, context) => {
4245
4360
  ...(input.Text != null && { Text: input.Text }),
4246
4361
  };
4247
4362
  };
4363
+ const serializeAws_json1_1DetectTargetedSentimentRequest = (input, context) => {
4364
+ return {
4365
+ ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
4366
+ ...(input.Text != null && { Text: input.Text }),
4367
+ };
4368
+ };
4248
4369
  const serializeAws_json1_1DocumentClassificationJobFilter = (input, context) => {
4249
4370
  return {
4250
4371
  ...(input.JobName != null && { JobName: input.JobName }),
@@ -4964,6 +5085,22 @@ const deserializeAws_json1_1BatchDetectSyntaxResponse = (output, context) => {
4964
5085
  : undefined,
4965
5086
  };
4966
5087
  };
5088
+ const deserializeAws_json1_1BatchDetectTargetedSentimentItemResult = (output, context) => {
5089
+ return {
5090
+ Entities: output.Entities != null
5091
+ ? deserializeAws_json1_1ListOfTargetedSentimentEntities(output.Entities, context)
5092
+ : undefined,
5093
+ Index: (0, smithy_client_1.expectInt32)(output.Index),
5094
+ };
5095
+ };
5096
+ const deserializeAws_json1_1BatchDetectTargetedSentimentResponse = (output, context) => {
5097
+ return {
5098
+ ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
5099
+ ResultList: output.ResultList != null
5100
+ ? deserializeAws_json1_1ListOfDetectTargetedSentimentResult(output.ResultList, context)
5101
+ : undefined,
5102
+ };
5103
+ };
4967
5104
  const deserializeAws_json1_1BatchItemError = (output, context) => {
4968
5105
  return {
4969
5106
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
@@ -5179,6 +5316,13 @@ const deserializeAws_json1_1DetectSyntaxResponse = (output, context) => {
5179
5316
  SyntaxTokens: output.SyntaxTokens != null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined,
5180
5317
  };
5181
5318
  };
5319
+ const deserializeAws_json1_1DetectTargetedSentimentResponse = (output, context) => {
5320
+ return {
5321
+ Entities: output.Entities != null
5322
+ ? deserializeAws_json1_1ListOfTargetedSentimentEntities(output.Entities, context)
5323
+ : undefined,
5324
+ };
5325
+ };
5182
5326
  const deserializeAws_json1_1DocumentClass = (output, context) => {
5183
5327
  return {
5184
5328
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -5811,6 +5955,17 @@ const deserializeAws_json1_1ListOfClasses = (output, context) => {
5811
5955
  });
5812
5956
  return retVal;
5813
5957
  };
5958
+ const deserializeAws_json1_1ListOfDescriptiveMentionIndices = (output, context) => {
5959
+ const retVal = (output || [])
5960
+ .filter((e) => e != null)
5961
+ .map((entry) => {
5962
+ if (entry === null) {
5963
+ return null;
5964
+ }
5965
+ return (0, smithy_client_1.expectInt32)(entry);
5966
+ });
5967
+ return retVal;
5968
+ };
5814
5969
  const deserializeAws_json1_1ListOfDetectDominantLanguageResult = (output, context) => {
5815
5970
  const retVal = (output || [])
5816
5971
  .filter((e) => e != null)
@@ -5866,6 +6021,17 @@ const deserializeAws_json1_1ListOfDetectSyntaxResult = (output, context) => {
5866
6021
  });
5867
6022
  return retVal;
5868
6023
  };
6024
+ const deserializeAws_json1_1ListOfDetectTargetedSentimentResult = (output, context) => {
6025
+ const retVal = (output || [])
6026
+ .filter((e) => e != null)
6027
+ .map((entry) => {
6028
+ if (entry === null) {
6029
+ return null;
6030
+ }
6031
+ return deserializeAws_json1_1BatchDetectTargetedSentimentItemResult(entry, context);
6032
+ });
6033
+ return retVal;
6034
+ };
5869
6035
  const deserializeAws_json1_1ListOfDocumentReadFeatureTypes = (output, context) => {
5870
6036
  const retVal = (output || [])
5871
6037
  .filter((e) => e != null)
@@ -5932,6 +6098,17 @@ const deserializeAws_json1_1ListOfLabels = (output, context) => {
5932
6098
  });
5933
6099
  return retVal;
5934
6100
  };
6101
+ const deserializeAws_json1_1ListOfMentions = (output, context) => {
6102
+ const retVal = (output || [])
6103
+ .filter((e) => e != null)
6104
+ .map((entry) => {
6105
+ if (entry === null) {
6106
+ return null;
6107
+ }
6108
+ return deserializeAws_json1_1TargetedSentimentMention(entry, context);
6109
+ });
6110
+ return retVal;
6111
+ };
5935
6112
  const deserializeAws_json1_1ListOfPiiEntities = (output, context) => {
5936
6113
  const retVal = (output || [])
5937
6114
  .filter((e) => e != null)
@@ -5965,6 +6142,17 @@ const deserializeAws_json1_1ListOfSyntaxTokens = (output, context) => {
5965
6142
  });
5966
6143
  return retVal;
5967
6144
  };
6145
+ const deserializeAws_json1_1ListOfTargetedSentimentEntities = (output, context) => {
6146
+ const retVal = (output || [])
6147
+ .filter((e) => e != null)
6148
+ .map((entry) => {
6149
+ if (entry === null) {
6150
+ return null;
6151
+ }
6152
+ return deserializeAws_json1_1TargetedSentimentEntity(entry, context);
6153
+ });
6154
+ return retVal;
6155
+ };
5968
6156
  const deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = (output, context) => {
5969
6157
  return {
5970
6158
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -6003,6 +6191,12 @@ const deserializeAws_json1_1ListTopicsDetectionJobsResponse = (output, context)
6003
6191
  : undefined,
6004
6192
  };
6005
6193
  };
6194
+ const deserializeAws_json1_1MentionSentiment = (output, context) => {
6195
+ return {
6196
+ Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
6197
+ SentimentScore: output.SentimentScore != null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined,
6198
+ };
6199
+ };
6006
6200
  const deserializeAws_json1_1OutputDataConfig = (output, context) => {
6007
6201
  return {
6008
6202
  KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
@@ -6331,6 +6525,27 @@ const deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList = (outpu
6331
6525
  });
6332
6526
  return retVal;
6333
6527
  };
6528
+ const deserializeAws_json1_1TargetedSentimentEntity = (output, context) => {
6529
+ return {
6530
+ DescriptiveMentionIndex: output.DescriptiveMentionIndex != null
6531
+ ? deserializeAws_json1_1ListOfDescriptiveMentionIndices(output.DescriptiveMentionIndex, context)
6532
+ : undefined,
6533
+ Mentions: output.Mentions != null ? deserializeAws_json1_1ListOfMentions(output.Mentions, context) : undefined,
6534
+ };
6535
+ };
6536
+ const deserializeAws_json1_1TargetedSentimentMention = (output, context) => {
6537
+ return {
6538
+ BeginOffset: (0, smithy_client_1.expectInt32)(output.BeginOffset),
6539
+ EndOffset: (0, smithy_client_1.expectInt32)(output.EndOffset),
6540
+ GroupScore: (0, smithy_client_1.limitedParseFloat32)(output.GroupScore),
6541
+ MentionSentiment: output.MentionSentiment != null
6542
+ ? deserializeAws_json1_1MentionSentiment(output.MentionSentiment, context)
6543
+ : undefined,
6544
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
6545
+ Text: (0, smithy_client_1.expectString)(output.Text),
6546
+ Type: (0, smithy_client_1.expectString)(output.Type),
6547
+ };
6548
+ };
6334
6549
  const deserializeAws_json1_1TargetEventTypes = (output, context) => {
6335
6550
  const retVal = (output || [])
6336
6551
  .filter((e) => e != null)
@@ -4,6 +4,7 @@ import { BatchDetectEntitiesCommand, } from "./commands/BatchDetectEntitiesComma
4
4
  import { BatchDetectKeyPhrasesCommand, } from "./commands/BatchDetectKeyPhrasesCommand";
5
5
  import { BatchDetectSentimentCommand, } from "./commands/BatchDetectSentimentCommand";
6
6
  import { BatchDetectSyntaxCommand, } from "./commands/BatchDetectSyntaxCommand";
7
+ import { BatchDetectTargetedSentimentCommand, } from "./commands/BatchDetectTargetedSentimentCommand";
7
8
  import { ClassifyDocumentCommand, } from "./commands/ClassifyDocumentCommand";
8
9
  import { ContainsPiiEntitiesCommand, } from "./commands/ContainsPiiEntitiesCommand";
9
10
  import { CreateDocumentClassifierCommand, } from "./commands/CreateDocumentClassifierCommand";
@@ -32,6 +33,7 @@ import { DetectKeyPhrasesCommand, } from "./commands/DetectKeyPhrasesCommand";
32
33
  import { DetectPiiEntitiesCommand, } from "./commands/DetectPiiEntitiesCommand";
33
34
  import { DetectSentimentCommand, } from "./commands/DetectSentimentCommand";
34
35
  import { DetectSyntaxCommand, } from "./commands/DetectSyntaxCommand";
36
+ import { DetectTargetedSentimentCommand, } from "./commands/DetectTargetedSentimentCommand";
35
37
  import { ImportModelCommand } from "./commands/ImportModelCommand";
36
38
  import { ListDocumentClassificationJobsCommand, } from "./commands/ListDocumentClassificationJobsCommand";
37
39
  import { ListDocumentClassifiersCommand, } from "./commands/ListDocumentClassifiersCommand";
@@ -146,6 +148,20 @@ var Comprehend = (function (_super) {
146
148
  return this.send(command, optionsOrCb);
147
149
  }
148
150
  };
151
+ Comprehend.prototype.batchDetectTargetedSentiment = function (args, optionsOrCb, cb) {
152
+ var command = new BatchDetectTargetedSentimentCommand(args);
153
+ if (typeof optionsOrCb === "function") {
154
+ this.send(command, optionsOrCb);
155
+ }
156
+ else if (typeof cb === "function") {
157
+ if (typeof optionsOrCb !== "object")
158
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
159
+ this.send(command, optionsOrCb || {}, cb);
160
+ }
161
+ else {
162
+ return this.send(command, optionsOrCb);
163
+ }
164
+ };
149
165
  Comprehend.prototype.classifyDocument = function (args, optionsOrCb, cb) {
150
166
  var command = new ClassifyDocumentCommand(args);
151
167
  if (typeof optionsOrCb === "function") {
@@ -538,6 +554,20 @@ var Comprehend = (function (_super) {
538
554
  return this.send(command, optionsOrCb);
539
555
  }
540
556
  };
557
+ Comprehend.prototype.detectTargetedSentiment = function (args, optionsOrCb, cb) {
558
+ var command = new DetectTargetedSentimentCommand(args);
559
+ if (typeof optionsOrCb === "function") {
560
+ this.send(command, optionsOrCb);
561
+ }
562
+ else if (typeof cb === "function") {
563
+ if (typeof optionsOrCb !== "object")
564
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
565
+ this.send(command, optionsOrCb || {}, cb);
566
+ }
567
+ else {
568
+ return this.send(command, optionsOrCb);
569
+ }
570
+ };
541
571
  Comprehend.prototype.importModel = function (args, optionsOrCb, cb) {
542
572
  var command = new ImportModelCommand(args);
543
573
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchDetectTargetedSentimentRequestFilterSensitiveLog, BatchDetectTargetedSentimentResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1BatchDetectTargetedSentimentCommand, serializeAws_json1_1BatchDetectTargetedSentimentCommand, } from "../protocols/Aws_json1_1";
6
+ var BatchDetectTargetedSentimentCommand = (function (_super) {
7
+ __extends(BatchDetectTargetedSentimentCommand, _super);
8
+ function BatchDetectTargetedSentimentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ BatchDetectTargetedSentimentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "BatchDetectTargetedSentimentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: BatchDetectTargetedSentimentRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: BatchDetectTargetedSentimentResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchDetectTargetedSentimentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1BatchDetectTargetedSentimentCommand(input, context);
33
+ };
34
+ BatchDetectTargetedSentimentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1BatchDetectTargetedSentimentCommand(output, context);
36
+ };
37
+ return BatchDetectTargetedSentimentCommand;
38
+ }($Command));
39
+ export { BatchDetectTargetedSentimentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DetectTargetedSentimentRequestFilterSensitiveLog, DetectTargetedSentimentResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DetectTargetedSentimentCommand, serializeAws_json1_1DetectTargetedSentimentCommand, } from "../protocols/Aws_json1_1";
6
+ var DetectTargetedSentimentCommand = (function (_super) {
7
+ __extends(DetectTargetedSentimentCommand, _super);
8
+ function DetectTargetedSentimentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DetectTargetedSentimentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "DetectTargetedSentimentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DetectTargetedSentimentRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DetectTargetedSentimentResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DetectTargetedSentimentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DetectTargetedSentimentCommand(input, context);
33
+ };
34
+ DetectTargetedSentimentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DetectTargetedSentimentCommand(output, context);
36
+ };
37
+ return DetectTargetedSentimentCommand;
38
+ }($Command));
39
+ export { DetectTargetedSentimentCommand };
@@ -3,6 +3,7 @@ export * from "./BatchDetectEntitiesCommand";
3
3
  export * from "./BatchDetectKeyPhrasesCommand";
4
4
  export * from "./BatchDetectSentimentCommand";
5
5
  export * from "./BatchDetectSyntaxCommand";
6
+ export * from "./BatchDetectTargetedSentimentCommand";
6
7
  export * from "./ClassifyDocumentCommand";
7
8
  export * from "./ContainsPiiEntitiesCommand";
8
9
  export * from "./CreateDocumentClassifierCommand";
@@ -31,6 +32,7 @@ export * from "./DetectKeyPhrasesCommand";
31
32
  export * from "./DetectPiiEntitiesCommand";
32
33
  export * from "./DetectSentimentCommand";
33
34
  export * from "./DetectSyntaxCommand";
35
+ export * from "./DetectTargetedSentimentCommand";
34
36
  export * from "./ImportModelCommand";
35
37
  export * from "./ListDocumentClassificationJobsCommand";
36
38
  export * from "./ListDocumentClassifierSummariesCommand";
@@ -140,6 +140,26 @@ export var PartOfSpeechTagType;
140
140
  PartOfSpeechTagType["SYM"] = "SYM";
141
141
  PartOfSpeechTagType["VERB"] = "VERB";
142
142
  })(PartOfSpeechTagType || (PartOfSpeechTagType = {}));
143
+ export var TargetedSentimentEntityType;
144
+ (function (TargetedSentimentEntityType) {
145
+ TargetedSentimentEntityType["ATTRIBUTE"] = "ATTRIBUTE";
146
+ TargetedSentimentEntityType["BOOK"] = "BOOK";
147
+ TargetedSentimentEntityType["BRAND"] = "BRAND";
148
+ TargetedSentimentEntityType["COMMERCIAL_ITEM"] = "COMMERCIAL_ITEM";
149
+ TargetedSentimentEntityType["DATE"] = "DATE";
150
+ TargetedSentimentEntityType["EVENT"] = "EVENT";
151
+ TargetedSentimentEntityType["FACILITY"] = "FACILITY";
152
+ TargetedSentimentEntityType["GAME"] = "GAME";
153
+ TargetedSentimentEntityType["LOCATION"] = "LOCATION";
154
+ TargetedSentimentEntityType["MOVIE"] = "MOVIE";
155
+ TargetedSentimentEntityType["MUSIC"] = "MUSIC";
156
+ TargetedSentimentEntityType["ORGANIZATION"] = "ORGANIZATION";
157
+ TargetedSentimentEntityType["OTHER"] = "OTHER";
158
+ TargetedSentimentEntityType["PERSON"] = "PERSON";
159
+ TargetedSentimentEntityType["PERSONAL_TITLE"] = "PERSONAL_TITLE";
160
+ TargetedSentimentEntityType["QUANTITY"] = "QUANTITY";
161
+ TargetedSentimentEntityType["SOFTWARE"] = "SOFTWARE";
162
+ })(TargetedSentimentEntityType || (TargetedSentimentEntityType = {}));
143
163
  var ResourceUnavailableException = (function (_super) {
144
164
  __extends(ResourceUnavailableException, _super);
145
165
  function ResourceUnavailableException(opts) {
@@ -418,6 +438,12 @@ export var PartOfSpeechTagFilterSensitiveLog = function (obj) { return (__assign
418
438
  export var SyntaxTokenFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
419
439
  export var BatchDetectSyntaxItemResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
420
440
  export var BatchDetectSyntaxResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
441
+ export var BatchDetectTargetedSentimentRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TextList && { TextList: SENSITIVE_STRING }))); };
442
+ export var MentionSentimentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
443
+ export var TargetedSentimentMentionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
444
+ export var TargetedSentimentEntityFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
445
+ export var BatchDetectTargetedSentimentItemResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
446
+ export var BatchDetectTargetedSentimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
421
447
  export var ClassifierEvaluationMetricsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
422
448
  export var ClassifierMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
423
449
  export var ClassifyDocumentRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING }))); };
@@ -514,6 +540,8 @@ export var DetectSentimentRequestFilterSensitiveLog = function (obj) { return (_
514
540
  export var DetectSentimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
515
541
  export var DetectSyntaxRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING }))); };
516
542
  export var DetectSyntaxResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
543
+ export var DetectTargetedSentimentRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING }))); };
544
+ export var DetectTargetedSentimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
517
545
  export var ImportModelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
518
546
  export var ImportModelResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
519
547
  export var DocumentClassificationJobFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };