@aws-sdk/client-comprehend 3.53.0 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/Comprehend.js +60 -0
  3. package/dist-cjs/ComprehendClient.js +13 -13
  4. package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js +3 -3
  5. package/dist-cjs/commands/BatchDetectEntitiesCommand.js +3 -3
  6. package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js +3 -3
  7. package/dist-cjs/commands/BatchDetectSentimentCommand.js +3 -3
  8. package/dist-cjs/commands/BatchDetectSyntaxCommand.js +3 -3
  9. package/dist-cjs/commands/ClassifyDocumentCommand.js +3 -3
  10. package/dist-cjs/commands/ContainsPiiEntitiesCommand.js +3 -3
  11. package/dist-cjs/commands/CreateDocumentClassifierCommand.js +3 -3
  12. package/dist-cjs/commands/CreateEndpointCommand.js +3 -3
  13. package/dist-cjs/commands/CreateEntityRecognizerCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteDocumentClassifierCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteEndpointCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteEntityRecognizerCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +3 -3
  18. package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js +3 -3
  19. package/dist-cjs/commands/DescribeDocumentClassifierCommand.js +3 -3
  20. package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js +3 -3
  21. package/dist-cjs/commands/DescribeEndpointCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeEntityRecognizerCommand.js +3 -3
  24. package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js +3 -3
  25. package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js +3 -3
  26. package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js +3 -3
  27. package/dist-cjs/commands/DescribeResourcePolicyCommand.js +3 -3
  28. package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js +3 -3
  29. package/dist-cjs/commands/DescribeTargetedSentimentDetectionJobCommand.js +36 -0
  30. package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js +3 -3
  31. package/dist-cjs/commands/DetectDominantLanguageCommand.js +3 -3
  32. package/dist-cjs/commands/DetectEntitiesCommand.js +3 -3
  33. package/dist-cjs/commands/DetectKeyPhrasesCommand.js +3 -3
  34. package/dist-cjs/commands/DetectPiiEntitiesCommand.js +3 -3
  35. package/dist-cjs/commands/DetectSentimentCommand.js +3 -3
  36. package/dist-cjs/commands/DetectSyntaxCommand.js +3 -3
  37. package/dist-cjs/commands/ImportModelCommand.js +3 -3
  38. package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js +3 -3
  39. package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js +3 -3
  40. package/dist-cjs/commands/ListDocumentClassifiersCommand.js +3 -3
  41. package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js +3 -3
  42. package/dist-cjs/commands/ListEndpointsCommand.js +3 -3
  43. package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js +3 -3
  44. package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js +3 -3
  45. package/dist-cjs/commands/ListEntityRecognizersCommand.js +3 -3
  46. package/dist-cjs/commands/ListEventsDetectionJobsCommand.js +3 -3
  47. package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js +3 -3
  48. package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js +3 -3
  49. package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js +3 -3
  50. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  51. package/dist-cjs/commands/ListTargetedSentimentDetectionJobsCommand.js +36 -0
  52. package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js +3 -3
  53. package/dist-cjs/commands/PutResourcePolicyCommand.js +3 -3
  54. package/dist-cjs/commands/StartDocumentClassificationJobCommand.js +3 -3
  55. package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js +3 -3
  56. package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js +3 -3
  57. package/dist-cjs/commands/StartEventsDetectionJobCommand.js +3 -3
  58. package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js +3 -3
  59. package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js +3 -3
  60. package/dist-cjs/commands/StartSentimentDetectionJobCommand.js +3 -3
  61. package/dist-cjs/commands/StartTargetedSentimentDetectionJobCommand.js +36 -0
  62. package/dist-cjs/commands/StartTopicsDetectionJobCommand.js +3 -3
  63. package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js +3 -3
  64. package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js +3 -3
  65. package/dist-cjs/commands/StopEventsDetectionJobCommand.js +3 -3
  66. package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js +3 -3
  67. package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js +3 -3
  68. package/dist-cjs/commands/StopSentimentDetectionJobCommand.js +3 -3
  69. package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +36 -0
  70. package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +3 -3
  71. package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +3 -3
  72. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  73. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  74. package/dist-cjs/commands/UpdateEndpointCommand.js +3 -3
  75. package/dist-cjs/commands/index.js +4 -0
  76. package/dist-cjs/endpoints.js +1 -1
  77. package/dist-cjs/models/models_0.js +63 -3
  78. package/dist-cjs/pagination/ListTargetedSentimentDetectionJobsPaginator.js +35 -0
  79. package/dist-cjs/pagination/index.js +1 -0
  80. package/dist-cjs/protocols/Aws_json1_1.js +740 -399
  81. package/dist-cjs/runtimeConfig.browser.js +4 -4
  82. package/dist-cjs/runtimeConfig.js +9 -9
  83. package/dist-cjs/runtimeConfig.native.js +1 -1
  84. package/dist-es/Comprehend.js +127 -67
  85. package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +39 -0
  86. package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +39 -0
  87. package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +39 -0
  88. package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +39 -0
  89. package/dist-es/commands/index.js +4 -0
  90. package/dist-es/models/models_0.js +40 -0
  91. package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +4 -4
  92. package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +4 -4
  93. package/dist-es/pagination/ListDocumentClassifiersPaginator.js +4 -4
  94. package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +4 -4
  95. package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +4 -4
  96. package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +4 -4
  97. package/dist-es/pagination/ListEntityRecognizersPaginator.js +4 -4
  98. package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +4 -4
  99. package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +4 -4
  100. package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +4 -4
  101. package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +74 -0
  102. package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +4 -4
  103. package/dist-es/pagination/index.js +1 -0
  104. package/dist-es/protocols/Aws_json1_1.js +390 -0
  105. package/dist-types/Comprehend.d.ts +41 -1
  106. package/dist-types/ComprehendClient.d.ts +8 -4
  107. package/dist-types/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +36 -0
  108. package/dist-types/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +35 -0
  109. package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +1 -1
  110. package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +37 -0
  111. package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +44 -0
  112. package/dist-types/commands/index.d.ts +4 -0
  113. package/dist-types/models/models_0.d.ts +336 -2
  114. package/dist-types/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
  115. package/dist-types/pagination/index.d.ts +1 -0
  116. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  117. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  118. package/dist-types/runtimeConfig.d.ts +1 -1
  119. package/dist-types/runtimeConfig.native.d.ts +3 -3
  120. package/dist-types/ts3.4/Comprehend.d.ts +20 -0
  121. package/dist-types/ts3.4/ComprehendClient.d.ts +8 -4
  122. package/dist-types/ts3.4/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +17 -0
  124. package/dist-types/ts3.4/commands/StartTargetedSentimentDetectionJobCommand.d.ts +17 -0
  125. package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +17 -0
  126. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  127. package/dist-types/ts3.4/models/models_0.d.ts +140 -0
  128. package/dist-types/ts3.4/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
  129. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  130. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  131. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  132. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  133. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  134. package/package.json +34 -34
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListTargetedSentimentDetectionJobsCommand, } from "../commands/ListTargetedSentimentDetectionJobsCommand";
3
+ import { Comprehend } from "../Comprehend";
4
+ import { ComprehendClient } from "../ComprehendClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListTargetedSentimentDetectionJobsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listTargetedSentimentDetectionJobs.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListTargetedSentimentDetectionJobs(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListTargetedSentimentDetectionJobs_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Comprehend)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof ComprehendClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListTopicsDetectionJobsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListTopicsDetectionJobsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listTopicsDetectionJobs.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listTopicsDetectionJobs.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListTopicsDetectionJobs(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof Comprehend)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof ComprehendClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -9,4 +9,5 @@ export * from "./ListEntityRecognizersPaginator";
9
9
  export * from "./ListEventsDetectionJobsPaginator";
10
10
  export * from "./ListKeyPhrasesDetectionJobsPaginator";
11
11
  export * from "./ListSentimentDetectionJobsPaginator";
12
+ export * from "./ListTargetedSentimentDetectionJobsPaginator";
12
13
  export * from "./ListTopicsDetectionJobsPaginator";
@@ -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; })