@aws-sdk/client-comprehend 3.312.0 → 3.316.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/dist-cjs/Comprehend.js +88 -1176
- package/dist-cjs/models/models_0.js +10 -2
- package/dist-cjs/protocols/Aws_json1_1.js +1268 -2840
- package/dist-es/Comprehend.js +88 -1176
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +1269 -2841
- package/dist-types/Comprehend.d.ts +94 -369
- package/dist-types/commands/CreateDocumentClassifierCommand.d.ts +16 -4
- package/dist-types/commands/StartDocumentClassificationJobCommand.d.ts +4 -0
- package/dist-types/commands/StartDominantLanguageDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StartEntitiesDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StartEventsDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StartKeyPhrasesDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StartPiiEntitiesDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StartTopicsDetectionJobCommand.d.ts +4 -0
- package/dist-types/commands/StopPiiEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +122 -53
- package/dist-types/models/models_1.d.ts +46 -0
- package/dist-types/ts3.4/Comprehend.d.ts +4 -1
- package/dist-types/ts3.4/commands/StopPiiEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +25 -14
- package/dist-types/ts3.4/models/models_1.d.ts +14 -0
- package/package.json +6 -6
package/dist-cjs/Comprehend.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Comprehend = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const BatchDetectDominantLanguageCommand_1 = require("./commands/BatchDetectDominantLanguageCommand");
|
|
5
6
|
const BatchDetectEntitiesCommand_1 = require("./commands/BatchDetectEntitiesCommand");
|
|
6
7
|
const BatchDetectKeyPhrasesCommand_1 = require("./commands/BatchDetectKeyPhrasesCommand");
|
|
@@ -86,1182 +87,93 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
86
87
|
const UpdateEndpointCommand_1 = require("./commands/UpdateEndpointCommand");
|
|
87
88
|
const UpdateFlywheelCommand_1 = require("./commands/UpdateFlywheelCommand");
|
|
88
89
|
const ComprehendClient_1 = require("./ComprehendClient");
|
|
90
|
+
const commands = {
|
|
91
|
+
BatchDetectDominantLanguageCommand: BatchDetectDominantLanguageCommand_1.BatchDetectDominantLanguageCommand,
|
|
92
|
+
BatchDetectEntitiesCommand: BatchDetectEntitiesCommand_1.BatchDetectEntitiesCommand,
|
|
93
|
+
BatchDetectKeyPhrasesCommand: BatchDetectKeyPhrasesCommand_1.BatchDetectKeyPhrasesCommand,
|
|
94
|
+
BatchDetectSentimentCommand: BatchDetectSentimentCommand_1.BatchDetectSentimentCommand,
|
|
95
|
+
BatchDetectSyntaxCommand: BatchDetectSyntaxCommand_1.BatchDetectSyntaxCommand,
|
|
96
|
+
BatchDetectTargetedSentimentCommand: BatchDetectTargetedSentimentCommand_1.BatchDetectTargetedSentimentCommand,
|
|
97
|
+
ClassifyDocumentCommand: ClassifyDocumentCommand_1.ClassifyDocumentCommand,
|
|
98
|
+
ContainsPiiEntitiesCommand: ContainsPiiEntitiesCommand_1.ContainsPiiEntitiesCommand,
|
|
99
|
+
CreateDatasetCommand: CreateDatasetCommand_1.CreateDatasetCommand,
|
|
100
|
+
CreateDocumentClassifierCommand: CreateDocumentClassifierCommand_1.CreateDocumentClassifierCommand,
|
|
101
|
+
CreateEndpointCommand: CreateEndpointCommand_1.CreateEndpointCommand,
|
|
102
|
+
CreateEntityRecognizerCommand: CreateEntityRecognizerCommand_1.CreateEntityRecognizerCommand,
|
|
103
|
+
CreateFlywheelCommand: CreateFlywheelCommand_1.CreateFlywheelCommand,
|
|
104
|
+
DeleteDocumentClassifierCommand: DeleteDocumentClassifierCommand_1.DeleteDocumentClassifierCommand,
|
|
105
|
+
DeleteEndpointCommand: DeleteEndpointCommand_1.DeleteEndpointCommand,
|
|
106
|
+
DeleteEntityRecognizerCommand: DeleteEntityRecognizerCommand_1.DeleteEntityRecognizerCommand,
|
|
107
|
+
DeleteFlywheelCommand: DeleteFlywheelCommand_1.DeleteFlywheelCommand,
|
|
108
|
+
DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
|
|
109
|
+
DescribeDatasetCommand: DescribeDatasetCommand_1.DescribeDatasetCommand,
|
|
110
|
+
DescribeDocumentClassificationJobCommand: DescribeDocumentClassificationJobCommand_1.DescribeDocumentClassificationJobCommand,
|
|
111
|
+
DescribeDocumentClassifierCommand: DescribeDocumentClassifierCommand_1.DescribeDocumentClassifierCommand,
|
|
112
|
+
DescribeDominantLanguageDetectionJobCommand: DescribeDominantLanguageDetectionJobCommand_1.DescribeDominantLanguageDetectionJobCommand,
|
|
113
|
+
DescribeEndpointCommand: DescribeEndpointCommand_1.DescribeEndpointCommand,
|
|
114
|
+
DescribeEntitiesDetectionJobCommand: DescribeEntitiesDetectionJobCommand_1.DescribeEntitiesDetectionJobCommand,
|
|
115
|
+
DescribeEntityRecognizerCommand: DescribeEntityRecognizerCommand_1.DescribeEntityRecognizerCommand,
|
|
116
|
+
DescribeEventsDetectionJobCommand: DescribeEventsDetectionJobCommand_1.DescribeEventsDetectionJobCommand,
|
|
117
|
+
DescribeFlywheelCommand: DescribeFlywheelCommand_1.DescribeFlywheelCommand,
|
|
118
|
+
DescribeFlywheelIterationCommand: DescribeFlywheelIterationCommand_1.DescribeFlywheelIterationCommand,
|
|
119
|
+
DescribeKeyPhrasesDetectionJobCommand: DescribeKeyPhrasesDetectionJobCommand_1.DescribeKeyPhrasesDetectionJobCommand,
|
|
120
|
+
DescribePiiEntitiesDetectionJobCommand: DescribePiiEntitiesDetectionJobCommand_1.DescribePiiEntitiesDetectionJobCommand,
|
|
121
|
+
DescribeResourcePolicyCommand: DescribeResourcePolicyCommand_1.DescribeResourcePolicyCommand,
|
|
122
|
+
DescribeSentimentDetectionJobCommand: DescribeSentimentDetectionJobCommand_1.DescribeSentimentDetectionJobCommand,
|
|
123
|
+
DescribeTargetedSentimentDetectionJobCommand: DescribeTargetedSentimentDetectionJobCommand_1.DescribeTargetedSentimentDetectionJobCommand,
|
|
124
|
+
DescribeTopicsDetectionJobCommand: DescribeTopicsDetectionJobCommand_1.DescribeTopicsDetectionJobCommand,
|
|
125
|
+
DetectDominantLanguageCommand: DetectDominantLanguageCommand_1.DetectDominantLanguageCommand,
|
|
126
|
+
DetectEntitiesCommand: DetectEntitiesCommand_1.DetectEntitiesCommand,
|
|
127
|
+
DetectKeyPhrasesCommand: DetectKeyPhrasesCommand_1.DetectKeyPhrasesCommand,
|
|
128
|
+
DetectPiiEntitiesCommand: DetectPiiEntitiesCommand_1.DetectPiiEntitiesCommand,
|
|
129
|
+
DetectSentimentCommand: DetectSentimentCommand_1.DetectSentimentCommand,
|
|
130
|
+
DetectSyntaxCommand: DetectSyntaxCommand_1.DetectSyntaxCommand,
|
|
131
|
+
DetectTargetedSentimentCommand: DetectTargetedSentimentCommand_1.DetectTargetedSentimentCommand,
|
|
132
|
+
ImportModelCommand: ImportModelCommand_1.ImportModelCommand,
|
|
133
|
+
ListDatasetsCommand: ListDatasetsCommand_1.ListDatasetsCommand,
|
|
134
|
+
ListDocumentClassificationJobsCommand: ListDocumentClassificationJobsCommand_1.ListDocumentClassificationJobsCommand,
|
|
135
|
+
ListDocumentClassifiersCommand: ListDocumentClassifiersCommand_1.ListDocumentClassifiersCommand,
|
|
136
|
+
ListDocumentClassifierSummariesCommand: ListDocumentClassifierSummariesCommand_1.ListDocumentClassifierSummariesCommand,
|
|
137
|
+
ListDominantLanguageDetectionJobsCommand: ListDominantLanguageDetectionJobsCommand_1.ListDominantLanguageDetectionJobsCommand,
|
|
138
|
+
ListEndpointsCommand: ListEndpointsCommand_1.ListEndpointsCommand,
|
|
139
|
+
ListEntitiesDetectionJobsCommand: ListEntitiesDetectionJobsCommand_1.ListEntitiesDetectionJobsCommand,
|
|
140
|
+
ListEntityRecognizersCommand: ListEntityRecognizersCommand_1.ListEntityRecognizersCommand,
|
|
141
|
+
ListEntityRecognizerSummariesCommand: ListEntityRecognizerSummariesCommand_1.ListEntityRecognizerSummariesCommand,
|
|
142
|
+
ListEventsDetectionJobsCommand: ListEventsDetectionJobsCommand_1.ListEventsDetectionJobsCommand,
|
|
143
|
+
ListFlywheelIterationHistoryCommand: ListFlywheelIterationHistoryCommand_1.ListFlywheelIterationHistoryCommand,
|
|
144
|
+
ListFlywheelsCommand: ListFlywheelsCommand_1.ListFlywheelsCommand,
|
|
145
|
+
ListKeyPhrasesDetectionJobsCommand: ListKeyPhrasesDetectionJobsCommand_1.ListKeyPhrasesDetectionJobsCommand,
|
|
146
|
+
ListPiiEntitiesDetectionJobsCommand: ListPiiEntitiesDetectionJobsCommand_1.ListPiiEntitiesDetectionJobsCommand,
|
|
147
|
+
ListSentimentDetectionJobsCommand: ListSentimentDetectionJobsCommand_1.ListSentimentDetectionJobsCommand,
|
|
148
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
149
|
+
ListTargetedSentimentDetectionJobsCommand: ListTargetedSentimentDetectionJobsCommand_1.ListTargetedSentimentDetectionJobsCommand,
|
|
150
|
+
ListTopicsDetectionJobsCommand: ListTopicsDetectionJobsCommand_1.ListTopicsDetectionJobsCommand,
|
|
151
|
+
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
152
|
+
StartDocumentClassificationJobCommand: StartDocumentClassificationJobCommand_1.StartDocumentClassificationJobCommand,
|
|
153
|
+
StartDominantLanguageDetectionJobCommand: StartDominantLanguageDetectionJobCommand_1.StartDominantLanguageDetectionJobCommand,
|
|
154
|
+
StartEntitiesDetectionJobCommand: StartEntitiesDetectionJobCommand_1.StartEntitiesDetectionJobCommand,
|
|
155
|
+
StartEventsDetectionJobCommand: StartEventsDetectionJobCommand_1.StartEventsDetectionJobCommand,
|
|
156
|
+
StartFlywheelIterationCommand: StartFlywheelIterationCommand_1.StartFlywheelIterationCommand,
|
|
157
|
+
StartKeyPhrasesDetectionJobCommand: StartKeyPhrasesDetectionJobCommand_1.StartKeyPhrasesDetectionJobCommand,
|
|
158
|
+
StartPiiEntitiesDetectionJobCommand: StartPiiEntitiesDetectionJobCommand_1.StartPiiEntitiesDetectionJobCommand,
|
|
159
|
+
StartSentimentDetectionJobCommand: StartSentimentDetectionJobCommand_1.StartSentimentDetectionJobCommand,
|
|
160
|
+
StartTargetedSentimentDetectionJobCommand: StartTargetedSentimentDetectionJobCommand_1.StartTargetedSentimentDetectionJobCommand,
|
|
161
|
+
StartTopicsDetectionJobCommand: StartTopicsDetectionJobCommand_1.StartTopicsDetectionJobCommand,
|
|
162
|
+
StopDominantLanguageDetectionJobCommand: StopDominantLanguageDetectionJobCommand_1.StopDominantLanguageDetectionJobCommand,
|
|
163
|
+
StopEntitiesDetectionJobCommand: StopEntitiesDetectionJobCommand_1.StopEntitiesDetectionJobCommand,
|
|
164
|
+
StopEventsDetectionJobCommand: StopEventsDetectionJobCommand_1.StopEventsDetectionJobCommand,
|
|
165
|
+
StopKeyPhrasesDetectionJobCommand: StopKeyPhrasesDetectionJobCommand_1.StopKeyPhrasesDetectionJobCommand,
|
|
166
|
+
StopPiiEntitiesDetectionJobCommand: StopPiiEntitiesDetectionJobCommand_1.StopPiiEntitiesDetectionJobCommand,
|
|
167
|
+
StopSentimentDetectionJobCommand: StopSentimentDetectionJobCommand_1.StopSentimentDetectionJobCommand,
|
|
168
|
+
StopTargetedSentimentDetectionJobCommand: StopTargetedSentimentDetectionJobCommand_1.StopTargetedSentimentDetectionJobCommand,
|
|
169
|
+
StopTrainingDocumentClassifierCommand: StopTrainingDocumentClassifierCommand_1.StopTrainingDocumentClassifierCommand,
|
|
170
|
+
StopTrainingEntityRecognizerCommand: StopTrainingEntityRecognizerCommand_1.StopTrainingEntityRecognizerCommand,
|
|
171
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
172
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
173
|
+
UpdateEndpointCommand: UpdateEndpointCommand_1.UpdateEndpointCommand,
|
|
174
|
+
UpdateFlywheelCommand: UpdateFlywheelCommand_1.UpdateFlywheelCommand,
|
|
175
|
+
};
|
|
89
176
|
class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
90
|
-
batchDetectDominantLanguage(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new BatchDetectDominantLanguageCommand_1.BatchDetectDominantLanguageCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
batchDetectEntities(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new BatchDetectEntitiesCommand_1.BatchDetectEntitiesCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
batchDetectKeyPhrases(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new BatchDetectKeyPhrasesCommand_1.BatchDetectKeyPhrasesCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
batchDetectSentiment(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new BatchDetectSentimentCommand_1.BatchDetectSentimentCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
batchDetectSyntax(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new BatchDetectSyntaxCommand_1.BatchDetectSyntaxCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
batchDetectTargetedSentiment(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new BatchDetectTargetedSentimentCommand_1.BatchDetectTargetedSentimentCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
classifyDocument(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new ClassifyDocumentCommand_1.ClassifyDocumentCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
containsPiiEntities(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new ContainsPiiEntitiesCommand_1.ContainsPiiEntitiesCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
createDataset(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new CreateDatasetCommand_1.CreateDatasetCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
createDocumentClassifier(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new CreateDocumentClassifierCommand_1.CreateDocumentClassifierCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
createEndpoint(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new CreateEndpointCommand_1.CreateEndpointCommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
createEntityRecognizer(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new CreateEntityRecognizerCommand_1.CreateEntityRecognizerCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
createFlywheel(args, optionsOrCb, cb) {
|
|
259
|
-
const command = new CreateFlywheelCommand_1.CreateFlywheelCommand(args);
|
|
260
|
-
if (typeof optionsOrCb === "function") {
|
|
261
|
-
this.send(command, optionsOrCb);
|
|
262
|
-
}
|
|
263
|
-
else if (typeof cb === "function") {
|
|
264
|
-
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
266
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
return this.send(command, optionsOrCb);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
deleteDocumentClassifier(args, optionsOrCb, cb) {
|
|
273
|
-
const command = new DeleteDocumentClassifierCommand_1.DeleteDocumentClassifierCommand(args);
|
|
274
|
-
if (typeof optionsOrCb === "function") {
|
|
275
|
-
this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
else if (typeof cb === "function") {
|
|
278
|
-
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
280
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
return this.send(command, optionsOrCb);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
deleteEndpoint(args, optionsOrCb, cb) {
|
|
287
|
-
const command = new DeleteEndpointCommand_1.DeleteEndpointCommand(args);
|
|
288
|
-
if (typeof optionsOrCb === "function") {
|
|
289
|
-
this.send(command, optionsOrCb);
|
|
290
|
-
}
|
|
291
|
-
else if (typeof cb === "function") {
|
|
292
|
-
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
294
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
return this.send(command, optionsOrCb);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
deleteEntityRecognizer(args, optionsOrCb, cb) {
|
|
301
|
-
const command = new DeleteEntityRecognizerCommand_1.DeleteEntityRecognizerCommand(args);
|
|
302
|
-
if (typeof optionsOrCb === "function") {
|
|
303
|
-
this.send(command, optionsOrCb);
|
|
304
|
-
}
|
|
305
|
-
else if (typeof cb === "function") {
|
|
306
|
-
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
return this.send(command, optionsOrCb);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
deleteFlywheel(args, optionsOrCb, cb) {
|
|
315
|
-
const command = new DeleteFlywheelCommand_1.DeleteFlywheelCommand(args);
|
|
316
|
-
if (typeof optionsOrCb === "function") {
|
|
317
|
-
this.send(command, optionsOrCb);
|
|
318
|
-
}
|
|
319
|
-
else if (typeof cb === "function") {
|
|
320
|
-
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
return this.send(command, optionsOrCb);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
329
|
-
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
330
|
-
if (typeof optionsOrCb === "function") {
|
|
331
|
-
this.send(command, optionsOrCb);
|
|
332
|
-
}
|
|
333
|
-
else if (typeof cb === "function") {
|
|
334
|
-
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
336
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
return this.send(command, optionsOrCb);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
describeDataset(args, optionsOrCb, cb) {
|
|
343
|
-
const command = new DescribeDatasetCommand_1.DescribeDatasetCommand(args);
|
|
344
|
-
if (typeof optionsOrCb === "function") {
|
|
345
|
-
this.send(command, optionsOrCb);
|
|
346
|
-
}
|
|
347
|
-
else if (typeof cb === "function") {
|
|
348
|
-
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
350
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
return this.send(command, optionsOrCb);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
describeDocumentClassificationJob(args, optionsOrCb, cb) {
|
|
357
|
-
const command = new DescribeDocumentClassificationJobCommand_1.DescribeDocumentClassificationJobCommand(args);
|
|
358
|
-
if (typeof optionsOrCb === "function") {
|
|
359
|
-
this.send(command, optionsOrCb);
|
|
360
|
-
}
|
|
361
|
-
else if (typeof cb === "function") {
|
|
362
|
-
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
364
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
return this.send(command, optionsOrCb);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
describeDocumentClassifier(args, optionsOrCb, cb) {
|
|
371
|
-
const command = new DescribeDocumentClassifierCommand_1.DescribeDocumentClassifierCommand(args);
|
|
372
|
-
if (typeof optionsOrCb === "function") {
|
|
373
|
-
this.send(command, optionsOrCb);
|
|
374
|
-
}
|
|
375
|
-
else if (typeof cb === "function") {
|
|
376
|
-
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
378
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
return this.send(command, optionsOrCb);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
describeDominantLanguageDetectionJob(args, optionsOrCb, cb) {
|
|
385
|
-
const command = new DescribeDominantLanguageDetectionJobCommand_1.DescribeDominantLanguageDetectionJobCommand(args);
|
|
386
|
-
if (typeof optionsOrCb === "function") {
|
|
387
|
-
this.send(command, optionsOrCb);
|
|
388
|
-
}
|
|
389
|
-
else if (typeof cb === "function") {
|
|
390
|
-
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
return this.send(command, optionsOrCb);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
describeEndpoint(args, optionsOrCb, cb) {
|
|
399
|
-
const command = new DescribeEndpointCommand_1.DescribeEndpointCommand(args);
|
|
400
|
-
if (typeof optionsOrCb === "function") {
|
|
401
|
-
this.send(command, optionsOrCb);
|
|
402
|
-
}
|
|
403
|
-
else if (typeof cb === "function") {
|
|
404
|
-
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
406
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
return this.send(command, optionsOrCb);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
describeEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
413
|
-
const command = new DescribeEntitiesDetectionJobCommand_1.DescribeEntitiesDetectionJobCommand(args);
|
|
414
|
-
if (typeof optionsOrCb === "function") {
|
|
415
|
-
this.send(command, optionsOrCb);
|
|
416
|
-
}
|
|
417
|
-
else if (typeof cb === "function") {
|
|
418
|
-
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
return this.send(command, optionsOrCb);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
describeEntityRecognizer(args, optionsOrCb, cb) {
|
|
427
|
-
const command = new DescribeEntityRecognizerCommand_1.DescribeEntityRecognizerCommand(args);
|
|
428
|
-
if (typeof optionsOrCb === "function") {
|
|
429
|
-
this.send(command, optionsOrCb);
|
|
430
|
-
}
|
|
431
|
-
else if (typeof cb === "function") {
|
|
432
|
-
if (typeof optionsOrCb !== "object")
|
|
433
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
434
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
return this.send(command, optionsOrCb);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
describeEventsDetectionJob(args, optionsOrCb, cb) {
|
|
441
|
-
const command = new DescribeEventsDetectionJobCommand_1.DescribeEventsDetectionJobCommand(args);
|
|
442
|
-
if (typeof optionsOrCb === "function") {
|
|
443
|
-
this.send(command, optionsOrCb);
|
|
444
|
-
}
|
|
445
|
-
else if (typeof cb === "function") {
|
|
446
|
-
if (typeof optionsOrCb !== "object")
|
|
447
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
448
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
449
|
-
}
|
|
450
|
-
else {
|
|
451
|
-
return this.send(command, optionsOrCb);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
describeFlywheel(args, optionsOrCb, cb) {
|
|
455
|
-
const command = new DescribeFlywheelCommand_1.DescribeFlywheelCommand(args);
|
|
456
|
-
if (typeof optionsOrCb === "function") {
|
|
457
|
-
this.send(command, optionsOrCb);
|
|
458
|
-
}
|
|
459
|
-
else if (typeof cb === "function") {
|
|
460
|
-
if (typeof optionsOrCb !== "object")
|
|
461
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
462
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
return this.send(command, optionsOrCb);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
describeFlywheelIteration(args, optionsOrCb, cb) {
|
|
469
|
-
const command = new DescribeFlywheelIterationCommand_1.DescribeFlywheelIterationCommand(args);
|
|
470
|
-
if (typeof optionsOrCb === "function") {
|
|
471
|
-
this.send(command, optionsOrCb);
|
|
472
|
-
}
|
|
473
|
-
else if (typeof cb === "function") {
|
|
474
|
-
if (typeof optionsOrCb !== "object")
|
|
475
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
476
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
return this.send(command, optionsOrCb);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
describeKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
483
|
-
const command = new DescribeKeyPhrasesDetectionJobCommand_1.DescribeKeyPhrasesDetectionJobCommand(args);
|
|
484
|
-
if (typeof optionsOrCb === "function") {
|
|
485
|
-
this.send(command, optionsOrCb);
|
|
486
|
-
}
|
|
487
|
-
else if (typeof cb === "function") {
|
|
488
|
-
if (typeof optionsOrCb !== "object")
|
|
489
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
490
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
491
|
-
}
|
|
492
|
-
else {
|
|
493
|
-
return this.send(command, optionsOrCb);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
describePiiEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
497
|
-
const command = new DescribePiiEntitiesDetectionJobCommand_1.DescribePiiEntitiesDetectionJobCommand(args);
|
|
498
|
-
if (typeof optionsOrCb === "function") {
|
|
499
|
-
this.send(command, optionsOrCb);
|
|
500
|
-
}
|
|
501
|
-
else if (typeof cb === "function") {
|
|
502
|
-
if (typeof optionsOrCb !== "object")
|
|
503
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
504
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
505
|
-
}
|
|
506
|
-
else {
|
|
507
|
-
return this.send(command, optionsOrCb);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
describeResourcePolicy(args, optionsOrCb, cb) {
|
|
511
|
-
const command = new DescribeResourcePolicyCommand_1.DescribeResourcePolicyCommand(args);
|
|
512
|
-
if (typeof optionsOrCb === "function") {
|
|
513
|
-
this.send(command, optionsOrCb);
|
|
514
|
-
}
|
|
515
|
-
else if (typeof cb === "function") {
|
|
516
|
-
if (typeof optionsOrCb !== "object")
|
|
517
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
518
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
519
|
-
}
|
|
520
|
-
else {
|
|
521
|
-
return this.send(command, optionsOrCb);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
describeSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
525
|
-
const command = new DescribeSentimentDetectionJobCommand_1.DescribeSentimentDetectionJobCommand(args);
|
|
526
|
-
if (typeof optionsOrCb === "function") {
|
|
527
|
-
this.send(command, optionsOrCb);
|
|
528
|
-
}
|
|
529
|
-
else if (typeof cb === "function") {
|
|
530
|
-
if (typeof optionsOrCb !== "object")
|
|
531
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
532
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
533
|
-
}
|
|
534
|
-
else {
|
|
535
|
-
return this.send(command, optionsOrCb);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
describeTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
539
|
-
const command = new DescribeTargetedSentimentDetectionJobCommand_1.DescribeTargetedSentimentDetectionJobCommand(args);
|
|
540
|
-
if (typeof optionsOrCb === "function") {
|
|
541
|
-
this.send(command, optionsOrCb);
|
|
542
|
-
}
|
|
543
|
-
else if (typeof cb === "function") {
|
|
544
|
-
if (typeof optionsOrCb !== "object")
|
|
545
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
546
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
return this.send(command, optionsOrCb);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
describeTopicsDetectionJob(args, optionsOrCb, cb) {
|
|
553
|
-
const command = new DescribeTopicsDetectionJobCommand_1.DescribeTopicsDetectionJobCommand(args);
|
|
554
|
-
if (typeof optionsOrCb === "function") {
|
|
555
|
-
this.send(command, optionsOrCb);
|
|
556
|
-
}
|
|
557
|
-
else if (typeof cb === "function") {
|
|
558
|
-
if (typeof optionsOrCb !== "object")
|
|
559
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
560
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
561
|
-
}
|
|
562
|
-
else {
|
|
563
|
-
return this.send(command, optionsOrCb);
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
detectDominantLanguage(args, optionsOrCb, cb) {
|
|
567
|
-
const command = new DetectDominantLanguageCommand_1.DetectDominantLanguageCommand(args);
|
|
568
|
-
if (typeof optionsOrCb === "function") {
|
|
569
|
-
this.send(command, optionsOrCb);
|
|
570
|
-
}
|
|
571
|
-
else if (typeof cb === "function") {
|
|
572
|
-
if (typeof optionsOrCb !== "object")
|
|
573
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
574
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
575
|
-
}
|
|
576
|
-
else {
|
|
577
|
-
return this.send(command, optionsOrCb);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
detectEntities(args, optionsOrCb, cb) {
|
|
581
|
-
const command = new DetectEntitiesCommand_1.DetectEntitiesCommand(args);
|
|
582
|
-
if (typeof optionsOrCb === "function") {
|
|
583
|
-
this.send(command, optionsOrCb);
|
|
584
|
-
}
|
|
585
|
-
else if (typeof cb === "function") {
|
|
586
|
-
if (typeof optionsOrCb !== "object")
|
|
587
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
588
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
589
|
-
}
|
|
590
|
-
else {
|
|
591
|
-
return this.send(command, optionsOrCb);
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
detectKeyPhrases(args, optionsOrCb, cb) {
|
|
595
|
-
const command = new DetectKeyPhrasesCommand_1.DetectKeyPhrasesCommand(args);
|
|
596
|
-
if (typeof optionsOrCb === "function") {
|
|
597
|
-
this.send(command, optionsOrCb);
|
|
598
|
-
}
|
|
599
|
-
else if (typeof cb === "function") {
|
|
600
|
-
if (typeof optionsOrCb !== "object")
|
|
601
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
602
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
return this.send(command, optionsOrCb);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
detectPiiEntities(args, optionsOrCb, cb) {
|
|
609
|
-
const command = new DetectPiiEntitiesCommand_1.DetectPiiEntitiesCommand(args);
|
|
610
|
-
if (typeof optionsOrCb === "function") {
|
|
611
|
-
this.send(command, optionsOrCb);
|
|
612
|
-
}
|
|
613
|
-
else if (typeof cb === "function") {
|
|
614
|
-
if (typeof optionsOrCb !== "object")
|
|
615
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
616
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
return this.send(command, optionsOrCb);
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
detectSentiment(args, optionsOrCb, cb) {
|
|
623
|
-
const command = new DetectSentimentCommand_1.DetectSentimentCommand(args);
|
|
624
|
-
if (typeof optionsOrCb === "function") {
|
|
625
|
-
this.send(command, optionsOrCb);
|
|
626
|
-
}
|
|
627
|
-
else if (typeof cb === "function") {
|
|
628
|
-
if (typeof optionsOrCb !== "object")
|
|
629
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
630
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
return this.send(command, optionsOrCb);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
detectSyntax(args, optionsOrCb, cb) {
|
|
637
|
-
const command = new DetectSyntaxCommand_1.DetectSyntaxCommand(args);
|
|
638
|
-
if (typeof optionsOrCb === "function") {
|
|
639
|
-
this.send(command, optionsOrCb);
|
|
640
|
-
}
|
|
641
|
-
else if (typeof cb === "function") {
|
|
642
|
-
if (typeof optionsOrCb !== "object")
|
|
643
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
644
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
645
|
-
}
|
|
646
|
-
else {
|
|
647
|
-
return this.send(command, optionsOrCb);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
detectTargetedSentiment(args, optionsOrCb, cb) {
|
|
651
|
-
const command = new DetectTargetedSentimentCommand_1.DetectTargetedSentimentCommand(args);
|
|
652
|
-
if (typeof optionsOrCb === "function") {
|
|
653
|
-
this.send(command, optionsOrCb);
|
|
654
|
-
}
|
|
655
|
-
else if (typeof cb === "function") {
|
|
656
|
-
if (typeof optionsOrCb !== "object")
|
|
657
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
658
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
659
|
-
}
|
|
660
|
-
else {
|
|
661
|
-
return this.send(command, optionsOrCb);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
importModel(args, optionsOrCb, cb) {
|
|
665
|
-
const command = new ImportModelCommand_1.ImportModelCommand(args);
|
|
666
|
-
if (typeof optionsOrCb === "function") {
|
|
667
|
-
this.send(command, optionsOrCb);
|
|
668
|
-
}
|
|
669
|
-
else if (typeof cb === "function") {
|
|
670
|
-
if (typeof optionsOrCb !== "object")
|
|
671
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
672
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
673
|
-
}
|
|
674
|
-
else {
|
|
675
|
-
return this.send(command, optionsOrCb);
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
listDatasets(args, optionsOrCb, cb) {
|
|
679
|
-
const command = new ListDatasetsCommand_1.ListDatasetsCommand(args);
|
|
680
|
-
if (typeof optionsOrCb === "function") {
|
|
681
|
-
this.send(command, optionsOrCb);
|
|
682
|
-
}
|
|
683
|
-
else if (typeof cb === "function") {
|
|
684
|
-
if (typeof optionsOrCb !== "object")
|
|
685
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
686
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
687
|
-
}
|
|
688
|
-
else {
|
|
689
|
-
return this.send(command, optionsOrCb);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
listDocumentClassificationJobs(args, optionsOrCb, cb) {
|
|
693
|
-
const command = new ListDocumentClassificationJobsCommand_1.ListDocumentClassificationJobsCommand(args);
|
|
694
|
-
if (typeof optionsOrCb === "function") {
|
|
695
|
-
this.send(command, optionsOrCb);
|
|
696
|
-
}
|
|
697
|
-
else if (typeof cb === "function") {
|
|
698
|
-
if (typeof optionsOrCb !== "object")
|
|
699
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
700
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
return this.send(command, optionsOrCb);
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
listDocumentClassifiers(args, optionsOrCb, cb) {
|
|
707
|
-
const command = new ListDocumentClassifiersCommand_1.ListDocumentClassifiersCommand(args);
|
|
708
|
-
if (typeof optionsOrCb === "function") {
|
|
709
|
-
this.send(command, optionsOrCb);
|
|
710
|
-
}
|
|
711
|
-
else if (typeof cb === "function") {
|
|
712
|
-
if (typeof optionsOrCb !== "object")
|
|
713
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
714
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
715
|
-
}
|
|
716
|
-
else {
|
|
717
|
-
return this.send(command, optionsOrCb);
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
listDocumentClassifierSummaries(args, optionsOrCb, cb) {
|
|
721
|
-
const command = new ListDocumentClassifierSummariesCommand_1.ListDocumentClassifierSummariesCommand(args);
|
|
722
|
-
if (typeof optionsOrCb === "function") {
|
|
723
|
-
this.send(command, optionsOrCb);
|
|
724
|
-
}
|
|
725
|
-
else if (typeof cb === "function") {
|
|
726
|
-
if (typeof optionsOrCb !== "object")
|
|
727
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
728
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
729
|
-
}
|
|
730
|
-
else {
|
|
731
|
-
return this.send(command, optionsOrCb);
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
listDominantLanguageDetectionJobs(args, optionsOrCb, cb) {
|
|
735
|
-
const command = new ListDominantLanguageDetectionJobsCommand_1.ListDominantLanguageDetectionJobsCommand(args);
|
|
736
|
-
if (typeof optionsOrCb === "function") {
|
|
737
|
-
this.send(command, optionsOrCb);
|
|
738
|
-
}
|
|
739
|
-
else if (typeof cb === "function") {
|
|
740
|
-
if (typeof optionsOrCb !== "object")
|
|
741
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
742
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
743
|
-
}
|
|
744
|
-
else {
|
|
745
|
-
return this.send(command, optionsOrCb);
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
listEndpoints(args, optionsOrCb, cb) {
|
|
749
|
-
const command = new ListEndpointsCommand_1.ListEndpointsCommand(args);
|
|
750
|
-
if (typeof optionsOrCb === "function") {
|
|
751
|
-
this.send(command, optionsOrCb);
|
|
752
|
-
}
|
|
753
|
-
else if (typeof cb === "function") {
|
|
754
|
-
if (typeof optionsOrCb !== "object")
|
|
755
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
756
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
757
|
-
}
|
|
758
|
-
else {
|
|
759
|
-
return this.send(command, optionsOrCb);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
listEntitiesDetectionJobs(args, optionsOrCb, cb) {
|
|
763
|
-
const command = new ListEntitiesDetectionJobsCommand_1.ListEntitiesDetectionJobsCommand(args);
|
|
764
|
-
if (typeof optionsOrCb === "function") {
|
|
765
|
-
this.send(command, optionsOrCb);
|
|
766
|
-
}
|
|
767
|
-
else if (typeof cb === "function") {
|
|
768
|
-
if (typeof optionsOrCb !== "object")
|
|
769
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
770
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
771
|
-
}
|
|
772
|
-
else {
|
|
773
|
-
return this.send(command, optionsOrCb);
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
listEntityRecognizers(args, optionsOrCb, cb) {
|
|
777
|
-
const command = new ListEntityRecognizersCommand_1.ListEntityRecognizersCommand(args);
|
|
778
|
-
if (typeof optionsOrCb === "function") {
|
|
779
|
-
this.send(command, optionsOrCb);
|
|
780
|
-
}
|
|
781
|
-
else if (typeof cb === "function") {
|
|
782
|
-
if (typeof optionsOrCb !== "object")
|
|
783
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
784
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
785
|
-
}
|
|
786
|
-
else {
|
|
787
|
-
return this.send(command, optionsOrCb);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
listEntityRecognizerSummaries(args, optionsOrCb, cb) {
|
|
791
|
-
const command = new ListEntityRecognizerSummariesCommand_1.ListEntityRecognizerSummariesCommand(args);
|
|
792
|
-
if (typeof optionsOrCb === "function") {
|
|
793
|
-
this.send(command, optionsOrCb);
|
|
794
|
-
}
|
|
795
|
-
else if (typeof cb === "function") {
|
|
796
|
-
if (typeof optionsOrCb !== "object")
|
|
797
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
798
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
799
|
-
}
|
|
800
|
-
else {
|
|
801
|
-
return this.send(command, optionsOrCb);
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
listEventsDetectionJobs(args, optionsOrCb, cb) {
|
|
805
|
-
const command = new ListEventsDetectionJobsCommand_1.ListEventsDetectionJobsCommand(args);
|
|
806
|
-
if (typeof optionsOrCb === "function") {
|
|
807
|
-
this.send(command, optionsOrCb);
|
|
808
|
-
}
|
|
809
|
-
else if (typeof cb === "function") {
|
|
810
|
-
if (typeof optionsOrCb !== "object")
|
|
811
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
812
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
813
|
-
}
|
|
814
|
-
else {
|
|
815
|
-
return this.send(command, optionsOrCb);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
listFlywheelIterationHistory(args, optionsOrCb, cb) {
|
|
819
|
-
const command = new ListFlywheelIterationHistoryCommand_1.ListFlywheelIterationHistoryCommand(args);
|
|
820
|
-
if (typeof optionsOrCb === "function") {
|
|
821
|
-
this.send(command, optionsOrCb);
|
|
822
|
-
}
|
|
823
|
-
else if (typeof cb === "function") {
|
|
824
|
-
if (typeof optionsOrCb !== "object")
|
|
825
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
826
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
827
|
-
}
|
|
828
|
-
else {
|
|
829
|
-
return this.send(command, optionsOrCb);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
listFlywheels(args, optionsOrCb, cb) {
|
|
833
|
-
const command = new ListFlywheelsCommand_1.ListFlywheelsCommand(args);
|
|
834
|
-
if (typeof optionsOrCb === "function") {
|
|
835
|
-
this.send(command, optionsOrCb);
|
|
836
|
-
}
|
|
837
|
-
else if (typeof cb === "function") {
|
|
838
|
-
if (typeof optionsOrCb !== "object")
|
|
839
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
840
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
841
|
-
}
|
|
842
|
-
else {
|
|
843
|
-
return this.send(command, optionsOrCb);
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
listKeyPhrasesDetectionJobs(args, optionsOrCb, cb) {
|
|
847
|
-
const command = new ListKeyPhrasesDetectionJobsCommand_1.ListKeyPhrasesDetectionJobsCommand(args);
|
|
848
|
-
if (typeof optionsOrCb === "function") {
|
|
849
|
-
this.send(command, optionsOrCb);
|
|
850
|
-
}
|
|
851
|
-
else if (typeof cb === "function") {
|
|
852
|
-
if (typeof optionsOrCb !== "object")
|
|
853
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
854
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
855
|
-
}
|
|
856
|
-
else {
|
|
857
|
-
return this.send(command, optionsOrCb);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
listPiiEntitiesDetectionJobs(args, optionsOrCb, cb) {
|
|
861
|
-
const command = new ListPiiEntitiesDetectionJobsCommand_1.ListPiiEntitiesDetectionJobsCommand(args);
|
|
862
|
-
if (typeof optionsOrCb === "function") {
|
|
863
|
-
this.send(command, optionsOrCb);
|
|
864
|
-
}
|
|
865
|
-
else if (typeof cb === "function") {
|
|
866
|
-
if (typeof optionsOrCb !== "object")
|
|
867
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
868
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
869
|
-
}
|
|
870
|
-
else {
|
|
871
|
-
return this.send(command, optionsOrCb);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
listSentimentDetectionJobs(args, optionsOrCb, cb) {
|
|
875
|
-
const command = new ListSentimentDetectionJobsCommand_1.ListSentimentDetectionJobsCommand(args);
|
|
876
|
-
if (typeof optionsOrCb === "function") {
|
|
877
|
-
this.send(command, optionsOrCb);
|
|
878
|
-
}
|
|
879
|
-
else if (typeof cb === "function") {
|
|
880
|
-
if (typeof optionsOrCb !== "object")
|
|
881
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
882
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
883
|
-
}
|
|
884
|
-
else {
|
|
885
|
-
return this.send(command, optionsOrCb);
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
889
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
890
|
-
if (typeof optionsOrCb === "function") {
|
|
891
|
-
this.send(command, optionsOrCb);
|
|
892
|
-
}
|
|
893
|
-
else if (typeof cb === "function") {
|
|
894
|
-
if (typeof optionsOrCb !== "object")
|
|
895
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
896
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
897
|
-
}
|
|
898
|
-
else {
|
|
899
|
-
return this.send(command, optionsOrCb);
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
listTargetedSentimentDetectionJobs(args, optionsOrCb, cb) {
|
|
903
|
-
const command = new ListTargetedSentimentDetectionJobsCommand_1.ListTargetedSentimentDetectionJobsCommand(args);
|
|
904
|
-
if (typeof optionsOrCb === "function") {
|
|
905
|
-
this.send(command, optionsOrCb);
|
|
906
|
-
}
|
|
907
|
-
else if (typeof cb === "function") {
|
|
908
|
-
if (typeof optionsOrCb !== "object")
|
|
909
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
910
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
911
|
-
}
|
|
912
|
-
else {
|
|
913
|
-
return this.send(command, optionsOrCb);
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
listTopicsDetectionJobs(args, optionsOrCb, cb) {
|
|
917
|
-
const command = new ListTopicsDetectionJobsCommand_1.ListTopicsDetectionJobsCommand(args);
|
|
918
|
-
if (typeof optionsOrCb === "function") {
|
|
919
|
-
this.send(command, optionsOrCb);
|
|
920
|
-
}
|
|
921
|
-
else if (typeof cb === "function") {
|
|
922
|
-
if (typeof optionsOrCb !== "object")
|
|
923
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
924
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
925
|
-
}
|
|
926
|
-
else {
|
|
927
|
-
return this.send(command, optionsOrCb);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
931
|
-
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
932
|
-
if (typeof optionsOrCb === "function") {
|
|
933
|
-
this.send(command, optionsOrCb);
|
|
934
|
-
}
|
|
935
|
-
else if (typeof cb === "function") {
|
|
936
|
-
if (typeof optionsOrCb !== "object")
|
|
937
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
938
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
939
|
-
}
|
|
940
|
-
else {
|
|
941
|
-
return this.send(command, optionsOrCb);
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
startDocumentClassificationJob(args, optionsOrCb, cb) {
|
|
945
|
-
const command = new StartDocumentClassificationJobCommand_1.StartDocumentClassificationJobCommand(args);
|
|
946
|
-
if (typeof optionsOrCb === "function") {
|
|
947
|
-
this.send(command, optionsOrCb);
|
|
948
|
-
}
|
|
949
|
-
else if (typeof cb === "function") {
|
|
950
|
-
if (typeof optionsOrCb !== "object")
|
|
951
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
952
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
953
|
-
}
|
|
954
|
-
else {
|
|
955
|
-
return this.send(command, optionsOrCb);
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
startDominantLanguageDetectionJob(args, optionsOrCb, cb) {
|
|
959
|
-
const command = new StartDominantLanguageDetectionJobCommand_1.StartDominantLanguageDetectionJobCommand(args);
|
|
960
|
-
if (typeof optionsOrCb === "function") {
|
|
961
|
-
this.send(command, optionsOrCb);
|
|
962
|
-
}
|
|
963
|
-
else if (typeof cb === "function") {
|
|
964
|
-
if (typeof optionsOrCb !== "object")
|
|
965
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
966
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
967
|
-
}
|
|
968
|
-
else {
|
|
969
|
-
return this.send(command, optionsOrCb);
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
startEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
973
|
-
const command = new StartEntitiesDetectionJobCommand_1.StartEntitiesDetectionJobCommand(args);
|
|
974
|
-
if (typeof optionsOrCb === "function") {
|
|
975
|
-
this.send(command, optionsOrCb);
|
|
976
|
-
}
|
|
977
|
-
else if (typeof cb === "function") {
|
|
978
|
-
if (typeof optionsOrCb !== "object")
|
|
979
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
980
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
981
|
-
}
|
|
982
|
-
else {
|
|
983
|
-
return this.send(command, optionsOrCb);
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
startEventsDetectionJob(args, optionsOrCb, cb) {
|
|
987
|
-
const command = new StartEventsDetectionJobCommand_1.StartEventsDetectionJobCommand(args);
|
|
988
|
-
if (typeof optionsOrCb === "function") {
|
|
989
|
-
this.send(command, optionsOrCb);
|
|
990
|
-
}
|
|
991
|
-
else if (typeof cb === "function") {
|
|
992
|
-
if (typeof optionsOrCb !== "object")
|
|
993
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
994
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
995
|
-
}
|
|
996
|
-
else {
|
|
997
|
-
return this.send(command, optionsOrCb);
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
startFlywheelIteration(args, optionsOrCb, cb) {
|
|
1001
|
-
const command = new StartFlywheelIterationCommand_1.StartFlywheelIterationCommand(args);
|
|
1002
|
-
if (typeof optionsOrCb === "function") {
|
|
1003
|
-
this.send(command, optionsOrCb);
|
|
1004
|
-
}
|
|
1005
|
-
else if (typeof cb === "function") {
|
|
1006
|
-
if (typeof optionsOrCb !== "object")
|
|
1007
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1008
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1009
|
-
}
|
|
1010
|
-
else {
|
|
1011
|
-
return this.send(command, optionsOrCb);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
startKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
1015
|
-
const command = new StartKeyPhrasesDetectionJobCommand_1.StartKeyPhrasesDetectionJobCommand(args);
|
|
1016
|
-
if (typeof optionsOrCb === "function") {
|
|
1017
|
-
this.send(command, optionsOrCb);
|
|
1018
|
-
}
|
|
1019
|
-
else if (typeof cb === "function") {
|
|
1020
|
-
if (typeof optionsOrCb !== "object")
|
|
1021
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1022
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1023
|
-
}
|
|
1024
|
-
else {
|
|
1025
|
-
return this.send(command, optionsOrCb);
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
startPiiEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
1029
|
-
const command = new StartPiiEntitiesDetectionJobCommand_1.StartPiiEntitiesDetectionJobCommand(args);
|
|
1030
|
-
if (typeof optionsOrCb === "function") {
|
|
1031
|
-
this.send(command, optionsOrCb);
|
|
1032
|
-
}
|
|
1033
|
-
else if (typeof cb === "function") {
|
|
1034
|
-
if (typeof optionsOrCb !== "object")
|
|
1035
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1036
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1037
|
-
}
|
|
1038
|
-
else {
|
|
1039
|
-
return this.send(command, optionsOrCb);
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
startSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
1043
|
-
const command = new StartSentimentDetectionJobCommand_1.StartSentimentDetectionJobCommand(args);
|
|
1044
|
-
if (typeof optionsOrCb === "function") {
|
|
1045
|
-
this.send(command, optionsOrCb);
|
|
1046
|
-
}
|
|
1047
|
-
else if (typeof cb === "function") {
|
|
1048
|
-
if (typeof optionsOrCb !== "object")
|
|
1049
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1050
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1051
|
-
}
|
|
1052
|
-
else {
|
|
1053
|
-
return this.send(command, optionsOrCb);
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
startTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
1057
|
-
const command = new StartTargetedSentimentDetectionJobCommand_1.StartTargetedSentimentDetectionJobCommand(args);
|
|
1058
|
-
if (typeof optionsOrCb === "function") {
|
|
1059
|
-
this.send(command, optionsOrCb);
|
|
1060
|
-
}
|
|
1061
|
-
else if (typeof cb === "function") {
|
|
1062
|
-
if (typeof optionsOrCb !== "object")
|
|
1063
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1064
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1065
|
-
}
|
|
1066
|
-
else {
|
|
1067
|
-
return this.send(command, optionsOrCb);
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
startTopicsDetectionJob(args, optionsOrCb, cb) {
|
|
1071
|
-
const command = new StartTopicsDetectionJobCommand_1.StartTopicsDetectionJobCommand(args);
|
|
1072
|
-
if (typeof optionsOrCb === "function") {
|
|
1073
|
-
this.send(command, optionsOrCb);
|
|
1074
|
-
}
|
|
1075
|
-
else if (typeof cb === "function") {
|
|
1076
|
-
if (typeof optionsOrCb !== "object")
|
|
1077
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1078
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1079
|
-
}
|
|
1080
|
-
else {
|
|
1081
|
-
return this.send(command, optionsOrCb);
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
stopDominantLanguageDetectionJob(args, optionsOrCb, cb) {
|
|
1085
|
-
const command = new StopDominantLanguageDetectionJobCommand_1.StopDominantLanguageDetectionJobCommand(args);
|
|
1086
|
-
if (typeof optionsOrCb === "function") {
|
|
1087
|
-
this.send(command, optionsOrCb);
|
|
1088
|
-
}
|
|
1089
|
-
else if (typeof cb === "function") {
|
|
1090
|
-
if (typeof optionsOrCb !== "object")
|
|
1091
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1092
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1093
|
-
}
|
|
1094
|
-
else {
|
|
1095
|
-
return this.send(command, optionsOrCb);
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
stopEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
1099
|
-
const command = new StopEntitiesDetectionJobCommand_1.StopEntitiesDetectionJobCommand(args);
|
|
1100
|
-
if (typeof optionsOrCb === "function") {
|
|
1101
|
-
this.send(command, optionsOrCb);
|
|
1102
|
-
}
|
|
1103
|
-
else if (typeof cb === "function") {
|
|
1104
|
-
if (typeof optionsOrCb !== "object")
|
|
1105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1107
|
-
}
|
|
1108
|
-
else {
|
|
1109
|
-
return this.send(command, optionsOrCb);
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
stopEventsDetectionJob(args, optionsOrCb, cb) {
|
|
1113
|
-
const command = new StopEventsDetectionJobCommand_1.StopEventsDetectionJobCommand(args);
|
|
1114
|
-
if (typeof optionsOrCb === "function") {
|
|
1115
|
-
this.send(command, optionsOrCb);
|
|
1116
|
-
}
|
|
1117
|
-
else if (typeof cb === "function") {
|
|
1118
|
-
if (typeof optionsOrCb !== "object")
|
|
1119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1121
|
-
}
|
|
1122
|
-
else {
|
|
1123
|
-
return this.send(command, optionsOrCb);
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
stopKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
1127
|
-
const command = new StopKeyPhrasesDetectionJobCommand_1.StopKeyPhrasesDetectionJobCommand(args);
|
|
1128
|
-
if (typeof optionsOrCb === "function") {
|
|
1129
|
-
this.send(command, optionsOrCb);
|
|
1130
|
-
}
|
|
1131
|
-
else if (typeof cb === "function") {
|
|
1132
|
-
if (typeof optionsOrCb !== "object")
|
|
1133
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1134
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1135
|
-
}
|
|
1136
|
-
else {
|
|
1137
|
-
return this.send(command, optionsOrCb);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
stopPiiEntitiesDetectionJob(args, optionsOrCb, cb) {
|
|
1141
|
-
const command = new StopPiiEntitiesDetectionJobCommand_1.StopPiiEntitiesDetectionJobCommand(args);
|
|
1142
|
-
if (typeof optionsOrCb === "function") {
|
|
1143
|
-
this.send(command, optionsOrCb);
|
|
1144
|
-
}
|
|
1145
|
-
else if (typeof cb === "function") {
|
|
1146
|
-
if (typeof optionsOrCb !== "object")
|
|
1147
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1148
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1149
|
-
}
|
|
1150
|
-
else {
|
|
1151
|
-
return this.send(command, optionsOrCb);
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
stopSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
1155
|
-
const command = new StopSentimentDetectionJobCommand_1.StopSentimentDetectionJobCommand(args);
|
|
1156
|
-
if (typeof optionsOrCb === "function") {
|
|
1157
|
-
this.send(command, optionsOrCb);
|
|
1158
|
-
}
|
|
1159
|
-
else if (typeof cb === "function") {
|
|
1160
|
-
if (typeof optionsOrCb !== "object")
|
|
1161
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1162
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1163
|
-
}
|
|
1164
|
-
else {
|
|
1165
|
-
return this.send(command, optionsOrCb);
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
stopTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
1169
|
-
const command = new StopTargetedSentimentDetectionJobCommand_1.StopTargetedSentimentDetectionJobCommand(args);
|
|
1170
|
-
if (typeof optionsOrCb === "function") {
|
|
1171
|
-
this.send(command, optionsOrCb);
|
|
1172
|
-
}
|
|
1173
|
-
else if (typeof cb === "function") {
|
|
1174
|
-
if (typeof optionsOrCb !== "object")
|
|
1175
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1176
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1177
|
-
}
|
|
1178
|
-
else {
|
|
1179
|
-
return this.send(command, optionsOrCb);
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
stopTrainingDocumentClassifier(args, optionsOrCb, cb) {
|
|
1183
|
-
const command = new StopTrainingDocumentClassifierCommand_1.StopTrainingDocumentClassifierCommand(args);
|
|
1184
|
-
if (typeof optionsOrCb === "function") {
|
|
1185
|
-
this.send(command, optionsOrCb);
|
|
1186
|
-
}
|
|
1187
|
-
else if (typeof cb === "function") {
|
|
1188
|
-
if (typeof optionsOrCb !== "object")
|
|
1189
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1190
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1191
|
-
}
|
|
1192
|
-
else {
|
|
1193
|
-
return this.send(command, optionsOrCb);
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
stopTrainingEntityRecognizer(args, optionsOrCb, cb) {
|
|
1197
|
-
const command = new StopTrainingEntityRecognizerCommand_1.StopTrainingEntityRecognizerCommand(args);
|
|
1198
|
-
if (typeof optionsOrCb === "function") {
|
|
1199
|
-
this.send(command, optionsOrCb);
|
|
1200
|
-
}
|
|
1201
|
-
else if (typeof cb === "function") {
|
|
1202
|
-
if (typeof optionsOrCb !== "object")
|
|
1203
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1204
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1205
|
-
}
|
|
1206
|
-
else {
|
|
1207
|
-
return this.send(command, optionsOrCb);
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
tagResource(args, optionsOrCb, cb) {
|
|
1211
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
1212
|
-
if (typeof optionsOrCb === "function") {
|
|
1213
|
-
this.send(command, optionsOrCb);
|
|
1214
|
-
}
|
|
1215
|
-
else if (typeof cb === "function") {
|
|
1216
|
-
if (typeof optionsOrCb !== "object")
|
|
1217
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1218
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1219
|
-
}
|
|
1220
|
-
else {
|
|
1221
|
-
return this.send(command, optionsOrCb);
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
untagResource(args, optionsOrCb, cb) {
|
|
1225
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
1226
|
-
if (typeof optionsOrCb === "function") {
|
|
1227
|
-
this.send(command, optionsOrCb);
|
|
1228
|
-
}
|
|
1229
|
-
else if (typeof cb === "function") {
|
|
1230
|
-
if (typeof optionsOrCb !== "object")
|
|
1231
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1232
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1233
|
-
}
|
|
1234
|
-
else {
|
|
1235
|
-
return this.send(command, optionsOrCb);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
updateEndpoint(args, optionsOrCb, cb) {
|
|
1239
|
-
const command = new UpdateEndpointCommand_1.UpdateEndpointCommand(args);
|
|
1240
|
-
if (typeof optionsOrCb === "function") {
|
|
1241
|
-
this.send(command, optionsOrCb);
|
|
1242
|
-
}
|
|
1243
|
-
else if (typeof cb === "function") {
|
|
1244
|
-
if (typeof optionsOrCb !== "object")
|
|
1245
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1246
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1247
|
-
}
|
|
1248
|
-
else {
|
|
1249
|
-
return this.send(command, optionsOrCb);
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
updateFlywheel(args, optionsOrCb, cb) {
|
|
1253
|
-
const command = new UpdateFlywheelCommand_1.UpdateFlywheelCommand(args);
|
|
1254
|
-
if (typeof optionsOrCb === "function") {
|
|
1255
|
-
this.send(command, optionsOrCb);
|
|
1256
|
-
}
|
|
1257
|
-
else if (typeof cb === "function") {
|
|
1258
|
-
if (typeof optionsOrCb !== "object")
|
|
1259
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1260
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1261
|
-
}
|
|
1262
|
-
else {
|
|
1263
|
-
return this.send(command, optionsOrCb);
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
177
|
}
|
|
1267
178
|
exports.Comprehend = Comprehend;
|
|
179
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Comprehend);
|