@aws-sdk/client-comprehend 3.183.0 → 3.185.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/Comprehend.js +301 -294
- package/dist-es/ComprehendClient.js +28 -22
- package/dist-es/commands/BatchDetectDominantLanguageCommand.js +28 -21
- package/dist-es/commands/BatchDetectEntitiesCommand.js +28 -21
- package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +28 -21
- package/dist-es/commands/BatchDetectSentimentCommand.js +28 -21
- package/dist-es/commands/BatchDetectSyntaxCommand.js +28 -21
- package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +28 -21
- package/dist-es/commands/ClassifyDocumentCommand.js +28 -21
- package/dist-es/commands/ContainsPiiEntitiesCommand.js +28 -21
- package/dist-es/commands/CreateDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/CreateEndpointCommand.js +28 -21
- package/dist-es/commands/CreateEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/DeleteDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/DeleteEndpointCommand.js +28 -21
- package/dist-es/commands/DeleteEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/DeleteResourcePolicyCommand.js +28 -21
- package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +28 -21
- package/dist-es/commands/DescribeDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeEndpointCommand.js +28 -21
- package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/DescribeEventsDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeResourcePolicyCommand.js +28 -21
- package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +28 -21
- package/dist-es/commands/DetectDominantLanguageCommand.js +28 -21
- package/dist-es/commands/DetectEntitiesCommand.js +28 -21
- package/dist-es/commands/DetectKeyPhrasesCommand.js +28 -21
- package/dist-es/commands/DetectPiiEntitiesCommand.js +28 -21
- package/dist-es/commands/DetectSentimentCommand.js +28 -21
- package/dist-es/commands/DetectSyntaxCommand.js +28 -21
- package/dist-es/commands/DetectTargetedSentimentCommand.js +28 -21
- package/dist-es/commands/ImportModelCommand.js +28 -21
- package/dist-es/commands/ListDocumentClassificationJobsCommand.js +28 -21
- package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +28 -21
- package/dist-es/commands/ListDocumentClassifiersCommand.js +28 -21
- package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListEndpointsCommand.js +28 -21
- package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +28 -21
- package/dist-es/commands/ListEntityRecognizersCommand.js +28 -21
- package/dist-es/commands/ListEventsDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListSentimentDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListTopicsDetectionJobsCommand.js +28 -21
- package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
- package/dist-es/commands/StartDocumentClassificationJobCommand.js +28 -21
- package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartEventsDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartTopicsDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopEventsDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateEndpointCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ComprehendServiceException.js +10 -5
- package/dist-es/models/models_0.js +416 -856
- package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +68 -25
- package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +68 -25
- package/dist-es/pagination/ListDocumentClassifiersPaginator.js +68 -25
- package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +68 -25
- package/dist-es/pagination/ListEntityRecognizersPaginator.js +68 -25
- package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +6388 -5054
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/dist-es/Comprehend.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { BatchDetectDominantLanguageCommand, } from "./commands/BatchDetectDominantLanguageCommand";
|
|
2
3
|
import { BatchDetectEntitiesCommand, } from "./commands/BatchDetectEntitiesCommand";
|
|
3
4
|
import { BatchDetectKeyPhrasesCommand, } from "./commands/BatchDetectKeyPhrasesCommand";
|
|
@@ -72,1027 +73,1033 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
72
73
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
73
74
|
import { UpdateEndpointCommand, } from "./commands/UpdateEndpointCommand";
|
|
74
75
|
import { ComprehendClient } from "./ComprehendClient";
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
var Comprehend = (function (_super) {
|
|
77
|
+
__extends(Comprehend, _super);
|
|
78
|
+
function Comprehend() {
|
|
79
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
80
|
+
}
|
|
81
|
+
Comprehend.prototype.batchDetectDominantLanguage = function (args, optionsOrCb, cb) {
|
|
82
|
+
var command = new BatchDetectDominantLanguageCommand(args);
|
|
78
83
|
if (typeof optionsOrCb === "function") {
|
|
79
84
|
this.send(command, optionsOrCb);
|
|
80
85
|
}
|
|
81
86
|
else if (typeof cb === "function") {
|
|
82
87
|
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(
|
|
88
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
84
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
85
90
|
}
|
|
86
91
|
else {
|
|
87
92
|
return this.send(command, optionsOrCb);
|
|
88
93
|
}
|
|
89
|
-
}
|
|
90
|
-
batchDetectEntities(args, optionsOrCb, cb) {
|
|
91
|
-
|
|
94
|
+
};
|
|
95
|
+
Comprehend.prototype.batchDetectEntities = function (args, optionsOrCb, cb) {
|
|
96
|
+
var command = new BatchDetectEntitiesCommand(args);
|
|
92
97
|
if (typeof optionsOrCb === "function") {
|
|
93
98
|
this.send(command, optionsOrCb);
|
|
94
99
|
}
|
|
95
100
|
else if (typeof cb === "function") {
|
|
96
101
|
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(
|
|
102
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
98
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
99
104
|
}
|
|
100
105
|
else {
|
|
101
106
|
return this.send(command, optionsOrCb);
|
|
102
107
|
}
|
|
103
|
-
}
|
|
104
|
-
batchDetectKeyPhrases(args, optionsOrCb, cb) {
|
|
105
|
-
|
|
108
|
+
};
|
|
109
|
+
Comprehend.prototype.batchDetectKeyPhrases = function (args, optionsOrCb, cb) {
|
|
110
|
+
var command = new BatchDetectKeyPhrasesCommand(args);
|
|
106
111
|
if (typeof optionsOrCb === "function") {
|
|
107
112
|
this.send(command, optionsOrCb);
|
|
108
113
|
}
|
|
109
114
|
else if (typeof cb === "function") {
|
|
110
115
|
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(
|
|
116
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
112
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
113
118
|
}
|
|
114
119
|
else {
|
|
115
120
|
return this.send(command, optionsOrCb);
|
|
116
121
|
}
|
|
117
|
-
}
|
|
118
|
-
batchDetectSentiment(args, optionsOrCb, cb) {
|
|
119
|
-
|
|
122
|
+
};
|
|
123
|
+
Comprehend.prototype.batchDetectSentiment = function (args, optionsOrCb, cb) {
|
|
124
|
+
var command = new BatchDetectSentimentCommand(args);
|
|
120
125
|
if (typeof optionsOrCb === "function") {
|
|
121
126
|
this.send(command, optionsOrCb);
|
|
122
127
|
}
|
|
123
128
|
else if (typeof cb === "function") {
|
|
124
129
|
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(
|
|
130
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
126
131
|
this.send(command, optionsOrCb || {}, cb);
|
|
127
132
|
}
|
|
128
133
|
else {
|
|
129
134
|
return this.send(command, optionsOrCb);
|
|
130
135
|
}
|
|
131
|
-
}
|
|
132
|
-
batchDetectSyntax(args, optionsOrCb, cb) {
|
|
133
|
-
|
|
136
|
+
};
|
|
137
|
+
Comprehend.prototype.batchDetectSyntax = function (args, optionsOrCb, cb) {
|
|
138
|
+
var command = new BatchDetectSyntaxCommand(args);
|
|
134
139
|
if (typeof optionsOrCb === "function") {
|
|
135
140
|
this.send(command, optionsOrCb);
|
|
136
141
|
}
|
|
137
142
|
else if (typeof cb === "function") {
|
|
138
143
|
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(
|
|
144
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
140
145
|
this.send(command, optionsOrCb || {}, cb);
|
|
141
146
|
}
|
|
142
147
|
else {
|
|
143
148
|
return this.send(command, optionsOrCb);
|
|
144
149
|
}
|
|
145
|
-
}
|
|
146
|
-
batchDetectTargetedSentiment(args, optionsOrCb, cb) {
|
|
147
|
-
|
|
150
|
+
};
|
|
151
|
+
Comprehend.prototype.batchDetectTargetedSentiment = function (args, optionsOrCb, cb) {
|
|
152
|
+
var command = new BatchDetectTargetedSentimentCommand(args);
|
|
148
153
|
if (typeof optionsOrCb === "function") {
|
|
149
154
|
this.send(command, optionsOrCb);
|
|
150
155
|
}
|
|
151
156
|
else if (typeof cb === "function") {
|
|
152
157
|
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(
|
|
158
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
154
159
|
this.send(command, optionsOrCb || {}, cb);
|
|
155
160
|
}
|
|
156
161
|
else {
|
|
157
162
|
return this.send(command, optionsOrCb);
|
|
158
163
|
}
|
|
159
|
-
}
|
|
160
|
-
classifyDocument(args, optionsOrCb, cb) {
|
|
161
|
-
|
|
164
|
+
};
|
|
165
|
+
Comprehend.prototype.classifyDocument = function (args, optionsOrCb, cb) {
|
|
166
|
+
var command = new ClassifyDocumentCommand(args);
|
|
162
167
|
if (typeof optionsOrCb === "function") {
|
|
163
168
|
this.send(command, optionsOrCb);
|
|
164
169
|
}
|
|
165
170
|
else if (typeof cb === "function") {
|
|
166
171
|
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(
|
|
172
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
168
173
|
this.send(command, optionsOrCb || {}, cb);
|
|
169
174
|
}
|
|
170
175
|
else {
|
|
171
176
|
return this.send(command, optionsOrCb);
|
|
172
177
|
}
|
|
173
|
-
}
|
|
174
|
-
containsPiiEntities(args, optionsOrCb, cb) {
|
|
175
|
-
|
|
178
|
+
};
|
|
179
|
+
Comprehend.prototype.containsPiiEntities = function (args, optionsOrCb, cb) {
|
|
180
|
+
var command = new ContainsPiiEntitiesCommand(args);
|
|
176
181
|
if (typeof optionsOrCb === "function") {
|
|
177
182
|
this.send(command, optionsOrCb);
|
|
178
183
|
}
|
|
179
184
|
else if (typeof cb === "function") {
|
|
180
185
|
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(
|
|
186
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
182
187
|
this.send(command, optionsOrCb || {}, cb);
|
|
183
188
|
}
|
|
184
189
|
else {
|
|
185
190
|
return this.send(command, optionsOrCb);
|
|
186
191
|
}
|
|
187
|
-
}
|
|
188
|
-
createDocumentClassifier(args, optionsOrCb, cb) {
|
|
189
|
-
|
|
192
|
+
};
|
|
193
|
+
Comprehend.prototype.createDocumentClassifier = function (args, optionsOrCb, cb) {
|
|
194
|
+
var command = new CreateDocumentClassifierCommand(args);
|
|
190
195
|
if (typeof optionsOrCb === "function") {
|
|
191
196
|
this.send(command, optionsOrCb);
|
|
192
197
|
}
|
|
193
198
|
else if (typeof cb === "function") {
|
|
194
199
|
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(
|
|
200
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
196
201
|
this.send(command, optionsOrCb || {}, cb);
|
|
197
202
|
}
|
|
198
203
|
else {
|
|
199
204
|
return this.send(command, optionsOrCb);
|
|
200
205
|
}
|
|
201
|
-
}
|
|
202
|
-
createEndpoint(args, optionsOrCb, cb) {
|
|
203
|
-
|
|
206
|
+
};
|
|
207
|
+
Comprehend.prototype.createEndpoint = function (args, optionsOrCb, cb) {
|
|
208
|
+
var command = new CreateEndpointCommand(args);
|
|
204
209
|
if (typeof optionsOrCb === "function") {
|
|
205
210
|
this.send(command, optionsOrCb);
|
|
206
211
|
}
|
|
207
212
|
else if (typeof cb === "function") {
|
|
208
213
|
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(
|
|
214
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
210
215
|
this.send(command, optionsOrCb || {}, cb);
|
|
211
216
|
}
|
|
212
217
|
else {
|
|
213
218
|
return this.send(command, optionsOrCb);
|
|
214
219
|
}
|
|
215
|
-
}
|
|
216
|
-
createEntityRecognizer(args, optionsOrCb, cb) {
|
|
217
|
-
|
|
220
|
+
};
|
|
221
|
+
Comprehend.prototype.createEntityRecognizer = function (args, optionsOrCb, cb) {
|
|
222
|
+
var command = new CreateEntityRecognizerCommand(args);
|
|
218
223
|
if (typeof optionsOrCb === "function") {
|
|
219
224
|
this.send(command, optionsOrCb);
|
|
220
225
|
}
|
|
221
226
|
else if (typeof cb === "function") {
|
|
222
227
|
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(
|
|
228
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
224
229
|
this.send(command, optionsOrCb || {}, cb);
|
|
225
230
|
}
|
|
226
231
|
else {
|
|
227
232
|
return this.send(command, optionsOrCb);
|
|
228
233
|
}
|
|
229
|
-
}
|
|
230
|
-
deleteDocumentClassifier(args, optionsOrCb, cb) {
|
|
231
|
-
|
|
234
|
+
};
|
|
235
|
+
Comprehend.prototype.deleteDocumentClassifier = function (args, optionsOrCb, cb) {
|
|
236
|
+
var command = new DeleteDocumentClassifierCommand(args);
|
|
232
237
|
if (typeof optionsOrCb === "function") {
|
|
233
238
|
this.send(command, optionsOrCb);
|
|
234
239
|
}
|
|
235
240
|
else if (typeof cb === "function") {
|
|
236
241
|
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(
|
|
242
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
238
243
|
this.send(command, optionsOrCb || {}, cb);
|
|
239
244
|
}
|
|
240
245
|
else {
|
|
241
246
|
return this.send(command, optionsOrCb);
|
|
242
247
|
}
|
|
243
|
-
}
|
|
244
|
-
deleteEndpoint(args, optionsOrCb, cb) {
|
|
245
|
-
|
|
248
|
+
};
|
|
249
|
+
Comprehend.prototype.deleteEndpoint = function (args, optionsOrCb, cb) {
|
|
250
|
+
var command = new DeleteEndpointCommand(args);
|
|
246
251
|
if (typeof optionsOrCb === "function") {
|
|
247
252
|
this.send(command, optionsOrCb);
|
|
248
253
|
}
|
|
249
254
|
else if (typeof cb === "function") {
|
|
250
255
|
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(
|
|
256
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
252
257
|
this.send(command, optionsOrCb || {}, cb);
|
|
253
258
|
}
|
|
254
259
|
else {
|
|
255
260
|
return this.send(command, optionsOrCb);
|
|
256
261
|
}
|
|
257
|
-
}
|
|
258
|
-
deleteEntityRecognizer(args, optionsOrCb, cb) {
|
|
259
|
-
|
|
262
|
+
};
|
|
263
|
+
Comprehend.prototype.deleteEntityRecognizer = function (args, optionsOrCb, cb) {
|
|
264
|
+
var command = new DeleteEntityRecognizerCommand(args);
|
|
260
265
|
if (typeof optionsOrCb === "function") {
|
|
261
266
|
this.send(command, optionsOrCb);
|
|
262
267
|
}
|
|
263
268
|
else if (typeof cb === "function") {
|
|
264
269
|
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(
|
|
270
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
266
271
|
this.send(command, optionsOrCb || {}, cb);
|
|
267
272
|
}
|
|
268
273
|
else {
|
|
269
274
|
return this.send(command, optionsOrCb);
|
|
270
275
|
}
|
|
271
|
-
}
|
|
272
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
273
|
-
|
|
276
|
+
};
|
|
277
|
+
Comprehend.prototype.deleteResourcePolicy = function (args, optionsOrCb, cb) {
|
|
278
|
+
var command = new DeleteResourcePolicyCommand(args);
|
|
274
279
|
if (typeof optionsOrCb === "function") {
|
|
275
280
|
this.send(command, optionsOrCb);
|
|
276
281
|
}
|
|
277
282
|
else if (typeof cb === "function") {
|
|
278
283
|
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(
|
|
284
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
280
285
|
this.send(command, optionsOrCb || {}, cb);
|
|
281
286
|
}
|
|
282
287
|
else {
|
|
283
288
|
return this.send(command, optionsOrCb);
|
|
284
289
|
}
|
|
285
|
-
}
|
|
286
|
-
describeDocumentClassificationJob(args, optionsOrCb, cb) {
|
|
287
|
-
|
|
290
|
+
};
|
|
291
|
+
Comprehend.prototype.describeDocumentClassificationJob = function (args, optionsOrCb, cb) {
|
|
292
|
+
var command = new DescribeDocumentClassificationJobCommand(args);
|
|
288
293
|
if (typeof optionsOrCb === "function") {
|
|
289
294
|
this.send(command, optionsOrCb);
|
|
290
295
|
}
|
|
291
296
|
else if (typeof cb === "function") {
|
|
292
297
|
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(
|
|
298
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
294
299
|
this.send(command, optionsOrCb || {}, cb);
|
|
295
300
|
}
|
|
296
301
|
else {
|
|
297
302
|
return this.send(command, optionsOrCb);
|
|
298
303
|
}
|
|
299
|
-
}
|
|
300
|
-
describeDocumentClassifier(args, optionsOrCb, cb) {
|
|
301
|
-
|
|
304
|
+
};
|
|
305
|
+
Comprehend.prototype.describeDocumentClassifier = function (args, optionsOrCb, cb) {
|
|
306
|
+
var command = new DescribeDocumentClassifierCommand(args);
|
|
302
307
|
if (typeof optionsOrCb === "function") {
|
|
303
308
|
this.send(command, optionsOrCb);
|
|
304
309
|
}
|
|
305
310
|
else if (typeof cb === "function") {
|
|
306
311
|
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(
|
|
312
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
308
313
|
this.send(command, optionsOrCb || {}, cb);
|
|
309
314
|
}
|
|
310
315
|
else {
|
|
311
316
|
return this.send(command, optionsOrCb);
|
|
312
317
|
}
|
|
313
|
-
}
|
|
314
|
-
describeDominantLanguageDetectionJob(args, optionsOrCb, cb) {
|
|
315
|
-
|
|
318
|
+
};
|
|
319
|
+
Comprehend.prototype.describeDominantLanguageDetectionJob = function (args, optionsOrCb, cb) {
|
|
320
|
+
var command = new DescribeDominantLanguageDetectionJobCommand(args);
|
|
316
321
|
if (typeof optionsOrCb === "function") {
|
|
317
322
|
this.send(command, optionsOrCb);
|
|
318
323
|
}
|
|
319
324
|
else if (typeof cb === "function") {
|
|
320
325
|
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(
|
|
326
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
322
327
|
this.send(command, optionsOrCb || {}, cb);
|
|
323
328
|
}
|
|
324
329
|
else {
|
|
325
330
|
return this.send(command, optionsOrCb);
|
|
326
331
|
}
|
|
327
|
-
}
|
|
328
|
-
describeEndpoint(args, optionsOrCb, cb) {
|
|
329
|
-
|
|
332
|
+
};
|
|
333
|
+
Comprehend.prototype.describeEndpoint = function (args, optionsOrCb, cb) {
|
|
334
|
+
var command = new DescribeEndpointCommand(args);
|
|
330
335
|
if (typeof optionsOrCb === "function") {
|
|
331
336
|
this.send(command, optionsOrCb);
|
|
332
337
|
}
|
|
333
338
|
else if (typeof cb === "function") {
|
|
334
339
|
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(
|
|
340
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
336
341
|
this.send(command, optionsOrCb || {}, cb);
|
|
337
342
|
}
|
|
338
343
|
else {
|
|
339
344
|
return this.send(command, optionsOrCb);
|
|
340
345
|
}
|
|
341
|
-
}
|
|
342
|
-
describeEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
343
|
-
|
|
346
|
+
};
|
|
347
|
+
Comprehend.prototype.describeEntitiesDetectionJob = function (args, optionsOrCb, cb) {
|
|
348
|
+
var command = new DescribeEntitiesDetectionJobCommand(args);
|
|
344
349
|
if (typeof optionsOrCb === "function") {
|
|
345
350
|
this.send(command, optionsOrCb);
|
|
346
351
|
}
|
|
347
352
|
else if (typeof cb === "function") {
|
|
348
353
|
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(
|
|
354
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
350
355
|
this.send(command, optionsOrCb || {}, cb);
|
|
351
356
|
}
|
|
352
357
|
else {
|
|
353
358
|
return this.send(command, optionsOrCb);
|
|
354
359
|
}
|
|
355
|
-
}
|
|
356
|
-
describeEntityRecognizer(args, optionsOrCb, cb) {
|
|
357
|
-
|
|
360
|
+
};
|
|
361
|
+
Comprehend.prototype.describeEntityRecognizer = function (args, optionsOrCb, cb) {
|
|
362
|
+
var command = new DescribeEntityRecognizerCommand(args);
|
|
358
363
|
if (typeof optionsOrCb === "function") {
|
|
359
364
|
this.send(command, optionsOrCb);
|
|
360
365
|
}
|
|
361
366
|
else if (typeof cb === "function") {
|
|
362
367
|
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(
|
|
368
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
364
369
|
this.send(command, optionsOrCb || {}, cb);
|
|
365
370
|
}
|
|
366
371
|
else {
|
|
367
372
|
return this.send(command, optionsOrCb);
|
|
368
373
|
}
|
|
369
|
-
}
|
|
370
|
-
describeEventsDetectionJob(args, optionsOrCb, cb) {
|
|
371
|
-
|
|
374
|
+
};
|
|
375
|
+
Comprehend.prototype.describeEventsDetectionJob = function (args, optionsOrCb, cb) {
|
|
376
|
+
var command = new DescribeEventsDetectionJobCommand(args);
|
|
372
377
|
if (typeof optionsOrCb === "function") {
|
|
373
378
|
this.send(command, optionsOrCb);
|
|
374
379
|
}
|
|
375
380
|
else if (typeof cb === "function") {
|
|
376
381
|
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(
|
|
382
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
378
383
|
this.send(command, optionsOrCb || {}, cb);
|
|
379
384
|
}
|
|
380
385
|
else {
|
|
381
386
|
return this.send(command, optionsOrCb);
|
|
382
387
|
}
|
|
383
|
-
}
|
|
384
|
-
describeKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
385
|
-
|
|
388
|
+
};
|
|
389
|
+
Comprehend.prototype.describeKeyPhrasesDetectionJob = function (args, optionsOrCb, cb) {
|
|
390
|
+
var command = new DescribeKeyPhrasesDetectionJobCommand(args);
|
|
386
391
|
if (typeof optionsOrCb === "function") {
|
|
387
392
|
this.send(command, optionsOrCb);
|
|
388
393
|
}
|
|
389
394
|
else if (typeof cb === "function") {
|
|
390
395
|
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(
|
|
396
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
392
397
|
this.send(command, optionsOrCb || {}, cb);
|
|
393
398
|
}
|
|
394
399
|
else {
|
|
395
400
|
return this.send(command, optionsOrCb);
|
|
396
401
|
}
|
|
397
|
-
}
|
|
398
|
-
describePiiEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
399
|
-
|
|
402
|
+
};
|
|
403
|
+
Comprehend.prototype.describePiiEntitiesDetectionJob = function (args, optionsOrCb, cb) {
|
|
404
|
+
var command = new DescribePiiEntitiesDetectionJobCommand(args);
|
|
400
405
|
if (typeof optionsOrCb === "function") {
|
|
401
406
|
this.send(command, optionsOrCb);
|
|
402
407
|
}
|
|
403
408
|
else if (typeof cb === "function") {
|
|
404
409
|
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(
|
|
410
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
406
411
|
this.send(command, optionsOrCb || {}, cb);
|
|
407
412
|
}
|
|
408
413
|
else {
|
|
409
414
|
return this.send(command, optionsOrCb);
|
|
410
415
|
}
|
|
411
|
-
}
|
|
412
|
-
describeResourcePolicy(args, optionsOrCb, cb) {
|
|
413
|
-
|
|
416
|
+
};
|
|
417
|
+
Comprehend.prototype.describeResourcePolicy = function (args, optionsOrCb, cb) {
|
|
418
|
+
var command = new DescribeResourcePolicyCommand(args);
|
|
414
419
|
if (typeof optionsOrCb === "function") {
|
|
415
420
|
this.send(command, optionsOrCb);
|
|
416
421
|
}
|
|
417
422
|
else if (typeof cb === "function") {
|
|
418
423
|
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(
|
|
424
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
420
425
|
this.send(command, optionsOrCb || {}, cb);
|
|
421
426
|
}
|
|
422
427
|
else {
|
|
423
428
|
return this.send(command, optionsOrCb);
|
|
424
429
|
}
|
|
425
|
-
}
|
|
426
|
-
describeSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
427
|
-
|
|
430
|
+
};
|
|
431
|
+
Comprehend.prototype.describeSentimentDetectionJob = function (args, optionsOrCb, cb) {
|
|
432
|
+
var command = new DescribeSentimentDetectionJobCommand(args);
|
|
428
433
|
if (typeof optionsOrCb === "function") {
|
|
429
434
|
this.send(command, optionsOrCb);
|
|
430
435
|
}
|
|
431
436
|
else if (typeof cb === "function") {
|
|
432
437
|
if (typeof optionsOrCb !== "object")
|
|
433
|
-
throw new Error(
|
|
438
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
434
439
|
this.send(command, optionsOrCb || {}, cb);
|
|
435
440
|
}
|
|
436
441
|
else {
|
|
437
442
|
return this.send(command, optionsOrCb);
|
|
438
443
|
}
|
|
439
|
-
}
|
|
440
|
-
describeTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
441
|
-
|
|
444
|
+
};
|
|
445
|
+
Comprehend.prototype.describeTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
|
|
446
|
+
var command = new DescribeTargetedSentimentDetectionJobCommand(args);
|
|
442
447
|
if (typeof optionsOrCb === "function") {
|
|
443
448
|
this.send(command, optionsOrCb);
|
|
444
449
|
}
|
|
445
450
|
else if (typeof cb === "function") {
|
|
446
451
|
if (typeof optionsOrCb !== "object")
|
|
447
|
-
throw new Error(
|
|
452
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
448
453
|
this.send(command, optionsOrCb || {}, cb);
|
|
449
454
|
}
|
|
450
455
|
else {
|
|
451
456
|
return this.send(command, optionsOrCb);
|
|
452
457
|
}
|
|
453
|
-
}
|
|
454
|
-
describeTopicsDetectionJob(args, optionsOrCb, cb) {
|
|
455
|
-
|
|
458
|
+
};
|
|
459
|
+
Comprehend.prototype.describeTopicsDetectionJob = function (args, optionsOrCb, cb) {
|
|
460
|
+
var command = new DescribeTopicsDetectionJobCommand(args);
|
|
456
461
|
if (typeof optionsOrCb === "function") {
|
|
457
462
|
this.send(command, optionsOrCb);
|
|
458
463
|
}
|
|
459
464
|
else if (typeof cb === "function") {
|
|
460
465
|
if (typeof optionsOrCb !== "object")
|
|
461
|
-
throw new Error(
|
|
466
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
462
467
|
this.send(command, optionsOrCb || {}, cb);
|
|
463
468
|
}
|
|
464
469
|
else {
|
|
465
470
|
return this.send(command, optionsOrCb);
|
|
466
471
|
}
|
|
467
|
-
}
|
|
468
|
-
detectDominantLanguage(args, optionsOrCb, cb) {
|
|
469
|
-
|
|
472
|
+
};
|
|
473
|
+
Comprehend.prototype.detectDominantLanguage = function (args, optionsOrCb, cb) {
|
|
474
|
+
var command = new DetectDominantLanguageCommand(args);
|
|
470
475
|
if (typeof optionsOrCb === "function") {
|
|
471
476
|
this.send(command, optionsOrCb);
|
|
472
477
|
}
|
|
473
478
|
else if (typeof cb === "function") {
|
|
474
479
|
if (typeof optionsOrCb !== "object")
|
|
475
|
-
throw new Error(
|
|
480
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
476
481
|
this.send(command, optionsOrCb || {}, cb);
|
|
477
482
|
}
|
|
478
483
|
else {
|
|
479
484
|
return this.send(command, optionsOrCb);
|
|
480
485
|
}
|
|
481
|
-
}
|
|
482
|
-
detectEntities(args, optionsOrCb, cb) {
|
|
483
|
-
|
|
486
|
+
};
|
|
487
|
+
Comprehend.prototype.detectEntities = function (args, optionsOrCb, cb) {
|
|
488
|
+
var command = new DetectEntitiesCommand(args);
|
|
484
489
|
if (typeof optionsOrCb === "function") {
|
|
485
490
|
this.send(command, optionsOrCb);
|
|
486
491
|
}
|
|
487
492
|
else if (typeof cb === "function") {
|
|
488
493
|
if (typeof optionsOrCb !== "object")
|
|
489
|
-
throw new Error(
|
|
494
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
490
495
|
this.send(command, optionsOrCb || {}, cb);
|
|
491
496
|
}
|
|
492
497
|
else {
|
|
493
498
|
return this.send(command, optionsOrCb);
|
|
494
499
|
}
|
|
495
|
-
}
|
|
496
|
-
detectKeyPhrases(args, optionsOrCb, cb) {
|
|
497
|
-
|
|
500
|
+
};
|
|
501
|
+
Comprehend.prototype.detectKeyPhrases = function (args, optionsOrCb, cb) {
|
|
502
|
+
var command = new DetectKeyPhrasesCommand(args);
|
|
498
503
|
if (typeof optionsOrCb === "function") {
|
|
499
504
|
this.send(command, optionsOrCb);
|
|
500
505
|
}
|
|
501
506
|
else if (typeof cb === "function") {
|
|
502
507
|
if (typeof optionsOrCb !== "object")
|
|
503
|
-
throw new Error(
|
|
508
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
504
509
|
this.send(command, optionsOrCb || {}, cb);
|
|
505
510
|
}
|
|
506
511
|
else {
|
|
507
512
|
return this.send(command, optionsOrCb);
|
|
508
513
|
}
|
|
509
|
-
}
|
|
510
|
-
detectPiiEntities(args, optionsOrCb, cb) {
|
|
511
|
-
|
|
514
|
+
};
|
|
515
|
+
Comprehend.prototype.detectPiiEntities = function (args, optionsOrCb, cb) {
|
|
516
|
+
var command = new DetectPiiEntitiesCommand(args);
|
|
512
517
|
if (typeof optionsOrCb === "function") {
|
|
513
518
|
this.send(command, optionsOrCb);
|
|
514
519
|
}
|
|
515
520
|
else if (typeof cb === "function") {
|
|
516
521
|
if (typeof optionsOrCb !== "object")
|
|
517
|
-
throw new Error(
|
|
522
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
518
523
|
this.send(command, optionsOrCb || {}, cb);
|
|
519
524
|
}
|
|
520
525
|
else {
|
|
521
526
|
return this.send(command, optionsOrCb);
|
|
522
527
|
}
|
|
523
|
-
}
|
|
524
|
-
detectSentiment(args, optionsOrCb, cb) {
|
|
525
|
-
|
|
528
|
+
};
|
|
529
|
+
Comprehend.prototype.detectSentiment = function (args, optionsOrCb, cb) {
|
|
530
|
+
var command = new DetectSentimentCommand(args);
|
|
526
531
|
if (typeof optionsOrCb === "function") {
|
|
527
532
|
this.send(command, optionsOrCb);
|
|
528
533
|
}
|
|
529
534
|
else if (typeof cb === "function") {
|
|
530
535
|
if (typeof optionsOrCb !== "object")
|
|
531
|
-
throw new Error(
|
|
536
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
532
537
|
this.send(command, optionsOrCb || {}, cb);
|
|
533
538
|
}
|
|
534
539
|
else {
|
|
535
540
|
return this.send(command, optionsOrCb);
|
|
536
541
|
}
|
|
537
|
-
}
|
|
538
|
-
detectSyntax(args, optionsOrCb, cb) {
|
|
539
|
-
|
|
542
|
+
};
|
|
543
|
+
Comprehend.prototype.detectSyntax = function (args, optionsOrCb, cb) {
|
|
544
|
+
var command = new DetectSyntaxCommand(args);
|
|
540
545
|
if (typeof optionsOrCb === "function") {
|
|
541
546
|
this.send(command, optionsOrCb);
|
|
542
547
|
}
|
|
543
548
|
else if (typeof cb === "function") {
|
|
544
549
|
if (typeof optionsOrCb !== "object")
|
|
545
|
-
throw new Error(
|
|
550
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
546
551
|
this.send(command, optionsOrCb || {}, cb);
|
|
547
552
|
}
|
|
548
553
|
else {
|
|
549
554
|
return this.send(command, optionsOrCb);
|
|
550
555
|
}
|
|
551
|
-
}
|
|
552
|
-
detectTargetedSentiment(args, optionsOrCb, cb) {
|
|
553
|
-
|
|
556
|
+
};
|
|
557
|
+
Comprehend.prototype.detectTargetedSentiment = function (args, optionsOrCb, cb) {
|
|
558
|
+
var command = new DetectTargetedSentimentCommand(args);
|
|
554
559
|
if (typeof optionsOrCb === "function") {
|
|
555
560
|
this.send(command, optionsOrCb);
|
|
556
561
|
}
|
|
557
562
|
else if (typeof cb === "function") {
|
|
558
563
|
if (typeof optionsOrCb !== "object")
|
|
559
|
-
throw new Error(
|
|
564
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
560
565
|
this.send(command, optionsOrCb || {}, cb);
|
|
561
566
|
}
|
|
562
567
|
else {
|
|
563
568
|
return this.send(command, optionsOrCb);
|
|
564
569
|
}
|
|
565
|
-
}
|
|
566
|
-
importModel(args, optionsOrCb, cb) {
|
|
567
|
-
|
|
570
|
+
};
|
|
571
|
+
Comprehend.prototype.importModel = function (args, optionsOrCb, cb) {
|
|
572
|
+
var command = new ImportModelCommand(args);
|
|
568
573
|
if (typeof optionsOrCb === "function") {
|
|
569
574
|
this.send(command, optionsOrCb);
|
|
570
575
|
}
|
|
571
576
|
else if (typeof cb === "function") {
|
|
572
577
|
if (typeof optionsOrCb !== "object")
|
|
573
|
-
throw new Error(
|
|
578
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
574
579
|
this.send(command, optionsOrCb || {}, cb);
|
|
575
580
|
}
|
|
576
581
|
else {
|
|
577
582
|
return this.send(command, optionsOrCb);
|
|
578
583
|
}
|
|
579
|
-
}
|
|
580
|
-
listDocumentClassificationJobs(args, optionsOrCb, cb) {
|
|
581
|
-
|
|
584
|
+
};
|
|
585
|
+
Comprehend.prototype.listDocumentClassificationJobs = function (args, optionsOrCb, cb) {
|
|
586
|
+
var command = new ListDocumentClassificationJobsCommand(args);
|
|
582
587
|
if (typeof optionsOrCb === "function") {
|
|
583
588
|
this.send(command, optionsOrCb);
|
|
584
589
|
}
|
|
585
590
|
else if (typeof cb === "function") {
|
|
586
591
|
if (typeof optionsOrCb !== "object")
|
|
587
|
-
throw new Error(
|
|
592
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
588
593
|
this.send(command, optionsOrCb || {}, cb);
|
|
589
594
|
}
|
|
590
595
|
else {
|
|
591
596
|
return this.send(command, optionsOrCb);
|
|
592
597
|
}
|
|
593
|
-
}
|
|
594
|
-
listDocumentClassifiers(args, optionsOrCb, cb) {
|
|
595
|
-
|
|
598
|
+
};
|
|
599
|
+
Comprehend.prototype.listDocumentClassifiers = function (args, optionsOrCb, cb) {
|
|
600
|
+
var command = new ListDocumentClassifiersCommand(args);
|
|
596
601
|
if (typeof optionsOrCb === "function") {
|
|
597
602
|
this.send(command, optionsOrCb);
|
|
598
603
|
}
|
|
599
604
|
else if (typeof cb === "function") {
|
|
600
605
|
if (typeof optionsOrCb !== "object")
|
|
601
|
-
throw new Error(
|
|
606
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
602
607
|
this.send(command, optionsOrCb || {}, cb);
|
|
603
608
|
}
|
|
604
609
|
else {
|
|
605
610
|
return this.send(command, optionsOrCb);
|
|
606
611
|
}
|
|
607
|
-
}
|
|
608
|
-
listDocumentClassifierSummaries(args, optionsOrCb, cb) {
|
|
609
|
-
|
|
612
|
+
};
|
|
613
|
+
Comprehend.prototype.listDocumentClassifierSummaries = function (args, optionsOrCb, cb) {
|
|
614
|
+
var command = new ListDocumentClassifierSummariesCommand(args);
|
|
610
615
|
if (typeof optionsOrCb === "function") {
|
|
611
616
|
this.send(command, optionsOrCb);
|
|
612
617
|
}
|
|
613
618
|
else if (typeof cb === "function") {
|
|
614
619
|
if (typeof optionsOrCb !== "object")
|
|
615
|
-
throw new Error(
|
|
620
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
616
621
|
this.send(command, optionsOrCb || {}, cb);
|
|
617
622
|
}
|
|
618
623
|
else {
|
|
619
624
|
return this.send(command, optionsOrCb);
|
|
620
625
|
}
|
|
621
|
-
}
|
|
622
|
-
listDominantLanguageDetectionJobs(args, optionsOrCb, cb) {
|
|
623
|
-
|
|
626
|
+
};
|
|
627
|
+
Comprehend.prototype.listDominantLanguageDetectionJobs = function (args, optionsOrCb, cb) {
|
|
628
|
+
var command = new ListDominantLanguageDetectionJobsCommand(args);
|
|
624
629
|
if (typeof optionsOrCb === "function") {
|
|
625
630
|
this.send(command, optionsOrCb);
|
|
626
631
|
}
|
|
627
632
|
else if (typeof cb === "function") {
|
|
628
633
|
if (typeof optionsOrCb !== "object")
|
|
629
|
-
throw new Error(
|
|
634
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
630
635
|
this.send(command, optionsOrCb || {}, cb);
|
|
631
636
|
}
|
|
632
637
|
else {
|
|
633
638
|
return this.send(command, optionsOrCb);
|
|
634
639
|
}
|
|
635
|
-
}
|
|
636
|
-
listEndpoints(args, optionsOrCb, cb) {
|
|
637
|
-
|
|
640
|
+
};
|
|
641
|
+
Comprehend.prototype.listEndpoints = function (args, optionsOrCb, cb) {
|
|
642
|
+
var command = new ListEndpointsCommand(args);
|
|
638
643
|
if (typeof optionsOrCb === "function") {
|
|
639
644
|
this.send(command, optionsOrCb);
|
|
640
645
|
}
|
|
641
646
|
else if (typeof cb === "function") {
|
|
642
647
|
if (typeof optionsOrCb !== "object")
|
|
643
|
-
throw new Error(
|
|
648
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
644
649
|
this.send(command, optionsOrCb || {}, cb);
|
|
645
650
|
}
|
|
646
651
|
else {
|
|
647
652
|
return this.send(command, optionsOrCb);
|
|
648
653
|
}
|
|
649
|
-
}
|
|
650
|
-
listEntitiesDetectionJobs(args, optionsOrCb, cb) {
|
|
651
|
-
|
|
654
|
+
};
|
|
655
|
+
Comprehend.prototype.listEntitiesDetectionJobs = function (args, optionsOrCb, cb) {
|
|
656
|
+
var command = new ListEntitiesDetectionJobsCommand(args);
|
|
652
657
|
if (typeof optionsOrCb === "function") {
|
|
653
658
|
this.send(command, optionsOrCb);
|
|
654
659
|
}
|
|
655
660
|
else if (typeof cb === "function") {
|
|
656
661
|
if (typeof optionsOrCb !== "object")
|
|
657
|
-
throw new Error(
|
|
662
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
658
663
|
this.send(command, optionsOrCb || {}, cb);
|
|
659
664
|
}
|
|
660
665
|
else {
|
|
661
666
|
return this.send(command, optionsOrCb);
|
|
662
667
|
}
|
|
663
|
-
}
|
|
664
|
-
listEntityRecognizers(args, optionsOrCb, cb) {
|
|
665
|
-
|
|
668
|
+
};
|
|
669
|
+
Comprehend.prototype.listEntityRecognizers = function (args, optionsOrCb, cb) {
|
|
670
|
+
var command = new ListEntityRecognizersCommand(args);
|
|
666
671
|
if (typeof optionsOrCb === "function") {
|
|
667
672
|
this.send(command, optionsOrCb);
|
|
668
673
|
}
|
|
669
674
|
else if (typeof cb === "function") {
|
|
670
675
|
if (typeof optionsOrCb !== "object")
|
|
671
|
-
throw new Error(
|
|
676
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
672
677
|
this.send(command, optionsOrCb || {}, cb);
|
|
673
678
|
}
|
|
674
679
|
else {
|
|
675
680
|
return this.send(command, optionsOrCb);
|
|
676
681
|
}
|
|
677
|
-
}
|
|
678
|
-
listEntityRecognizerSummaries(args, optionsOrCb, cb) {
|
|
679
|
-
|
|
682
|
+
};
|
|
683
|
+
Comprehend.prototype.listEntityRecognizerSummaries = function (args, optionsOrCb, cb) {
|
|
684
|
+
var command = new ListEntityRecognizerSummariesCommand(args);
|
|
680
685
|
if (typeof optionsOrCb === "function") {
|
|
681
686
|
this.send(command, optionsOrCb);
|
|
682
687
|
}
|
|
683
688
|
else if (typeof cb === "function") {
|
|
684
689
|
if (typeof optionsOrCb !== "object")
|
|
685
|
-
throw new Error(
|
|
690
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
686
691
|
this.send(command, optionsOrCb || {}, cb);
|
|
687
692
|
}
|
|
688
693
|
else {
|
|
689
694
|
return this.send(command, optionsOrCb);
|
|
690
695
|
}
|
|
691
|
-
}
|
|
692
|
-
listEventsDetectionJobs(args, optionsOrCb, cb) {
|
|
693
|
-
|
|
696
|
+
};
|
|
697
|
+
Comprehend.prototype.listEventsDetectionJobs = function (args, optionsOrCb, cb) {
|
|
698
|
+
var command = new ListEventsDetectionJobsCommand(args);
|
|
694
699
|
if (typeof optionsOrCb === "function") {
|
|
695
700
|
this.send(command, optionsOrCb);
|
|
696
701
|
}
|
|
697
702
|
else if (typeof cb === "function") {
|
|
698
703
|
if (typeof optionsOrCb !== "object")
|
|
699
|
-
throw new Error(
|
|
704
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
700
705
|
this.send(command, optionsOrCb || {}, cb);
|
|
701
706
|
}
|
|
702
707
|
else {
|
|
703
708
|
return this.send(command, optionsOrCb);
|
|
704
709
|
}
|
|
705
|
-
}
|
|
706
|
-
listKeyPhrasesDetectionJobs(args, optionsOrCb, cb) {
|
|
707
|
-
|
|
710
|
+
};
|
|
711
|
+
Comprehend.prototype.listKeyPhrasesDetectionJobs = function (args, optionsOrCb, cb) {
|
|
712
|
+
var command = new ListKeyPhrasesDetectionJobsCommand(args);
|
|
708
713
|
if (typeof optionsOrCb === "function") {
|
|
709
714
|
this.send(command, optionsOrCb);
|
|
710
715
|
}
|
|
711
716
|
else if (typeof cb === "function") {
|
|
712
717
|
if (typeof optionsOrCb !== "object")
|
|
713
|
-
throw new Error(
|
|
718
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
714
719
|
this.send(command, optionsOrCb || {}, cb);
|
|
715
720
|
}
|
|
716
721
|
else {
|
|
717
722
|
return this.send(command, optionsOrCb);
|
|
718
723
|
}
|
|
719
|
-
}
|
|
720
|
-
listPiiEntitiesDetectionJobs(args, optionsOrCb, cb) {
|
|
721
|
-
|
|
724
|
+
};
|
|
725
|
+
Comprehend.prototype.listPiiEntitiesDetectionJobs = function (args, optionsOrCb, cb) {
|
|
726
|
+
var command = new ListPiiEntitiesDetectionJobsCommand(args);
|
|
722
727
|
if (typeof optionsOrCb === "function") {
|
|
723
728
|
this.send(command, optionsOrCb);
|
|
724
729
|
}
|
|
725
730
|
else if (typeof cb === "function") {
|
|
726
731
|
if (typeof optionsOrCb !== "object")
|
|
727
|
-
throw new Error(
|
|
732
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
728
733
|
this.send(command, optionsOrCb || {}, cb);
|
|
729
734
|
}
|
|
730
735
|
else {
|
|
731
736
|
return this.send(command, optionsOrCb);
|
|
732
737
|
}
|
|
733
|
-
}
|
|
734
|
-
listSentimentDetectionJobs(args, optionsOrCb, cb) {
|
|
735
|
-
|
|
738
|
+
};
|
|
739
|
+
Comprehend.prototype.listSentimentDetectionJobs = function (args, optionsOrCb, cb) {
|
|
740
|
+
var command = new ListSentimentDetectionJobsCommand(args);
|
|
736
741
|
if (typeof optionsOrCb === "function") {
|
|
737
742
|
this.send(command, optionsOrCb);
|
|
738
743
|
}
|
|
739
744
|
else if (typeof cb === "function") {
|
|
740
745
|
if (typeof optionsOrCb !== "object")
|
|
741
|
-
throw new Error(
|
|
746
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
742
747
|
this.send(command, optionsOrCb || {}, cb);
|
|
743
748
|
}
|
|
744
749
|
else {
|
|
745
750
|
return this.send(command, optionsOrCb);
|
|
746
751
|
}
|
|
747
|
-
}
|
|
748
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
749
|
-
|
|
752
|
+
};
|
|
753
|
+
Comprehend.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
754
|
+
var command = new ListTagsForResourceCommand(args);
|
|
750
755
|
if (typeof optionsOrCb === "function") {
|
|
751
756
|
this.send(command, optionsOrCb);
|
|
752
757
|
}
|
|
753
758
|
else if (typeof cb === "function") {
|
|
754
759
|
if (typeof optionsOrCb !== "object")
|
|
755
|
-
throw new Error(
|
|
760
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
756
761
|
this.send(command, optionsOrCb || {}, cb);
|
|
757
762
|
}
|
|
758
763
|
else {
|
|
759
764
|
return this.send(command, optionsOrCb);
|
|
760
765
|
}
|
|
761
|
-
}
|
|
762
|
-
listTargetedSentimentDetectionJobs(args, optionsOrCb, cb) {
|
|
763
|
-
|
|
766
|
+
};
|
|
767
|
+
Comprehend.prototype.listTargetedSentimentDetectionJobs = function (args, optionsOrCb, cb) {
|
|
768
|
+
var command = new ListTargetedSentimentDetectionJobsCommand(args);
|
|
764
769
|
if (typeof optionsOrCb === "function") {
|
|
765
770
|
this.send(command, optionsOrCb);
|
|
766
771
|
}
|
|
767
772
|
else if (typeof cb === "function") {
|
|
768
773
|
if (typeof optionsOrCb !== "object")
|
|
769
|
-
throw new Error(
|
|
774
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
770
775
|
this.send(command, optionsOrCb || {}, cb);
|
|
771
776
|
}
|
|
772
777
|
else {
|
|
773
778
|
return this.send(command, optionsOrCb);
|
|
774
779
|
}
|
|
775
|
-
}
|
|
776
|
-
listTopicsDetectionJobs(args, optionsOrCb, cb) {
|
|
777
|
-
|
|
780
|
+
};
|
|
781
|
+
Comprehend.prototype.listTopicsDetectionJobs = function (args, optionsOrCb, cb) {
|
|
782
|
+
var command = new ListTopicsDetectionJobsCommand(args);
|
|
778
783
|
if (typeof optionsOrCb === "function") {
|
|
779
784
|
this.send(command, optionsOrCb);
|
|
780
785
|
}
|
|
781
786
|
else if (typeof cb === "function") {
|
|
782
787
|
if (typeof optionsOrCb !== "object")
|
|
783
|
-
throw new Error(
|
|
788
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
784
789
|
this.send(command, optionsOrCb || {}, cb);
|
|
785
790
|
}
|
|
786
791
|
else {
|
|
787
792
|
return this.send(command, optionsOrCb);
|
|
788
793
|
}
|
|
789
|
-
}
|
|
790
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
791
|
-
|
|
794
|
+
};
|
|
795
|
+
Comprehend.prototype.putResourcePolicy = function (args, optionsOrCb, cb) {
|
|
796
|
+
var command = new PutResourcePolicyCommand(args);
|
|
792
797
|
if (typeof optionsOrCb === "function") {
|
|
793
798
|
this.send(command, optionsOrCb);
|
|
794
799
|
}
|
|
795
800
|
else if (typeof cb === "function") {
|
|
796
801
|
if (typeof optionsOrCb !== "object")
|
|
797
|
-
throw new Error(
|
|
802
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
798
803
|
this.send(command, optionsOrCb || {}, cb);
|
|
799
804
|
}
|
|
800
805
|
else {
|
|
801
806
|
return this.send(command, optionsOrCb);
|
|
802
807
|
}
|
|
803
|
-
}
|
|
804
|
-
startDocumentClassificationJob(args, optionsOrCb, cb) {
|
|
805
|
-
|
|
808
|
+
};
|
|
809
|
+
Comprehend.prototype.startDocumentClassificationJob = function (args, optionsOrCb, cb) {
|
|
810
|
+
var command = new StartDocumentClassificationJobCommand(args);
|
|
806
811
|
if (typeof optionsOrCb === "function") {
|
|
807
812
|
this.send(command, optionsOrCb);
|
|
808
813
|
}
|
|
809
814
|
else if (typeof cb === "function") {
|
|
810
815
|
if (typeof optionsOrCb !== "object")
|
|
811
|
-
throw new Error(
|
|
816
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
812
817
|
this.send(command, optionsOrCb || {}, cb);
|
|
813
818
|
}
|
|
814
819
|
else {
|
|
815
820
|
return this.send(command, optionsOrCb);
|
|
816
821
|
}
|
|
817
|
-
}
|
|
818
|
-
startDominantLanguageDetectionJob(args, optionsOrCb, cb) {
|
|
819
|
-
|
|
822
|
+
};
|
|
823
|
+
Comprehend.prototype.startDominantLanguageDetectionJob = function (args, optionsOrCb, cb) {
|
|
824
|
+
var command = new StartDominantLanguageDetectionJobCommand(args);
|
|
820
825
|
if (typeof optionsOrCb === "function") {
|
|
821
826
|
this.send(command, optionsOrCb);
|
|
822
827
|
}
|
|
823
828
|
else if (typeof cb === "function") {
|
|
824
829
|
if (typeof optionsOrCb !== "object")
|
|
825
|
-
throw new Error(
|
|
830
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
826
831
|
this.send(command, optionsOrCb || {}, cb);
|
|
827
832
|
}
|
|
828
833
|
else {
|
|
829
834
|
return this.send(command, optionsOrCb);
|
|
830
835
|
}
|
|
831
|
-
}
|
|
832
|
-
startEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
833
|
-
|
|
836
|
+
};
|
|
837
|
+
Comprehend.prototype.startEntitiesDetectionJob = function (args, optionsOrCb, cb) {
|
|
838
|
+
var command = new StartEntitiesDetectionJobCommand(args);
|
|
834
839
|
if (typeof optionsOrCb === "function") {
|
|
835
840
|
this.send(command, optionsOrCb);
|
|
836
841
|
}
|
|
837
842
|
else if (typeof cb === "function") {
|
|
838
843
|
if (typeof optionsOrCb !== "object")
|
|
839
|
-
throw new Error(
|
|
844
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
840
845
|
this.send(command, optionsOrCb || {}, cb);
|
|
841
846
|
}
|
|
842
847
|
else {
|
|
843
848
|
return this.send(command, optionsOrCb);
|
|
844
849
|
}
|
|
845
|
-
}
|
|
846
|
-
startEventsDetectionJob(args, optionsOrCb, cb) {
|
|
847
|
-
|
|
850
|
+
};
|
|
851
|
+
Comprehend.prototype.startEventsDetectionJob = function (args, optionsOrCb, cb) {
|
|
852
|
+
var command = new StartEventsDetectionJobCommand(args);
|
|
848
853
|
if (typeof optionsOrCb === "function") {
|
|
849
854
|
this.send(command, optionsOrCb);
|
|
850
855
|
}
|
|
851
856
|
else if (typeof cb === "function") {
|
|
852
857
|
if (typeof optionsOrCb !== "object")
|
|
853
|
-
throw new Error(
|
|
858
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
854
859
|
this.send(command, optionsOrCb || {}, cb);
|
|
855
860
|
}
|
|
856
861
|
else {
|
|
857
862
|
return this.send(command, optionsOrCb);
|
|
858
863
|
}
|
|
859
|
-
}
|
|
860
|
-
startKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
861
|
-
|
|
864
|
+
};
|
|
865
|
+
Comprehend.prototype.startKeyPhrasesDetectionJob = function (args, optionsOrCb, cb) {
|
|
866
|
+
var command = new StartKeyPhrasesDetectionJobCommand(args);
|
|
862
867
|
if (typeof optionsOrCb === "function") {
|
|
863
868
|
this.send(command, optionsOrCb);
|
|
864
869
|
}
|
|
865
870
|
else if (typeof cb === "function") {
|
|
866
871
|
if (typeof optionsOrCb !== "object")
|
|
867
|
-
throw new Error(
|
|
872
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
868
873
|
this.send(command, optionsOrCb || {}, cb);
|
|
869
874
|
}
|
|
870
875
|
else {
|
|
871
876
|
return this.send(command, optionsOrCb);
|
|
872
877
|
}
|
|
873
|
-
}
|
|
874
|
-
startPiiEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
875
|
-
|
|
878
|
+
};
|
|
879
|
+
Comprehend.prototype.startPiiEntitiesDetectionJob = function (args, optionsOrCb, cb) {
|
|
880
|
+
var command = new StartPiiEntitiesDetectionJobCommand(args);
|
|
876
881
|
if (typeof optionsOrCb === "function") {
|
|
877
882
|
this.send(command, optionsOrCb);
|
|
878
883
|
}
|
|
879
884
|
else if (typeof cb === "function") {
|
|
880
885
|
if (typeof optionsOrCb !== "object")
|
|
881
|
-
throw new Error(
|
|
886
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
882
887
|
this.send(command, optionsOrCb || {}, cb);
|
|
883
888
|
}
|
|
884
889
|
else {
|
|
885
890
|
return this.send(command, optionsOrCb);
|
|
886
891
|
}
|
|
887
|
-
}
|
|
888
|
-
startSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
889
|
-
|
|
892
|
+
};
|
|
893
|
+
Comprehend.prototype.startSentimentDetectionJob = function (args, optionsOrCb, cb) {
|
|
894
|
+
var command = new StartSentimentDetectionJobCommand(args);
|
|
890
895
|
if (typeof optionsOrCb === "function") {
|
|
891
896
|
this.send(command, optionsOrCb);
|
|
892
897
|
}
|
|
893
898
|
else if (typeof cb === "function") {
|
|
894
899
|
if (typeof optionsOrCb !== "object")
|
|
895
|
-
throw new Error(
|
|
900
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
896
901
|
this.send(command, optionsOrCb || {}, cb);
|
|
897
902
|
}
|
|
898
903
|
else {
|
|
899
904
|
return this.send(command, optionsOrCb);
|
|
900
905
|
}
|
|
901
|
-
}
|
|
902
|
-
startTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
903
|
-
|
|
906
|
+
};
|
|
907
|
+
Comprehend.prototype.startTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
|
|
908
|
+
var command = new StartTargetedSentimentDetectionJobCommand(args);
|
|
904
909
|
if (typeof optionsOrCb === "function") {
|
|
905
910
|
this.send(command, optionsOrCb);
|
|
906
911
|
}
|
|
907
912
|
else if (typeof cb === "function") {
|
|
908
913
|
if (typeof optionsOrCb !== "object")
|
|
909
|
-
throw new Error(
|
|
914
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
910
915
|
this.send(command, optionsOrCb || {}, cb);
|
|
911
916
|
}
|
|
912
917
|
else {
|
|
913
918
|
return this.send(command, optionsOrCb);
|
|
914
919
|
}
|
|
915
|
-
}
|
|
916
|
-
startTopicsDetectionJob(args, optionsOrCb, cb) {
|
|
917
|
-
|
|
920
|
+
};
|
|
921
|
+
Comprehend.prototype.startTopicsDetectionJob = function (args, optionsOrCb, cb) {
|
|
922
|
+
var command = new StartTopicsDetectionJobCommand(args);
|
|
918
923
|
if (typeof optionsOrCb === "function") {
|
|
919
924
|
this.send(command, optionsOrCb);
|
|
920
925
|
}
|
|
921
926
|
else if (typeof cb === "function") {
|
|
922
927
|
if (typeof optionsOrCb !== "object")
|
|
923
|
-
throw new Error(
|
|
928
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
924
929
|
this.send(command, optionsOrCb || {}, cb);
|
|
925
930
|
}
|
|
926
931
|
else {
|
|
927
932
|
return this.send(command, optionsOrCb);
|
|
928
933
|
}
|
|
929
|
-
}
|
|
930
|
-
stopDominantLanguageDetectionJob(args, optionsOrCb, cb) {
|
|
931
|
-
|
|
934
|
+
};
|
|
935
|
+
Comprehend.prototype.stopDominantLanguageDetectionJob = function (args, optionsOrCb, cb) {
|
|
936
|
+
var command = new StopDominantLanguageDetectionJobCommand(args);
|
|
932
937
|
if (typeof optionsOrCb === "function") {
|
|
933
938
|
this.send(command, optionsOrCb);
|
|
934
939
|
}
|
|
935
940
|
else if (typeof cb === "function") {
|
|
936
941
|
if (typeof optionsOrCb !== "object")
|
|
937
|
-
throw new Error(
|
|
942
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
938
943
|
this.send(command, optionsOrCb || {}, cb);
|
|
939
944
|
}
|
|
940
945
|
else {
|
|
941
946
|
return this.send(command, optionsOrCb);
|
|
942
947
|
}
|
|
943
|
-
}
|
|
944
|
-
stopEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
945
|
-
|
|
948
|
+
};
|
|
949
|
+
Comprehend.prototype.stopEntitiesDetectionJob = function (args, optionsOrCb, cb) {
|
|
950
|
+
var command = new StopEntitiesDetectionJobCommand(args);
|
|
946
951
|
if (typeof optionsOrCb === "function") {
|
|
947
952
|
this.send(command, optionsOrCb);
|
|
948
953
|
}
|
|
949
954
|
else if (typeof cb === "function") {
|
|
950
955
|
if (typeof optionsOrCb !== "object")
|
|
951
|
-
throw new Error(
|
|
956
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
952
957
|
this.send(command, optionsOrCb || {}, cb);
|
|
953
958
|
}
|
|
954
959
|
else {
|
|
955
960
|
return this.send(command, optionsOrCb);
|
|
956
961
|
}
|
|
957
|
-
}
|
|
958
|
-
stopEventsDetectionJob(args, optionsOrCb, cb) {
|
|
959
|
-
|
|
962
|
+
};
|
|
963
|
+
Comprehend.prototype.stopEventsDetectionJob = function (args, optionsOrCb, cb) {
|
|
964
|
+
var command = new StopEventsDetectionJobCommand(args);
|
|
960
965
|
if (typeof optionsOrCb === "function") {
|
|
961
966
|
this.send(command, optionsOrCb);
|
|
962
967
|
}
|
|
963
968
|
else if (typeof cb === "function") {
|
|
964
969
|
if (typeof optionsOrCb !== "object")
|
|
965
|
-
throw new Error(
|
|
970
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
966
971
|
this.send(command, optionsOrCb || {}, cb);
|
|
967
972
|
}
|
|
968
973
|
else {
|
|
969
974
|
return this.send(command, optionsOrCb);
|
|
970
975
|
}
|
|
971
|
-
}
|
|
972
|
-
stopKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
973
|
-
|
|
976
|
+
};
|
|
977
|
+
Comprehend.prototype.stopKeyPhrasesDetectionJob = function (args, optionsOrCb, cb) {
|
|
978
|
+
var command = new StopKeyPhrasesDetectionJobCommand(args);
|
|
974
979
|
if (typeof optionsOrCb === "function") {
|
|
975
980
|
this.send(command, optionsOrCb);
|
|
976
981
|
}
|
|
977
982
|
else if (typeof cb === "function") {
|
|
978
983
|
if (typeof optionsOrCb !== "object")
|
|
979
|
-
throw new Error(
|
|
984
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
980
985
|
this.send(command, optionsOrCb || {}, cb);
|
|
981
986
|
}
|
|
982
987
|
else {
|
|
983
988
|
return this.send(command, optionsOrCb);
|
|
984
989
|
}
|
|
985
|
-
}
|
|
986
|
-
stopPiiEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
987
|
-
|
|
990
|
+
};
|
|
991
|
+
Comprehend.prototype.stopPiiEntitiesDetectionJob = function (args, optionsOrCb, cb) {
|
|
992
|
+
var command = new StopPiiEntitiesDetectionJobCommand(args);
|
|
988
993
|
if (typeof optionsOrCb === "function") {
|
|
989
994
|
this.send(command, optionsOrCb);
|
|
990
995
|
}
|
|
991
996
|
else if (typeof cb === "function") {
|
|
992
997
|
if (typeof optionsOrCb !== "object")
|
|
993
|
-
throw new Error(
|
|
998
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
994
999
|
this.send(command, optionsOrCb || {}, cb);
|
|
995
1000
|
}
|
|
996
1001
|
else {
|
|
997
1002
|
return this.send(command, optionsOrCb);
|
|
998
1003
|
}
|
|
999
|
-
}
|
|
1000
|
-
stopSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
1001
|
-
|
|
1004
|
+
};
|
|
1005
|
+
Comprehend.prototype.stopSentimentDetectionJob = function (args, optionsOrCb, cb) {
|
|
1006
|
+
var command = new StopSentimentDetectionJobCommand(args);
|
|
1002
1007
|
if (typeof optionsOrCb === "function") {
|
|
1003
1008
|
this.send(command, optionsOrCb);
|
|
1004
1009
|
}
|
|
1005
1010
|
else if (typeof cb === "function") {
|
|
1006
1011
|
if (typeof optionsOrCb !== "object")
|
|
1007
|
-
throw new Error(
|
|
1012
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1008
1013
|
this.send(command, optionsOrCb || {}, cb);
|
|
1009
1014
|
}
|
|
1010
1015
|
else {
|
|
1011
1016
|
return this.send(command, optionsOrCb);
|
|
1012
1017
|
}
|
|
1013
|
-
}
|
|
1014
|
-
stopTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
1015
|
-
|
|
1018
|
+
};
|
|
1019
|
+
Comprehend.prototype.stopTargetedSentimentDetectionJob = function (args, optionsOrCb, cb) {
|
|
1020
|
+
var command = new StopTargetedSentimentDetectionJobCommand(args);
|
|
1016
1021
|
if (typeof optionsOrCb === "function") {
|
|
1017
1022
|
this.send(command, optionsOrCb);
|
|
1018
1023
|
}
|
|
1019
1024
|
else if (typeof cb === "function") {
|
|
1020
1025
|
if (typeof optionsOrCb !== "object")
|
|
1021
|
-
throw new Error(
|
|
1026
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1022
1027
|
this.send(command, optionsOrCb || {}, cb);
|
|
1023
1028
|
}
|
|
1024
1029
|
else {
|
|
1025
1030
|
return this.send(command, optionsOrCb);
|
|
1026
1031
|
}
|
|
1027
|
-
}
|
|
1028
|
-
stopTrainingDocumentClassifier(args, optionsOrCb, cb) {
|
|
1029
|
-
|
|
1032
|
+
};
|
|
1033
|
+
Comprehend.prototype.stopTrainingDocumentClassifier = function (args, optionsOrCb, cb) {
|
|
1034
|
+
var command = new StopTrainingDocumentClassifierCommand(args);
|
|
1030
1035
|
if (typeof optionsOrCb === "function") {
|
|
1031
1036
|
this.send(command, optionsOrCb);
|
|
1032
1037
|
}
|
|
1033
1038
|
else if (typeof cb === "function") {
|
|
1034
1039
|
if (typeof optionsOrCb !== "object")
|
|
1035
|
-
throw new Error(
|
|
1040
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1036
1041
|
this.send(command, optionsOrCb || {}, cb);
|
|
1037
1042
|
}
|
|
1038
1043
|
else {
|
|
1039
1044
|
return this.send(command, optionsOrCb);
|
|
1040
1045
|
}
|
|
1041
|
-
}
|
|
1042
|
-
stopTrainingEntityRecognizer(args, optionsOrCb, cb) {
|
|
1043
|
-
|
|
1046
|
+
};
|
|
1047
|
+
Comprehend.prototype.stopTrainingEntityRecognizer = function (args, optionsOrCb, cb) {
|
|
1048
|
+
var command = new StopTrainingEntityRecognizerCommand(args);
|
|
1044
1049
|
if (typeof optionsOrCb === "function") {
|
|
1045
1050
|
this.send(command, optionsOrCb);
|
|
1046
1051
|
}
|
|
1047
1052
|
else if (typeof cb === "function") {
|
|
1048
1053
|
if (typeof optionsOrCb !== "object")
|
|
1049
|
-
throw new Error(
|
|
1054
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1050
1055
|
this.send(command, optionsOrCb || {}, cb);
|
|
1051
1056
|
}
|
|
1052
1057
|
else {
|
|
1053
1058
|
return this.send(command, optionsOrCb);
|
|
1054
1059
|
}
|
|
1055
|
-
}
|
|
1056
|
-
tagResource(args, optionsOrCb, cb) {
|
|
1057
|
-
|
|
1060
|
+
};
|
|
1061
|
+
Comprehend.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
1062
|
+
var command = new TagResourceCommand(args);
|
|
1058
1063
|
if (typeof optionsOrCb === "function") {
|
|
1059
1064
|
this.send(command, optionsOrCb);
|
|
1060
1065
|
}
|
|
1061
1066
|
else if (typeof cb === "function") {
|
|
1062
1067
|
if (typeof optionsOrCb !== "object")
|
|
1063
|
-
throw new Error(
|
|
1068
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1064
1069
|
this.send(command, optionsOrCb || {}, cb);
|
|
1065
1070
|
}
|
|
1066
1071
|
else {
|
|
1067
1072
|
return this.send(command, optionsOrCb);
|
|
1068
1073
|
}
|
|
1069
|
-
}
|
|
1070
|
-
untagResource(args, optionsOrCb, cb) {
|
|
1071
|
-
|
|
1074
|
+
};
|
|
1075
|
+
Comprehend.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
1076
|
+
var command = new UntagResourceCommand(args);
|
|
1072
1077
|
if (typeof optionsOrCb === "function") {
|
|
1073
1078
|
this.send(command, optionsOrCb);
|
|
1074
1079
|
}
|
|
1075
1080
|
else if (typeof cb === "function") {
|
|
1076
1081
|
if (typeof optionsOrCb !== "object")
|
|
1077
|
-
throw new Error(
|
|
1082
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1078
1083
|
this.send(command, optionsOrCb || {}, cb);
|
|
1079
1084
|
}
|
|
1080
1085
|
else {
|
|
1081
1086
|
return this.send(command, optionsOrCb);
|
|
1082
1087
|
}
|
|
1083
|
-
}
|
|
1084
|
-
updateEndpoint(args, optionsOrCb, cb) {
|
|
1085
|
-
|
|
1088
|
+
};
|
|
1089
|
+
Comprehend.prototype.updateEndpoint = function (args, optionsOrCb, cb) {
|
|
1090
|
+
var command = new UpdateEndpointCommand(args);
|
|
1086
1091
|
if (typeof optionsOrCb === "function") {
|
|
1087
1092
|
this.send(command, optionsOrCb);
|
|
1088
1093
|
}
|
|
1089
1094
|
else if (typeof cb === "function") {
|
|
1090
1095
|
if (typeof optionsOrCb !== "object")
|
|
1091
|
-
throw new Error(
|
|
1096
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1092
1097
|
this.send(command, optionsOrCb || {}, cb);
|
|
1093
1098
|
}
|
|
1094
1099
|
else {
|
|
1095
1100
|
return this.send(command, optionsOrCb);
|
|
1096
1101
|
}
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1102
|
+
};
|
|
1103
|
+
return Comprehend;
|
|
1104
|
+
}(ComprehendClient));
|
|
1105
|
+
export { Comprehend };
|