@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
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartDocumentClassificationJobCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.serializeAws_json1_1ListEventsDetectionJobsCommand = exports.serializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.serializeAws_json1_1ListEntityRecognizersCommand = exports.serializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListEndpointsCommand = exports.serializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.serializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.serializeAws_json1_1ListDocumentClassifiersCommand = exports.serializeAws_json1_1ListDocumentClassificationJobsCommand = exports.serializeAws_json1_1ImportModelCommand = exports.serializeAws_json1_1DetectSyntaxCommand = exports.serializeAws_json1_1DetectSentimentCommand = exports.serializeAws_json1_1DetectPiiEntitiesCommand = exports.serializeAws_json1_1DetectKeyPhrasesCommand = exports.serializeAws_json1_1DetectEntitiesCommand = exports.serializeAws_json1_1DetectDominantLanguageCommand = exports.serializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.serializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeResourcePolicyCommand = exports.serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1DescribeEventsDetectionJobCommand = exports.serializeAws_json1_1DescribeEntityRecognizerCommand = exports.serializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeEndpointCommand = exports.serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1DescribeDocumentClassifierCommand = exports.serializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteEntityRecognizerCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteDocumentClassifierCommand = exports.serializeAws_json1_1CreateEntityRecognizerCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CreateDocumentClassifierCommand = exports.serializeAws_json1_1ContainsPiiEntitiesCommand = exports.serializeAws_json1_1ClassifyDocumentCommand = exports.serializeAws_json1_1BatchDetectSyntaxCommand = exports.serializeAws_json1_1BatchDetectSentimentCommand = exports.serializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.serializeAws_json1_1BatchDetectEntitiesCommand = exports.serializeAws_json1_1BatchDetectDominantLanguageCommand = void 0;
4
- exports.deserializeAws_json1_1ImportModelCommand = exports.deserializeAws_json1_1DetectSyntaxCommand = exports.deserializeAws_json1_1DetectSentimentCommand = exports.deserializeAws_json1_1DetectPiiEntitiesCommand = exports.deserializeAws_json1_1DetectKeyPhrasesCommand = exports.deserializeAws_json1_1DetectEntitiesCommand = exports.deserializeAws_json1_1DetectDominantLanguageCommand = exports.deserializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.deserializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeResourcePolicyCommand = exports.deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEventsDetectionJobCommand = exports.deserializeAws_json1_1DescribeEntityRecognizerCommand = exports.deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEndpointCommand = exports.deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1DescribeDocumentClassifierCommand = exports.deserializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteEntityRecognizerCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteDocumentClassifierCommand = exports.deserializeAws_json1_1CreateEntityRecognizerCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CreateDocumentClassifierCommand = exports.deserializeAws_json1_1ContainsPiiEntitiesCommand = exports.deserializeAws_json1_1ClassifyDocumentCommand = exports.deserializeAws_json1_1BatchDetectSyntaxCommand = exports.deserializeAws_json1_1BatchDetectSentimentCommand = exports.deserializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.deserializeAws_json1_1BatchDetectEntitiesCommand = exports.deserializeAws_json1_1BatchDetectDominantLanguageCommand = exports.serializeAws_json1_1UpdateEndpointCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.serializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.serializeAws_json1_1StopSentimentDetectionJobCommand = exports.serializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StopEventsDetectionJobCommand = exports.serializeAws_json1_1StopEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartTopicsDetectionJobCommand = exports.serializeAws_json1_1StartSentimentDetectionJobCommand = exports.serializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StartEventsDetectionJobCommand = exports.serializeAws_json1_1StartEntitiesDetectionJobCommand = void 0;
5
- exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.deserializeAws_json1_1StopSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StopEventsDetectionJobCommand = exports.deserializeAws_json1_1StopEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartTopicsDetectionJobCommand = exports.deserializeAws_json1_1StartSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StartEventsDetectionJobCommand = exports.deserializeAws_json1_1StartEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartDocumentClassificationJobCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListTopicsDetectionJobsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.deserializeAws_json1_1ListEventsDetectionJobsCommand = exports.deserializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.deserializeAws_json1_1ListEntityRecognizersCommand = exports.deserializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListEndpointsCommand = exports.deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.deserializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.deserializeAws_json1_1ListDocumentClassifiersCommand = exports.deserializeAws_json1_1ListDocumentClassificationJobsCommand = void 0;
3
+ exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = exports.serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.serializeAws_json1_1ListEventsDetectionJobsCommand = exports.serializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.serializeAws_json1_1ListEntityRecognizersCommand = exports.serializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListEndpointsCommand = exports.serializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.serializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.serializeAws_json1_1ListDocumentClassifiersCommand = exports.serializeAws_json1_1ListDocumentClassificationJobsCommand = exports.serializeAws_json1_1ImportModelCommand = exports.serializeAws_json1_1DetectSyntaxCommand = exports.serializeAws_json1_1DetectSentimentCommand = exports.serializeAws_json1_1DetectPiiEntitiesCommand = exports.serializeAws_json1_1DetectKeyPhrasesCommand = exports.serializeAws_json1_1DetectEntitiesCommand = exports.serializeAws_json1_1DetectDominantLanguageCommand = exports.serializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeResourcePolicyCommand = exports.serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1DescribeEventsDetectionJobCommand = exports.serializeAws_json1_1DescribeEntityRecognizerCommand = exports.serializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeEndpointCommand = exports.serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1DescribeDocumentClassifierCommand = exports.serializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteEntityRecognizerCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteDocumentClassifierCommand = exports.serializeAws_json1_1CreateEntityRecognizerCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CreateDocumentClassifierCommand = exports.serializeAws_json1_1ContainsPiiEntitiesCommand = exports.serializeAws_json1_1ClassifyDocumentCommand = exports.serializeAws_json1_1BatchDetectSyntaxCommand = exports.serializeAws_json1_1BatchDetectSentimentCommand = exports.serializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.serializeAws_json1_1BatchDetectEntitiesCommand = exports.serializeAws_json1_1BatchDetectDominantLanguageCommand = void 0;
4
+ exports.deserializeAws_json1_1DetectEntitiesCommand = exports.deserializeAws_json1_1DetectDominantLanguageCommand = exports.deserializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeResourcePolicyCommand = exports.deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEventsDetectionJobCommand = exports.deserializeAws_json1_1DescribeEntityRecognizerCommand = exports.deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEndpointCommand = exports.deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1DescribeDocumentClassifierCommand = exports.deserializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteEntityRecognizerCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteDocumentClassifierCommand = exports.deserializeAws_json1_1CreateEntityRecognizerCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CreateDocumentClassifierCommand = exports.deserializeAws_json1_1ContainsPiiEntitiesCommand = exports.deserializeAws_json1_1ClassifyDocumentCommand = exports.deserializeAws_json1_1BatchDetectSyntaxCommand = exports.deserializeAws_json1_1BatchDetectSentimentCommand = exports.deserializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.deserializeAws_json1_1BatchDetectEntitiesCommand = exports.deserializeAws_json1_1BatchDetectDominantLanguageCommand = exports.serializeAws_json1_1UpdateEndpointCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.serializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1StopSentimentDetectionJobCommand = exports.serializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StopEventsDetectionJobCommand = exports.serializeAws_json1_1StopEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartTopicsDetectionJobCommand = exports.serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1StartSentimentDetectionJobCommand = exports.serializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StartEventsDetectionJobCommand = exports.serializeAws_json1_1StartEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartDocumentClassificationJobCommand = void 0;
5
+ exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StopEventsDetectionJobCommand = exports.deserializeAws_json1_1StopEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartTopicsDetectionJobCommand = exports.deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StartEventsDetectionJobCommand = exports.deserializeAws_json1_1StartEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartDocumentClassificationJobCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListTopicsDetectionJobsCommand = exports.deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.deserializeAws_json1_1ListEventsDetectionJobsCommand = exports.deserializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.deserializeAws_json1_1ListEntityRecognizersCommand = exports.deserializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListEndpointsCommand = exports.deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.deserializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.deserializeAws_json1_1ListDocumentClassifiersCommand = exports.deserializeAws_json1_1ListDocumentClassificationJobsCommand = exports.deserializeAws_json1_1ImportModelCommand = exports.deserializeAws_json1_1DetectSyntaxCommand = exports.deserializeAws_json1_1DetectSentimentCommand = exports.deserializeAws_json1_1DetectPiiEntitiesCommand = exports.deserializeAws_json1_1DetectKeyPhrasesCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const uuid_1 = require("uuid");
@@ -258,6 +258,16 @@ const serializeAws_json1_1DescribeSentimentDetectionJobCommand = async (input, c
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
260
  exports.serializeAws_json1_1DescribeSentimentDetectionJobCommand = serializeAws_json1_1DescribeSentimentDetectionJobCommand;
261
+ const serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = async (input, context) => {
262
+ const headers = {
263
+ "content-type": "application/x-amz-json-1.1",
264
+ "x-amz-target": "Comprehend_20171127.DescribeTargetedSentimentDetectionJob",
265
+ };
266
+ let body;
267
+ body = JSON.stringify(serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest(input, context));
268
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
+ };
270
+ exports.serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand;
261
271
  const serializeAws_json1_1DescribeTopicsDetectionJobCommand = async (input, context) => {
262
272
  const headers = {
263
273
  "content-type": "application/x-amz-json-1.1",
@@ -468,6 +478,16 @@ const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) =>
468
478
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
469
479
  };
470
480
  exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
481
+ const serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = async (input, context) => {
482
+ const headers = {
483
+ "content-type": "application/x-amz-json-1.1",
484
+ "x-amz-target": "Comprehend_20171127.ListTargetedSentimentDetectionJobs",
485
+ };
486
+ let body;
487
+ body = JSON.stringify(serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest(input, context));
488
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
489
+ };
490
+ exports.serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand;
471
491
  const serializeAws_json1_1ListTopicsDetectionJobsCommand = async (input, context) => {
472
492
  const headers = {
473
493
  "content-type": "application/x-amz-json-1.1",
@@ -558,6 +578,16 @@ const serializeAws_json1_1StartSentimentDetectionJobCommand = async (input, cont
558
578
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
559
579
  };
560
580
  exports.serializeAws_json1_1StartSentimentDetectionJobCommand = serializeAws_json1_1StartSentimentDetectionJobCommand;
581
+ const serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = async (input, context) => {
582
+ const headers = {
583
+ "content-type": "application/x-amz-json-1.1",
584
+ "x-amz-target": "Comprehend_20171127.StartTargetedSentimentDetectionJob",
585
+ };
586
+ let body;
587
+ body = JSON.stringify(serializeAws_json1_1StartTargetedSentimentDetectionJobRequest(input, context));
588
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
589
+ };
590
+ exports.serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = serializeAws_json1_1StartTargetedSentimentDetectionJobCommand;
561
591
  const serializeAws_json1_1StartTopicsDetectionJobCommand = async (input, context) => {
562
592
  const headers = {
563
593
  "content-type": "application/x-amz-json-1.1",
@@ -628,6 +658,16 @@ const serializeAws_json1_1StopSentimentDetectionJobCommand = async (input, conte
628
658
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
629
659
  };
630
660
  exports.serializeAws_json1_1StopSentimentDetectionJobCommand = serializeAws_json1_1StopSentimentDetectionJobCommand;
661
+ const serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = async (input, context) => {
662
+ const headers = {
663
+ "content-type": "application/x-amz-json-1.1",
664
+ "x-amz-target": "Comprehend_20171127.StopTargetedSentimentDetectionJob",
665
+ };
666
+ let body;
667
+ body = JSON.stringify(serializeAws_json1_1StopTargetedSentimentDetectionJobRequest(input, context));
668
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
669
+ };
670
+ exports.serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = serializeAws_json1_1StopTargetedSentimentDetectionJobCommand;
631
671
  const serializeAws_json1_1StopTrainingDocumentClassifierCommand = async (input, context) => {
632
672
  const headers = {
633
673
  "content-type": "application/x-amz-json-1.1",
@@ -720,7 +760,7 @@ const deserializeAws_json1_1BatchDetectDominantLanguageCommandError = async (out
720
760
  $fault: "client",
721
761
  $metadata: deserializeMetadata(output),
722
762
  });
723
- throw smithy_client_1.decorateServiceException(response, parsedBody);
763
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
724
764
  }
725
765
  };
726
766
  const deserializeAws_json1_1BatchDetectEntitiesCommand = async (output, context) => {
@@ -768,7 +808,7 @@ const deserializeAws_json1_1BatchDetectEntitiesCommandError = async (output, con
768
808
  $fault: "client",
769
809
  $metadata: deserializeMetadata(output),
770
810
  });
771
- throw smithy_client_1.decorateServiceException(response, parsedBody);
811
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
772
812
  }
773
813
  };
774
814
  const deserializeAws_json1_1BatchDetectKeyPhrasesCommand = async (output, context) => {
@@ -816,7 +856,7 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesCommandError = async (output, c
816
856
  $fault: "client",
817
857
  $metadata: deserializeMetadata(output),
818
858
  });
819
- throw smithy_client_1.decorateServiceException(response, parsedBody);
859
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
820
860
  }
821
861
  };
822
862
  const deserializeAws_json1_1BatchDetectSentimentCommand = async (output, context) => {
@@ -864,7 +904,7 @@ const deserializeAws_json1_1BatchDetectSentimentCommandError = async (output, co
864
904
  $fault: "client",
865
905
  $metadata: deserializeMetadata(output),
866
906
  });
867
- throw smithy_client_1.decorateServiceException(response, parsedBody);
907
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
868
908
  }
869
909
  };
870
910
  const deserializeAws_json1_1BatchDetectSyntaxCommand = async (output, context) => {
@@ -912,7 +952,7 @@ const deserializeAws_json1_1BatchDetectSyntaxCommandError = async (output, conte
912
952
  $fault: "client",
913
953
  $metadata: deserializeMetadata(output),
914
954
  });
915
- throw smithy_client_1.decorateServiceException(response, parsedBody);
955
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
916
956
  }
917
957
  };
918
958
  const deserializeAws_json1_1ClassifyDocumentCommand = async (output, context) => {
@@ -957,7 +997,7 @@ const deserializeAws_json1_1ClassifyDocumentCommandError = async (output, contex
957
997
  $fault: "client",
958
998
  $metadata: deserializeMetadata(output),
959
999
  });
960
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1000
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
961
1001
  }
962
1002
  };
963
1003
  const deserializeAws_json1_1ContainsPiiEntitiesCommand = async (output, context) => {
@@ -1002,7 +1042,7 @@ const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, con
1002
1042
  $fault: "client",
1003
1043
  $metadata: deserializeMetadata(output),
1004
1044
  });
1005
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1045
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1006
1046
  }
1007
1047
  };
1008
1048
  const deserializeAws_json1_1CreateDocumentClassifierCommand = async (output, context) => {
@@ -1059,7 +1099,7 @@ const deserializeAws_json1_1CreateDocumentClassifierCommandError = async (output
1059
1099
  $fault: "client",
1060
1100
  $metadata: deserializeMetadata(output),
1061
1101
  });
1062
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1102
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1063
1103
  }
1064
1104
  };
1065
1105
  const deserializeAws_json1_1CreateEndpointCommand = async (output, context) => {
@@ -1116,7 +1156,7 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
1116
1156
  $fault: "client",
1117
1157
  $metadata: deserializeMetadata(output),
1118
1158
  });
1119
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1159
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1120
1160
  }
1121
1161
  };
1122
1162
  const deserializeAws_json1_1CreateEntityRecognizerCommand = async (output, context) => {
@@ -1173,7 +1213,7 @@ const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output,
1173
1213
  $fault: "client",
1174
1214
  $metadata: deserializeMetadata(output),
1175
1215
  });
1176
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1216
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1177
1217
  }
1178
1218
  };
1179
1219
  const deserializeAws_json1_1DeleteDocumentClassifierCommand = async (output, context) => {
@@ -1224,7 +1264,7 @@ const deserializeAws_json1_1DeleteDocumentClassifierCommandError = async (output
1224
1264
  $fault: "client",
1225
1265
  $metadata: deserializeMetadata(output),
1226
1266
  });
1227
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1267
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1228
1268
  }
1229
1269
  };
1230
1270
  const deserializeAws_json1_1DeleteEndpointCommand = async (output, context) => {
@@ -1272,7 +1312,7 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
1272
1312
  $fault: "client",
1273
1313
  $metadata: deserializeMetadata(output),
1274
1314
  });
1275
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1315
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1276
1316
  }
1277
1317
  };
1278
1318
  const deserializeAws_json1_1DeleteEntityRecognizerCommand = async (output, context) => {
@@ -1323,7 +1363,7 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
1323
1363
  $fault: "client",
1324
1364
  $metadata: deserializeMetadata(output),
1325
1365
  });
1326
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1366
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1327
1367
  }
1328
1368
  };
1329
1369
  const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
@@ -1365,7 +1405,7 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
1365
1405
  $fault: "client",
1366
1406
  $metadata: deserializeMetadata(output),
1367
1407
  });
1368
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1408
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1369
1409
  }
1370
1410
  };
1371
1411
  const deserializeAws_json1_1DescribeDocumentClassificationJobCommand = async (output, context) => {
@@ -1410,7 +1450,7 @@ const deserializeAws_json1_1DescribeDocumentClassificationJobCommandError = asyn
1410
1450
  $fault: "client",
1411
1451
  $metadata: deserializeMetadata(output),
1412
1452
  });
1413
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1453
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1414
1454
  }
1415
1455
  };
1416
1456
  const deserializeAws_json1_1DescribeDocumentClassifierCommand = async (output, context) => {
@@ -1455,7 +1495,7 @@ const deserializeAws_json1_1DescribeDocumentClassifierCommandError = async (outp
1455
1495
  $fault: "client",
1456
1496
  $metadata: deserializeMetadata(output),
1457
1497
  });
1458
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1498
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1459
1499
  }
1460
1500
  };
1461
1501
  const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = async (output, context) => {
@@ -1500,7 +1540,7 @@ const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError = a
1500
1540
  $fault: "client",
1501
1541
  $metadata: deserializeMetadata(output),
1502
1542
  });
1503
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1543
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1504
1544
  }
1505
1545
  };
1506
1546
  const deserializeAws_json1_1DescribeEndpointCommand = async (output, context) => {
@@ -1545,7 +1585,7 @@ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, contex
1545
1585
  $fault: "client",
1546
1586
  $metadata: deserializeMetadata(output),
1547
1587
  });
1548
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1588
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1549
1589
  }
1550
1590
  };
1551
1591
  const deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = async (output, context) => {
@@ -1590,7 +1630,7 @@ const deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError = async (ou
1590
1630
  $fault: "client",
1591
1631
  $metadata: deserializeMetadata(output),
1592
1632
  });
1593
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1633
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1594
1634
  }
1595
1635
  };
1596
1636
  const deserializeAws_json1_1DescribeEntityRecognizerCommand = async (output, context) => {
@@ -1635,7 +1675,7 @@ const deserializeAws_json1_1DescribeEntityRecognizerCommandError = async (output
1635
1675
  $fault: "client",
1636
1676
  $metadata: deserializeMetadata(output),
1637
1677
  });
1638
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1678
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1639
1679
  }
1640
1680
  };
1641
1681
  const deserializeAws_json1_1DescribeEventsDetectionJobCommand = async (output, context) => {
@@ -1680,7 +1720,7 @@ const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (outp
1680
1720
  $fault: "client",
1681
1721
  $metadata: deserializeMetadata(output),
1682
1722
  });
1683
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1723
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1684
1724
  }
1685
1725
  };
1686
1726
  const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = async (output, context) => {
@@ -1725,7 +1765,7 @@ const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError = async (
1725
1765
  $fault: "client",
1726
1766
  $metadata: deserializeMetadata(output),
1727
1767
  });
1728
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1768
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1729
1769
  }
1730
1770
  };
1731
1771
  const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = async (output, context) => {
@@ -1770,7 +1810,7 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommandError = async
1770
1810
  $fault: "client",
1771
1811
  $metadata: deserializeMetadata(output),
1772
1812
  });
1773
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1813
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1774
1814
  }
1775
1815
  };
1776
1816
  const deserializeAws_json1_1DescribeResourcePolicyCommand = async (output, context) => {
@@ -1812,7 +1852,7 @@ const deserializeAws_json1_1DescribeResourcePolicyCommandError = async (output,
1812
1852
  $fault: "client",
1813
1853
  $metadata: deserializeMetadata(output),
1814
1854
  });
1815
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1855
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1816
1856
  }
1817
1857
  };
1818
1858
  const deserializeAws_json1_1DescribeSentimentDetectionJobCommand = async (output, context) => {
@@ -1857,7 +1897,52 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = async (o
1857
1897
  $fault: "client",
1858
1898
  $metadata: deserializeMetadata(output),
1859
1899
  });
1860
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1900
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1901
+ }
1902
+ };
1903
+ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = async (output, context) => {
1904
+ if (output.statusCode >= 300) {
1905
+ return deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError(output, context);
1906
+ }
1907
+ const data = await parseBody(output.body, context);
1908
+ let contents = {};
1909
+ contents = deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse(data, context);
1910
+ const response = {
1911
+ $metadata: deserializeMetadata(output),
1912
+ ...contents,
1913
+ };
1914
+ return Promise.resolve(response);
1915
+ };
1916
+ exports.deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand;
1917
+ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError = async (output, context) => {
1918
+ const parsedOutput = {
1919
+ ...output,
1920
+ body: await parseBody(output.body, context),
1921
+ };
1922
+ let response;
1923
+ let errorCode = "UnknownError";
1924
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1925
+ switch (errorCode) {
1926
+ case "InternalServerException":
1927
+ case "com.amazonaws.comprehend#InternalServerException":
1928
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
1929
+ case "InvalidRequestException":
1930
+ case "com.amazonaws.comprehend#InvalidRequestException":
1931
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1932
+ case "JobNotFoundException":
1933
+ case "com.amazonaws.comprehend#JobNotFoundException":
1934
+ throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
1935
+ case "TooManyRequestsException":
1936
+ case "com.amazonaws.comprehend#TooManyRequestsException":
1937
+ throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
1938
+ default:
1939
+ const parsedBody = parsedOutput.body;
1940
+ response = new ComprehendServiceException_1.ComprehendServiceException({
1941
+ name: parsedBody.code || parsedBody.Code || errorCode,
1942
+ $fault: "client",
1943
+ $metadata: deserializeMetadata(output),
1944
+ });
1945
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1861
1946
  }
1862
1947
  };
1863
1948
  const deserializeAws_json1_1DescribeTopicsDetectionJobCommand = async (output, context) => {
@@ -1902,7 +1987,7 @@ const deserializeAws_json1_1DescribeTopicsDetectionJobCommandError = async (outp
1902
1987
  $fault: "client",
1903
1988
  $metadata: deserializeMetadata(output),
1904
1989
  });
1905
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1990
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1906
1991
  }
1907
1992
  };
1908
1993
  const deserializeAws_json1_1DetectDominantLanguageCommand = async (output, context) => {
@@ -1944,7 +2029,7 @@ const deserializeAws_json1_1DetectDominantLanguageCommandError = async (output,
1944
2029
  $fault: "client",
1945
2030
  $metadata: deserializeMetadata(output),
1946
2031
  });
1947
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2032
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1948
2033
  }
1949
2034
  };
1950
2035
  const deserializeAws_json1_1DetectEntitiesCommand = async (output, context) => {
@@ -1992,7 +2077,7 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
1992
2077
  $fault: "client",
1993
2078
  $metadata: deserializeMetadata(output),
1994
2079
  });
1995
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2080
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1996
2081
  }
1997
2082
  };
1998
2083
  const deserializeAws_json1_1DetectKeyPhrasesCommand = async (output, context) => {
@@ -2037,7 +2122,7 @@ const deserializeAws_json1_1DetectKeyPhrasesCommandError = async (output, contex
2037
2122
  $fault: "client",
2038
2123
  $metadata: deserializeMetadata(output),
2039
2124
  });
2040
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2125
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2041
2126
  }
2042
2127
  };
2043
2128
  const deserializeAws_json1_1DetectPiiEntitiesCommand = async (output, context) => {
@@ -2082,7 +2167,7 @@ const deserializeAws_json1_1DetectPiiEntitiesCommandError = async (output, conte
2082
2167
  $fault: "client",
2083
2168
  $metadata: deserializeMetadata(output),
2084
2169
  });
2085
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2170
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2086
2171
  }
2087
2172
  };
2088
2173
  const deserializeAws_json1_1DetectSentimentCommand = async (output, context) => {
@@ -2127,7 +2212,7 @@ const deserializeAws_json1_1DetectSentimentCommandError = async (output, context
2127
2212
  $fault: "client",
2128
2213
  $metadata: deserializeMetadata(output),
2129
2214
  });
2130
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2215
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2131
2216
  }
2132
2217
  };
2133
2218
  const deserializeAws_json1_1DetectSyntaxCommand = async (output, context) => {
@@ -2172,7 +2257,7 @@ const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) =
2172
2257
  $fault: "client",
2173
2258
  $metadata: deserializeMetadata(output),
2174
2259
  });
2175
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2260
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2176
2261
  }
2177
2262
  };
2178
2263
  const deserializeAws_json1_1ImportModelCommand = async (output, context) => {
@@ -2232,7 +2317,7 @@ const deserializeAws_json1_1ImportModelCommandError = async (output, context) =>
2232
2317
  $fault: "client",
2233
2318
  $metadata: deserializeMetadata(output),
2234
2319
  });
2235
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2320
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2236
2321
  }
2237
2322
  };
2238
2323
  const deserializeAws_json1_1ListDocumentClassificationJobsCommand = async (output, context) => {
@@ -2277,7 +2362,7 @@ const deserializeAws_json1_1ListDocumentClassificationJobsCommandError = async (
2277
2362
  $fault: "client",
2278
2363
  $metadata: deserializeMetadata(output),
2279
2364
  });
2280
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2365
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2281
2366
  }
2282
2367
  };
2283
2368
  const deserializeAws_json1_1ListDocumentClassifiersCommand = async (output, context) => {
@@ -2322,7 +2407,7 @@ const deserializeAws_json1_1ListDocumentClassifiersCommandError = async (output,
2322
2407
  $fault: "client",
2323
2408
  $metadata: deserializeMetadata(output),
2324
2409
  });
2325
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2410
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2326
2411
  }
2327
2412
  };
2328
2413
  const deserializeAws_json1_1ListDocumentClassifierSummariesCommand = async (output, context) => {
@@ -2364,7 +2449,7 @@ const deserializeAws_json1_1ListDocumentClassifierSummariesCommandError = async
2364
2449
  $fault: "client",
2365
2450
  $metadata: deserializeMetadata(output),
2366
2451
  });
2367
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2452
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2368
2453
  }
2369
2454
  };
2370
2455
  const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = async (output, context) => {
@@ -2409,7 +2494,7 @@ const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError = asyn
2409
2494
  $fault: "client",
2410
2495
  $metadata: deserializeMetadata(output),
2411
2496
  });
2412
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2497
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2413
2498
  }
2414
2499
  };
2415
2500
  const deserializeAws_json1_1ListEndpointsCommand = async (output, context) => {
@@ -2451,7 +2536,7 @@ const deserializeAws_json1_1ListEndpointsCommandError = async (output, context)
2451
2536
  $fault: "client",
2452
2537
  $metadata: deserializeMetadata(output),
2453
2538
  });
2454
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2539
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2455
2540
  }
2456
2541
  };
2457
2542
  const deserializeAws_json1_1ListEntitiesDetectionJobsCommand = async (output, context) => {
@@ -2496,7 +2581,7 @@ const deserializeAws_json1_1ListEntitiesDetectionJobsCommandError = async (outpu
2496
2581
  $fault: "client",
2497
2582
  $metadata: deserializeMetadata(output),
2498
2583
  });
2499
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2584
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2500
2585
  }
2501
2586
  };
2502
2587
  const deserializeAws_json1_1ListEntityRecognizersCommand = async (output, context) => {
@@ -2541,7 +2626,7 @@ const deserializeAws_json1_1ListEntityRecognizersCommandError = async (output, c
2541
2626
  $fault: "client",
2542
2627
  $metadata: deserializeMetadata(output),
2543
2628
  });
2544
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2629
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2545
2630
  }
2546
2631
  };
2547
2632
  const deserializeAws_json1_1ListEntityRecognizerSummariesCommand = async (output, context) => {
@@ -2583,7 +2668,7 @@ const deserializeAws_json1_1ListEntityRecognizerSummariesCommandError = async (o
2583
2668
  $fault: "client",
2584
2669
  $metadata: deserializeMetadata(output),
2585
2670
  });
2586
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2671
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2587
2672
  }
2588
2673
  };
2589
2674
  const deserializeAws_json1_1ListEventsDetectionJobsCommand = async (output, context) => {
@@ -2628,7 +2713,7 @@ const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output,
2628
2713
  $fault: "client",
2629
2714
  $metadata: deserializeMetadata(output),
2630
2715
  });
2631
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2716
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2632
2717
  }
2633
2718
  };
2634
2719
  const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = async (output, context) => {
@@ -2673,7 +2758,7 @@ const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError = async (out
2673
2758
  $fault: "client",
2674
2759
  $metadata: deserializeMetadata(output),
2675
2760
  });
2676
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2761
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2677
2762
  }
2678
2763
  };
2679
2764
  const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = async (output, context) => {
@@ -2718,7 +2803,7 @@ const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommandError = async (ou
2718
2803
  $fault: "client",
2719
2804
  $metadata: deserializeMetadata(output),
2720
2805
  });
2721
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2806
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2722
2807
  }
2723
2808
  };
2724
2809
  const deserializeAws_json1_1ListSentimentDetectionJobsCommand = async (output, context) => {
@@ -2763,7 +2848,7 @@ const deserializeAws_json1_1ListSentimentDetectionJobsCommandError = async (outp
2763
2848
  $fault: "client",
2764
2849
  $metadata: deserializeMetadata(output),
2765
2850
  });
2766
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2851
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2767
2852
  }
2768
2853
  };
2769
2854
  const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
@@ -2805,7 +2890,52 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2805
2890
  $fault: "client",
2806
2891
  $metadata: deserializeMetadata(output),
2807
2892
  });
2808
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2893
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2894
+ }
2895
+ };
2896
+ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = async (output, context) => {
2897
+ if (output.statusCode >= 300) {
2898
+ return deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError(output, context);
2899
+ }
2900
+ const data = await parseBody(output.body, context);
2901
+ let contents = {};
2902
+ contents = deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse(data, context);
2903
+ const response = {
2904
+ $metadata: deserializeMetadata(output),
2905
+ ...contents,
2906
+ };
2907
+ return Promise.resolve(response);
2908
+ };
2909
+ exports.deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand;
2910
+ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = async (output, context) => {
2911
+ const parsedOutput = {
2912
+ ...output,
2913
+ body: await parseBody(output.body, context),
2914
+ };
2915
+ let response;
2916
+ let errorCode = "UnknownError";
2917
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2918
+ switch (errorCode) {
2919
+ case "InternalServerException":
2920
+ case "com.amazonaws.comprehend#InternalServerException":
2921
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
2922
+ case "InvalidFilterException":
2923
+ case "com.amazonaws.comprehend#InvalidFilterException":
2924
+ throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
2925
+ case "InvalidRequestException":
2926
+ case "com.amazonaws.comprehend#InvalidRequestException":
2927
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2928
+ case "TooManyRequestsException":
2929
+ case "com.amazonaws.comprehend#TooManyRequestsException":
2930
+ throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
2931
+ default:
2932
+ const parsedBody = parsedOutput.body;
2933
+ response = new ComprehendServiceException_1.ComprehendServiceException({
2934
+ name: parsedBody.code || parsedBody.Code || errorCode,
2935
+ $fault: "client",
2936
+ $metadata: deserializeMetadata(output),
2937
+ });
2938
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2809
2939
  }
2810
2940
  };
2811
2941
  const deserializeAws_json1_1ListTopicsDetectionJobsCommand = async (output, context) => {
@@ -2850,7 +2980,7 @@ const deserializeAws_json1_1ListTopicsDetectionJobsCommandError = async (output,
2850
2980
  $fault: "client",
2851
2981
  $metadata: deserializeMetadata(output),
2852
2982
  });
2853
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2983
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2854
2984
  }
2855
2985
  };
2856
2986
  const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
@@ -2892,7 +3022,7 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
2892
3022
  $fault: "client",
2893
3023
  $metadata: deserializeMetadata(output),
2894
3024
  });
2895
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3025
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2896
3026
  }
2897
3027
  };
2898
3028
  const deserializeAws_json1_1StartDocumentClassificationJobCommand = async (output, context) => {
@@ -2946,7 +3076,7 @@ const deserializeAws_json1_1StartDocumentClassificationJobCommandError = async (
2946
3076
  $fault: "client",
2947
3077
  $metadata: deserializeMetadata(output),
2948
3078
  });
2949
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3079
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2950
3080
  }
2951
3081
  };
2952
3082
  const deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = async (output, context) => {
@@ -2994,7 +3124,7 @@ const deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError = asyn
2994
3124
  $fault: "client",
2995
3125
  $metadata: deserializeMetadata(output),
2996
3126
  });
2997
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3127
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2998
3128
  }
2999
3129
  };
3000
3130
  const deserializeAws_json1_1StartEntitiesDetectionJobCommand = async (output, context) => {
@@ -3048,7 +3178,7 @@ const deserializeAws_json1_1StartEntitiesDetectionJobCommandError = async (outpu
3048
3178
  $fault: "client",
3049
3179
  $metadata: deserializeMetadata(output),
3050
3180
  });
3051
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3181
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3052
3182
  }
3053
3183
  };
3054
3184
  const deserializeAws_json1_1StartEventsDetectionJobCommand = async (output, context) => {
@@ -3096,7 +3226,7 @@ const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output,
3096
3226
  $fault: "client",
3097
3227
  $metadata: deserializeMetadata(output),
3098
3228
  });
3099
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3229
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3100
3230
  }
3101
3231
  };
3102
3232
  const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = async (output, context) => {
@@ -3144,7 +3274,7 @@ const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError = async (out
3144
3274
  $fault: "client",
3145
3275
  $metadata: deserializeMetadata(output),
3146
3276
  });
3147
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3277
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3148
3278
  }
3149
3279
  };
3150
3280
  const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = async (output, context) => {
@@ -3192,7 +3322,7 @@ const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommandError = async (ou
3192
3322
  $fault: "client",
3193
3323
  $metadata: deserializeMetadata(output),
3194
3324
  });
3195
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3325
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3196
3326
  }
3197
3327
  };
3198
3328
  const deserializeAws_json1_1StartSentimentDetectionJobCommand = async (output, context) => {
@@ -3240,7 +3370,55 @@ const deserializeAws_json1_1StartSentimentDetectionJobCommandError = async (outp
3240
3370
  $fault: "client",
3241
3371
  $metadata: deserializeMetadata(output),
3242
3372
  });
3243
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3373
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3374
+ }
3375
+ };
3376
+ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = async (output, context) => {
3377
+ if (output.statusCode >= 300) {
3378
+ return deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError(output, context);
3379
+ }
3380
+ const data = await parseBody(output.body, context);
3381
+ let contents = {};
3382
+ contents = deserializeAws_json1_1StartTargetedSentimentDetectionJobResponse(data, context);
3383
+ const response = {
3384
+ $metadata: deserializeMetadata(output),
3385
+ ...contents,
3386
+ };
3387
+ return Promise.resolve(response);
3388
+ };
3389
+ exports.deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand;
3390
+ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = async (output, context) => {
3391
+ const parsedOutput = {
3392
+ ...output,
3393
+ body: await parseBody(output.body, context),
3394
+ };
3395
+ let response;
3396
+ let errorCode = "UnknownError";
3397
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3398
+ switch (errorCode) {
3399
+ case "InternalServerException":
3400
+ case "com.amazonaws.comprehend#InternalServerException":
3401
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
3402
+ case "InvalidRequestException":
3403
+ case "com.amazonaws.comprehend#InvalidRequestException":
3404
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
3405
+ case "KmsKeyValidationException":
3406
+ case "com.amazonaws.comprehend#KmsKeyValidationException":
3407
+ throw await deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context);
3408
+ case "TooManyRequestsException":
3409
+ case "com.amazonaws.comprehend#TooManyRequestsException":
3410
+ throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
3411
+ case "TooManyTagsException":
3412
+ case "com.amazonaws.comprehend#TooManyTagsException":
3413
+ throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
3414
+ default:
3415
+ const parsedBody = parsedOutput.body;
3416
+ response = new ComprehendServiceException_1.ComprehendServiceException({
3417
+ name: parsedBody.code || parsedBody.Code || errorCode,
3418
+ $fault: "client",
3419
+ $metadata: deserializeMetadata(output),
3420
+ });
3421
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3244
3422
  }
3245
3423
  };
3246
3424
  const deserializeAws_json1_1StartTopicsDetectionJobCommand = async (output, context) => {
@@ -3288,7 +3466,7 @@ const deserializeAws_json1_1StartTopicsDetectionJobCommandError = async (output,
3288
3466
  $fault: "client",
3289
3467
  $metadata: deserializeMetadata(output),
3290
3468
  });
3291
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3469
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3292
3470
  }
3293
3471
  };
3294
3472
  const deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = async (output, context) => {
@@ -3330,7 +3508,7 @@ const deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError = async
3330
3508
  $fault: "client",
3331
3509
  $metadata: deserializeMetadata(output),
3332
3510
  });
3333
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3511
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3334
3512
  }
3335
3513
  };
3336
3514
  const deserializeAws_json1_1StopEntitiesDetectionJobCommand = async (output, context) => {
@@ -3372,7 +3550,7 @@ const deserializeAws_json1_1StopEntitiesDetectionJobCommandError = async (output
3372
3550
  $fault: "client",
3373
3551
  $metadata: deserializeMetadata(output),
3374
3552
  });
3375
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3553
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3376
3554
  }
3377
3555
  };
3378
3556
  const deserializeAws_json1_1StopEventsDetectionJobCommand = async (output, context) => {
@@ -3414,7 +3592,7 @@ const deserializeAws_json1_1StopEventsDetectionJobCommandError = async (output,
3414
3592
  $fault: "client",
3415
3593
  $metadata: deserializeMetadata(output),
3416
3594
  });
3417
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3595
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3418
3596
  }
3419
3597
  };
3420
3598
  const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = async (output, context) => {
@@ -3456,7 +3634,7 @@ const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError = async (outp
3456
3634
  $fault: "client",
3457
3635
  $metadata: deserializeMetadata(output),
3458
3636
  });
3459
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3637
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3460
3638
  }
3461
3639
  };
3462
3640
  const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = async (output, context) => {
@@ -3498,7 +3676,7 @@ const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommandError = async (out
3498
3676
  $fault: "client",
3499
3677
  $metadata: deserializeMetadata(output),
3500
3678
  });
3501
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3679
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3502
3680
  }
3503
3681
  };
3504
3682
  const deserializeAws_json1_1StopSentimentDetectionJobCommand = async (output, context) => {
@@ -3540,7 +3718,49 @@ const deserializeAws_json1_1StopSentimentDetectionJobCommandError = async (outpu
3540
3718
  $fault: "client",
3541
3719
  $metadata: deserializeMetadata(output),
3542
3720
  });
3543
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3721
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3722
+ }
3723
+ };
3724
+ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = async (output, context) => {
3725
+ if (output.statusCode >= 300) {
3726
+ return deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError(output, context);
3727
+ }
3728
+ const data = await parseBody(output.body, context);
3729
+ let contents = {};
3730
+ contents = deserializeAws_json1_1StopTargetedSentimentDetectionJobResponse(data, context);
3731
+ const response = {
3732
+ $metadata: deserializeMetadata(output),
3733
+ ...contents,
3734
+ };
3735
+ return Promise.resolve(response);
3736
+ };
3737
+ exports.deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand;
3738
+ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = async (output, context) => {
3739
+ const parsedOutput = {
3740
+ ...output,
3741
+ body: await parseBody(output.body, context),
3742
+ };
3743
+ let response;
3744
+ let errorCode = "UnknownError";
3745
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3746
+ switch (errorCode) {
3747
+ case "InternalServerException":
3748
+ case "com.amazonaws.comprehend#InternalServerException":
3749
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
3750
+ case "InvalidRequestException":
3751
+ case "com.amazonaws.comprehend#InvalidRequestException":
3752
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
3753
+ case "JobNotFoundException":
3754
+ case "com.amazonaws.comprehend#JobNotFoundException":
3755
+ throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
3756
+ default:
3757
+ const parsedBody = parsedOutput.body;
3758
+ response = new ComprehendServiceException_1.ComprehendServiceException({
3759
+ name: parsedBody.code || parsedBody.Code || errorCode,
3760
+ $fault: "client",
3761
+ $metadata: deserializeMetadata(output),
3762
+ });
3763
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3544
3764
  }
3545
3765
  };
3546
3766
  const deserializeAws_json1_1StopTrainingDocumentClassifierCommand = async (output, context) => {
@@ -3585,7 +3805,7 @@ const deserializeAws_json1_1StopTrainingDocumentClassifierCommandError = async (
3585
3805
  $fault: "client",
3586
3806
  $metadata: deserializeMetadata(output),
3587
3807
  });
3588
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3808
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3589
3809
  }
3590
3810
  };
3591
3811
  const deserializeAws_json1_1StopTrainingEntityRecognizerCommand = async (output, context) => {
@@ -3630,7 +3850,7 @@ const deserializeAws_json1_1StopTrainingEntityRecognizerCommandError = async (ou
3630
3850
  $fault: "client",
3631
3851
  $metadata: deserializeMetadata(output),
3632
3852
  });
3633
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3853
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3634
3854
  }
3635
3855
  };
3636
3856
  const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
@@ -3678,7 +3898,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
3678
3898
  $fault: "client",
3679
3899
  $metadata: deserializeMetadata(output),
3680
3900
  });
3681
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3901
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3682
3902
  }
3683
3903
  };
3684
3904
  const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
@@ -3726,7 +3946,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
3726
3946
  $fault: "client",
3727
3947
  $metadata: deserializeMetadata(output),
3728
3948
  });
3729
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3949
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3730
3950
  }
3731
3951
  };
3732
3952
  const deserializeAws_json1_1UpdateEndpointCommand = async (output, context) => {
@@ -3780,7 +4000,7 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
3780
4000
  $fault: "client",
3781
4001
  $metadata: deserializeMetadata(output),
3782
4002
  });
3783
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4003
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3784
4004
  }
3785
4005
  };
3786
4006
  const deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
@@ -3790,7 +4010,7 @@ const deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse = async (par
3790
4010
  $metadata: deserializeMetadata(parsedOutput),
3791
4011
  ...deserialized,
3792
4012
  });
3793
- return smithy_client_1.decorateServiceException(exception, body);
4013
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3794
4014
  };
3795
4015
  const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
3796
4016
  const body = parsedOutput.body;
@@ -3799,7 +4019,7 @@ const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (par
3799
4019
  $metadata: deserializeMetadata(parsedOutput),
3800
4020
  ...deserialized,
3801
4021
  });
3802
- return smithy_client_1.decorateServiceException(exception, body);
4022
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3803
4023
  };
3804
4024
  const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
3805
4025
  const body = parsedOutput.body;
@@ -3808,7 +4028,7 @@ const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutpu
3808
4028
  $metadata: deserializeMetadata(parsedOutput),
3809
4029
  ...deserialized,
3810
4030
  });
3811
- return smithy_client_1.decorateServiceException(exception, body);
4031
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3812
4032
  };
3813
4033
  const deserializeAws_json1_1InvalidFilterExceptionResponse = async (parsedOutput, context) => {
3814
4034
  const body = parsedOutput.body;
@@ -3817,7 +4037,7 @@ const deserializeAws_json1_1InvalidFilterExceptionResponse = async (parsedOutput
3817
4037
  $metadata: deserializeMetadata(parsedOutput),
3818
4038
  ...deserialized,
3819
4039
  });
3820
- return smithy_client_1.decorateServiceException(exception, body);
4040
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3821
4041
  };
3822
4042
  const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
3823
4043
  const body = parsedOutput.body;
@@ -3826,7 +4046,7 @@ const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutpu
3826
4046
  $metadata: deserializeMetadata(parsedOutput),
3827
4047
  ...deserialized,
3828
4048
  });
3829
- return smithy_client_1.decorateServiceException(exception, body);
4049
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3830
4050
  };
3831
4051
  const deserializeAws_json1_1JobNotFoundExceptionResponse = async (parsedOutput, context) => {
3832
4052
  const body = parsedOutput.body;
@@ -3835,7 +4055,7 @@ const deserializeAws_json1_1JobNotFoundExceptionResponse = async (parsedOutput,
3835
4055
  $metadata: deserializeMetadata(parsedOutput),
3836
4056
  ...deserialized,
3837
4057
  });
3838
- return smithy_client_1.decorateServiceException(exception, body);
4058
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3839
4059
  };
3840
4060
  const deserializeAws_json1_1KmsKeyValidationExceptionResponse = async (parsedOutput, context) => {
3841
4061
  const body = parsedOutput.body;
@@ -3844,7 +4064,7 @@ const deserializeAws_json1_1KmsKeyValidationExceptionResponse = async (parsedOut
3844
4064
  $metadata: deserializeMetadata(parsedOutput),
3845
4065
  ...deserialized,
3846
4066
  });
3847
- return smithy_client_1.decorateServiceException(exception, body);
4067
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3848
4068
  };
3849
4069
  const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
3850
4070
  const body = parsedOutput.body;
@@ -3853,7 +4073,7 @@ const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput
3853
4073
  $metadata: deserializeMetadata(parsedOutput),
3854
4074
  ...deserialized,
3855
4075
  });
3856
- return smithy_client_1.decorateServiceException(exception, body);
4076
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3857
4077
  };
3858
4078
  const deserializeAws_json1_1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
3859
4079
  const body = parsedOutput.body;
@@ -3862,7 +4082,7 @@ const deserializeAws_json1_1ResourceLimitExceededExceptionResponse = async (pars
3862
4082
  $metadata: deserializeMetadata(parsedOutput),
3863
4083
  ...deserialized,
3864
4084
  });
3865
- return smithy_client_1.decorateServiceException(exception, body);
4085
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3866
4086
  };
3867
4087
  const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
3868
4088
  const body = parsedOutput.body;
@@ -3871,7 +4091,7 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
3871
4091
  $metadata: deserializeMetadata(parsedOutput),
3872
4092
  ...deserialized,
3873
4093
  });
3874
- return smithy_client_1.decorateServiceException(exception, body);
4094
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3875
4095
  };
3876
4096
  const deserializeAws_json1_1ResourceUnavailableExceptionResponse = async (parsedOutput, context) => {
3877
4097
  const body = parsedOutput.body;
@@ -3880,7 +4100,7 @@ const deserializeAws_json1_1ResourceUnavailableExceptionResponse = async (parsed
3880
4100
  $metadata: deserializeMetadata(parsedOutput),
3881
4101
  ...deserialized,
3882
4102
  });
3883
- return smithy_client_1.decorateServiceException(exception, body);
4103
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3884
4104
  };
3885
4105
  const deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
3886
4106
  const body = parsedOutput.body;
@@ -3889,7 +4109,7 @@ const deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = async (pars
3889
4109
  $metadata: deserializeMetadata(parsedOutput),
3890
4110
  ...deserialized,
3891
4111
  });
3892
- return smithy_client_1.decorateServiceException(exception, body);
4112
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3893
4113
  };
3894
4114
  const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
3895
4115
  const body = parsedOutput.body;
@@ -3898,7 +4118,7 @@ const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutp
3898
4118
  $metadata: deserializeMetadata(parsedOutput),
3899
4119
  ...deserialized,
3900
4120
  });
3901
- return smithy_client_1.decorateServiceException(exception, body);
4121
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3902
4122
  };
3903
4123
  const deserializeAws_json1_1TooManyTagKeysExceptionResponse = async (parsedOutput, context) => {
3904
4124
  const body = parsedOutput.body;
@@ -3907,7 +4127,7 @@ const deserializeAws_json1_1TooManyTagKeysExceptionResponse = async (parsedOutpu
3907
4127
  $metadata: deserializeMetadata(parsedOutput),
3908
4128
  ...deserialized,
3909
4129
  });
3910
- return smithy_client_1.decorateServiceException(exception, body);
4130
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3911
4131
  };
3912
4132
  const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
3913
4133
  const body = parsedOutput.body;
@@ -3916,7 +4136,7 @@ const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput,
3916
4136
  $metadata: deserializeMetadata(parsedOutput),
3917
4137
  ...deserialized,
3918
4138
  });
3919
- return smithy_client_1.decorateServiceException(exception, body);
4139
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3920
4140
  };
3921
4141
  const deserializeAws_json1_1UnsupportedLanguageExceptionResponse = async (parsedOutput, context) => {
3922
4142
  const body = parsedOutput.body;
@@ -3925,7 +4145,7 @@ const deserializeAws_json1_1UnsupportedLanguageExceptionResponse = async (parsed
3925
4145
  $metadata: deserializeMetadata(parsedOutput),
3926
4146
  ...deserialized,
3927
4147
  });
3928
- return smithy_client_1.decorateServiceException(exception, body);
4148
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3929
4149
  };
3930
4150
  const serializeAws_json1_1AttributeNamesList = (input, context) => {
3931
4151
  return input
@@ -4001,7 +4221,7 @@ const serializeAws_json1_1ContainsPiiEntitiesRequest = (input, context) => {
4001
4221
  const serializeAws_json1_1CreateDocumentClassifierRequest = (input, context) => {
4002
4222
  var _a;
4003
4223
  return {
4004
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4224
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4005
4225
  ...(input.DataAccessRoleArn !== undefined &&
4006
4226
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4007
4227
  ...(input.DocumentClassifierName !== undefined &&
@@ -4029,7 +4249,7 @@ const serializeAws_json1_1CreateDocumentClassifierRequest = (input, context) =>
4029
4249
  const serializeAws_json1_1CreateEndpointRequest = (input, context) => {
4030
4250
  var _a;
4031
4251
  return {
4032
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4252
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4033
4253
  ...(input.DataAccessRoleArn !== undefined &&
4034
4254
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4035
4255
  ...(input.DesiredInferenceUnits !== undefined &&
@@ -4042,7 +4262,7 @@ const serializeAws_json1_1CreateEndpointRequest = (input, context) => {
4042
4262
  const serializeAws_json1_1CreateEntityRecognizerRequest = (input, context) => {
4043
4263
  var _a;
4044
4264
  return {
4045
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4265
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4046
4266
  ...(input.DataAccessRoleArn !== undefined &&
4047
4267
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4048
4268
  ...(input.InputDataConfig !== undefined &&
@@ -4153,6 +4373,11 @@ const serializeAws_json1_1DescribeSentimentDetectionJobRequest = (input, context
4153
4373
  ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
4154
4374
  };
4155
4375
  };
4376
+ const serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest = (input, context) => {
4377
+ return {
4378
+ ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
4379
+ };
4380
+ };
4156
4381
  const serializeAws_json1_1DescribeTopicsDetectionJobRequest = (input, context) => {
4157
4382
  return {
4158
4383
  ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
@@ -4526,6 +4751,16 @@ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
4526
4751
  ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4527
4752
  };
4528
4753
  };
4754
+ const serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest = (input, context) => {
4755
+ return {
4756
+ ...(input.Filter !== undefined &&
4757
+ input.Filter !== null && {
4758
+ Filter: serializeAws_json1_1TargetedSentimentDetectionJobFilter(input.Filter, context),
4759
+ }),
4760
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4761
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4762
+ };
4763
+ };
4529
4764
  const serializeAws_json1_1ListTopicsDetectionJobsRequest = (input, context) => {
4530
4765
  return {
4531
4766
  ...(input.Filter !== undefined &&
@@ -4592,7 +4827,7 @@ const serializeAws_json1_1SentimentDetectionJobFilter = (input, context) => {
4592
4827
  const serializeAws_json1_1StartDocumentClassificationJobRequest = (input, context) => {
4593
4828
  var _a;
4594
4829
  return {
4595
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4830
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4596
4831
  ...(input.DataAccessRoleArn !== undefined &&
4597
4832
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4598
4833
  ...(input.DocumentClassifierArn !== undefined &&
@@ -4616,7 +4851,7 @@ const serializeAws_json1_1StartDocumentClassificationJobRequest = (input, contex
4616
4851
  const serializeAws_json1_1StartDominantLanguageDetectionJobRequest = (input, context) => {
4617
4852
  var _a;
4618
4853
  return {
4619
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4854
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4620
4855
  ...(input.DataAccessRoleArn !== undefined &&
4621
4856
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4622
4857
  ...(input.InputDataConfig !== undefined &&
@@ -4638,7 +4873,7 @@ const serializeAws_json1_1StartDominantLanguageDetectionJobRequest = (input, con
4638
4873
  const serializeAws_json1_1StartEntitiesDetectionJobRequest = (input, context) => {
4639
4874
  var _a;
4640
4875
  return {
4641
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4876
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4642
4877
  ...(input.DataAccessRoleArn !== undefined &&
4643
4878
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4644
4879
  ...(input.EntityRecognizerArn !== undefined &&
@@ -4663,7 +4898,7 @@ const serializeAws_json1_1StartEntitiesDetectionJobRequest = (input, context) =>
4663
4898
  const serializeAws_json1_1StartEventsDetectionJobRequest = (input, context) => {
4664
4899
  var _a;
4665
4900
  return {
4666
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4901
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4667
4902
  ...(input.DataAccessRoleArn !== undefined &&
4668
4903
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4669
4904
  ...(input.InputDataConfig !== undefined &&
@@ -4686,7 +4921,7 @@ const serializeAws_json1_1StartEventsDetectionJobRequest = (input, context) => {
4686
4921
  const serializeAws_json1_1StartKeyPhrasesDetectionJobRequest = (input, context) => {
4687
4922
  var _a;
4688
4923
  return {
4689
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4924
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4690
4925
  ...(input.DataAccessRoleArn !== undefined &&
4691
4926
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4692
4927
  ...(input.InputDataConfig !== undefined &&
@@ -4709,7 +4944,7 @@ const serializeAws_json1_1StartKeyPhrasesDetectionJobRequest = (input, context)
4709
4944
  const serializeAws_json1_1StartPiiEntitiesDetectionJobRequest = (input, context) => {
4710
4945
  var _a;
4711
4946
  return {
4712
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4947
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4713
4948
  ...(input.DataAccessRoleArn !== undefined &&
4714
4949
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4715
4950
  ...(input.InputDataConfig !== undefined &&
@@ -4733,7 +4968,30 @@ const serializeAws_json1_1StartPiiEntitiesDetectionJobRequest = (input, context)
4733
4968
  const serializeAws_json1_1StartSentimentDetectionJobRequest = (input, context) => {
4734
4969
  var _a;
4735
4970
  return {
4736
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
4971
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4972
+ ...(input.DataAccessRoleArn !== undefined &&
4973
+ input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4974
+ ...(input.InputDataConfig !== undefined &&
4975
+ input.InputDataConfig !== null && {
4976
+ InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
4977
+ }),
4978
+ ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
4979
+ ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
4980
+ ...(input.OutputDataConfig !== undefined &&
4981
+ input.OutputDataConfig !== null && {
4982
+ OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
4983
+ }),
4984
+ ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4985
+ ...(input.VolumeKmsKeyId !== undefined &&
4986
+ input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
4987
+ ...(input.VpcConfig !== undefined &&
4988
+ input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
4989
+ };
4990
+ };
4991
+ const serializeAws_json1_1StartTargetedSentimentDetectionJobRequest = (input, context) => {
4992
+ var _a;
4993
+ return {
4994
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4737
4995
  ...(input.DataAccessRoleArn !== undefined &&
4738
4996
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4739
4997
  ...(input.InputDataConfig !== undefined &&
@@ -4756,7 +5014,7 @@ const serializeAws_json1_1StartSentimentDetectionJobRequest = (input, context) =
4756
5014
  const serializeAws_json1_1StartTopicsDetectionJobRequest = (input, context) => {
4757
5015
  var _a;
4758
5016
  return {
4759
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
5017
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4760
5018
  ...(input.DataAccessRoleArn !== undefined &&
4761
5019
  input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
4762
5020
  ...(input.InputDataConfig !== undefined &&
@@ -4807,6 +5065,11 @@ const serializeAws_json1_1StopSentimentDetectionJobRequest = (input, context) =>
4807
5065
  ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
4808
5066
  };
4809
5067
  };
5068
+ const serializeAws_json1_1StopTargetedSentimentDetectionJobRequest = (input, context) => {
5069
+ return {
5070
+ ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
5071
+ };
5072
+ };
4810
5073
  const serializeAws_json1_1StopTrainingDocumentClassifierRequest = (input, context) => {
4811
5074
  return {
4812
5075
  ...(input.DocumentClassifierArn !== undefined &&
@@ -4861,6 +5124,16 @@ const serializeAws_json1_1TagResourceRequest = (input, context) => {
4861
5124
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4862
5125
  };
4863
5126
  };
5127
+ const serializeAws_json1_1TargetedSentimentDetectionJobFilter = (input, context) => {
5128
+ return {
5129
+ ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
5130
+ ...(input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus }),
5131
+ ...(input.SubmitTimeAfter !== undefined &&
5132
+ input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
5133
+ ...(input.SubmitTimeBefore !== undefined &&
5134
+ input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
5135
+ };
5136
+ };
4864
5137
  const serializeAws_json1_1TargetEventTypes = (input, context) => {
4865
5138
  return input
4866
5139
  .filter((e) => e != null)
@@ -4916,25 +5189,25 @@ const deserializeAws_json1_1AttributeNamesList = (output, context) => {
4916
5189
  if (entry === null) {
4917
5190
  return null;
4918
5191
  }
4919
- return smithy_client_1.expectString(entry);
5192
+ return (0, smithy_client_1.expectString)(entry);
4920
5193
  });
4921
5194
  return retVal;
4922
5195
  };
4923
5196
  const deserializeAws_json1_1AugmentedManifestsListItem = (output, context) => {
4924
5197
  return {
4925
- AnnotationDataS3Uri: smithy_client_1.expectString(output.AnnotationDataS3Uri),
5198
+ AnnotationDataS3Uri: (0, smithy_client_1.expectString)(output.AnnotationDataS3Uri),
4926
5199
  AttributeNames: output.AttributeNames !== undefined && output.AttributeNames !== null
4927
5200
  ? deserializeAws_json1_1AttributeNamesList(output.AttributeNames, context)
4928
5201
  : undefined,
4929
- DocumentType: smithy_client_1.expectString(output.DocumentType),
4930
- S3Uri: smithy_client_1.expectString(output.S3Uri),
4931
- SourceDocumentsS3Uri: smithy_client_1.expectString(output.SourceDocumentsS3Uri),
4932
- Split: smithy_client_1.expectString(output.Split),
5202
+ DocumentType: (0, smithy_client_1.expectString)(output.DocumentType),
5203
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
5204
+ SourceDocumentsS3Uri: (0, smithy_client_1.expectString)(output.SourceDocumentsS3Uri),
5205
+ Split: (0, smithy_client_1.expectString)(output.Split),
4933
5206
  };
4934
5207
  };
4935
5208
  const deserializeAws_json1_1BatchDetectDominantLanguageItemResult = (output, context) => {
4936
5209
  return {
4937
- Index: smithy_client_1.expectInt32(output.Index),
5210
+ Index: (0, smithy_client_1.expectInt32)(output.Index),
4938
5211
  Languages: output.Languages !== undefined && output.Languages !== null
4939
5212
  ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context)
4940
5213
  : undefined,
@@ -4955,7 +5228,7 @@ const deserializeAws_json1_1BatchDetectEntitiesItemResult = (output, context) =>
4955
5228
  Entities: output.Entities !== undefined && output.Entities !== null
4956
5229
  ? deserializeAws_json1_1ListOfEntities(output.Entities, context)
4957
5230
  : undefined,
4958
- Index: smithy_client_1.expectInt32(output.Index),
5231
+ Index: (0, smithy_client_1.expectInt32)(output.Index),
4959
5232
  };
4960
5233
  };
4961
5234
  const deserializeAws_json1_1BatchDetectEntitiesResponse = (output, context) => {
@@ -4970,7 +5243,7 @@ const deserializeAws_json1_1BatchDetectEntitiesResponse = (output, context) => {
4970
5243
  };
4971
5244
  const deserializeAws_json1_1BatchDetectKeyPhrasesItemResult = (output, context) => {
4972
5245
  return {
4973
- Index: smithy_client_1.expectInt32(output.Index),
5246
+ Index: (0, smithy_client_1.expectInt32)(output.Index),
4974
5247
  KeyPhrases: output.KeyPhrases !== undefined && output.KeyPhrases !== null
4975
5248
  ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context)
4976
5249
  : undefined,
@@ -4988,8 +5261,8 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesResponse = (output, context) =>
4988
5261
  };
4989
5262
  const deserializeAws_json1_1BatchDetectSentimentItemResult = (output, context) => {
4990
5263
  return {
4991
- Index: smithy_client_1.expectInt32(output.Index),
4992
- Sentiment: smithy_client_1.expectString(output.Sentiment),
5264
+ Index: (0, smithy_client_1.expectInt32)(output.Index),
5265
+ Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
4993
5266
  SentimentScore: output.SentimentScore !== undefined && output.SentimentScore !== null
4994
5267
  ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context)
4995
5268
  : undefined,
@@ -5007,7 +5280,7 @@ const deserializeAws_json1_1BatchDetectSentimentResponse = (output, context) =>
5007
5280
  };
5008
5281
  const deserializeAws_json1_1BatchDetectSyntaxItemResult = (output, context) => {
5009
5282
  return {
5010
- Index: smithy_client_1.expectInt32(output.Index),
5283
+ Index: (0, smithy_client_1.expectInt32)(output.Index),
5011
5284
  SyntaxTokens: output.SyntaxTokens !== undefined && output.SyntaxTokens !== null
5012
5285
  ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context)
5013
5286
  : undefined,
@@ -5025,9 +5298,9 @@ const deserializeAws_json1_1BatchDetectSyntaxResponse = (output, context) => {
5025
5298
  };
5026
5299
  const deserializeAws_json1_1BatchItemError = (output, context) => {
5027
5300
  return {
5028
- ErrorCode: smithy_client_1.expectString(output.ErrorCode),
5029
- ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
5030
- Index: smithy_client_1.expectInt32(output.Index),
5301
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
5302
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
5303
+ Index: (0, smithy_client_1.expectInt32)(output.Index),
5031
5304
  };
5032
5305
  };
5033
5306
  const deserializeAws_json1_1BatchItemErrorList = (output, context) => {
@@ -5043,19 +5316,19 @@ const deserializeAws_json1_1BatchItemErrorList = (output, context) => {
5043
5316
  };
5044
5317
  const deserializeAws_json1_1BatchSizeLimitExceededException = (output, context) => {
5045
5318
  return {
5046
- Message: smithy_client_1.expectString(output.Message),
5319
+ Message: (0, smithy_client_1.expectString)(output.Message),
5047
5320
  };
5048
5321
  };
5049
5322
  const deserializeAws_json1_1ClassifierEvaluationMetrics = (output, context) => {
5050
5323
  return {
5051
- Accuracy: smithy_client_1.limitedParseDouble(output.Accuracy),
5052
- F1Score: smithy_client_1.limitedParseDouble(output.F1Score),
5053
- HammingLoss: smithy_client_1.limitedParseDouble(output.HammingLoss),
5054
- MicroF1Score: smithy_client_1.limitedParseDouble(output.MicroF1Score),
5055
- MicroPrecision: smithy_client_1.limitedParseDouble(output.MicroPrecision),
5056
- MicroRecall: smithy_client_1.limitedParseDouble(output.MicroRecall),
5057
- Precision: smithy_client_1.limitedParseDouble(output.Precision),
5058
- Recall: smithy_client_1.limitedParseDouble(output.Recall),
5324
+ Accuracy: (0, smithy_client_1.limitedParseDouble)(output.Accuracy),
5325
+ F1Score: (0, smithy_client_1.limitedParseDouble)(output.F1Score),
5326
+ HammingLoss: (0, smithy_client_1.limitedParseDouble)(output.HammingLoss),
5327
+ MicroF1Score: (0, smithy_client_1.limitedParseDouble)(output.MicroF1Score),
5328
+ MicroPrecision: (0, smithy_client_1.limitedParseDouble)(output.MicroPrecision),
5329
+ MicroRecall: (0, smithy_client_1.limitedParseDouble)(output.MicroRecall),
5330
+ Precision: (0, smithy_client_1.limitedParseDouble)(output.Precision),
5331
+ Recall: (0, smithy_client_1.limitedParseDouble)(output.Recall),
5059
5332
  };
5060
5333
  };
5061
5334
  const deserializeAws_json1_1ClassifierMetadata = (output, context) => {
@@ -5063,9 +5336,9 @@ const deserializeAws_json1_1ClassifierMetadata = (output, context) => {
5063
5336
  EvaluationMetrics: output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null
5064
5337
  ? deserializeAws_json1_1ClassifierEvaluationMetrics(output.EvaluationMetrics, context)
5065
5338
  : undefined,
5066
- NumberOfLabels: smithy_client_1.expectInt32(output.NumberOfLabels),
5067
- NumberOfTestDocuments: smithy_client_1.expectInt32(output.NumberOfTestDocuments),
5068
- NumberOfTrainedDocuments: smithy_client_1.expectInt32(output.NumberOfTrainedDocuments),
5339
+ NumberOfLabels: (0, smithy_client_1.expectInt32)(output.NumberOfLabels),
5340
+ NumberOfTestDocuments: (0, smithy_client_1.expectInt32)(output.NumberOfTestDocuments),
5341
+ NumberOfTrainedDocuments: (0, smithy_client_1.expectInt32)(output.NumberOfTrainedDocuments),
5069
5342
  };
5070
5343
  };
5071
5344
  const deserializeAws_json1_1ClassifyDocumentResponse = (output, context) => {
@@ -5080,7 +5353,7 @@ const deserializeAws_json1_1ClassifyDocumentResponse = (output, context) => {
5080
5353
  };
5081
5354
  const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
5082
5355
  return {
5083
- Message: smithy_client_1.expectString(output.Message),
5356
+ Message: (0, smithy_client_1.expectString)(output.Message),
5084
5357
  };
5085
5358
  };
5086
5359
  const deserializeAws_json1_1ContainsPiiEntitiesResponse = (output, context) => {
@@ -5092,17 +5365,17 @@ const deserializeAws_json1_1ContainsPiiEntitiesResponse = (output, context) => {
5092
5365
  };
5093
5366
  const deserializeAws_json1_1CreateDocumentClassifierResponse = (output, context) => {
5094
5367
  return {
5095
- DocumentClassifierArn: smithy_client_1.expectString(output.DocumentClassifierArn),
5368
+ DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
5096
5369
  };
5097
5370
  };
5098
5371
  const deserializeAws_json1_1CreateEndpointResponse = (output, context) => {
5099
5372
  return {
5100
- EndpointArn: smithy_client_1.expectString(output.EndpointArn),
5373
+ EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
5101
5374
  };
5102
5375
  };
5103
5376
  const deserializeAws_json1_1CreateEntityRecognizerResponse = (output, context) => {
5104
5377
  return {
5105
- EntityRecognizerArn: smithy_client_1.expectString(output.EntityRecognizerArn),
5378
+ EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
5106
5379
  };
5107
5380
  };
5108
5381
  const deserializeAws_json1_1DeleteDocumentClassifierResponse = (output, context) => {
@@ -5184,13 +5457,13 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobResponse = (output, c
5184
5457
  const deserializeAws_json1_1DescribeResourcePolicyResponse = (output, context) => {
5185
5458
  return {
5186
5459
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
5187
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
5460
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5188
5461
  : undefined,
5189
5462
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5190
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
5463
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
5191
5464
  : undefined,
5192
- PolicyRevisionId: smithy_client_1.expectString(output.PolicyRevisionId),
5193
- ResourcePolicy: smithy_client_1.expectString(output.ResourcePolicy),
5465
+ PolicyRevisionId: (0, smithy_client_1.expectString)(output.PolicyRevisionId),
5466
+ ResourcePolicy: (0, smithy_client_1.expectString)(output.ResourcePolicy),
5194
5467
  };
5195
5468
  };
5196
5469
  const deserializeAws_json1_1DescribeSentimentDetectionJobResponse = (output, context) => {
@@ -5200,6 +5473,14 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobResponse = (output, con
5200
5473
  : undefined,
5201
5474
  };
5202
5475
  };
5476
+ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse = (output, context) => {
5477
+ return {
5478
+ TargetedSentimentDetectionJobProperties: output.TargetedSentimentDetectionJobProperties !== undefined &&
5479
+ output.TargetedSentimentDetectionJobProperties !== null
5480
+ ? deserializeAws_json1_1TargetedSentimentDetectionJobProperties(output.TargetedSentimentDetectionJobProperties, context)
5481
+ : undefined,
5482
+ };
5483
+ };
5203
5484
  const deserializeAws_json1_1DescribeTopicsDetectionJobResponse = (output, context) => {
5204
5485
  return {
5205
5486
  TopicsDetectionJobProperties: output.TopicsDetectionJobProperties !== undefined && output.TopicsDetectionJobProperties !== null
@@ -5237,7 +5518,7 @@ const deserializeAws_json1_1DetectPiiEntitiesResponse = (output, context) => {
5237
5518
  };
5238
5519
  const deserializeAws_json1_1DetectSentimentResponse = (output, context) => {
5239
5520
  return {
5240
- Sentiment: smithy_client_1.expectString(output.Sentiment),
5521
+ Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
5241
5522
  SentimentScore: output.SentimentScore !== undefined && output.SentimentScore !== null
5242
5523
  ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context)
5243
5524
  : undefined,
@@ -5252,32 +5533,32 @@ const deserializeAws_json1_1DetectSyntaxResponse = (output, context) => {
5252
5533
  };
5253
5534
  const deserializeAws_json1_1DocumentClass = (output, context) => {
5254
5535
  return {
5255
- Name: smithy_client_1.expectString(output.Name),
5256
- Score: smithy_client_1.limitedParseFloat32(output.Score),
5536
+ Name: (0, smithy_client_1.expectString)(output.Name),
5537
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
5257
5538
  };
5258
5539
  };
5259
5540
  const deserializeAws_json1_1DocumentClassificationJobProperties = (output, context) => {
5260
5541
  return {
5261
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
5262
- DocumentClassifierArn: smithy_client_1.expectString(output.DocumentClassifierArn),
5542
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5543
+ DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
5263
5544
  EndTime: output.EndTime !== undefined && output.EndTime !== null
5264
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
5545
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5265
5546
  : undefined,
5266
5547
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
5267
5548
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
5268
5549
  : undefined,
5269
- JobArn: smithy_client_1.expectString(output.JobArn),
5270
- JobId: smithy_client_1.expectString(output.JobId),
5271
- JobName: smithy_client_1.expectString(output.JobName),
5272
- JobStatus: smithy_client_1.expectString(output.JobStatus),
5273
- Message: smithy_client_1.expectString(output.Message),
5550
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
5551
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
5552
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
5553
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
5554
+ Message: (0, smithy_client_1.expectString)(output.Message),
5274
5555
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
5275
5556
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
5276
5557
  : undefined,
5277
5558
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
5278
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
5559
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
5279
5560
  : undefined,
5280
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
5561
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
5281
5562
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5282
5563
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5283
5564
  : undefined,
@@ -5310,16 +5591,16 @@ const deserializeAws_json1_1DocumentClassifierInputDataConfig = (output, context
5310
5591
  AugmentedManifests: output.AugmentedManifests !== undefined && output.AugmentedManifests !== null
5311
5592
  ? deserializeAws_json1_1DocumentClassifierAugmentedManifestsList(output.AugmentedManifests, context)
5312
5593
  : undefined,
5313
- DataFormat: smithy_client_1.expectString(output.DataFormat),
5314
- LabelDelimiter: smithy_client_1.expectString(output.LabelDelimiter),
5315
- S3Uri: smithy_client_1.expectString(output.S3Uri),
5316
- TestS3Uri: smithy_client_1.expectString(output.TestS3Uri),
5594
+ DataFormat: (0, smithy_client_1.expectString)(output.DataFormat),
5595
+ LabelDelimiter: (0, smithy_client_1.expectString)(output.LabelDelimiter),
5596
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
5597
+ TestS3Uri: (0, smithy_client_1.expectString)(output.TestS3Uri),
5317
5598
  };
5318
5599
  };
5319
5600
  const deserializeAws_json1_1DocumentClassifierOutputDataConfig = (output, context) => {
5320
5601
  return {
5321
- KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
5322
- S3Uri: smithy_client_1.expectString(output.S3Uri),
5602
+ KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
5603
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
5323
5604
  };
5324
5605
  };
5325
5606
  const deserializeAws_json1_1DocumentClassifierProperties = (output, context) => {
@@ -5327,34 +5608,34 @@ const deserializeAws_json1_1DocumentClassifierProperties = (output, context) =>
5327
5608
  ClassifierMetadata: output.ClassifierMetadata !== undefined && output.ClassifierMetadata !== null
5328
5609
  ? deserializeAws_json1_1ClassifierMetadata(output.ClassifierMetadata, context)
5329
5610
  : undefined,
5330
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
5331
- DocumentClassifierArn: smithy_client_1.expectString(output.DocumentClassifierArn),
5611
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5612
+ DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
5332
5613
  EndTime: output.EndTime !== undefined && output.EndTime !== null
5333
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
5614
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5334
5615
  : undefined,
5335
5616
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
5336
5617
  ? deserializeAws_json1_1DocumentClassifierInputDataConfig(output.InputDataConfig, context)
5337
5618
  : undefined,
5338
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
5339
- Message: smithy_client_1.expectString(output.Message),
5340
- Mode: smithy_client_1.expectString(output.Mode),
5341
- ModelKmsKeyId: smithy_client_1.expectString(output.ModelKmsKeyId),
5619
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
5620
+ Message: (0, smithy_client_1.expectString)(output.Message),
5621
+ Mode: (0, smithy_client_1.expectString)(output.Mode),
5622
+ ModelKmsKeyId: (0, smithy_client_1.expectString)(output.ModelKmsKeyId),
5342
5623
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
5343
5624
  ? deserializeAws_json1_1DocumentClassifierOutputDataConfig(output.OutputDataConfig, context)
5344
5625
  : undefined,
5345
- SourceModelArn: smithy_client_1.expectString(output.SourceModelArn),
5346
- Status: smithy_client_1.expectString(output.Status),
5626
+ SourceModelArn: (0, smithy_client_1.expectString)(output.SourceModelArn),
5627
+ Status: (0, smithy_client_1.expectString)(output.Status),
5347
5628
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
5348
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
5629
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
5349
5630
  : undefined,
5350
5631
  TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
5351
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TrainingEndTime)))
5632
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingEndTime)))
5352
5633
  : undefined,
5353
5634
  TrainingStartTime: output.TrainingStartTime !== undefined && output.TrainingStartTime !== null
5354
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TrainingStartTime)))
5635
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingStartTime)))
5355
5636
  : undefined,
5356
- VersionName: smithy_client_1.expectString(output.VersionName),
5357
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
5637
+ VersionName: (0, smithy_client_1.expectString)(output.VersionName),
5638
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
5358
5639
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5359
5640
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5360
5641
  : undefined,
@@ -5384,25 +5665,25 @@ const deserializeAws_json1_1DocumentClassifierSummariesList = (output, context)
5384
5665
  };
5385
5666
  const deserializeAws_json1_1DocumentClassifierSummary = (output, context) => {
5386
5667
  return {
5387
- DocumentClassifierName: smithy_client_1.expectString(output.DocumentClassifierName),
5668
+ DocumentClassifierName: (0, smithy_client_1.expectString)(output.DocumentClassifierName),
5388
5669
  LatestVersionCreatedAt: output.LatestVersionCreatedAt !== undefined && output.LatestVersionCreatedAt !== null
5389
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LatestVersionCreatedAt)))
5670
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestVersionCreatedAt)))
5390
5671
  : undefined,
5391
- LatestVersionName: smithy_client_1.expectString(output.LatestVersionName),
5392
- LatestVersionStatus: smithy_client_1.expectString(output.LatestVersionStatus),
5393
- NumberOfVersions: smithy_client_1.expectInt32(output.NumberOfVersions),
5672
+ LatestVersionName: (0, smithy_client_1.expectString)(output.LatestVersionName),
5673
+ LatestVersionStatus: (0, smithy_client_1.expectString)(output.LatestVersionStatus),
5674
+ NumberOfVersions: (0, smithy_client_1.expectInt32)(output.NumberOfVersions),
5394
5675
  };
5395
5676
  };
5396
5677
  const deserializeAws_json1_1DocumentLabel = (output, context) => {
5397
5678
  return {
5398
- Name: smithy_client_1.expectString(output.Name),
5399
- Score: smithy_client_1.limitedParseFloat32(output.Score),
5679
+ Name: (0, smithy_client_1.expectString)(output.Name),
5680
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
5400
5681
  };
5401
5682
  };
5402
5683
  const deserializeAws_json1_1DocumentReaderConfig = (output, context) => {
5403
5684
  return {
5404
- DocumentReadAction: smithy_client_1.expectString(output.DocumentReadAction),
5405
- DocumentReadMode: smithy_client_1.expectString(output.DocumentReadMode),
5685
+ DocumentReadAction: (0, smithy_client_1.expectString)(output.DocumentReadAction),
5686
+ DocumentReadMode: (0, smithy_client_1.expectString)(output.DocumentReadMode),
5406
5687
  FeatureTypes: output.FeatureTypes !== undefined && output.FeatureTypes !== null
5407
5688
  ? deserializeAws_json1_1ListOfDocumentReadFeatureTypes(output.FeatureTypes, context)
5408
5689
  : undefined,
@@ -5410,31 +5691,31 @@ const deserializeAws_json1_1DocumentReaderConfig = (output, context) => {
5410
5691
  };
5411
5692
  const deserializeAws_json1_1DominantLanguage = (output, context) => {
5412
5693
  return {
5413
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
5414
- Score: smithy_client_1.limitedParseFloat32(output.Score),
5694
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
5695
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
5415
5696
  };
5416
5697
  };
5417
5698
  const deserializeAws_json1_1DominantLanguageDetectionJobProperties = (output, context) => {
5418
5699
  return {
5419
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
5700
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5420
5701
  EndTime: output.EndTime !== undefined && output.EndTime !== null
5421
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
5702
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5422
5703
  : undefined,
5423
5704
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
5424
5705
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
5425
5706
  : undefined,
5426
- JobArn: smithy_client_1.expectString(output.JobArn),
5427
- JobId: smithy_client_1.expectString(output.JobId),
5428
- JobName: smithy_client_1.expectString(output.JobName),
5429
- JobStatus: smithy_client_1.expectString(output.JobStatus),
5430
- Message: smithy_client_1.expectString(output.Message),
5707
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
5708
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
5709
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
5710
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
5711
+ Message: (0, smithy_client_1.expectString)(output.Message),
5431
5712
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
5432
5713
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
5433
5714
  : undefined,
5434
5715
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
5435
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
5716
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
5436
5717
  : undefined,
5437
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
5718
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
5438
5719
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5439
5720
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5440
5721
  : undefined,
@@ -5454,20 +5735,20 @@ const deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = (output
5454
5735
  const deserializeAws_json1_1EndpointProperties = (output, context) => {
5455
5736
  return {
5456
5737
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
5457
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
5458
- : undefined,
5459
- CurrentInferenceUnits: smithy_client_1.expectInt32(output.CurrentInferenceUnits),
5460
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
5461
- DesiredDataAccessRoleArn: smithy_client_1.expectString(output.DesiredDataAccessRoleArn),
5462
- DesiredInferenceUnits: smithy_client_1.expectInt32(output.DesiredInferenceUnits),
5463
- DesiredModelArn: smithy_client_1.expectString(output.DesiredModelArn),
5464
- EndpointArn: smithy_client_1.expectString(output.EndpointArn),
5738
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5739
+ : undefined,
5740
+ CurrentInferenceUnits: (0, smithy_client_1.expectInt32)(output.CurrentInferenceUnits),
5741
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5742
+ DesiredDataAccessRoleArn: (0, smithy_client_1.expectString)(output.DesiredDataAccessRoleArn),
5743
+ DesiredInferenceUnits: (0, smithy_client_1.expectInt32)(output.DesiredInferenceUnits),
5744
+ DesiredModelArn: (0, smithy_client_1.expectString)(output.DesiredModelArn),
5745
+ EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
5465
5746
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5466
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
5747
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
5467
5748
  : undefined,
5468
- Message: smithy_client_1.expectString(output.Message),
5469
- ModelArn: smithy_client_1.expectString(output.ModelArn),
5470
- Status: smithy_client_1.expectString(output.Status),
5749
+ Message: (0, smithy_client_1.expectString)(output.Message),
5750
+ ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
5751
+ Status: (0, smithy_client_1.expectString)(output.Status),
5471
5752
  };
5472
5753
  };
5473
5754
  const deserializeAws_json1_1EndpointPropertiesList = (output, context) => {
@@ -5483,27 +5764,27 @@ const deserializeAws_json1_1EndpointPropertiesList = (output, context) => {
5483
5764
  };
5484
5765
  const deserializeAws_json1_1EntitiesDetectionJobProperties = (output, context) => {
5485
5766
  return {
5486
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
5767
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5487
5768
  EndTime: output.EndTime !== undefined && output.EndTime !== null
5488
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
5769
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5489
5770
  : undefined,
5490
- EntityRecognizerArn: smithy_client_1.expectString(output.EntityRecognizerArn),
5771
+ EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
5491
5772
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
5492
5773
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
5493
5774
  : undefined,
5494
- JobArn: smithy_client_1.expectString(output.JobArn),
5495
- JobId: smithy_client_1.expectString(output.JobId),
5496
- JobName: smithy_client_1.expectString(output.JobName),
5497
- JobStatus: smithy_client_1.expectString(output.JobStatus),
5498
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
5499
- Message: smithy_client_1.expectString(output.Message),
5775
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
5776
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
5777
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
5778
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
5779
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
5780
+ Message: (0, smithy_client_1.expectString)(output.Message),
5500
5781
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
5501
5782
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
5502
5783
  : undefined,
5503
5784
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
5504
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
5785
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
5505
5786
  : undefined,
5506
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
5787
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
5507
5788
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5508
5789
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5509
5790
  : undefined,
@@ -5522,23 +5803,23 @@ const deserializeAws_json1_1EntitiesDetectionJobPropertiesList = (output, contex
5522
5803
  };
5523
5804
  const deserializeAws_json1_1Entity = (output, context) => {
5524
5805
  return {
5525
- BeginOffset: smithy_client_1.expectInt32(output.BeginOffset),
5526
- EndOffset: smithy_client_1.expectInt32(output.EndOffset),
5527
- Score: smithy_client_1.limitedParseFloat32(output.Score),
5528
- Text: smithy_client_1.expectString(output.Text),
5529
- Type: smithy_client_1.expectString(output.Type),
5806
+ BeginOffset: (0, smithy_client_1.expectInt32)(output.BeginOffset),
5807
+ EndOffset: (0, smithy_client_1.expectInt32)(output.EndOffset),
5808
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
5809
+ Text: (0, smithy_client_1.expectString)(output.Text),
5810
+ Type: (0, smithy_client_1.expectString)(output.Type),
5530
5811
  };
5531
5812
  };
5532
5813
  const deserializeAws_json1_1EntityLabel = (output, context) => {
5533
5814
  return {
5534
- Name: smithy_client_1.expectString(output.Name),
5535
- Score: smithy_client_1.limitedParseFloat32(output.Score),
5815
+ Name: (0, smithy_client_1.expectString)(output.Name),
5816
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
5536
5817
  };
5537
5818
  };
5538
5819
  const deserializeAws_json1_1EntityRecognizerAnnotations = (output, context) => {
5539
5820
  return {
5540
- S3Uri: smithy_client_1.expectString(output.S3Uri),
5541
- TestS3Uri: smithy_client_1.expectString(output.TestS3Uri),
5821
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
5822
+ TestS3Uri: (0, smithy_client_1.expectString)(output.TestS3Uri),
5542
5823
  };
5543
5824
  };
5544
5825
  const deserializeAws_json1_1EntityRecognizerAugmentedManifestsList = (output, context) => {
@@ -5554,21 +5835,21 @@ const deserializeAws_json1_1EntityRecognizerAugmentedManifestsList = (output, co
5554
5835
  };
5555
5836
  const deserializeAws_json1_1EntityRecognizerDocuments = (output, context) => {
5556
5837
  return {
5557
- InputFormat: smithy_client_1.expectString(output.InputFormat),
5558
- S3Uri: smithy_client_1.expectString(output.S3Uri),
5559
- TestS3Uri: smithy_client_1.expectString(output.TestS3Uri),
5838
+ InputFormat: (0, smithy_client_1.expectString)(output.InputFormat),
5839
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
5840
+ TestS3Uri: (0, smithy_client_1.expectString)(output.TestS3Uri),
5560
5841
  };
5561
5842
  };
5562
5843
  const deserializeAws_json1_1EntityRecognizerEntityList = (output, context) => {
5563
5844
  return {
5564
- S3Uri: smithy_client_1.expectString(output.S3Uri),
5845
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
5565
5846
  };
5566
5847
  };
5567
5848
  const deserializeAws_json1_1EntityRecognizerEvaluationMetrics = (output, context) => {
5568
5849
  return {
5569
- F1Score: smithy_client_1.limitedParseDouble(output.F1Score),
5570
- Precision: smithy_client_1.limitedParseDouble(output.Precision),
5571
- Recall: smithy_client_1.limitedParseDouble(output.Recall),
5850
+ F1Score: (0, smithy_client_1.limitedParseDouble)(output.F1Score),
5851
+ Precision: (0, smithy_client_1.limitedParseDouble)(output.Precision),
5852
+ Recall: (0, smithy_client_1.limitedParseDouble)(output.Recall),
5572
5853
  };
5573
5854
  };
5574
5855
  const deserializeAws_json1_1EntityRecognizerInputDataConfig = (output, context) => {
@@ -5579,7 +5860,7 @@ const deserializeAws_json1_1EntityRecognizerInputDataConfig = (output, context)
5579
5860
  AugmentedManifests: output.AugmentedManifests !== undefined && output.AugmentedManifests !== null
5580
5861
  ? deserializeAws_json1_1EntityRecognizerAugmentedManifestsList(output.AugmentedManifests, context)
5581
5862
  : undefined,
5582
- DataFormat: smithy_client_1.expectString(output.DataFormat),
5863
+ DataFormat: (0, smithy_client_1.expectString)(output.DataFormat),
5583
5864
  Documents: output.Documents !== undefined && output.Documents !== null
5584
5865
  ? deserializeAws_json1_1EntityRecognizerDocuments(output.Documents, context)
5585
5866
  : undefined,
@@ -5599,8 +5880,8 @@ const deserializeAws_json1_1EntityRecognizerMetadata = (output, context) => {
5599
5880
  EvaluationMetrics: output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null
5600
5881
  ? deserializeAws_json1_1EntityRecognizerEvaluationMetrics(output.EvaluationMetrics, context)
5601
5882
  : undefined,
5602
- NumberOfTestDocuments: smithy_client_1.expectInt32(output.NumberOfTestDocuments),
5603
- NumberOfTrainedDocuments: smithy_client_1.expectInt32(output.NumberOfTrainedDocuments),
5883
+ NumberOfTestDocuments: (0, smithy_client_1.expectInt32)(output.NumberOfTestDocuments),
5884
+ NumberOfTrainedDocuments: (0, smithy_client_1.expectInt32)(output.NumberOfTrainedDocuments),
5604
5885
  };
5605
5886
  };
5606
5887
  const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList = (output, context) => {
@@ -5619,39 +5900,39 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = (outpu
5619
5900
  EvaluationMetrics: output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null
5620
5901
  ? deserializeAws_json1_1EntityTypesEvaluationMetrics(output.EvaluationMetrics, context)
5621
5902
  : undefined,
5622
- NumberOfTrainMentions: smithy_client_1.expectInt32(output.NumberOfTrainMentions),
5623
- Type: smithy_client_1.expectString(output.Type),
5903
+ NumberOfTrainMentions: (0, smithy_client_1.expectInt32)(output.NumberOfTrainMentions),
5904
+ Type: (0, smithy_client_1.expectString)(output.Type),
5624
5905
  };
5625
5906
  };
5626
5907
  const deserializeAws_json1_1EntityRecognizerProperties = (output, context) => {
5627
5908
  return {
5628
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
5909
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5629
5910
  EndTime: output.EndTime !== undefined && output.EndTime !== null
5630
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
5911
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5631
5912
  : undefined,
5632
- EntityRecognizerArn: smithy_client_1.expectString(output.EntityRecognizerArn),
5913
+ EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
5633
5914
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
5634
5915
  ? deserializeAws_json1_1EntityRecognizerInputDataConfig(output.InputDataConfig, context)
5635
5916
  : undefined,
5636
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
5637
- Message: smithy_client_1.expectString(output.Message),
5638
- ModelKmsKeyId: smithy_client_1.expectString(output.ModelKmsKeyId),
5917
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
5918
+ Message: (0, smithy_client_1.expectString)(output.Message),
5919
+ ModelKmsKeyId: (0, smithy_client_1.expectString)(output.ModelKmsKeyId),
5639
5920
  RecognizerMetadata: output.RecognizerMetadata !== undefined && output.RecognizerMetadata !== null
5640
5921
  ? deserializeAws_json1_1EntityRecognizerMetadata(output.RecognizerMetadata, context)
5641
5922
  : undefined,
5642
- SourceModelArn: smithy_client_1.expectString(output.SourceModelArn),
5643
- Status: smithy_client_1.expectString(output.Status),
5923
+ SourceModelArn: (0, smithy_client_1.expectString)(output.SourceModelArn),
5924
+ Status: (0, smithy_client_1.expectString)(output.Status),
5644
5925
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
5645
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
5926
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
5646
5927
  : undefined,
5647
5928
  TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
5648
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TrainingEndTime)))
5929
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingEndTime)))
5649
5930
  : undefined,
5650
5931
  TrainingStartTime: output.TrainingStartTime !== undefined && output.TrainingStartTime !== null
5651
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TrainingStartTime)))
5932
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingStartTime)))
5652
5933
  : undefined,
5653
- VersionName: smithy_client_1.expectString(output.VersionName),
5654
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
5934
+ VersionName: (0, smithy_client_1.expectString)(output.VersionName),
5935
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
5655
5936
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5656
5937
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5657
5938
  : undefined,
@@ -5682,19 +5963,19 @@ const deserializeAws_json1_1EntityRecognizerSummariesList = (output, context) =>
5682
5963
  const deserializeAws_json1_1EntityRecognizerSummary = (output, context) => {
5683
5964
  return {
5684
5965
  LatestVersionCreatedAt: output.LatestVersionCreatedAt !== undefined && output.LatestVersionCreatedAt !== null
5685
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LatestVersionCreatedAt)))
5966
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestVersionCreatedAt)))
5686
5967
  : undefined,
5687
- LatestVersionName: smithy_client_1.expectString(output.LatestVersionName),
5688
- LatestVersionStatus: smithy_client_1.expectString(output.LatestVersionStatus),
5689
- NumberOfVersions: smithy_client_1.expectInt32(output.NumberOfVersions),
5690
- RecognizerName: smithy_client_1.expectString(output.RecognizerName),
5968
+ LatestVersionName: (0, smithy_client_1.expectString)(output.LatestVersionName),
5969
+ LatestVersionStatus: (0, smithy_client_1.expectString)(output.LatestVersionStatus),
5970
+ NumberOfVersions: (0, smithy_client_1.expectInt32)(output.NumberOfVersions),
5971
+ RecognizerName: (0, smithy_client_1.expectString)(output.RecognizerName),
5691
5972
  };
5692
5973
  };
5693
5974
  const deserializeAws_json1_1EntityTypesEvaluationMetrics = (output, context) => {
5694
5975
  return {
5695
- F1Score: smithy_client_1.limitedParseDouble(output.F1Score),
5696
- Precision: smithy_client_1.limitedParseDouble(output.Precision),
5697
- Recall: smithy_client_1.limitedParseDouble(output.Recall),
5976
+ F1Score: (0, smithy_client_1.limitedParseDouble)(output.F1Score),
5977
+ Precision: (0, smithy_client_1.limitedParseDouble)(output.Precision),
5978
+ Recall: (0, smithy_client_1.limitedParseDouble)(output.Recall),
5698
5979
  };
5699
5980
  };
5700
5981
  const deserializeAws_json1_1EntityTypesList = (output, context) => {
@@ -5710,29 +5991,29 @@ const deserializeAws_json1_1EntityTypesList = (output, context) => {
5710
5991
  };
5711
5992
  const deserializeAws_json1_1EntityTypesListItem = (output, context) => {
5712
5993
  return {
5713
- Type: smithy_client_1.expectString(output.Type),
5994
+ Type: (0, smithy_client_1.expectString)(output.Type),
5714
5995
  };
5715
5996
  };
5716
5997
  const deserializeAws_json1_1EventsDetectionJobProperties = (output, context) => {
5717
5998
  return {
5718
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
5999
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5719
6000
  EndTime: output.EndTime !== undefined && output.EndTime !== null
5720
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
6001
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5721
6002
  : undefined,
5722
6003
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
5723
6004
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
5724
6005
  : undefined,
5725
- JobArn: smithy_client_1.expectString(output.JobArn),
5726
- JobId: smithy_client_1.expectString(output.JobId),
5727
- JobName: smithy_client_1.expectString(output.JobName),
5728
- JobStatus: smithy_client_1.expectString(output.JobStatus),
5729
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
5730
- Message: smithy_client_1.expectString(output.Message),
6006
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6007
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6008
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
6009
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6010
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
6011
+ Message: (0, smithy_client_1.expectString)(output.Message),
5731
6012
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
5732
6013
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
5733
6014
  : undefined,
5734
6015
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
5735
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
6016
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
5736
6017
  : undefined,
5737
6018
  TargetEventTypes: output.TargetEventTypes !== undefined && output.TargetEventTypes !== null
5738
6019
  ? deserializeAws_json1_1TargetEventTypes(output.TargetEventTypes, context)
@@ -5752,7 +6033,7 @@ const deserializeAws_json1_1EventsDetectionJobPropertiesList = (output, context)
5752
6033
  };
5753
6034
  const deserializeAws_json1_1ImportModelResponse = (output, context) => {
5754
6035
  return {
5755
- ModelArn: smithy_client_1.expectString(output.ModelArn),
6036
+ ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
5756
6037
  };
5757
6038
  };
5758
6039
  const deserializeAws_json1_1InputDataConfig = (output, context) => {
@@ -5760,60 +6041,60 @@ const deserializeAws_json1_1InputDataConfig = (output, context) => {
5760
6041
  DocumentReaderConfig: output.DocumentReaderConfig !== undefined && output.DocumentReaderConfig !== null
5761
6042
  ? deserializeAws_json1_1DocumentReaderConfig(output.DocumentReaderConfig, context)
5762
6043
  : undefined,
5763
- InputFormat: smithy_client_1.expectString(output.InputFormat),
5764
- S3Uri: smithy_client_1.expectString(output.S3Uri),
6044
+ InputFormat: (0, smithy_client_1.expectString)(output.InputFormat),
6045
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
5765
6046
  };
5766
6047
  };
5767
6048
  const deserializeAws_json1_1InternalServerException = (output, context) => {
5768
6049
  return {
5769
- Message: smithy_client_1.expectString(output.Message),
6050
+ Message: (0, smithy_client_1.expectString)(output.Message),
5770
6051
  };
5771
6052
  };
5772
6053
  const deserializeAws_json1_1InvalidFilterException = (output, context) => {
5773
6054
  return {
5774
- Message: smithy_client_1.expectString(output.Message),
6055
+ Message: (0, smithy_client_1.expectString)(output.Message),
5775
6056
  };
5776
6057
  };
5777
6058
  const deserializeAws_json1_1InvalidRequestException = (output, context) => {
5778
6059
  return {
5779
- Message: smithy_client_1.expectString(output.Message),
6060
+ Message: (0, smithy_client_1.expectString)(output.Message),
5780
6061
  };
5781
6062
  };
5782
6063
  const deserializeAws_json1_1JobNotFoundException = (output, context) => {
5783
6064
  return {
5784
- Message: smithy_client_1.expectString(output.Message),
6065
+ Message: (0, smithy_client_1.expectString)(output.Message),
5785
6066
  };
5786
6067
  };
5787
6068
  const deserializeAws_json1_1KeyPhrase = (output, context) => {
5788
6069
  return {
5789
- BeginOffset: smithy_client_1.expectInt32(output.BeginOffset),
5790
- EndOffset: smithy_client_1.expectInt32(output.EndOffset),
5791
- Score: smithy_client_1.limitedParseFloat32(output.Score),
5792
- Text: smithy_client_1.expectString(output.Text),
6070
+ BeginOffset: (0, smithy_client_1.expectInt32)(output.BeginOffset),
6071
+ EndOffset: (0, smithy_client_1.expectInt32)(output.EndOffset),
6072
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
6073
+ Text: (0, smithy_client_1.expectString)(output.Text),
5793
6074
  };
5794
6075
  };
5795
6076
  const deserializeAws_json1_1KeyPhrasesDetectionJobProperties = (output, context) => {
5796
6077
  return {
5797
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
6078
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
5798
6079
  EndTime: output.EndTime !== undefined && output.EndTime !== null
5799
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
6080
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5800
6081
  : undefined,
5801
6082
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
5802
6083
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
5803
6084
  : undefined,
5804
- JobArn: smithy_client_1.expectString(output.JobArn),
5805
- JobId: smithy_client_1.expectString(output.JobId),
5806
- JobName: smithy_client_1.expectString(output.JobName),
5807
- JobStatus: smithy_client_1.expectString(output.JobStatus),
5808
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
5809
- Message: smithy_client_1.expectString(output.Message),
6085
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6086
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6087
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
6088
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6089
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
6090
+ Message: (0, smithy_client_1.expectString)(output.Message),
5810
6091
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
5811
6092
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
5812
6093
  : undefined,
5813
6094
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
5814
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
6095
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
5815
6096
  : undefined,
5816
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
6097
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
5817
6098
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5818
6099
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5819
6100
  : undefined,
@@ -5832,7 +6113,7 @@ const deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList = (output, cont
5832
6113
  };
5833
6114
  const deserializeAws_json1_1KmsKeyValidationException = (output, context) => {
5834
6115
  return {
5835
- Message: smithy_client_1.expectString(output.Message),
6116
+ Message: (0, smithy_client_1.expectString)(output.Message),
5836
6117
  };
5837
6118
  };
5838
6119
  const deserializeAws_json1_1ListDocumentClassificationJobsResponse = (output, context) => {
@@ -5841,7 +6122,7 @@ const deserializeAws_json1_1ListDocumentClassificationJobsResponse = (output, co
5841
6122
  output.DocumentClassificationJobPropertiesList !== null
5842
6123
  ? deserializeAws_json1_1DocumentClassificationJobPropertiesList(output.DocumentClassificationJobPropertiesList, context)
5843
6124
  : undefined,
5844
- NextToken: smithy_client_1.expectString(output.NextToken),
6125
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5845
6126
  };
5846
6127
  };
5847
6128
  const deserializeAws_json1_1ListDocumentClassifiersResponse = (output, context) => {
@@ -5849,7 +6130,7 @@ const deserializeAws_json1_1ListDocumentClassifiersResponse = (output, context)
5849
6130
  DocumentClassifierPropertiesList: output.DocumentClassifierPropertiesList !== undefined && output.DocumentClassifierPropertiesList !== null
5850
6131
  ? deserializeAws_json1_1DocumentClassifierPropertiesList(output.DocumentClassifierPropertiesList, context)
5851
6132
  : undefined,
5852
- NextToken: smithy_client_1.expectString(output.NextToken),
6133
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5853
6134
  };
5854
6135
  };
5855
6136
  const deserializeAws_json1_1ListDocumentClassifierSummariesResponse = (output, context) => {
@@ -5857,7 +6138,7 @@ const deserializeAws_json1_1ListDocumentClassifierSummariesResponse = (output, c
5857
6138
  DocumentClassifierSummariesList: output.DocumentClassifierSummariesList !== undefined && output.DocumentClassifierSummariesList !== null
5858
6139
  ? deserializeAws_json1_1DocumentClassifierSummariesList(output.DocumentClassifierSummariesList, context)
5859
6140
  : undefined,
5860
- NextToken: smithy_client_1.expectString(output.NextToken),
6141
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5861
6142
  };
5862
6143
  };
5863
6144
  const deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse = (output, context) => {
@@ -5866,7 +6147,7 @@ const deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse = (output,
5866
6147
  output.DominantLanguageDetectionJobPropertiesList !== null
5867
6148
  ? deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList(output.DominantLanguageDetectionJobPropertiesList, context)
5868
6149
  : undefined,
5869
- NextToken: smithy_client_1.expectString(output.NextToken),
6150
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5870
6151
  };
5871
6152
  };
5872
6153
  const deserializeAws_json1_1ListEndpointsResponse = (output, context) => {
@@ -5874,7 +6155,7 @@ const deserializeAws_json1_1ListEndpointsResponse = (output, context) => {
5874
6155
  EndpointPropertiesList: output.EndpointPropertiesList !== undefined && output.EndpointPropertiesList !== null
5875
6156
  ? deserializeAws_json1_1EndpointPropertiesList(output.EndpointPropertiesList, context)
5876
6157
  : undefined,
5877
- NextToken: smithy_client_1.expectString(output.NextToken),
6158
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5878
6159
  };
5879
6160
  };
5880
6161
  const deserializeAws_json1_1ListEntitiesDetectionJobsResponse = (output, context) => {
@@ -5882,7 +6163,7 @@ const deserializeAws_json1_1ListEntitiesDetectionJobsResponse = (output, context
5882
6163
  EntitiesDetectionJobPropertiesList: output.EntitiesDetectionJobPropertiesList !== undefined && output.EntitiesDetectionJobPropertiesList !== null
5883
6164
  ? deserializeAws_json1_1EntitiesDetectionJobPropertiesList(output.EntitiesDetectionJobPropertiesList, context)
5884
6165
  : undefined,
5885
- NextToken: smithy_client_1.expectString(output.NextToken),
6166
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5886
6167
  };
5887
6168
  };
5888
6169
  const deserializeAws_json1_1ListEntityRecognizersResponse = (output, context) => {
@@ -5890,7 +6171,7 @@ const deserializeAws_json1_1ListEntityRecognizersResponse = (output, context) =>
5890
6171
  EntityRecognizerPropertiesList: output.EntityRecognizerPropertiesList !== undefined && output.EntityRecognizerPropertiesList !== null
5891
6172
  ? deserializeAws_json1_1EntityRecognizerPropertiesList(output.EntityRecognizerPropertiesList, context)
5892
6173
  : undefined,
5893
- NextToken: smithy_client_1.expectString(output.NextToken),
6174
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5894
6175
  };
5895
6176
  };
5896
6177
  const deserializeAws_json1_1ListEntityRecognizerSummariesResponse = (output, context) => {
@@ -5898,7 +6179,7 @@ const deserializeAws_json1_1ListEntityRecognizerSummariesResponse = (output, con
5898
6179
  EntityRecognizerSummariesList: output.EntityRecognizerSummariesList !== undefined && output.EntityRecognizerSummariesList !== null
5899
6180
  ? deserializeAws_json1_1EntityRecognizerSummariesList(output.EntityRecognizerSummariesList, context)
5900
6181
  : undefined,
5901
- NextToken: smithy_client_1.expectString(output.NextToken),
6182
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5902
6183
  };
5903
6184
  };
5904
6185
  const deserializeAws_json1_1ListEventsDetectionJobsResponse = (output, context) => {
@@ -5906,7 +6187,7 @@ const deserializeAws_json1_1ListEventsDetectionJobsResponse = (output, context)
5906
6187
  EventsDetectionJobPropertiesList: output.EventsDetectionJobPropertiesList !== undefined && output.EventsDetectionJobPropertiesList !== null
5907
6188
  ? deserializeAws_json1_1EventsDetectionJobPropertiesList(output.EventsDetectionJobPropertiesList, context)
5908
6189
  : undefined,
5909
- NextToken: smithy_client_1.expectString(output.NextToken),
6190
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5910
6191
  };
5911
6192
  };
5912
6193
  const deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = (output, context) => {
@@ -5914,7 +6195,7 @@ const deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = (output, conte
5914
6195
  KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList !== undefined && output.KeyPhrasesDetectionJobPropertiesList !== null
5915
6196
  ? deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList(output.KeyPhrasesDetectionJobPropertiesList, context)
5916
6197
  : undefined,
5917
- NextToken: smithy_client_1.expectString(output.NextToken),
6198
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5918
6199
  };
5919
6200
  };
5920
6201
  const deserializeAws_json1_1ListOfClasses = (output, context) => {
@@ -5990,7 +6271,7 @@ const deserializeAws_json1_1ListOfDocumentReadFeatureTypes = (output, context) =
5990
6271
  if (entry === null) {
5991
6272
  return null;
5992
6273
  }
5993
- return smithy_client_1.expectString(entry);
6274
+ return (0, smithy_client_1.expectString)(entry);
5994
6275
  });
5995
6276
  return retVal;
5996
6277
  };
@@ -6067,7 +6348,7 @@ const deserializeAws_json1_1ListOfPiiEntityTypes = (output, context) => {
6067
6348
  if (entry === null) {
6068
6349
  return null;
6069
6350
  }
6070
- return smithy_client_1.expectString(entry);
6351
+ return (0, smithy_client_1.expectString)(entry);
6071
6352
  });
6072
6353
  return retVal;
6073
6354
  };
@@ -6084,7 +6365,7 @@ const deserializeAws_json1_1ListOfSyntaxTokens = (output, context) => {
6084
6365
  };
6085
6366
  const deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = (output, context) => {
6086
6367
  return {
6087
- NextToken: smithy_client_1.expectString(output.NextToken),
6368
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
6088
6369
  PiiEntitiesDetectionJobPropertiesList: output.PiiEntitiesDetectionJobPropertiesList !== undefined &&
6089
6370
  output.PiiEntitiesDetectionJobPropertiesList !== null
6090
6371
  ? deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList(output.PiiEntitiesDetectionJobPropertiesList, context)
@@ -6093,7 +6374,7 @@ const deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = (output, cont
6093
6374
  };
6094
6375
  const deserializeAws_json1_1ListSentimentDetectionJobsResponse = (output, context) => {
6095
6376
  return {
6096
- NextToken: smithy_client_1.expectString(output.NextToken),
6377
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
6097
6378
  SentimentDetectionJobPropertiesList: output.SentimentDetectionJobPropertiesList !== undefined && output.SentimentDetectionJobPropertiesList !== null
6098
6379
  ? deserializeAws_json1_1SentimentDetectionJobPropertiesList(output.SentimentDetectionJobPropertiesList, context)
6099
6380
  : undefined,
@@ -6101,15 +6382,24 @@ const deserializeAws_json1_1ListSentimentDetectionJobsResponse = (output, contex
6101
6382
  };
6102
6383
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
6103
6384
  return {
6104
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
6385
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
6105
6386
  Tags: output.Tags !== undefined && output.Tags !== null
6106
6387
  ? deserializeAws_json1_1TagList(output.Tags, context)
6107
6388
  : undefined,
6108
6389
  };
6109
6390
  };
6391
+ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse = (output, context) => {
6392
+ return {
6393
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
6394
+ TargetedSentimentDetectionJobPropertiesList: output.TargetedSentimentDetectionJobPropertiesList !== undefined &&
6395
+ output.TargetedSentimentDetectionJobPropertiesList !== null
6396
+ ? deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList(output.TargetedSentimentDetectionJobPropertiesList, context)
6397
+ : undefined,
6398
+ };
6399
+ };
6110
6400
  const deserializeAws_json1_1ListTopicsDetectionJobsResponse = (output, context) => {
6111
6401
  return {
6112
- NextToken: smithy_client_1.expectString(output.NextToken),
6402
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
6113
6403
  TopicsDetectionJobPropertiesList: output.TopicsDetectionJobPropertiesList !== undefined && output.TopicsDetectionJobPropertiesList !== null
6114
6404
  ? deserializeAws_json1_1TopicsDetectionJobPropertiesList(output.TopicsDetectionJobPropertiesList, context)
6115
6405
  : undefined,
@@ -6117,32 +6407,32 @@ const deserializeAws_json1_1ListTopicsDetectionJobsResponse = (output, context)
6117
6407
  };
6118
6408
  const deserializeAws_json1_1OutputDataConfig = (output, context) => {
6119
6409
  return {
6120
- KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
6121
- S3Uri: smithy_client_1.expectString(output.S3Uri),
6410
+ KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
6411
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
6122
6412
  };
6123
6413
  };
6124
6414
  const deserializeAws_json1_1PartOfSpeechTag = (output, context) => {
6125
6415
  return {
6126
- Score: smithy_client_1.limitedParseFloat32(output.Score),
6127
- Tag: smithy_client_1.expectString(output.Tag),
6416
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
6417
+ Tag: (0, smithy_client_1.expectString)(output.Tag),
6128
6418
  };
6129
6419
  };
6130
6420
  const deserializeAws_json1_1PiiEntitiesDetectionJobProperties = (output, context) => {
6131
6421
  return {
6132
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
6422
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
6133
6423
  EndTime: output.EndTime !== undefined && output.EndTime !== null
6134
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
6424
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
6135
6425
  : undefined,
6136
6426
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
6137
6427
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
6138
6428
  : undefined,
6139
- JobArn: smithy_client_1.expectString(output.JobArn),
6140
- JobId: smithy_client_1.expectString(output.JobId),
6141
- JobName: smithy_client_1.expectString(output.JobName),
6142
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6143
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
6144
- Message: smithy_client_1.expectString(output.Message),
6145
- Mode: smithy_client_1.expectString(output.Mode),
6429
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6430
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6431
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
6432
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6433
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
6434
+ Message: (0, smithy_client_1.expectString)(output.Message),
6435
+ Mode: (0, smithy_client_1.expectString)(output.Mode),
6146
6436
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
6147
6437
  ? deserializeAws_json1_1PiiOutputDataConfig(output.OutputDataConfig, context)
6148
6438
  : undefined,
@@ -6150,7 +6440,7 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobProperties = (output, context
6150
6440
  ? deserializeAws_json1_1RedactionConfig(output.RedactionConfig, context)
6151
6441
  : undefined,
6152
6442
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
6153
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
6443
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
6154
6444
  : undefined,
6155
6445
  };
6156
6446
  };
@@ -6167,27 +6457,27 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList = (output, con
6167
6457
  };
6168
6458
  const deserializeAws_json1_1PiiEntity = (output, context) => {
6169
6459
  return {
6170
- BeginOffset: smithy_client_1.expectInt32(output.BeginOffset),
6171
- EndOffset: smithy_client_1.expectInt32(output.EndOffset),
6172
- Score: smithy_client_1.limitedParseFloat32(output.Score),
6173
- Type: smithy_client_1.expectString(output.Type),
6460
+ BeginOffset: (0, smithy_client_1.expectInt32)(output.BeginOffset),
6461
+ EndOffset: (0, smithy_client_1.expectInt32)(output.EndOffset),
6462
+ Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
6463
+ Type: (0, smithy_client_1.expectString)(output.Type),
6174
6464
  };
6175
6465
  };
6176
6466
  const deserializeAws_json1_1PiiOutputDataConfig = (output, context) => {
6177
6467
  return {
6178
- KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
6179
- S3Uri: smithy_client_1.expectString(output.S3Uri),
6468
+ KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
6469
+ S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
6180
6470
  };
6181
6471
  };
6182
6472
  const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
6183
6473
  return {
6184
- PolicyRevisionId: smithy_client_1.expectString(output.PolicyRevisionId),
6474
+ PolicyRevisionId: (0, smithy_client_1.expectString)(output.PolicyRevisionId),
6185
6475
  };
6186
6476
  };
6187
6477
  const deserializeAws_json1_1RedactionConfig = (output, context) => {
6188
6478
  return {
6189
- MaskCharacter: smithy_client_1.expectString(output.MaskCharacter),
6190
- MaskMode: smithy_client_1.expectString(output.MaskMode),
6479
+ MaskCharacter: (0, smithy_client_1.expectString)(output.MaskCharacter),
6480
+ MaskMode: (0, smithy_client_1.expectString)(output.MaskMode),
6191
6481
  PiiEntityTypes: output.PiiEntityTypes !== undefined && output.PiiEntityTypes !== null
6192
6482
  ? deserializeAws_json1_1ListOfPiiEntityTypes(output.PiiEntityTypes, context)
6193
6483
  : undefined,
@@ -6195,22 +6485,22 @@ const deserializeAws_json1_1RedactionConfig = (output, context) => {
6195
6485
  };
6196
6486
  const deserializeAws_json1_1ResourceInUseException = (output, context) => {
6197
6487
  return {
6198
- Message: smithy_client_1.expectString(output.Message),
6488
+ Message: (0, smithy_client_1.expectString)(output.Message),
6199
6489
  };
6200
6490
  };
6201
6491
  const deserializeAws_json1_1ResourceLimitExceededException = (output, context) => {
6202
6492
  return {
6203
- Message: smithy_client_1.expectString(output.Message),
6493
+ Message: (0, smithy_client_1.expectString)(output.Message),
6204
6494
  };
6205
6495
  };
6206
6496
  const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
6207
6497
  return {
6208
- Message: smithy_client_1.expectString(output.Message),
6498
+ Message: (0, smithy_client_1.expectString)(output.Message),
6209
6499
  };
6210
6500
  };
6211
6501
  const deserializeAws_json1_1ResourceUnavailableException = (output, context) => {
6212
6502
  return {
6213
- Message: smithy_client_1.expectString(output.Message),
6503
+ Message: (0, smithy_client_1.expectString)(output.Message),
6214
6504
  };
6215
6505
  };
6216
6506
  const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
@@ -6220,32 +6510,32 @@ const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
6220
6510
  if (entry === null) {
6221
6511
  return null;
6222
6512
  }
6223
- return smithy_client_1.expectString(entry);
6513
+ return (0, smithy_client_1.expectString)(entry);
6224
6514
  });
6225
6515
  return retVal;
6226
6516
  };
6227
6517
  const deserializeAws_json1_1SentimentDetectionJobProperties = (output, context) => {
6228
6518
  return {
6229
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
6519
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
6230
6520
  EndTime: output.EndTime !== undefined && output.EndTime !== null
6231
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
6521
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
6232
6522
  : undefined,
6233
6523
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
6234
6524
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
6235
6525
  : undefined,
6236
- JobArn: smithy_client_1.expectString(output.JobArn),
6237
- JobId: smithy_client_1.expectString(output.JobId),
6238
- JobName: smithy_client_1.expectString(output.JobName),
6239
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6240
- LanguageCode: smithy_client_1.expectString(output.LanguageCode),
6241
- Message: smithy_client_1.expectString(output.Message),
6526
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6527
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6528
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
6529
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6530
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
6531
+ Message: (0, smithy_client_1.expectString)(output.Message),
6242
6532
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
6243
6533
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
6244
6534
  : undefined,
6245
6535
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
6246
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
6536
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
6247
6537
  : undefined,
6248
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
6538
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
6249
6539
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
6250
6540
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
6251
6541
  : undefined,
@@ -6264,102 +6554,115 @@ const deserializeAws_json1_1SentimentDetectionJobPropertiesList = (output, conte
6264
6554
  };
6265
6555
  const deserializeAws_json1_1SentimentScore = (output, context) => {
6266
6556
  return {
6267
- Mixed: smithy_client_1.limitedParseFloat32(output.Mixed),
6268
- Negative: smithy_client_1.limitedParseFloat32(output.Negative),
6269
- Neutral: smithy_client_1.limitedParseFloat32(output.Neutral),
6270
- Positive: smithy_client_1.limitedParseFloat32(output.Positive),
6557
+ Mixed: (0, smithy_client_1.limitedParseFloat32)(output.Mixed),
6558
+ Negative: (0, smithy_client_1.limitedParseFloat32)(output.Negative),
6559
+ Neutral: (0, smithy_client_1.limitedParseFloat32)(output.Neutral),
6560
+ Positive: (0, smithy_client_1.limitedParseFloat32)(output.Positive),
6271
6561
  };
6272
6562
  };
6273
6563
  const deserializeAws_json1_1StartDocumentClassificationJobResponse = (output, context) => {
6274
6564
  return {
6275
- JobArn: smithy_client_1.expectString(output.JobArn),
6276
- JobId: smithy_client_1.expectString(output.JobId),
6277
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6565
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6566
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6567
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6278
6568
  };
6279
6569
  };
6280
6570
  const deserializeAws_json1_1StartDominantLanguageDetectionJobResponse = (output, context) => {
6281
6571
  return {
6282
- JobArn: smithy_client_1.expectString(output.JobArn),
6283
- JobId: smithy_client_1.expectString(output.JobId),
6284
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6572
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6573
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6574
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6285
6575
  };
6286
6576
  };
6287
6577
  const deserializeAws_json1_1StartEntitiesDetectionJobResponse = (output, context) => {
6288
6578
  return {
6289
- JobArn: smithy_client_1.expectString(output.JobArn),
6290
- JobId: smithy_client_1.expectString(output.JobId),
6291
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6579
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6580
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6581
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6292
6582
  };
6293
6583
  };
6294
6584
  const deserializeAws_json1_1StartEventsDetectionJobResponse = (output, context) => {
6295
6585
  return {
6296
- JobArn: smithy_client_1.expectString(output.JobArn),
6297
- JobId: smithy_client_1.expectString(output.JobId),
6298
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6586
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6587
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6588
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6299
6589
  };
6300
6590
  };
6301
6591
  const deserializeAws_json1_1StartKeyPhrasesDetectionJobResponse = (output, context) => {
6302
6592
  return {
6303
- JobArn: smithy_client_1.expectString(output.JobArn),
6304
- JobId: smithy_client_1.expectString(output.JobId),
6305
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6593
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6594
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6595
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6306
6596
  };
6307
6597
  };
6308
6598
  const deserializeAws_json1_1StartPiiEntitiesDetectionJobResponse = (output, context) => {
6309
6599
  return {
6310
- JobArn: smithy_client_1.expectString(output.JobArn),
6311
- JobId: smithy_client_1.expectString(output.JobId),
6312
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6600
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6601
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6602
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6313
6603
  };
6314
6604
  };
6315
6605
  const deserializeAws_json1_1StartSentimentDetectionJobResponse = (output, context) => {
6316
6606
  return {
6317
- JobArn: smithy_client_1.expectString(output.JobArn),
6318
- JobId: smithy_client_1.expectString(output.JobId),
6319
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6607
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6608
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6609
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6610
+ };
6611
+ };
6612
+ const deserializeAws_json1_1StartTargetedSentimentDetectionJobResponse = (output, context) => {
6613
+ return {
6614
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6615
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6616
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6320
6617
  };
6321
6618
  };
6322
6619
  const deserializeAws_json1_1StartTopicsDetectionJobResponse = (output, context) => {
6323
6620
  return {
6324
- JobArn: smithy_client_1.expectString(output.JobArn),
6325
- JobId: smithy_client_1.expectString(output.JobId),
6326
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6621
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6622
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6623
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6327
6624
  };
6328
6625
  };
6329
6626
  const deserializeAws_json1_1StopDominantLanguageDetectionJobResponse = (output, context) => {
6330
6627
  return {
6331
- JobId: smithy_client_1.expectString(output.JobId),
6332
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6628
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6629
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6333
6630
  };
6334
6631
  };
6335
6632
  const deserializeAws_json1_1StopEntitiesDetectionJobResponse = (output, context) => {
6336
6633
  return {
6337
- JobId: smithy_client_1.expectString(output.JobId),
6338
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6634
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6635
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6339
6636
  };
6340
6637
  };
6341
6638
  const deserializeAws_json1_1StopEventsDetectionJobResponse = (output, context) => {
6342
6639
  return {
6343
- JobId: smithy_client_1.expectString(output.JobId),
6344
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6640
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6641
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6345
6642
  };
6346
6643
  };
6347
6644
  const deserializeAws_json1_1StopKeyPhrasesDetectionJobResponse = (output, context) => {
6348
6645
  return {
6349
- JobId: smithy_client_1.expectString(output.JobId),
6350
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6646
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6647
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6351
6648
  };
6352
6649
  };
6353
6650
  const deserializeAws_json1_1StopPiiEntitiesDetectionJobResponse = (output, context) => {
6354
6651
  return {
6355
- JobId: smithy_client_1.expectString(output.JobId),
6356
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6652
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6653
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6357
6654
  };
6358
6655
  };
6359
6656
  const deserializeAws_json1_1StopSentimentDetectionJobResponse = (output, context) => {
6360
6657
  return {
6361
- JobId: smithy_client_1.expectString(output.JobId),
6362
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6658
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6659
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6660
+ };
6661
+ };
6662
+ const deserializeAws_json1_1StopTargetedSentimentDetectionJobResponse = (output, context) => {
6663
+ return {
6664
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6665
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6363
6666
  };
6364
6667
  };
6365
6668
  const deserializeAws_json1_1StopTrainingDocumentClassifierResponse = (output, context) => {
@@ -6375,25 +6678,25 @@ const deserializeAws_json1_1Subnets = (output, context) => {
6375
6678
  if (entry === null) {
6376
6679
  return null;
6377
6680
  }
6378
- return smithy_client_1.expectString(entry);
6681
+ return (0, smithy_client_1.expectString)(entry);
6379
6682
  });
6380
6683
  return retVal;
6381
6684
  };
6382
6685
  const deserializeAws_json1_1SyntaxToken = (output, context) => {
6383
6686
  return {
6384
- BeginOffset: smithy_client_1.expectInt32(output.BeginOffset),
6385
- EndOffset: smithy_client_1.expectInt32(output.EndOffset),
6687
+ BeginOffset: (0, smithy_client_1.expectInt32)(output.BeginOffset),
6688
+ EndOffset: (0, smithy_client_1.expectInt32)(output.EndOffset),
6386
6689
  PartOfSpeech: output.PartOfSpeech !== undefined && output.PartOfSpeech !== null
6387
6690
  ? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context)
6388
6691
  : undefined,
6389
- Text: smithy_client_1.expectString(output.Text),
6390
- TokenId: smithy_client_1.expectInt32(output.TokenId),
6692
+ Text: (0, smithy_client_1.expectString)(output.Text),
6693
+ TokenId: (0, smithy_client_1.expectInt32)(output.TokenId),
6391
6694
  };
6392
6695
  };
6393
6696
  const deserializeAws_json1_1Tag = (output, context) => {
6394
6697
  return {
6395
- Key: smithy_client_1.expectString(output.Key),
6396
- Value: smithy_client_1.expectString(output.Value),
6698
+ Key: (0, smithy_client_1.expectString)(output.Key),
6699
+ Value: (0, smithy_client_1.expectString)(output.Value),
6397
6700
  };
6398
6701
  };
6399
6702
  const deserializeAws_json1_1TagList = (output, context) => {
@@ -6410,6 +6713,44 @@ const deserializeAws_json1_1TagList = (output, context) => {
6410
6713
  const deserializeAws_json1_1TagResourceResponse = (output, context) => {
6411
6714
  return {};
6412
6715
  };
6716
+ const deserializeAws_json1_1TargetedSentimentDetectionJobProperties = (output, context) => {
6717
+ return {
6718
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
6719
+ EndTime: output.EndTime !== undefined && output.EndTime !== null
6720
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
6721
+ : undefined,
6722
+ InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
6723
+ ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
6724
+ : undefined,
6725
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6726
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6727
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
6728
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6729
+ LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
6730
+ Message: (0, smithy_client_1.expectString)(output.Message),
6731
+ OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
6732
+ ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
6733
+ : undefined,
6734
+ SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
6735
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
6736
+ : undefined,
6737
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
6738
+ VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
6739
+ ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
6740
+ : undefined,
6741
+ };
6742
+ };
6743
+ const deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList = (output, context) => {
6744
+ const retVal = (output || [])
6745
+ .filter((e) => e != null)
6746
+ .map((entry) => {
6747
+ if (entry === null) {
6748
+ return null;
6749
+ }
6750
+ return deserializeAws_json1_1TargetedSentimentDetectionJobProperties(entry, context);
6751
+ });
6752
+ return retVal;
6753
+ };
6413
6754
  const deserializeAws_json1_1TargetEventTypes = (output, context) => {
6414
6755
  const retVal = (output || [])
6415
6756
  .filter((e) => e != null)
@@ -6417,52 +6758,52 @@ const deserializeAws_json1_1TargetEventTypes = (output, context) => {
6417
6758
  if (entry === null) {
6418
6759
  return null;
6419
6760
  }
6420
- return smithy_client_1.expectString(entry);
6761
+ return (0, smithy_client_1.expectString)(entry);
6421
6762
  });
6422
6763
  return retVal;
6423
6764
  };
6424
6765
  const deserializeAws_json1_1TextSizeLimitExceededException = (output, context) => {
6425
6766
  return {
6426
- Message: smithy_client_1.expectString(output.Message),
6767
+ Message: (0, smithy_client_1.expectString)(output.Message),
6427
6768
  };
6428
6769
  };
6429
6770
  const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
6430
6771
  return {
6431
- Message: smithy_client_1.expectString(output.Message),
6772
+ Message: (0, smithy_client_1.expectString)(output.Message),
6432
6773
  };
6433
6774
  };
6434
6775
  const deserializeAws_json1_1TooManyTagKeysException = (output, context) => {
6435
6776
  return {
6436
- Message: smithy_client_1.expectString(output.Message),
6777
+ Message: (0, smithy_client_1.expectString)(output.Message),
6437
6778
  };
6438
6779
  };
6439
6780
  const deserializeAws_json1_1TooManyTagsException = (output, context) => {
6440
6781
  return {
6441
- Message: smithy_client_1.expectString(output.Message),
6782
+ Message: (0, smithy_client_1.expectString)(output.Message),
6442
6783
  };
6443
6784
  };
6444
6785
  const deserializeAws_json1_1TopicsDetectionJobProperties = (output, context) => {
6445
6786
  return {
6446
- DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
6787
+ DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
6447
6788
  EndTime: output.EndTime !== undefined && output.EndTime !== null
6448
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
6789
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
6449
6790
  : undefined,
6450
6791
  InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
6451
6792
  ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
6452
6793
  : undefined,
6453
- JobArn: smithy_client_1.expectString(output.JobArn),
6454
- JobId: smithy_client_1.expectString(output.JobId),
6455
- JobName: smithy_client_1.expectString(output.JobName),
6456
- JobStatus: smithy_client_1.expectString(output.JobStatus),
6457
- Message: smithy_client_1.expectString(output.Message),
6458
- NumberOfTopics: smithy_client_1.expectInt32(output.NumberOfTopics),
6794
+ JobArn: (0, smithy_client_1.expectString)(output.JobArn),
6795
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
6796
+ JobName: (0, smithy_client_1.expectString)(output.JobName),
6797
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
6798
+ Message: (0, smithy_client_1.expectString)(output.Message),
6799
+ NumberOfTopics: (0, smithy_client_1.expectInt32)(output.NumberOfTopics),
6459
6800
  OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
6460
6801
  ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
6461
6802
  : undefined,
6462
6803
  SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
6463
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
6804
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
6464
6805
  : undefined,
6465
- VolumeKmsKeyId: smithy_client_1.expectString(output.VolumeKmsKeyId),
6806
+ VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
6466
6807
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
6467
6808
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
6468
6809
  : undefined,
@@ -6481,7 +6822,7 @@ const deserializeAws_json1_1TopicsDetectionJobPropertiesList = (output, context)
6481
6822
  };
6482
6823
  const deserializeAws_json1_1UnsupportedLanguageException = (output, context) => {
6483
6824
  return {
6484
- Message: smithy_client_1.expectString(output.Message),
6825
+ Message: (0, smithy_client_1.expectString)(output.Message),
6485
6826
  };
6486
6827
  };
6487
6828
  const deserializeAws_json1_1UntagResourceResponse = (output, context) => {