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