@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
@@ -279,6 +279,17 @@ export var serializeAws_json1_1DescribeSentimentDetectionJobCommand = function (
279
279
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
280
280
  });
281
281
  }); };
282
+ export var serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
283
+ var headers, body;
284
+ return __generator(this, function (_a) {
285
+ headers = {
286
+ "content-type": "application/x-amz-json-1.1",
287
+ "x-amz-target": "Comprehend_20171127.DescribeTargetedSentimentDetectionJob",
288
+ };
289
+ body = JSON.stringify(serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest(input, context));
290
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
291
+ });
292
+ }); };
282
293
  export var serializeAws_json1_1DescribeTopicsDetectionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
283
294
  var headers, body;
284
295
  return __generator(this, function (_a) {
@@ -510,6 +521,17 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
510
521
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
511
522
  });
512
523
  }); };
524
+ export var serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
525
+ var headers, body;
526
+ return __generator(this, function (_a) {
527
+ headers = {
528
+ "content-type": "application/x-amz-json-1.1",
529
+ "x-amz-target": "Comprehend_20171127.ListTargetedSentimentDetectionJobs",
530
+ };
531
+ body = JSON.stringify(serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest(input, context));
532
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
533
+ });
534
+ }); };
513
535
  export var serializeAws_json1_1ListTopicsDetectionJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
514
536
  var headers, body;
515
537
  return __generator(this, function (_a) {
@@ -609,6 +631,17 @@ export var serializeAws_json1_1StartSentimentDetectionJobCommand = function (inp
609
631
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
610
632
  });
611
633
  }); };
634
+ export var serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
635
+ var headers, body;
636
+ return __generator(this, function (_a) {
637
+ headers = {
638
+ "content-type": "application/x-amz-json-1.1",
639
+ "x-amz-target": "Comprehend_20171127.StartTargetedSentimentDetectionJob",
640
+ };
641
+ body = JSON.stringify(serializeAws_json1_1StartTargetedSentimentDetectionJobRequest(input, context));
642
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
643
+ });
644
+ }); };
612
645
  export var serializeAws_json1_1StartTopicsDetectionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
613
646
  var headers, body;
614
647
  return __generator(this, function (_a) {
@@ -686,6 +719,17 @@ export var serializeAws_json1_1StopSentimentDetectionJobCommand = function (inpu
686
719
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
687
720
  });
688
721
  }); };
722
+ export var serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
723
+ var headers, body;
724
+ return __generator(this, function (_a) {
725
+ headers = {
726
+ "content-type": "application/x-amz-json-1.1",
727
+ "x-amz-target": "Comprehend_20171127.StopTargetedSentimentDetectionJob",
728
+ };
729
+ body = JSON.stringify(serializeAws_json1_1StopTargetedSentimentDetectionJobRequest(input, context));
730
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
731
+ });
732
+ }); };
689
733
  export var serializeAws_json1_1StopTrainingDocumentClassifierCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
690
734
  var headers, body;
691
735
  return __generator(this, function (_a) {
@@ -2367,6 +2411,68 @@ var deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = function (
2367
2411
  }
2368
2412
  });
2369
2413
  }); };
2414
+ export var deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2415
+ var data, contents, response;
2416
+ return __generator(this, function (_a) {
2417
+ switch (_a.label) {
2418
+ case 0:
2419
+ if (output.statusCode >= 300) {
2420
+ return [2, deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError(output, context)];
2421
+ }
2422
+ return [4, parseBody(output.body, context)];
2423
+ case 1:
2424
+ data = _a.sent();
2425
+ contents = {};
2426
+ contents = deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse(data, context);
2427
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2428
+ return [2, Promise.resolve(response)];
2429
+ }
2430
+ });
2431
+ }); };
2432
+ var deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2433
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
2434
+ var _c;
2435
+ return __generator(this, function (_d) {
2436
+ switch (_d.label) {
2437
+ case 0:
2438
+ _a = [__assign({}, output)];
2439
+ _c = {};
2440
+ return [4, parseBody(output.body, context)];
2441
+ case 1:
2442
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2443
+ errorCode = "UnknownError";
2444
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2445
+ _b = errorCode;
2446
+ switch (_b) {
2447
+ case "InternalServerException": return [3, 2];
2448
+ case "com.amazonaws.comprehend#InternalServerException": return [3, 2];
2449
+ case "InvalidRequestException": return [3, 4];
2450
+ case "com.amazonaws.comprehend#InvalidRequestException": return [3, 4];
2451
+ case "JobNotFoundException": return [3, 6];
2452
+ case "com.amazonaws.comprehend#JobNotFoundException": return [3, 6];
2453
+ case "TooManyRequestsException": return [3, 8];
2454
+ case "com.amazonaws.comprehend#TooManyRequestsException": return [3, 8];
2455
+ }
2456
+ return [3, 10];
2457
+ case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
2458
+ case 3: throw _d.sent();
2459
+ case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2460
+ case 5: throw _d.sent();
2461
+ case 6: return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
2462
+ case 7: throw _d.sent();
2463
+ case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
2464
+ case 9: throw _d.sent();
2465
+ case 10:
2466
+ parsedBody = parsedOutput.body;
2467
+ response = new __BaseException({
2468
+ name: parsedBody.code || parsedBody.Code || errorCode,
2469
+ $fault: "client",
2470
+ $metadata: deserializeMetadata(output),
2471
+ });
2472
+ throw __decorateServiceException(response, parsedBody);
2473
+ }
2474
+ });
2475
+ }); };
2370
2476
  export var deserializeAws_json1_1DescribeTopicsDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2371
2477
  var data, contents, response;
2372
2478
  return __generator(this, function (_a) {
@@ -3673,6 +3779,68 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
3673
3779
  }
3674
3780
  });
3675
3781
  }); };
3782
+ export var deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3783
+ var data, contents, response;
3784
+ return __generator(this, function (_a) {
3785
+ switch (_a.label) {
3786
+ case 0:
3787
+ if (output.statusCode >= 300) {
3788
+ return [2, deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError(output, context)];
3789
+ }
3790
+ return [4, parseBody(output.body, context)];
3791
+ case 1:
3792
+ data = _a.sent();
3793
+ contents = {};
3794
+ contents = deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse(data, context);
3795
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3796
+ return [2, Promise.resolve(response)];
3797
+ }
3798
+ });
3799
+ }); };
3800
+ var deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3801
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
3802
+ var _c;
3803
+ return __generator(this, function (_d) {
3804
+ switch (_d.label) {
3805
+ case 0:
3806
+ _a = [__assign({}, output)];
3807
+ _c = {};
3808
+ return [4, parseBody(output.body, context)];
3809
+ case 1:
3810
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3811
+ errorCode = "UnknownError";
3812
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3813
+ _b = errorCode;
3814
+ switch (_b) {
3815
+ case "InternalServerException": return [3, 2];
3816
+ case "com.amazonaws.comprehend#InternalServerException": return [3, 2];
3817
+ case "InvalidFilterException": return [3, 4];
3818
+ case "com.amazonaws.comprehend#InvalidFilterException": return [3, 4];
3819
+ case "InvalidRequestException": return [3, 6];
3820
+ case "com.amazonaws.comprehend#InvalidRequestException": return [3, 6];
3821
+ case "TooManyRequestsException": return [3, 8];
3822
+ case "com.amazonaws.comprehend#TooManyRequestsException": return [3, 8];
3823
+ }
3824
+ return [3, 10];
3825
+ case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
3826
+ case 3: throw _d.sent();
3827
+ case 4: return [4, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)];
3828
+ case 5: throw _d.sent();
3829
+ case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
3830
+ case 7: throw _d.sent();
3831
+ case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
3832
+ case 9: throw _d.sent();
3833
+ case 10:
3834
+ parsedBody = parsedOutput.body;
3835
+ response = new __BaseException({
3836
+ name: parsedBody.code || parsedBody.Code || errorCode,
3837
+ $fault: "client",
3838
+ $metadata: deserializeMetadata(output),
3839
+ });
3840
+ throw __decorateServiceException(response, parsedBody);
3841
+ }
3842
+ });
3843
+ }); };
3676
3844
  export var deserializeAws_json1_1ListTopicsDetectionJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3677
3845
  var data, contents, response;
3678
3846
  return __generator(this, function (_a) {
@@ -4271,6 +4439,72 @@ var deserializeAws_json1_1StartSentimentDetectionJobCommandError = function (out
4271
4439
  }
4272
4440
  });
4273
4441
  }); };
4442
+ export var deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4443
+ var data, contents, response;
4444
+ return __generator(this, function (_a) {
4445
+ switch (_a.label) {
4446
+ case 0:
4447
+ if (output.statusCode >= 300) {
4448
+ return [2, deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError(output, context)];
4449
+ }
4450
+ return [4, parseBody(output.body, context)];
4451
+ case 1:
4452
+ data = _a.sent();
4453
+ contents = {};
4454
+ contents = deserializeAws_json1_1StartTargetedSentimentDetectionJobResponse(data, context);
4455
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
4456
+ return [2, Promise.resolve(response)];
4457
+ }
4458
+ });
4459
+ }); };
4460
+ var deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4461
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
4462
+ var _c;
4463
+ return __generator(this, function (_d) {
4464
+ switch (_d.label) {
4465
+ case 0:
4466
+ _a = [__assign({}, output)];
4467
+ _c = {};
4468
+ return [4, parseBody(output.body, context)];
4469
+ case 1:
4470
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4471
+ errorCode = "UnknownError";
4472
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4473
+ _b = errorCode;
4474
+ switch (_b) {
4475
+ case "InternalServerException": return [3, 2];
4476
+ case "com.amazonaws.comprehend#InternalServerException": return [3, 2];
4477
+ case "InvalidRequestException": return [3, 4];
4478
+ case "com.amazonaws.comprehend#InvalidRequestException": return [3, 4];
4479
+ case "KmsKeyValidationException": return [3, 6];
4480
+ case "com.amazonaws.comprehend#KmsKeyValidationException": return [3, 6];
4481
+ case "TooManyRequestsException": return [3, 8];
4482
+ case "com.amazonaws.comprehend#TooManyRequestsException": return [3, 8];
4483
+ case "TooManyTagsException": return [3, 10];
4484
+ case "com.amazonaws.comprehend#TooManyTagsException": return [3, 10];
4485
+ }
4486
+ return [3, 12];
4487
+ case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
4488
+ case 3: throw _d.sent();
4489
+ case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
4490
+ case 5: throw _d.sent();
4491
+ case 6: return [4, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)];
4492
+ case 7: throw _d.sent();
4493
+ case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
4494
+ case 9: throw _d.sent();
4495
+ case 10: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
4496
+ case 11: throw _d.sent();
4497
+ case 12:
4498
+ parsedBody = parsedOutput.body;
4499
+ response = new __BaseException({
4500
+ name: parsedBody.code || parsedBody.Code || errorCode,
4501
+ $fault: "client",
4502
+ $metadata: deserializeMetadata(output),
4503
+ });
4504
+ throw __decorateServiceException(response, parsedBody);
4505
+ }
4506
+ });
4507
+ }); };
4274
4508
  export var deserializeAws_json1_1StartTopicsDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4275
4509
  var data, contents, response;
4276
4510
  return __generator(this, function (_a) {
@@ -4685,6 +4919,64 @@ var deserializeAws_json1_1StopSentimentDetectionJobCommandError = function (outp
4685
4919
  }
4686
4920
  });
4687
4921
  }); };
4922
+ export var deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4923
+ var data, contents, response;
4924
+ return __generator(this, function (_a) {
4925
+ switch (_a.label) {
4926
+ case 0:
4927
+ if (output.statusCode >= 300) {
4928
+ return [2, deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError(output, context)];
4929
+ }
4930
+ return [4, parseBody(output.body, context)];
4931
+ case 1:
4932
+ data = _a.sent();
4933
+ contents = {};
4934
+ contents = deserializeAws_json1_1StopTargetedSentimentDetectionJobResponse(data, context);
4935
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
4936
+ return [2, Promise.resolve(response)];
4937
+ }
4938
+ });
4939
+ }); };
4940
+ var deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4941
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
4942
+ var _c;
4943
+ return __generator(this, function (_d) {
4944
+ switch (_d.label) {
4945
+ case 0:
4946
+ _a = [__assign({}, output)];
4947
+ _c = {};
4948
+ return [4, parseBody(output.body, context)];
4949
+ case 1:
4950
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4951
+ errorCode = "UnknownError";
4952
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4953
+ _b = errorCode;
4954
+ switch (_b) {
4955
+ case "InternalServerException": return [3, 2];
4956
+ case "com.amazonaws.comprehend#InternalServerException": return [3, 2];
4957
+ case "InvalidRequestException": return [3, 4];
4958
+ case "com.amazonaws.comprehend#InvalidRequestException": return [3, 4];
4959
+ case "JobNotFoundException": return [3, 6];
4960
+ case "com.amazonaws.comprehend#JobNotFoundException": return [3, 6];
4961
+ }
4962
+ return [3, 8];
4963
+ case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
4964
+ case 3: throw _d.sent();
4965
+ case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
4966
+ case 5: throw _d.sent();
4967
+ case 6: return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
4968
+ case 7: throw _d.sent();
4969
+ case 8:
4970
+ parsedBody = parsedOutput.body;
4971
+ response = new __BaseException({
4972
+ name: parsedBody.code || parsedBody.Code || errorCode,
4973
+ $fault: "client",
4974
+ $metadata: deserializeMetadata(output),
4975
+ });
4976
+ throw __decorateServiceException(response, parsedBody);
4977
+ }
4978
+ });
4979
+ }); };
4688
4980
  export var deserializeAws_json1_1StopTrainingDocumentClassifierCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4689
4981
  var data, contents, response;
4690
4982
  return __generator(this, function (_a) {
@@ -5294,6 +5586,9 @@ var serializeAws_json1_1DescribeResourcePolicyRequest = function (input, context
5294
5586
  var serializeAws_json1_1DescribeSentimentDetectionJobRequest = function (input, context) {
5295
5587
  return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
5296
5588
  };
5589
+ var serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest = function (input, context) {
5590
+ return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
5591
+ };
5297
5592
  var serializeAws_json1_1DescribeTopicsDetectionJobRequest = function (input, context) {
5298
5593
  return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
5299
5594
  };
@@ -5517,6 +5812,12 @@ var serializeAws_json1_1ListSentimentDetectionJobsRequest = function (input, con
5517
5812
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
5518
5813
  return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
5519
5814
  };
5815
+ var serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest = function (input, context) {
5816
+ return __assign(__assign(__assign({}, (input.Filter !== undefined &&
5817
+ input.Filter !== null && {
5818
+ Filter: serializeAws_json1_1TargetedSentimentDetectionJobFilter(input.Filter, context),
5819
+ })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
5820
+ };
5520
5821
  var serializeAws_json1_1ListTopicsDetectionJobsRequest = function (input, context) {
5521
5822
  return __assign(__assign(__assign({}, (input.Filter !== undefined &&
5522
5823
  input.Filter !== null && { Filter: serializeAws_json1_1TopicsDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
@@ -5650,6 +5951,19 @@ var serializeAws_json1_1StartSentimentDetectionJobRequest = function (input, con
5650
5951
  input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
5651
5952
  input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
5652
5953
  };
5954
+ var serializeAws_json1_1StartTargetedSentimentDetectionJobRequest = function (input, context) {
5955
+ var _a;
5956
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
5957
+ input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
5958
+ input.InputDataConfig !== null && {
5959
+ InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
5960
+ })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig !== undefined &&
5961
+ input.OutputDataConfig !== null && {
5962
+ OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
5963
+ })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId !== undefined &&
5964
+ input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
5965
+ input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
5966
+ };
5653
5967
  var serializeAws_json1_1StartTopicsDetectionJobRequest = function (input, context) {
5654
5968
  var _a;
5655
5969
  return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
@@ -5682,6 +5996,9 @@ var serializeAws_json1_1StopPiiEntitiesDetectionJobRequest = function (input, co
5682
5996
  var serializeAws_json1_1StopSentimentDetectionJobRequest = function (input, context) {
5683
5997
  return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
5684
5998
  };
5999
+ var serializeAws_json1_1StopTargetedSentimentDetectionJobRequest = function (input, context) {
6000
+ return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
6001
+ };
5685
6002
  var serializeAws_json1_1StopTrainingDocumentClassifierRequest = function (input, context) {
5686
6003
  return __assign({}, (input.DocumentClassifierArn !== undefined &&
5687
6004
  input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }));
@@ -5726,6 +6043,11 @@ var serializeAws_json1_1TagList = function (input, context) {
5726
6043
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
5727
6044
  return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
5728
6045
  };
6046
+ var serializeAws_json1_1TargetedSentimentDetectionJobFilter = function (input, context) {
6047
+ return __assign(__assign(__assign(__assign({}, (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter !== undefined &&
6048
+ input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
6049
+ input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
6050
+ };
5729
6051
  var serializeAws_json1_1TargetEventTypes = function (input, context) {
5730
6052
  return input
5731
6053
  .filter(function (e) { return e != null; })
@@ -6049,6 +6371,14 @@ var deserializeAws_json1_1DescribeSentimentDetectionJobResponse = function (outp
6049
6371
  : undefined,
6050
6372
  };
6051
6373
  };
6374
+ var deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse = function (output, context) {
6375
+ return {
6376
+ TargetedSentimentDetectionJobProperties: output.TargetedSentimentDetectionJobProperties !== undefined &&
6377
+ output.TargetedSentimentDetectionJobProperties !== null
6378
+ ? deserializeAws_json1_1TargetedSentimentDetectionJobProperties(output.TargetedSentimentDetectionJobProperties, context)
6379
+ : undefined,
6380
+ };
6381
+ };
6052
6382
  var deserializeAws_json1_1DescribeTopicsDetectionJobResponse = function (output, context) {
6053
6383
  return {
6054
6384
  TopicsDetectionJobProperties: output.TopicsDetectionJobProperties !== undefined && output.TopicsDetectionJobProperties !== null
@@ -6956,6 +7286,15 @@ var deserializeAws_json1_1ListTagsForResourceResponse = function (output, contex
6956
7286
  : undefined,
6957
7287
  };
6958
7288
  };
7289
+ var deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse = function (output, context) {
7290
+ return {
7291
+ NextToken: __expectString(output.NextToken),
7292
+ TargetedSentimentDetectionJobPropertiesList: output.TargetedSentimentDetectionJobPropertiesList !== undefined &&
7293
+ output.TargetedSentimentDetectionJobPropertiesList !== null
7294
+ ? deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList(output.TargetedSentimentDetectionJobPropertiesList, context)
7295
+ : undefined,
7296
+ };
7297
+ };
6959
7298
  var deserializeAws_json1_1ListTopicsDetectionJobsResponse = function (output, context) {
6960
7299
  return {
6961
7300
  NextToken: __expectString(output.NextToken),
@@ -7168,6 +7507,13 @@ var deserializeAws_json1_1StartSentimentDetectionJobResponse = function (output,
7168
7507
  JobStatus: __expectString(output.JobStatus),
7169
7508
  };
7170
7509
  };
7510
+ var deserializeAws_json1_1StartTargetedSentimentDetectionJobResponse = function (output, context) {
7511
+ return {
7512
+ JobArn: __expectString(output.JobArn),
7513
+ JobId: __expectString(output.JobId),
7514
+ JobStatus: __expectString(output.JobStatus),
7515
+ };
7516
+ };
7171
7517
  var deserializeAws_json1_1StartTopicsDetectionJobResponse = function (output, context) {
7172
7518
  return {
7173
7519
  JobArn: __expectString(output.JobArn),
@@ -7211,6 +7557,12 @@ var deserializeAws_json1_1StopSentimentDetectionJobResponse = function (output,
7211
7557
  JobStatus: __expectString(output.JobStatus),
7212
7558
  };
7213
7559
  };
7560
+ var deserializeAws_json1_1StopTargetedSentimentDetectionJobResponse = function (output, context) {
7561
+ return {
7562
+ JobId: __expectString(output.JobId),
7563
+ JobStatus: __expectString(output.JobStatus),
7564
+ };
7565
+ };
7214
7566
  var deserializeAws_json1_1StopTrainingDocumentClassifierResponse = function (output, context) {
7215
7567
  return {};
7216
7568
  };
@@ -7259,6 +7611,44 @@ var deserializeAws_json1_1TagList = function (output, context) {
7259
7611
  var deserializeAws_json1_1TagResourceResponse = function (output, context) {
7260
7612
  return {};
7261
7613
  };
7614
+ var deserializeAws_json1_1TargetedSentimentDetectionJobProperties = function (output, context) {
7615
+ return {
7616
+ DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
7617
+ EndTime: output.EndTime !== undefined && output.EndTime !== null
7618
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
7619
+ : undefined,
7620
+ InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
7621
+ ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
7622
+ : undefined,
7623
+ JobArn: __expectString(output.JobArn),
7624
+ JobId: __expectString(output.JobId),
7625
+ JobName: __expectString(output.JobName),
7626
+ JobStatus: __expectString(output.JobStatus),
7627
+ LanguageCode: __expectString(output.LanguageCode),
7628
+ Message: __expectString(output.Message),
7629
+ OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
7630
+ ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
7631
+ : undefined,
7632
+ SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
7633
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
7634
+ : undefined,
7635
+ VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
7636
+ VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
7637
+ ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
7638
+ : undefined,
7639
+ };
7640
+ };
7641
+ var deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList = function (output, context) {
7642
+ var retVal = (output || [])
7643
+ .filter(function (e) { return e != null; })
7644
+ .map(function (entry) {
7645
+ if (entry === null) {
7646
+ return null;
7647
+ }
7648
+ return deserializeAws_json1_1TargetedSentimentDetectionJobProperties(entry, context);
7649
+ });
7650
+ return retVal;
7651
+ };
7262
7652
  var deserializeAws_json1_1TargetEventTypes = function (output, context) {
7263
7653
  var retVal = (output || [])
7264
7654
  .filter(function (e) { return e != null; })
@@ -24,6 +24,7 @@ import { DescribeKeyPhrasesDetectionJobCommandInput, DescribeKeyPhrasesDetection
24
24
  import { DescribePiiEntitiesDetectionJobCommandInput, DescribePiiEntitiesDetectionJobCommandOutput } from "./commands/DescribePiiEntitiesDetectionJobCommand";
25
25
  import { DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput } from "./commands/DescribeResourcePolicyCommand";
26
26
  import { DescribeSentimentDetectionJobCommandInput, DescribeSentimentDetectionJobCommandOutput } from "./commands/DescribeSentimentDetectionJobCommand";
27
+ import { DescribeTargetedSentimentDetectionJobCommandInput, DescribeTargetedSentimentDetectionJobCommandOutput } from "./commands/DescribeTargetedSentimentDetectionJobCommand";
27
28
  import { DescribeTopicsDetectionJobCommandInput, DescribeTopicsDetectionJobCommandOutput } from "./commands/DescribeTopicsDetectionJobCommand";
28
29
  import { DetectDominantLanguageCommandInput, DetectDominantLanguageCommandOutput } from "./commands/DetectDominantLanguageCommand";
29
30
  import { DetectEntitiesCommandInput, DetectEntitiesCommandOutput } from "./commands/DetectEntitiesCommand";
@@ -45,6 +46,7 @@ import { ListKeyPhrasesDetectionJobsCommandInput, ListKeyPhrasesDetectionJobsCom
45
46
  import { ListPiiEntitiesDetectionJobsCommandInput, ListPiiEntitiesDetectionJobsCommandOutput } from "./commands/ListPiiEntitiesDetectionJobsCommand";
46
47
  import { ListSentimentDetectionJobsCommandInput, ListSentimentDetectionJobsCommandOutput } from "./commands/ListSentimentDetectionJobsCommand";
47
48
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
49
+ import { ListTargetedSentimentDetectionJobsCommandInput, ListTargetedSentimentDetectionJobsCommandOutput } from "./commands/ListTargetedSentimentDetectionJobsCommand";
48
50
  import { ListTopicsDetectionJobsCommandInput, ListTopicsDetectionJobsCommandOutput } from "./commands/ListTopicsDetectionJobsCommand";
49
51
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
50
52
  import { StartDocumentClassificationJobCommandInput, StartDocumentClassificationJobCommandOutput } from "./commands/StartDocumentClassificationJobCommand";
@@ -54,6 +56,7 @@ import { StartEventsDetectionJobCommandInput, StartEventsDetectionJobCommandOutp
54
56
  import { StartKeyPhrasesDetectionJobCommandInput, StartKeyPhrasesDetectionJobCommandOutput } from "./commands/StartKeyPhrasesDetectionJobCommand";
55
57
  import { StartPiiEntitiesDetectionJobCommandInput, StartPiiEntitiesDetectionJobCommandOutput } from "./commands/StartPiiEntitiesDetectionJobCommand";
56
58
  import { StartSentimentDetectionJobCommandInput, StartSentimentDetectionJobCommandOutput } from "./commands/StartSentimentDetectionJobCommand";
59
+ import { StartTargetedSentimentDetectionJobCommandInput, StartTargetedSentimentDetectionJobCommandOutput } from "./commands/StartTargetedSentimentDetectionJobCommand";
57
60
  import { StartTopicsDetectionJobCommandInput, StartTopicsDetectionJobCommandOutput } from "./commands/StartTopicsDetectionJobCommand";
58
61
  import { StopDominantLanguageDetectionJobCommandInput, StopDominantLanguageDetectionJobCommandOutput } from "./commands/StopDominantLanguageDetectionJobCommand";
59
62
  import { StopEntitiesDetectionJobCommandInput, StopEntitiesDetectionJobCommandOutput } from "./commands/StopEntitiesDetectionJobCommand";
@@ -61,6 +64,7 @@ import { StopEventsDetectionJobCommandInput, StopEventsDetectionJobCommandOutput
61
64
  import { StopKeyPhrasesDetectionJobCommandInput, StopKeyPhrasesDetectionJobCommandOutput } from "./commands/StopKeyPhrasesDetectionJobCommand";
62
65
  import { StopPiiEntitiesDetectionJobCommandInput, StopPiiEntitiesDetectionJobCommandOutput } from "./commands/StopPiiEntitiesDetectionJobCommand";
63
66
  import { StopSentimentDetectionJobCommandInput, StopSentimentDetectionJobCommandOutput } from "./commands/StopSentimentDetectionJobCommand";
67
+ import { StopTargetedSentimentDetectionJobCommandInput, StopTargetedSentimentDetectionJobCommandOutput } from "./commands/StopTargetedSentimentDetectionJobCommand";
64
68
  import { StopTrainingDocumentClassifierCommandInput, StopTrainingDocumentClassifierCommandOutput } from "./commands/StopTrainingDocumentClassifierCommand";
65
69
  import { StopTrainingEntityRecognizerCommandInput, StopTrainingEntityRecognizerCommandOutput } from "./commands/StopTrainingEntityRecognizerCommand";
66
70
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -262,6 +266,13 @@ export declare class Comprehend extends ComprehendClient {
262
266
  describeSentimentDetectionJob(args: DescribeSentimentDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSentimentDetectionJobCommandOutput>;
263
267
  describeSentimentDetectionJob(args: DescribeSentimentDetectionJobCommandInput, cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void): void;
264
268
  describeSentimentDetectionJob(args: DescribeSentimentDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void): void;
269
+ /**
270
+ * <p>Gets the properties associated with a targeted sentiment detection job. Use this operation
271
+ * to get the status of the job.</p>
272
+ */
273
+ describeTargetedSentimentDetectionJob(args: DescribeTargetedSentimentDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTargetedSentimentDetectionJobCommandOutput>;
274
+ describeTargetedSentimentDetectionJob(args: DescribeTargetedSentimentDetectionJobCommandInput, cb: (err: any, data?: DescribeTargetedSentimentDetectionJobCommandOutput) => void): void;
275
+ describeTargetedSentimentDetectionJob(args: DescribeTargetedSentimentDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTargetedSentimentDetectionJobCommandOutput) => void): void;
265
276
  /**
266
277
  * <p>Gets the properties associated with a topic detection job. Use this operation to get
267
278
  * the status of a detection job.</p>
@@ -404,6 +415,12 @@ export declare class Comprehend extends ComprehendClient {
404
415
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
405
416
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
406
417
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
418
+ /**
419
+ * <p>Gets a list of targeted sentiment detection jobs that you have submitted.</p>
420
+ */
421
+ listTargetedSentimentDetectionJobs(args: ListTargetedSentimentDetectionJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListTargetedSentimentDetectionJobsCommandOutput>;
422
+ listTargetedSentimentDetectionJobs(args: ListTargetedSentimentDetectionJobsCommandInput, cb: (err: any, data?: ListTargetedSentimentDetectionJobsCommandOutput) => void): void;
423
+ listTargetedSentimentDetectionJobs(args: ListTargetedSentimentDetectionJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTargetedSentimentDetectionJobsCommandOutput) => void): void;
407
424
  /**
408
425
  * <p>Gets a list of the topic detection jobs that you have submitted.</p>
409
426
  */
@@ -464,13 +481,21 @@ export declare class Comprehend extends ComprehendClient {
464
481
  startPiiEntitiesDetectionJob(args: StartPiiEntitiesDetectionJobCommandInput, cb: (err: any, data?: StartPiiEntitiesDetectionJobCommandOutput) => void): void;
465
482
  startPiiEntitiesDetectionJob(args: StartPiiEntitiesDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartPiiEntitiesDetectionJobCommandOutput) => void): void;
466
483
  /**
467
- * <p>Starts an asynchronous sentiment detection job for a collection of documents. use the
484
+ * <p>Starts an asynchronous sentiment detection job for a collection of documents. Use the
468
485
  * operation to track the status of a
469
486
  * job.</p>
470
487
  */
471
488
  startSentimentDetectionJob(args: StartSentimentDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<StartSentimentDetectionJobCommandOutput>;
472
489
  startSentimentDetectionJob(args: StartSentimentDetectionJobCommandInput, cb: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void): void;
473
490
  startSentimentDetectionJob(args: StartSentimentDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSentimentDetectionJobCommandOutput) => void): void;
491
+ /**
492
+ * <p>Starts an asynchronous targeted sentiment detection job for a collection of documents. Use the
493
+ * operation to track the status of a
494
+ * job.</p>
495
+ */
496
+ startTargetedSentimentDetectionJob(args: StartTargetedSentimentDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<StartTargetedSentimentDetectionJobCommandOutput>;
497
+ startTargetedSentimentDetectionJob(args: StartTargetedSentimentDetectionJobCommandInput, cb: (err: any, data?: StartTargetedSentimentDetectionJobCommandOutput) => void): void;
498
+ startTargetedSentimentDetectionJob(args: StartTargetedSentimentDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTargetedSentimentDetectionJobCommandOutput) => void): void;
474
499
  /**
475
500
  * <p>Starts an asynchronous topic detection job. Use the
476
501
  * <code>DescribeTopicDetectionJob</code> operation to track the status of a job.</p>
@@ -550,6 +575,21 @@ export declare class Comprehend extends ComprehendClient {
550
575
  stopSentimentDetectionJob(args: StopSentimentDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<StopSentimentDetectionJobCommandOutput>;
551
576
  stopSentimentDetectionJob(args: StopSentimentDetectionJobCommandInput, cb: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void): void;
552
577
  stopSentimentDetectionJob(args: StopSentimentDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopSentimentDetectionJobCommandOutput) => void): void;
578
+ /**
579
+ * <p>Stops a targeted sentiment detection job in progress.</p>
580
+ * <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
581
+ * into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
582
+ * is put into the <code>COMPLETED</code> state; otherwise the job is be stopped and put into the
583
+ * <code>STOPPED</code> state.</p>
584
+ * <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
585
+ * <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
586
+ * Internal Request Exception. </p>
587
+ * <p>When a job is stopped, any documents already processed are written to the output
588
+ * location.</p>
589
+ */
590
+ stopTargetedSentimentDetectionJob(args: StopTargetedSentimentDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<StopTargetedSentimentDetectionJobCommandOutput>;
591
+ stopTargetedSentimentDetectionJob(args: StopTargetedSentimentDetectionJobCommandInput, cb: (err: any, data?: StopTargetedSentimentDetectionJobCommandOutput) => void): void;
592
+ stopTargetedSentimentDetectionJob(args: StopTargetedSentimentDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopTargetedSentimentDetectionJobCommandOutput) => void): void;
553
593
  /**
554
594
  * <p>Stops a document classifier training job while in progress.</p>
555
595
  * <p>If the training job state is <code>TRAINING</code>, the job is marked for termination and