@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
@@ -24,6 +24,7 @@ import { DescribeKeyPhrasesDetectionJobCommand, } from "./commands/DescribeKeyPh
24
24
  import { DescribePiiEntitiesDetectionJobCommand, } from "./commands/DescribePiiEntitiesDetectionJobCommand";
25
25
  import { DescribeResourcePolicyCommand, } from "./commands/DescribeResourcePolicyCommand";
26
26
  import { DescribeSentimentDetectionJobCommand, } from "./commands/DescribeSentimentDetectionJobCommand";
27
+ import { DescribeTargetedSentimentDetectionJobCommand, } from "./commands/DescribeTargetedSentimentDetectionJobCommand";
27
28
  import { DescribeTopicsDetectionJobCommand, } from "./commands/DescribeTopicsDetectionJobCommand";
28
29
  import { DetectDominantLanguageCommand, } from "./commands/DetectDominantLanguageCommand";
29
30
  import { DetectEntitiesCommand, } from "./commands/DetectEntitiesCommand";
@@ -45,6 +46,7 @@ import { ListKeyPhrasesDetectionJobsCommand, } from "./commands/ListKeyPhrasesDe
45
46
  import { ListPiiEntitiesDetectionJobsCommand, } from "./commands/ListPiiEntitiesDetectionJobsCommand";
46
47
  import { ListSentimentDetectionJobsCommand, } from "./commands/ListSentimentDetectionJobsCommand";
47
48
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
49
+ import { ListTargetedSentimentDetectionJobsCommand, } from "./commands/ListTargetedSentimentDetectionJobsCommand";
48
50
  import { ListTopicsDetectionJobsCommand, } from "./commands/ListTopicsDetectionJobsCommand";
49
51
  import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
50
52
  import { StartDocumentClassificationJobCommand, } from "./commands/StartDocumentClassificationJobCommand";
@@ -54,6 +56,7 @@ import { StartEventsDetectionJobCommand, } from "./commands/StartEventsDetection
54
56
  import { StartKeyPhrasesDetectionJobCommand, } from "./commands/StartKeyPhrasesDetectionJobCommand";
55
57
  import { StartPiiEntitiesDetectionJobCommand, } from "./commands/StartPiiEntitiesDetectionJobCommand";
56
58
  import { StartSentimentDetectionJobCommand, } from "./commands/StartSentimentDetectionJobCommand";
59
+ import { StartTargetedSentimentDetectionJobCommand, } from "./commands/StartTargetedSentimentDetectionJobCommand";
57
60
  import { StartTopicsDetectionJobCommand, } from "./commands/StartTopicsDetectionJobCommand";
58
61
  import { StopDominantLanguageDetectionJobCommand, } from "./commands/StopDominantLanguageDetectionJobCommand";
59
62
  import { StopEntitiesDetectionJobCommand, } from "./commands/StopEntitiesDetectionJobCommand";
@@ -61,6 +64,7 @@ import { StopEventsDetectionJobCommand, } from "./commands/StopEventsDetectionJo
61
64
  import { StopKeyPhrasesDetectionJobCommand, } from "./commands/StopKeyPhrasesDetectionJobCommand";
62
65
  import { StopPiiEntitiesDetectionJobCommand, } from "./commands/StopPiiEntitiesDetectionJobCommand";
63
66
  import { StopSentimentDetectionJobCommand, } from "./commands/StopSentimentDetectionJobCommand";
67
+ import { StopTargetedSentimentDetectionJobCommand, } from "./commands/StopTargetedSentimentDetectionJobCommand";
64
68
  import { StopTrainingDocumentClassifierCommand, } from "./commands/StopTrainingDocumentClassifierCommand";
65
69
  import { StopTrainingEntityRecognizerCommand, } from "./commands/StopTrainingEntityRecognizerCommand";
66
70
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -79,7 +83,7 @@ var Comprehend = (function (_super) {
79
83
  }
80
84
  else if (typeof cb === "function") {
81
85
  if (typeof optionsOrCb !== "object")
82
- throw new Error("Expect http options but get " + typeof optionsOrCb);
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
83
87
  this.send(command, optionsOrCb || {}, cb);
84
88
  }
85
89
  else {
@@ -93,7 +97,7 @@ var Comprehend = (function (_super) {
93
97
  }
94
98
  else if (typeof cb === "function") {
95
99
  if (typeof optionsOrCb !== "object")
96
- throw new Error("Expect http options but get " + typeof optionsOrCb);
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
97
101
  this.send(command, optionsOrCb || {}, cb);
98
102
  }
99
103
  else {
@@ -107,7 +111,7 @@ var Comprehend = (function (_super) {
107
111
  }
108
112
  else if (typeof cb === "function") {
109
113
  if (typeof optionsOrCb !== "object")
110
- throw new Error("Expect http options but get " + typeof optionsOrCb);
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
115
  this.send(command, optionsOrCb || {}, cb);
112
116
  }
113
117
  else {
@@ -121,7 +125,7 @@ var Comprehend = (function (_super) {
121
125
  }
122
126
  else if (typeof cb === "function") {
123
127
  if (typeof optionsOrCb !== "object")
124
- throw new Error("Expect http options but get " + typeof optionsOrCb);
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
129
  this.send(command, optionsOrCb || {}, cb);
126
130
  }
127
131
  else {
@@ -135,7 +139,7 @@ var Comprehend = (function (_super) {
135
139
  }
136
140
  else if (typeof cb === "function") {
137
141
  if (typeof optionsOrCb !== "object")
138
- throw new Error("Expect http options but get " + typeof optionsOrCb);
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
143
  this.send(command, optionsOrCb || {}, cb);
140
144
  }
141
145
  else {
@@ -149,7 +153,7 @@ var Comprehend = (function (_super) {
149
153
  }
150
154
  else if (typeof cb === "function") {
151
155
  if (typeof optionsOrCb !== "object")
152
- throw new Error("Expect http options but get " + typeof optionsOrCb);
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
157
  this.send(command, optionsOrCb || {}, cb);
154
158
  }
155
159
  else {
@@ -163,7 +167,7 @@ var Comprehend = (function (_super) {
163
167
  }
164
168
  else if (typeof cb === "function") {
165
169
  if (typeof optionsOrCb !== "object")
166
- throw new Error("Expect http options but get " + typeof optionsOrCb);
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
171
  this.send(command, optionsOrCb || {}, cb);
168
172
  }
169
173
  else {
@@ -177,7 +181,7 @@ var Comprehend = (function (_super) {
177
181
  }
178
182
  else if (typeof cb === "function") {
179
183
  if (typeof optionsOrCb !== "object")
180
- throw new Error("Expect http options but get " + typeof optionsOrCb);
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
181
185
  this.send(command, optionsOrCb || {}, cb);
182
186
  }
183
187
  else {
@@ -191,7 +195,7 @@ var Comprehend = (function (_super) {
191
195
  }
192
196
  else if (typeof cb === "function") {
193
197
  if (typeof optionsOrCb !== "object")
194
- throw new Error("Expect http options but get " + typeof optionsOrCb);
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
195
199
  this.send(command, optionsOrCb || {}, cb);
196
200
  }
197
201
  else {
@@ -205,7 +209,7 @@ var Comprehend = (function (_super) {
205
209
  }
206
210
  else if (typeof cb === "function") {
207
211
  if (typeof optionsOrCb !== "object")
208
- throw new Error("Expect http options but get " + typeof optionsOrCb);
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
209
213
  this.send(command, optionsOrCb || {}, cb);
210
214
  }
211
215
  else {
@@ -219,7 +223,7 @@ var Comprehend = (function (_super) {
219
223
  }
220
224
  else if (typeof cb === "function") {
221
225
  if (typeof optionsOrCb !== "object")
222
- throw new Error("Expect http options but get " + typeof optionsOrCb);
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
223
227
  this.send(command, optionsOrCb || {}, cb);
224
228
  }
225
229
  else {
@@ -233,7 +237,7 @@ var Comprehend = (function (_super) {
233
237
  }
234
238
  else if (typeof cb === "function") {
235
239
  if (typeof optionsOrCb !== "object")
236
- throw new Error("Expect http options but get " + typeof optionsOrCb);
240
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
237
241
  this.send(command, optionsOrCb || {}, cb);
238
242
  }
239
243
  else {
@@ -247,7 +251,7 @@ var Comprehend = (function (_super) {
247
251
  }
248
252
  else if (typeof cb === "function") {
249
253
  if (typeof optionsOrCb !== "object")
250
- throw new Error("Expect http options but get " + typeof optionsOrCb);
254
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
251
255
  this.send(command, optionsOrCb || {}, cb);
252
256
  }
253
257
  else {
@@ -261,7 +265,7 @@ var Comprehend = (function (_super) {
261
265
  }
262
266
  else if (typeof cb === "function") {
263
267
  if (typeof optionsOrCb !== "object")
264
- throw new Error("Expect http options but get " + typeof optionsOrCb);
268
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
265
269
  this.send(command, optionsOrCb || {}, cb);
266
270
  }
267
271
  else {
@@ -275,7 +279,7 @@ var Comprehend = (function (_super) {
275
279
  }
276
280
  else if (typeof cb === "function") {
277
281
  if (typeof optionsOrCb !== "object")
278
- throw new Error("Expect http options but get " + typeof optionsOrCb);
282
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
279
283
  this.send(command, optionsOrCb || {}, cb);
280
284
  }
281
285
  else {
@@ -289,7 +293,7 @@ var Comprehend = (function (_super) {
289
293
  }
290
294
  else if (typeof cb === "function") {
291
295
  if (typeof optionsOrCb !== "object")
292
- throw new Error("Expect http options but get " + typeof optionsOrCb);
296
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
293
297
  this.send(command, optionsOrCb || {}, cb);
294
298
  }
295
299
  else {
@@ -303,7 +307,7 @@ var Comprehend = (function (_super) {
303
307
  }
304
308
  else if (typeof cb === "function") {
305
309
  if (typeof optionsOrCb !== "object")
306
- throw new Error("Expect http options but get " + typeof optionsOrCb);
310
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
307
311
  this.send(command, optionsOrCb || {}, cb);
308
312
  }
309
313
  else {
@@ -317,7 +321,7 @@ var Comprehend = (function (_super) {
317
321
  }
318
322
  else if (typeof cb === "function") {
319
323
  if (typeof optionsOrCb !== "object")
320
- throw new Error("Expect http options but get " + typeof optionsOrCb);
324
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
321
325
  this.send(command, optionsOrCb || {}, cb);
322
326
  }
323
327
  else {
@@ -331,7 +335,7 @@ var Comprehend = (function (_super) {
331
335
  }
332
336
  else if (typeof cb === "function") {
333
337
  if (typeof optionsOrCb !== "object")
334
- throw new Error("Expect http options but get " + typeof optionsOrCb);
338
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
335
339
  this.send(command, optionsOrCb || {}, cb);
336
340
  }
337
341
  else {
@@ -345,7 +349,7 @@ var Comprehend = (function (_super) {
345
349
  }
346
350
  else if (typeof cb === "function") {
347
351
  if (typeof optionsOrCb !== "object")
348
- throw new Error("Expect http options but get " + typeof optionsOrCb);
352
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
349
353
  this.send(command, optionsOrCb || {}, cb);
350
354
  }
351
355
  else {
@@ -359,7 +363,7 @@ var Comprehend = (function (_super) {
359
363
  }
360
364
  else if (typeof cb === "function") {
361
365
  if (typeof optionsOrCb !== "object")
362
- throw new Error("Expect http options but get " + typeof optionsOrCb);
366
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
363
367
  this.send(command, optionsOrCb || {}, cb);
364
368
  }
365
369
  else {
@@ -373,7 +377,7 @@ var Comprehend = (function (_super) {
373
377
  }
374
378
  else if (typeof cb === "function") {
375
379
  if (typeof optionsOrCb !== "object")
376
- throw new Error("Expect http options but get " + typeof optionsOrCb);
380
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
377
381
  this.send(command, optionsOrCb || {}, cb);
378
382
  }
379
383
  else {
@@ -387,7 +391,7 @@ var Comprehend = (function (_super) {
387
391
  }
388
392
  else if (typeof cb === "function") {
389
393
  if (typeof optionsOrCb !== "object")
390
- throw new Error("Expect http options but get " + typeof optionsOrCb);
394
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
391
395
  this.send(command, optionsOrCb || {}, cb);
392
396
  }
393
397
  else {
@@ -401,7 +405,7 @@ var Comprehend = (function (_super) {
401
405
  }
402
406
  else if (typeof cb === "function") {
403
407
  if (typeof optionsOrCb !== "object")
404
- throw new Error("Expect http options but get " + typeof optionsOrCb);
408
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
405
409
  this.send(command, optionsOrCb || {}, cb);
406
410
  }
407
411
  else {
@@ -415,7 +419,21 @@ var Comprehend = (function (_super) {
415
419
  }
416
420
  else if (typeof cb === "function") {
417
421
  if (typeof optionsOrCb !== "object")
418
- throw new Error("Expect http options but get " + typeof optionsOrCb);
422
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
423
+ this.send(command, optionsOrCb || {}, cb);
424
+ }
425
+ else {
426
+ return this.send(command, optionsOrCb);
427
+ }
428
+ };
429
+ Comprehend.prototype.describeTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
430
+ var command = new DescribeTargetedSentimentDetectionJobCommand(args);
431
+ if (typeof optionsOrCb === "function") {
432
+ this.send(command, optionsOrCb);
433
+ }
434
+ else if (typeof cb === "function") {
435
+ if (typeof optionsOrCb !== "object")
436
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
419
437
  this.send(command, optionsOrCb || {}, cb);
420
438
  }
421
439
  else {
@@ -429,7 +447,7 @@ var Comprehend = (function (_super) {
429
447
  }
430
448
  else if (typeof cb === "function") {
431
449
  if (typeof optionsOrCb !== "object")
432
- throw new Error("Expect http options but get " + typeof optionsOrCb);
450
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
433
451
  this.send(command, optionsOrCb || {}, cb);
434
452
  }
435
453
  else {
@@ -443,7 +461,7 @@ var Comprehend = (function (_super) {
443
461
  }
444
462
  else if (typeof cb === "function") {
445
463
  if (typeof optionsOrCb !== "object")
446
- throw new Error("Expect http options but get " + typeof optionsOrCb);
464
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
447
465
  this.send(command, optionsOrCb || {}, cb);
448
466
  }
449
467
  else {
@@ -457,7 +475,7 @@ var Comprehend = (function (_super) {
457
475
  }
458
476
  else if (typeof cb === "function") {
459
477
  if (typeof optionsOrCb !== "object")
460
- throw new Error("Expect http options but get " + typeof optionsOrCb);
478
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
461
479
  this.send(command, optionsOrCb || {}, cb);
462
480
  }
463
481
  else {
@@ -471,7 +489,7 @@ var Comprehend = (function (_super) {
471
489
  }
472
490
  else if (typeof cb === "function") {
473
491
  if (typeof optionsOrCb !== "object")
474
- throw new Error("Expect http options but get " + typeof optionsOrCb);
492
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
475
493
  this.send(command, optionsOrCb || {}, cb);
476
494
  }
477
495
  else {
@@ -485,7 +503,7 @@ var Comprehend = (function (_super) {
485
503
  }
486
504
  else if (typeof cb === "function") {
487
505
  if (typeof optionsOrCb !== "object")
488
- throw new Error("Expect http options but get " + typeof optionsOrCb);
506
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
489
507
  this.send(command, optionsOrCb || {}, cb);
490
508
  }
491
509
  else {
@@ -499,7 +517,7 @@ var Comprehend = (function (_super) {
499
517
  }
500
518
  else if (typeof cb === "function") {
501
519
  if (typeof optionsOrCb !== "object")
502
- throw new Error("Expect http options but get " + typeof optionsOrCb);
520
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
503
521
  this.send(command, optionsOrCb || {}, cb);
504
522
  }
505
523
  else {
@@ -513,7 +531,7 @@ var Comprehend = (function (_super) {
513
531
  }
514
532
  else if (typeof cb === "function") {
515
533
  if (typeof optionsOrCb !== "object")
516
- throw new Error("Expect http options but get " + typeof optionsOrCb);
534
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
517
535
  this.send(command, optionsOrCb || {}, cb);
518
536
  }
519
537
  else {
@@ -527,7 +545,7 @@ var Comprehend = (function (_super) {
527
545
  }
528
546
  else if (typeof cb === "function") {
529
547
  if (typeof optionsOrCb !== "object")
530
- throw new Error("Expect http options but get " + typeof optionsOrCb);
548
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
531
549
  this.send(command, optionsOrCb || {}, cb);
532
550
  }
533
551
  else {
@@ -541,7 +559,7 @@ var Comprehend = (function (_super) {
541
559
  }
542
560
  else if (typeof cb === "function") {
543
561
  if (typeof optionsOrCb !== "object")
544
- throw new Error("Expect http options but get " + typeof optionsOrCb);
562
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
545
563
  this.send(command, optionsOrCb || {}, cb);
546
564
  }
547
565
  else {
@@ -555,7 +573,7 @@ var Comprehend = (function (_super) {
555
573
  }
556
574
  else if (typeof cb === "function") {
557
575
  if (typeof optionsOrCb !== "object")
558
- throw new Error("Expect http options but get " + typeof optionsOrCb);
576
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
559
577
  this.send(command, optionsOrCb || {}, cb);
560
578
  }
561
579
  else {
@@ -569,7 +587,7 @@ var Comprehend = (function (_super) {
569
587
  }
570
588
  else if (typeof cb === "function") {
571
589
  if (typeof optionsOrCb !== "object")
572
- throw new Error("Expect http options but get " + typeof optionsOrCb);
590
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
573
591
  this.send(command, optionsOrCb || {}, cb);
574
592
  }
575
593
  else {
@@ -583,7 +601,7 @@ var Comprehend = (function (_super) {
583
601
  }
584
602
  else if (typeof cb === "function") {
585
603
  if (typeof optionsOrCb !== "object")
586
- throw new Error("Expect http options but get " + typeof optionsOrCb);
604
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
587
605
  this.send(command, optionsOrCb || {}, cb);
588
606
  }
589
607
  else {
@@ -597,7 +615,7 @@ var Comprehend = (function (_super) {
597
615
  }
598
616
  else if (typeof cb === "function") {
599
617
  if (typeof optionsOrCb !== "object")
600
- throw new Error("Expect http options but get " + typeof optionsOrCb);
618
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
601
619
  this.send(command, optionsOrCb || {}, cb);
602
620
  }
603
621
  else {
@@ -611,7 +629,7 @@ var Comprehend = (function (_super) {
611
629
  }
612
630
  else if (typeof cb === "function") {
613
631
  if (typeof optionsOrCb !== "object")
614
- throw new Error("Expect http options but get " + typeof optionsOrCb);
632
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
615
633
  this.send(command, optionsOrCb || {}, cb);
616
634
  }
617
635
  else {
@@ -625,7 +643,7 @@ var Comprehend = (function (_super) {
625
643
  }
626
644
  else if (typeof cb === "function") {
627
645
  if (typeof optionsOrCb !== "object")
628
- throw new Error("Expect http options but get " + typeof optionsOrCb);
646
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
629
647
  this.send(command, optionsOrCb || {}, cb);
630
648
  }
631
649
  else {
@@ -639,7 +657,7 @@ var Comprehend = (function (_super) {
639
657
  }
640
658
  else if (typeof cb === "function") {
641
659
  if (typeof optionsOrCb !== "object")
642
- throw new Error("Expect http options but get " + typeof optionsOrCb);
660
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
643
661
  this.send(command, optionsOrCb || {}, cb);
644
662
  }
645
663
  else {
@@ -653,7 +671,7 @@ var Comprehend = (function (_super) {
653
671
  }
654
672
  else if (typeof cb === "function") {
655
673
  if (typeof optionsOrCb !== "object")
656
- throw new Error("Expect http options but get " + typeof optionsOrCb);
674
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
657
675
  this.send(command, optionsOrCb || {}, cb);
658
676
  }
659
677
  else {
@@ -667,7 +685,7 @@ var Comprehend = (function (_super) {
667
685
  }
668
686
  else if (typeof cb === "function") {
669
687
  if (typeof optionsOrCb !== "object")
670
- throw new Error("Expect http options but get " + typeof optionsOrCb);
688
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
671
689
  this.send(command, optionsOrCb || {}, cb);
672
690
  }
673
691
  else {
@@ -681,7 +699,7 @@ var Comprehend = (function (_super) {
681
699
  }
682
700
  else if (typeof cb === "function") {
683
701
  if (typeof optionsOrCb !== "object")
684
- throw new Error("Expect http options but get " + typeof optionsOrCb);
702
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
685
703
  this.send(command, optionsOrCb || {}, cb);
686
704
  }
687
705
  else {
@@ -695,7 +713,7 @@ var Comprehend = (function (_super) {
695
713
  }
696
714
  else if (typeof cb === "function") {
697
715
  if (typeof optionsOrCb !== "object")
698
- throw new Error("Expect http options but get " + typeof optionsOrCb);
716
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
699
717
  this.send(command, optionsOrCb || {}, cb);
700
718
  }
701
719
  else {
@@ -709,7 +727,21 @@ var Comprehend = (function (_super) {
709
727
  }
710
728
  else if (typeof cb === "function") {
711
729
  if (typeof optionsOrCb !== "object")
712
- throw new Error("Expect http options but get " + typeof optionsOrCb);
730
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
731
+ this.send(command, optionsOrCb || {}, cb);
732
+ }
733
+ else {
734
+ return this.send(command, optionsOrCb);
735
+ }
736
+ };
737
+ Comprehend.prototype.listTargetedSentimentDetectionJobs = function (args, optionsOrCb, cb) {
738
+ var command = new ListTargetedSentimentDetectionJobsCommand(args);
739
+ if (typeof optionsOrCb === "function") {
740
+ this.send(command, optionsOrCb);
741
+ }
742
+ else if (typeof cb === "function") {
743
+ if (typeof optionsOrCb !== "object")
744
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
713
745
  this.send(command, optionsOrCb || {}, cb);
714
746
  }
715
747
  else {
@@ -723,7 +755,7 @@ var Comprehend = (function (_super) {
723
755
  }
724
756
  else if (typeof cb === "function") {
725
757
  if (typeof optionsOrCb !== "object")
726
- throw new Error("Expect http options but get " + typeof optionsOrCb);
758
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
727
759
  this.send(command, optionsOrCb || {}, cb);
728
760
  }
729
761
  else {
@@ -737,7 +769,7 @@ var Comprehend = (function (_super) {
737
769
  }
738
770
  else if (typeof cb === "function") {
739
771
  if (typeof optionsOrCb !== "object")
740
- throw new Error("Expect http options but get " + typeof optionsOrCb);
772
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
741
773
  this.send(command, optionsOrCb || {}, cb);
742
774
  }
743
775
  else {
@@ -751,7 +783,7 @@ var Comprehend = (function (_super) {
751
783
  }
752
784
  else if (typeof cb === "function") {
753
785
  if (typeof optionsOrCb !== "object")
754
- throw new Error("Expect http options but get " + typeof optionsOrCb);
786
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
755
787
  this.send(command, optionsOrCb || {}, cb);
756
788
  }
757
789
  else {
@@ -765,7 +797,7 @@ var Comprehend = (function (_super) {
765
797
  }
766
798
  else if (typeof cb === "function") {
767
799
  if (typeof optionsOrCb !== "object")
768
- throw new Error("Expect http options but get " + typeof optionsOrCb);
800
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
769
801
  this.send(command, optionsOrCb || {}, cb);
770
802
  }
771
803
  else {
@@ -779,7 +811,7 @@ var Comprehend = (function (_super) {
779
811
  }
780
812
  else if (typeof cb === "function") {
781
813
  if (typeof optionsOrCb !== "object")
782
- throw new Error("Expect http options but get " + typeof optionsOrCb);
814
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
783
815
  this.send(command, optionsOrCb || {}, cb);
784
816
  }
785
817
  else {
@@ -793,7 +825,7 @@ var Comprehend = (function (_super) {
793
825
  }
794
826
  else if (typeof cb === "function") {
795
827
  if (typeof optionsOrCb !== "object")
796
- throw new Error("Expect http options but get " + typeof optionsOrCb);
828
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
797
829
  this.send(command, optionsOrCb || {}, cb);
798
830
  }
799
831
  else {
@@ -807,7 +839,7 @@ var Comprehend = (function (_super) {
807
839
  }
808
840
  else if (typeof cb === "function") {
809
841
  if (typeof optionsOrCb !== "object")
810
- throw new Error("Expect http options but get " + typeof optionsOrCb);
842
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
811
843
  this.send(command, optionsOrCb || {}, cb);
812
844
  }
813
845
  else {
@@ -821,7 +853,7 @@ var Comprehend = (function (_super) {
821
853
  }
822
854
  else if (typeof cb === "function") {
823
855
  if (typeof optionsOrCb !== "object")
824
- throw new Error("Expect http options but get " + typeof optionsOrCb);
856
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
825
857
  this.send(command, optionsOrCb || {}, cb);
826
858
  }
827
859
  else {
@@ -835,7 +867,21 @@ var Comprehend = (function (_super) {
835
867
  }
836
868
  else if (typeof cb === "function") {
837
869
  if (typeof optionsOrCb !== "object")
838
- throw new Error("Expect http options but get " + typeof optionsOrCb);
870
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
871
+ this.send(command, optionsOrCb || {}, cb);
872
+ }
873
+ else {
874
+ return this.send(command, optionsOrCb);
875
+ }
876
+ };
877
+ Comprehend.prototype.startTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
878
+ var command = new StartTargetedSentimentDetectionJobCommand(args);
879
+ if (typeof optionsOrCb === "function") {
880
+ this.send(command, optionsOrCb);
881
+ }
882
+ else if (typeof cb === "function") {
883
+ if (typeof optionsOrCb !== "object")
884
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
839
885
  this.send(command, optionsOrCb || {}, cb);
840
886
  }
841
887
  else {
@@ -849,7 +895,7 @@ var Comprehend = (function (_super) {
849
895
  }
850
896
  else if (typeof cb === "function") {
851
897
  if (typeof optionsOrCb !== "object")
852
- throw new Error("Expect http options but get " + typeof optionsOrCb);
898
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
853
899
  this.send(command, optionsOrCb || {}, cb);
854
900
  }
855
901
  else {
@@ -863,7 +909,7 @@ var Comprehend = (function (_super) {
863
909
  }
864
910
  else if (typeof cb === "function") {
865
911
  if (typeof optionsOrCb !== "object")
866
- throw new Error("Expect http options but get " + typeof optionsOrCb);
912
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
867
913
  this.send(command, optionsOrCb || {}, cb);
868
914
  }
869
915
  else {
@@ -877,7 +923,7 @@ var Comprehend = (function (_super) {
877
923
  }
878
924
  else if (typeof cb === "function") {
879
925
  if (typeof optionsOrCb !== "object")
880
- throw new Error("Expect http options but get " + typeof optionsOrCb);
926
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
881
927
  this.send(command, optionsOrCb || {}, cb);
882
928
  }
883
929
  else {
@@ -891,7 +937,7 @@ var Comprehend = (function (_super) {
891
937
  }
892
938
  else if (typeof cb === "function") {
893
939
  if (typeof optionsOrCb !== "object")
894
- throw new Error("Expect http options but get " + typeof optionsOrCb);
940
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
895
941
  this.send(command, optionsOrCb || {}, cb);
896
942
  }
897
943
  else {
@@ -905,7 +951,7 @@ var Comprehend = (function (_super) {
905
951
  }
906
952
  else if (typeof cb === "function") {
907
953
  if (typeof optionsOrCb !== "object")
908
- throw new Error("Expect http options but get " + typeof optionsOrCb);
954
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
909
955
  this.send(command, optionsOrCb || {}, cb);
910
956
  }
911
957
  else {
@@ -919,7 +965,7 @@ var Comprehend = (function (_super) {
919
965
  }
920
966
  else if (typeof cb === "function") {
921
967
  if (typeof optionsOrCb !== "object")
922
- throw new Error("Expect http options but get " + typeof optionsOrCb);
968
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
923
969
  this.send(command, optionsOrCb || {}, cb);
924
970
  }
925
971
  else {
@@ -933,7 +979,21 @@ var Comprehend = (function (_super) {
933
979
  }
934
980
  else if (typeof cb === "function") {
935
981
  if (typeof optionsOrCb !== "object")
936
- throw new Error("Expect http options but get " + typeof optionsOrCb);
982
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
983
+ this.send(command, optionsOrCb || {}, cb);
984
+ }
985
+ else {
986
+ return this.send(command, optionsOrCb);
987
+ }
988
+ };
989
+ Comprehend.prototype.stopTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
990
+ var command = new StopTargetedSentimentDetectionJobCommand(args);
991
+ if (typeof optionsOrCb === "function") {
992
+ this.send(command, optionsOrCb);
993
+ }
994
+ else if (typeof cb === "function") {
995
+ if (typeof optionsOrCb !== "object")
996
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
937
997
  this.send(command, optionsOrCb || {}, cb);
938
998
  }
939
999
  else {
@@ -947,7 +1007,7 @@ var Comprehend = (function (_super) {
947
1007
  }
948
1008
  else if (typeof cb === "function") {
949
1009
  if (typeof optionsOrCb !== "object")
950
- throw new Error("Expect http options but get " + typeof optionsOrCb);
1010
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
951
1011
  this.send(command, optionsOrCb || {}, cb);
952
1012
  }
953
1013
  else {
@@ -961,7 +1021,7 @@ var Comprehend = (function (_super) {
961
1021
  }
962
1022
  else if (typeof cb === "function") {
963
1023
  if (typeof optionsOrCb !== "object")
964
- throw new Error("Expect http options but get " + typeof optionsOrCb);
1024
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
965
1025
  this.send(command, optionsOrCb || {}, cb);
966
1026
  }
967
1027
  else {
@@ -975,7 +1035,7 @@ var Comprehend = (function (_super) {
975
1035
  }
976
1036
  else if (typeof cb === "function") {
977
1037
  if (typeof optionsOrCb !== "object")
978
- throw new Error("Expect http options but get " + typeof optionsOrCb);
1038
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
979
1039
  this.send(command, optionsOrCb || {}, cb);
980
1040
  }
981
1041
  else {
@@ -989,7 +1049,7 @@ var Comprehend = (function (_super) {
989
1049
  }
990
1050
  else if (typeof cb === "function") {
991
1051
  if (typeof optionsOrCb !== "object")
992
- throw new Error("Expect http options but get " + typeof optionsOrCb);
1052
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
993
1053
  this.send(command, optionsOrCb || {}, cb);
994
1054
  }
995
1055
  else {
@@ -1003,7 +1063,7 @@ var Comprehend = (function (_super) {
1003
1063
  }
1004
1064
  else if (typeof cb === "function") {
1005
1065
  if (typeof optionsOrCb !== "object")
1006
- throw new Error("Expect http options but get " + typeof optionsOrCb);
1066
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1007
1067
  this.send(command, optionsOrCb || {}, cb);
1008
1068
  }
1009
1069
  else {