@aws-sdk/client-frauddetector 3.185.0 → 3.188.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 +16 -0
- package/dist-es/FraudDetector.js +274 -281
- package/dist-es/FraudDetectorClient.js +22 -28
- package/dist-es/commands/BatchCreateVariableCommand.js +21 -28
- package/dist-es/commands/BatchGetVariableCommand.js +21 -28
- package/dist-es/commands/CancelBatchImportJobCommand.js +21 -28
- package/dist-es/commands/CancelBatchPredictionJobCommand.js +21 -28
- package/dist-es/commands/CreateBatchImportJobCommand.js +21 -28
- package/dist-es/commands/CreateBatchPredictionJobCommand.js +21 -28
- package/dist-es/commands/CreateDetectorVersionCommand.js +21 -28
- package/dist-es/commands/CreateModelCommand.js +21 -28
- package/dist-es/commands/CreateModelVersionCommand.js +21 -28
- package/dist-es/commands/CreateRuleCommand.js +21 -28
- package/dist-es/commands/CreateVariableCommand.js +21 -28
- package/dist-es/commands/DeleteBatchImportJobCommand.js +21 -28
- package/dist-es/commands/DeleteBatchPredictionJobCommand.js +21 -28
- package/dist-es/commands/DeleteDetectorCommand.js +21 -28
- package/dist-es/commands/DeleteDetectorVersionCommand.js +21 -28
- package/dist-es/commands/DeleteEntityTypeCommand.js +21 -28
- package/dist-es/commands/DeleteEventCommand.js +21 -28
- package/dist-es/commands/DeleteEventTypeCommand.js +21 -28
- package/dist-es/commands/DeleteEventsByEventTypeCommand.js +21 -28
- package/dist-es/commands/DeleteExternalModelCommand.js +21 -28
- package/dist-es/commands/DeleteLabelCommand.js +21 -28
- package/dist-es/commands/DeleteModelCommand.js +21 -28
- package/dist-es/commands/DeleteModelVersionCommand.js +21 -28
- package/dist-es/commands/DeleteOutcomeCommand.js +21 -28
- package/dist-es/commands/DeleteRuleCommand.js +21 -28
- package/dist-es/commands/DeleteVariableCommand.js +21 -28
- package/dist-es/commands/DescribeDetectorCommand.js +21 -28
- package/dist-es/commands/DescribeModelVersionsCommand.js +21 -28
- package/dist-es/commands/GetBatchImportJobsCommand.js +21 -28
- package/dist-es/commands/GetBatchPredictionJobsCommand.js +21 -28
- package/dist-es/commands/GetDeleteEventsByEventTypeStatusCommand.js +21 -28
- package/dist-es/commands/GetDetectorVersionCommand.js +21 -28
- package/dist-es/commands/GetDetectorsCommand.js +21 -28
- package/dist-es/commands/GetEntityTypesCommand.js +21 -28
- package/dist-es/commands/GetEventCommand.js +21 -28
- package/dist-es/commands/GetEventPredictionCommand.js +21 -28
- package/dist-es/commands/GetEventPredictionMetadataCommand.js +21 -28
- package/dist-es/commands/GetEventTypesCommand.js +21 -28
- package/dist-es/commands/GetExternalModelsCommand.js +21 -28
- package/dist-es/commands/GetKMSEncryptionKeyCommand.js +22 -29
- package/dist-es/commands/GetLabelsCommand.js +21 -28
- package/dist-es/commands/GetModelVersionCommand.js +21 -28
- package/dist-es/commands/GetModelsCommand.js +21 -28
- package/dist-es/commands/GetOutcomesCommand.js +21 -28
- package/dist-es/commands/GetRulesCommand.js +21 -28
- package/dist-es/commands/GetVariablesCommand.js +21 -28
- package/dist-es/commands/ListEventPredictionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutDetectorCommand.js +21 -28
- package/dist-es/commands/PutEntityTypeCommand.js +21 -28
- package/dist-es/commands/PutEventTypeCommand.js +21 -28
- package/dist-es/commands/PutExternalModelCommand.js +21 -28
- package/dist-es/commands/PutKMSEncryptionKeyCommand.js +21 -28
- package/dist-es/commands/PutLabelCommand.js +21 -28
- package/dist-es/commands/PutOutcomeCommand.js +21 -28
- package/dist-es/commands/SendEventCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorVersionCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorVersionMetadataCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorVersionStatusCommand.js +21 -28
- package/dist-es/commands/UpdateEventLabelCommand.js +21 -28
- package/dist-es/commands/UpdateModelCommand.js +21 -28
- package/dist-es/commands/UpdateModelVersionCommand.js +21 -28
- package/dist-es/commands/UpdateModelVersionStatusCommand.js +21 -28
- package/dist-es/commands/UpdateRuleMetadataCommand.js +21 -28
- package/dist-es/commands/UpdateRuleVersionCommand.js +21 -28
- package/dist-es/commands/UpdateVariableCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/FraudDetectorServiceException.js +5 -10
- package/dist-es/models/models_0.js +710 -284
- package/dist-es/pagination/DescribeModelVersionsPaginator.js +25 -68
- package/dist-es/pagination/GetBatchImportJobsPaginator.js +25 -68
- package/dist-es/pagination/GetBatchPredictionJobsPaginator.js +25 -68
- package/dist-es/pagination/GetDetectorsPaginator.js +25 -68
- package/dist-es/pagination/GetEntityTypesPaginator.js +25 -68
- package/dist-es/pagination/GetEventTypesPaginator.js +25 -68
- package/dist-es/pagination/GetExternalModelsPaginator.js +25 -68
- package/dist-es/pagination/GetLabelsPaginator.js +25 -68
- package/dist-es/pagination/GetModelsPaginator.js +25 -68
- package/dist-es/pagination/GetOutcomesPaginator.js +25 -68
- package/dist-es/pagination/GetRulesPaginator.js +25 -68
- package/dist-es/pagination/GetVariablesPaginator.js +25 -68
- package/dist-es/pagination/ListEventPredictionsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +4746 -6042
- 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/FraudDetector.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { BatchCreateVariableCommand, } from "./commands/BatchCreateVariableCommand";
|
|
3
2
|
import { BatchGetVariableCommand, } from "./commands/BatchGetVariableCommand";
|
|
4
3
|
import { CancelBatchImportJobCommand, } from "./commands/CancelBatchImportJobCommand";
|
|
@@ -68,963 +67,957 @@ import { UpdateRuleMetadataCommand, } from "./commands/UpdateRuleMetadataCommand
|
|
|
68
67
|
import { UpdateRuleVersionCommand, } from "./commands/UpdateRuleVersionCommand";
|
|
69
68
|
import { UpdateVariableCommand, } from "./commands/UpdateVariableCommand";
|
|
70
69
|
import { FraudDetectorClient } from "./FraudDetectorClient";
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
|
-
}
|
|
76
|
-
FraudDetector.prototype.batchCreateVariable = function (args, optionsOrCb, cb) {
|
|
77
|
-
var command = new BatchCreateVariableCommand(args);
|
|
70
|
+
export class FraudDetector extends FraudDetectorClient {
|
|
71
|
+
batchCreateVariable(args, optionsOrCb, cb) {
|
|
72
|
+
const command = new BatchCreateVariableCommand(args);
|
|
78
73
|
if (typeof optionsOrCb === "function") {
|
|
79
74
|
this.send(command, optionsOrCb);
|
|
80
75
|
}
|
|
81
76
|
else if (typeof cb === "function") {
|
|
82
77
|
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(
|
|
78
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
79
|
this.send(command, optionsOrCb || {}, cb);
|
|
85
80
|
}
|
|
86
81
|
else {
|
|
87
82
|
return this.send(command, optionsOrCb);
|
|
88
83
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
}
|
|
85
|
+
batchGetVariable(args, optionsOrCb, cb) {
|
|
86
|
+
const command = new BatchGetVariableCommand(args);
|
|
92
87
|
if (typeof optionsOrCb === "function") {
|
|
93
88
|
this.send(command, optionsOrCb);
|
|
94
89
|
}
|
|
95
90
|
else if (typeof cb === "function") {
|
|
96
91
|
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(
|
|
92
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
93
|
this.send(command, optionsOrCb || {}, cb);
|
|
99
94
|
}
|
|
100
95
|
else {
|
|
101
96
|
return this.send(command, optionsOrCb);
|
|
102
97
|
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
}
|
|
99
|
+
cancelBatchImportJob(args, optionsOrCb, cb) {
|
|
100
|
+
const command = new CancelBatchImportJobCommand(args);
|
|
106
101
|
if (typeof optionsOrCb === "function") {
|
|
107
102
|
this.send(command, optionsOrCb);
|
|
108
103
|
}
|
|
109
104
|
else if (typeof cb === "function") {
|
|
110
105
|
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(
|
|
106
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
107
|
this.send(command, optionsOrCb || {}, cb);
|
|
113
108
|
}
|
|
114
109
|
else {
|
|
115
110
|
return this.send(command, optionsOrCb);
|
|
116
111
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
}
|
|
113
|
+
cancelBatchPredictionJob(args, optionsOrCb, cb) {
|
|
114
|
+
const command = new CancelBatchPredictionJobCommand(args);
|
|
120
115
|
if (typeof optionsOrCb === "function") {
|
|
121
116
|
this.send(command, optionsOrCb);
|
|
122
117
|
}
|
|
123
118
|
else if (typeof cb === "function") {
|
|
124
119
|
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(
|
|
120
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
121
|
this.send(command, optionsOrCb || {}, cb);
|
|
127
122
|
}
|
|
128
123
|
else {
|
|
129
124
|
return this.send(command, optionsOrCb);
|
|
130
125
|
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
}
|
|
127
|
+
createBatchImportJob(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new CreateBatchImportJobCommand(args);
|
|
134
129
|
if (typeof optionsOrCb === "function") {
|
|
135
130
|
this.send(command, optionsOrCb);
|
|
136
131
|
}
|
|
137
132
|
else if (typeof cb === "function") {
|
|
138
133
|
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
135
|
this.send(command, optionsOrCb || {}, cb);
|
|
141
136
|
}
|
|
142
137
|
else {
|
|
143
138
|
return this.send(command, optionsOrCb);
|
|
144
139
|
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
}
|
|
141
|
+
createBatchPredictionJob(args, optionsOrCb, cb) {
|
|
142
|
+
const command = new CreateBatchPredictionJobCommand(args);
|
|
148
143
|
if (typeof optionsOrCb === "function") {
|
|
149
144
|
this.send(command, optionsOrCb);
|
|
150
145
|
}
|
|
151
146
|
else if (typeof cb === "function") {
|
|
152
147
|
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(
|
|
148
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
149
|
this.send(command, optionsOrCb || {}, cb);
|
|
155
150
|
}
|
|
156
151
|
else {
|
|
157
152
|
return this.send(command, optionsOrCb);
|
|
158
153
|
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
154
|
+
}
|
|
155
|
+
createDetectorVersion(args, optionsOrCb, cb) {
|
|
156
|
+
const command = new CreateDetectorVersionCommand(args);
|
|
162
157
|
if (typeof optionsOrCb === "function") {
|
|
163
158
|
this.send(command, optionsOrCb);
|
|
164
159
|
}
|
|
165
160
|
else if (typeof cb === "function") {
|
|
166
161
|
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(
|
|
162
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
163
|
this.send(command, optionsOrCb || {}, cb);
|
|
169
164
|
}
|
|
170
165
|
else {
|
|
171
166
|
return this.send(command, optionsOrCb);
|
|
172
167
|
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
}
|
|
169
|
+
createModel(args, optionsOrCb, cb) {
|
|
170
|
+
const command = new CreateModelCommand(args);
|
|
176
171
|
if (typeof optionsOrCb === "function") {
|
|
177
172
|
this.send(command, optionsOrCb);
|
|
178
173
|
}
|
|
179
174
|
else if (typeof cb === "function") {
|
|
180
175
|
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(
|
|
176
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
177
|
this.send(command, optionsOrCb || {}, cb);
|
|
183
178
|
}
|
|
184
179
|
else {
|
|
185
180
|
return this.send(command, optionsOrCb);
|
|
186
181
|
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
182
|
+
}
|
|
183
|
+
createModelVersion(args, optionsOrCb, cb) {
|
|
184
|
+
const command = new CreateModelVersionCommand(args);
|
|
190
185
|
if (typeof optionsOrCb === "function") {
|
|
191
186
|
this.send(command, optionsOrCb);
|
|
192
187
|
}
|
|
193
188
|
else if (typeof cb === "function") {
|
|
194
189
|
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(
|
|
190
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
191
|
this.send(command, optionsOrCb || {}, cb);
|
|
197
192
|
}
|
|
198
193
|
else {
|
|
199
194
|
return this.send(command, optionsOrCb);
|
|
200
195
|
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
196
|
+
}
|
|
197
|
+
createRule(args, optionsOrCb, cb) {
|
|
198
|
+
const command = new CreateRuleCommand(args);
|
|
204
199
|
if (typeof optionsOrCb === "function") {
|
|
205
200
|
this.send(command, optionsOrCb);
|
|
206
201
|
}
|
|
207
202
|
else if (typeof cb === "function") {
|
|
208
203
|
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(
|
|
204
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
205
|
this.send(command, optionsOrCb || {}, cb);
|
|
211
206
|
}
|
|
212
207
|
else {
|
|
213
208
|
return this.send(command, optionsOrCb);
|
|
214
209
|
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
210
|
+
}
|
|
211
|
+
createVariable(args, optionsOrCb, cb) {
|
|
212
|
+
const command = new CreateVariableCommand(args);
|
|
218
213
|
if (typeof optionsOrCb === "function") {
|
|
219
214
|
this.send(command, optionsOrCb);
|
|
220
215
|
}
|
|
221
216
|
else if (typeof cb === "function") {
|
|
222
217
|
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(
|
|
218
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
219
|
this.send(command, optionsOrCb || {}, cb);
|
|
225
220
|
}
|
|
226
221
|
else {
|
|
227
222
|
return this.send(command, optionsOrCb);
|
|
228
223
|
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
224
|
+
}
|
|
225
|
+
deleteBatchImportJob(args, optionsOrCb, cb) {
|
|
226
|
+
const command = new DeleteBatchImportJobCommand(args);
|
|
232
227
|
if (typeof optionsOrCb === "function") {
|
|
233
228
|
this.send(command, optionsOrCb);
|
|
234
229
|
}
|
|
235
230
|
else if (typeof cb === "function") {
|
|
236
231
|
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(
|
|
232
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
233
|
this.send(command, optionsOrCb || {}, cb);
|
|
239
234
|
}
|
|
240
235
|
else {
|
|
241
236
|
return this.send(command, optionsOrCb);
|
|
242
237
|
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
238
|
+
}
|
|
239
|
+
deleteBatchPredictionJob(args, optionsOrCb, cb) {
|
|
240
|
+
const command = new DeleteBatchPredictionJobCommand(args);
|
|
246
241
|
if (typeof optionsOrCb === "function") {
|
|
247
242
|
this.send(command, optionsOrCb);
|
|
248
243
|
}
|
|
249
244
|
else if (typeof cb === "function") {
|
|
250
245
|
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(
|
|
246
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
247
|
this.send(command, optionsOrCb || {}, cb);
|
|
253
248
|
}
|
|
254
249
|
else {
|
|
255
250
|
return this.send(command, optionsOrCb);
|
|
256
251
|
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
252
|
+
}
|
|
253
|
+
deleteDetector(args, optionsOrCb, cb) {
|
|
254
|
+
const command = new DeleteDetectorCommand(args);
|
|
260
255
|
if (typeof optionsOrCb === "function") {
|
|
261
256
|
this.send(command, optionsOrCb);
|
|
262
257
|
}
|
|
263
258
|
else if (typeof cb === "function") {
|
|
264
259
|
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(
|
|
260
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
266
261
|
this.send(command, optionsOrCb || {}, cb);
|
|
267
262
|
}
|
|
268
263
|
else {
|
|
269
264
|
return this.send(command, optionsOrCb);
|
|
270
265
|
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
266
|
+
}
|
|
267
|
+
deleteDetectorVersion(args, optionsOrCb, cb) {
|
|
268
|
+
const command = new DeleteDetectorVersionCommand(args);
|
|
274
269
|
if (typeof optionsOrCb === "function") {
|
|
275
270
|
this.send(command, optionsOrCb);
|
|
276
271
|
}
|
|
277
272
|
else if (typeof cb === "function") {
|
|
278
273
|
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(
|
|
274
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
280
275
|
this.send(command, optionsOrCb || {}, cb);
|
|
281
276
|
}
|
|
282
277
|
else {
|
|
283
278
|
return this.send(command, optionsOrCb);
|
|
284
279
|
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
|
|
280
|
+
}
|
|
281
|
+
deleteEntityType(args, optionsOrCb, cb) {
|
|
282
|
+
const command = new DeleteEntityTypeCommand(args);
|
|
288
283
|
if (typeof optionsOrCb === "function") {
|
|
289
284
|
this.send(command, optionsOrCb);
|
|
290
285
|
}
|
|
291
286
|
else if (typeof cb === "function") {
|
|
292
287
|
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(
|
|
288
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
294
289
|
this.send(command, optionsOrCb || {}, cb);
|
|
295
290
|
}
|
|
296
291
|
else {
|
|
297
292
|
return this.send(command, optionsOrCb);
|
|
298
293
|
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
294
|
+
}
|
|
295
|
+
deleteEvent(args, optionsOrCb, cb) {
|
|
296
|
+
const command = new DeleteEventCommand(args);
|
|
302
297
|
if (typeof optionsOrCb === "function") {
|
|
303
298
|
this.send(command, optionsOrCb);
|
|
304
299
|
}
|
|
305
300
|
else if (typeof cb === "function") {
|
|
306
301
|
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(
|
|
302
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
303
|
this.send(command, optionsOrCb || {}, cb);
|
|
309
304
|
}
|
|
310
305
|
else {
|
|
311
306
|
return this.send(command, optionsOrCb);
|
|
312
307
|
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
308
|
+
}
|
|
309
|
+
deleteEventsByEventType(args, optionsOrCb, cb) {
|
|
310
|
+
const command = new DeleteEventsByEventTypeCommand(args);
|
|
316
311
|
if (typeof optionsOrCb === "function") {
|
|
317
312
|
this.send(command, optionsOrCb);
|
|
318
313
|
}
|
|
319
314
|
else if (typeof cb === "function") {
|
|
320
315
|
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(
|
|
316
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
317
|
this.send(command, optionsOrCb || {}, cb);
|
|
323
318
|
}
|
|
324
319
|
else {
|
|
325
320
|
return this.send(command, optionsOrCb);
|
|
326
321
|
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
322
|
+
}
|
|
323
|
+
deleteEventType(args, optionsOrCb, cb) {
|
|
324
|
+
const command = new DeleteEventTypeCommand(args);
|
|
330
325
|
if (typeof optionsOrCb === "function") {
|
|
331
326
|
this.send(command, optionsOrCb);
|
|
332
327
|
}
|
|
333
328
|
else if (typeof cb === "function") {
|
|
334
329
|
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(
|
|
330
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
336
331
|
this.send(command, optionsOrCb || {}, cb);
|
|
337
332
|
}
|
|
338
333
|
else {
|
|
339
334
|
return this.send(command, optionsOrCb);
|
|
340
335
|
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
336
|
+
}
|
|
337
|
+
deleteExternalModel(args, optionsOrCb, cb) {
|
|
338
|
+
const command = new DeleteExternalModelCommand(args);
|
|
344
339
|
if (typeof optionsOrCb === "function") {
|
|
345
340
|
this.send(command, optionsOrCb);
|
|
346
341
|
}
|
|
347
342
|
else if (typeof cb === "function") {
|
|
348
343
|
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(
|
|
344
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
350
345
|
this.send(command, optionsOrCb || {}, cb);
|
|
351
346
|
}
|
|
352
347
|
else {
|
|
353
348
|
return this.send(command, optionsOrCb);
|
|
354
349
|
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
|
|
350
|
+
}
|
|
351
|
+
deleteLabel(args, optionsOrCb, cb) {
|
|
352
|
+
const command = new DeleteLabelCommand(args);
|
|
358
353
|
if (typeof optionsOrCb === "function") {
|
|
359
354
|
this.send(command, optionsOrCb);
|
|
360
355
|
}
|
|
361
356
|
else if (typeof cb === "function") {
|
|
362
357
|
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(
|
|
358
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
364
359
|
this.send(command, optionsOrCb || {}, cb);
|
|
365
360
|
}
|
|
366
361
|
else {
|
|
367
362
|
return this.send(command, optionsOrCb);
|
|
368
363
|
}
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
364
|
+
}
|
|
365
|
+
deleteModel(args, optionsOrCb, cb) {
|
|
366
|
+
const command = new DeleteModelCommand(args);
|
|
372
367
|
if (typeof optionsOrCb === "function") {
|
|
373
368
|
this.send(command, optionsOrCb);
|
|
374
369
|
}
|
|
375
370
|
else if (typeof cb === "function") {
|
|
376
371
|
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(
|
|
372
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
378
373
|
this.send(command, optionsOrCb || {}, cb);
|
|
379
374
|
}
|
|
380
375
|
else {
|
|
381
376
|
return this.send(command, optionsOrCb);
|
|
382
377
|
}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
378
|
+
}
|
|
379
|
+
deleteModelVersion(args, optionsOrCb, cb) {
|
|
380
|
+
const command = new DeleteModelVersionCommand(args);
|
|
386
381
|
if (typeof optionsOrCb === "function") {
|
|
387
382
|
this.send(command, optionsOrCb);
|
|
388
383
|
}
|
|
389
384
|
else if (typeof cb === "function") {
|
|
390
385
|
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(
|
|
386
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
387
|
this.send(command, optionsOrCb || {}, cb);
|
|
393
388
|
}
|
|
394
389
|
else {
|
|
395
390
|
return this.send(command, optionsOrCb);
|
|
396
391
|
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
392
|
+
}
|
|
393
|
+
deleteOutcome(args, optionsOrCb, cb) {
|
|
394
|
+
const command = new DeleteOutcomeCommand(args);
|
|
400
395
|
if (typeof optionsOrCb === "function") {
|
|
401
396
|
this.send(command, optionsOrCb);
|
|
402
397
|
}
|
|
403
398
|
else if (typeof cb === "function") {
|
|
404
399
|
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(
|
|
400
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
406
401
|
this.send(command, optionsOrCb || {}, cb);
|
|
407
402
|
}
|
|
408
403
|
else {
|
|
409
404
|
return this.send(command, optionsOrCb);
|
|
410
405
|
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
406
|
+
}
|
|
407
|
+
deleteRule(args, optionsOrCb, cb) {
|
|
408
|
+
const command = new DeleteRuleCommand(args);
|
|
414
409
|
if (typeof optionsOrCb === "function") {
|
|
415
410
|
this.send(command, optionsOrCb);
|
|
416
411
|
}
|
|
417
412
|
else if (typeof cb === "function") {
|
|
418
413
|
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(
|
|
414
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
415
|
this.send(command, optionsOrCb || {}, cb);
|
|
421
416
|
}
|
|
422
417
|
else {
|
|
423
418
|
return this.send(command, optionsOrCb);
|
|
424
419
|
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
|
|
420
|
+
}
|
|
421
|
+
deleteVariable(args, optionsOrCb, cb) {
|
|
422
|
+
const command = new DeleteVariableCommand(args);
|
|
428
423
|
if (typeof optionsOrCb === "function") {
|
|
429
424
|
this.send(command, optionsOrCb);
|
|
430
425
|
}
|
|
431
426
|
else if (typeof cb === "function") {
|
|
432
427
|
if (typeof optionsOrCb !== "object")
|
|
433
|
-
throw new Error(
|
|
428
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
434
429
|
this.send(command, optionsOrCb || {}, cb);
|
|
435
430
|
}
|
|
436
431
|
else {
|
|
437
432
|
return this.send(command, optionsOrCb);
|
|
438
433
|
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
|
|
434
|
+
}
|
|
435
|
+
describeDetector(args, optionsOrCb, cb) {
|
|
436
|
+
const command = new DescribeDetectorCommand(args);
|
|
442
437
|
if (typeof optionsOrCb === "function") {
|
|
443
438
|
this.send(command, optionsOrCb);
|
|
444
439
|
}
|
|
445
440
|
else if (typeof cb === "function") {
|
|
446
441
|
if (typeof optionsOrCb !== "object")
|
|
447
|
-
throw new Error(
|
|
442
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
448
443
|
this.send(command, optionsOrCb || {}, cb);
|
|
449
444
|
}
|
|
450
445
|
else {
|
|
451
446
|
return this.send(command, optionsOrCb);
|
|
452
447
|
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
448
|
+
}
|
|
449
|
+
describeModelVersions(args, optionsOrCb, cb) {
|
|
450
|
+
const command = new DescribeModelVersionsCommand(args);
|
|
456
451
|
if (typeof optionsOrCb === "function") {
|
|
457
452
|
this.send(command, optionsOrCb);
|
|
458
453
|
}
|
|
459
454
|
else if (typeof cb === "function") {
|
|
460
455
|
if (typeof optionsOrCb !== "object")
|
|
461
|
-
throw new Error(
|
|
456
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
462
457
|
this.send(command, optionsOrCb || {}, cb);
|
|
463
458
|
}
|
|
464
459
|
else {
|
|
465
460
|
return this.send(command, optionsOrCb);
|
|
466
461
|
}
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
462
|
+
}
|
|
463
|
+
getBatchImportJobs(args, optionsOrCb, cb) {
|
|
464
|
+
const command = new GetBatchImportJobsCommand(args);
|
|
470
465
|
if (typeof optionsOrCb === "function") {
|
|
471
466
|
this.send(command, optionsOrCb);
|
|
472
467
|
}
|
|
473
468
|
else if (typeof cb === "function") {
|
|
474
469
|
if (typeof optionsOrCb !== "object")
|
|
475
|
-
throw new Error(
|
|
470
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
476
471
|
this.send(command, optionsOrCb || {}, cb);
|
|
477
472
|
}
|
|
478
473
|
else {
|
|
479
474
|
return this.send(command, optionsOrCb);
|
|
480
475
|
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
|
|
476
|
+
}
|
|
477
|
+
getBatchPredictionJobs(args, optionsOrCb, cb) {
|
|
478
|
+
const command = new GetBatchPredictionJobsCommand(args);
|
|
484
479
|
if (typeof optionsOrCb === "function") {
|
|
485
480
|
this.send(command, optionsOrCb);
|
|
486
481
|
}
|
|
487
482
|
else if (typeof cb === "function") {
|
|
488
483
|
if (typeof optionsOrCb !== "object")
|
|
489
|
-
throw new Error(
|
|
484
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
490
485
|
this.send(command, optionsOrCb || {}, cb);
|
|
491
486
|
}
|
|
492
487
|
else {
|
|
493
488
|
return this.send(command, optionsOrCb);
|
|
494
489
|
}
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
|
|
490
|
+
}
|
|
491
|
+
getDeleteEventsByEventTypeStatus(args, optionsOrCb, cb) {
|
|
492
|
+
const command = new GetDeleteEventsByEventTypeStatusCommand(args);
|
|
498
493
|
if (typeof optionsOrCb === "function") {
|
|
499
494
|
this.send(command, optionsOrCb);
|
|
500
495
|
}
|
|
501
496
|
else if (typeof cb === "function") {
|
|
502
497
|
if (typeof optionsOrCb !== "object")
|
|
503
|
-
throw new Error(
|
|
498
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
504
499
|
this.send(command, optionsOrCb || {}, cb);
|
|
505
500
|
}
|
|
506
501
|
else {
|
|
507
502
|
return this.send(command, optionsOrCb);
|
|
508
503
|
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
|
|
504
|
+
}
|
|
505
|
+
getDetectors(args, optionsOrCb, cb) {
|
|
506
|
+
const command = new GetDetectorsCommand(args);
|
|
512
507
|
if (typeof optionsOrCb === "function") {
|
|
513
508
|
this.send(command, optionsOrCb);
|
|
514
509
|
}
|
|
515
510
|
else if (typeof cb === "function") {
|
|
516
511
|
if (typeof optionsOrCb !== "object")
|
|
517
|
-
throw new Error(
|
|
512
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
518
513
|
this.send(command, optionsOrCb || {}, cb);
|
|
519
514
|
}
|
|
520
515
|
else {
|
|
521
516
|
return this.send(command, optionsOrCb);
|
|
522
517
|
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
|
|
518
|
+
}
|
|
519
|
+
getDetectorVersion(args, optionsOrCb, cb) {
|
|
520
|
+
const command = new GetDetectorVersionCommand(args);
|
|
526
521
|
if (typeof optionsOrCb === "function") {
|
|
527
522
|
this.send(command, optionsOrCb);
|
|
528
523
|
}
|
|
529
524
|
else if (typeof cb === "function") {
|
|
530
525
|
if (typeof optionsOrCb !== "object")
|
|
531
|
-
throw new Error(
|
|
526
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
532
527
|
this.send(command, optionsOrCb || {}, cb);
|
|
533
528
|
}
|
|
534
529
|
else {
|
|
535
530
|
return this.send(command, optionsOrCb);
|
|
536
531
|
}
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
532
|
+
}
|
|
533
|
+
getEntityTypes(args, optionsOrCb, cb) {
|
|
534
|
+
const command = new GetEntityTypesCommand(args);
|
|
540
535
|
if (typeof optionsOrCb === "function") {
|
|
541
536
|
this.send(command, optionsOrCb);
|
|
542
537
|
}
|
|
543
538
|
else if (typeof cb === "function") {
|
|
544
539
|
if (typeof optionsOrCb !== "object")
|
|
545
|
-
throw new Error(
|
|
540
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
546
541
|
this.send(command, optionsOrCb || {}, cb);
|
|
547
542
|
}
|
|
548
543
|
else {
|
|
549
544
|
return this.send(command, optionsOrCb);
|
|
550
545
|
}
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
|
|
546
|
+
}
|
|
547
|
+
getEvent(args, optionsOrCb, cb) {
|
|
548
|
+
const command = new GetEventCommand(args);
|
|
554
549
|
if (typeof optionsOrCb === "function") {
|
|
555
550
|
this.send(command, optionsOrCb);
|
|
556
551
|
}
|
|
557
552
|
else if (typeof cb === "function") {
|
|
558
553
|
if (typeof optionsOrCb !== "object")
|
|
559
|
-
throw new Error(
|
|
554
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
560
555
|
this.send(command, optionsOrCb || {}, cb);
|
|
561
556
|
}
|
|
562
557
|
else {
|
|
563
558
|
return this.send(command, optionsOrCb);
|
|
564
559
|
}
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
|
|
560
|
+
}
|
|
561
|
+
getEventPrediction(args, optionsOrCb, cb) {
|
|
562
|
+
const command = new GetEventPredictionCommand(args);
|
|
568
563
|
if (typeof optionsOrCb === "function") {
|
|
569
564
|
this.send(command, optionsOrCb);
|
|
570
565
|
}
|
|
571
566
|
else if (typeof cb === "function") {
|
|
572
567
|
if (typeof optionsOrCb !== "object")
|
|
573
|
-
throw new Error(
|
|
568
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
574
569
|
this.send(command, optionsOrCb || {}, cb);
|
|
575
570
|
}
|
|
576
571
|
else {
|
|
577
572
|
return this.send(command, optionsOrCb);
|
|
578
573
|
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
574
|
+
}
|
|
575
|
+
getEventPredictionMetadata(args, optionsOrCb, cb) {
|
|
576
|
+
const command = new GetEventPredictionMetadataCommand(args);
|
|
582
577
|
if (typeof optionsOrCb === "function") {
|
|
583
578
|
this.send(command, optionsOrCb);
|
|
584
579
|
}
|
|
585
580
|
else if (typeof cb === "function") {
|
|
586
581
|
if (typeof optionsOrCb !== "object")
|
|
587
|
-
throw new Error(
|
|
582
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
588
583
|
this.send(command, optionsOrCb || {}, cb);
|
|
589
584
|
}
|
|
590
585
|
else {
|
|
591
586
|
return this.send(command, optionsOrCb);
|
|
592
587
|
}
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
|
|
588
|
+
}
|
|
589
|
+
getEventTypes(args, optionsOrCb, cb) {
|
|
590
|
+
const command = new GetEventTypesCommand(args);
|
|
596
591
|
if (typeof optionsOrCb === "function") {
|
|
597
592
|
this.send(command, optionsOrCb);
|
|
598
593
|
}
|
|
599
594
|
else if (typeof cb === "function") {
|
|
600
595
|
if (typeof optionsOrCb !== "object")
|
|
601
|
-
throw new Error(
|
|
596
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
602
597
|
this.send(command, optionsOrCb || {}, cb);
|
|
603
598
|
}
|
|
604
599
|
else {
|
|
605
600
|
return this.send(command, optionsOrCb);
|
|
606
601
|
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
|
|
602
|
+
}
|
|
603
|
+
getExternalModels(args, optionsOrCb, cb) {
|
|
604
|
+
const command = new GetExternalModelsCommand(args);
|
|
610
605
|
if (typeof optionsOrCb === "function") {
|
|
611
606
|
this.send(command, optionsOrCb);
|
|
612
607
|
}
|
|
613
608
|
else if (typeof cb === "function") {
|
|
614
609
|
if (typeof optionsOrCb !== "object")
|
|
615
|
-
throw new Error(
|
|
610
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
616
611
|
this.send(command, optionsOrCb || {}, cb);
|
|
617
612
|
}
|
|
618
613
|
else {
|
|
619
614
|
return this.send(command, optionsOrCb);
|
|
620
615
|
}
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
|
|
616
|
+
}
|
|
617
|
+
getKMSEncryptionKey(args, optionsOrCb, cb) {
|
|
618
|
+
const command = new GetKMSEncryptionKeyCommand(args);
|
|
624
619
|
if (typeof optionsOrCb === "function") {
|
|
625
620
|
this.send(command, optionsOrCb);
|
|
626
621
|
}
|
|
627
622
|
else if (typeof cb === "function") {
|
|
628
623
|
if (typeof optionsOrCb !== "object")
|
|
629
|
-
throw new Error(
|
|
624
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
630
625
|
this.send(command, optionsOrCb || {}, cb);
|
|
631
626
|
}
|
|
632
627
|
else {
|
|
633
628
|
return this.send(command, optionsOrCb);
|
|
634
629
|
}
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
|
|
630
|
+
}
|
|
631
|
+
getLabels(args, optionsOrCb, cb) {
|
|
632
|
+
const command = new GetLabelsCommand(args);
|
|
638
633
|
if (typeof optionsOrCb === "function") {
|
|
639
634
|
this.send(command, optionsOrCb);
|
|
640
635
|
}
|
|
641
636
|
else if (typeof cb === "function") {
|
|
642
637
|
if (typeof optionsOrCb !== "object")
|
|
643
|
-
throw new Error(
|
|
638
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
644
639
|
this.send(command, optionsOrCb || {}, cb);
|
|
645
640
|
}
|
|
646
641
|
else {
|
|
647
642
|
return this.send(command, optionsOrCb);
|
|
648
643
|
}
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
|
|
644
|
+
}
|
|
645
|
+
getModels(args, optionsOrCb, cb) {
|
|
646
|
+
const command = new GetModelsCommand(args);
|
|
652
647
|
if (typeof optionsOrCb === "function") {
|
|
653
648
|
this.send(command, optionsOrCb);
|
|
654
649
|
}
|
|
655
650
|
else if (typeof cb === "function") {
|
|
656
651
|
if (typeof optionsOrCb !== "object")
|
|
657
|
-
throw new Error(
|
|
652
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
658
653
|
this.send(command, optionsOrCb || {}, cb);
|
|
659
654
|
}
|
|
660
655
|
else {
|
|
661
656
|
return this.send(command, optionsOrCb);
|
|
662
657
|
}
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
|
|
658
|
+
}
|
|
659
|
+
getModelVersion(args, optionsOrCb, cb) {
|
|
660
|
+
const command = new GetModelVersionCommand(args);
|
|
666
661
|
if (typeof optionsOrCb === "function") {
|
|
667
662
|
this.send(command, optionsOrCb);
|
|
668
663
|
}
|
|
669
664
|
else if (typeof cb === "function") {
|
|
670
665
|
if (typeof optionsOrCb !== "object")
|
|
671
|
-
throw new Error(
|
|
666
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
672
667
|
this.send(command, optionsOrCb || {}, cb);
|
|
673
668
|
}
|
|
674
669
|
else {
|
|
675
670
|
return this.send(command, optionsOrCb);
|
|
676
671
|
}
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
|
|
672
|
+
}
|
|
673
|
+
getOutcomes(args, optionsOrCb, cb) {
|
|
674
|
+
const command = new GetOutcomesCommand(args);
|
|
680
675
|
if (typeof optionsOrCb === "function") {
|
|
681
676
|
this.send(command, optionsOrCb);
|
|
682
677
|
}
|
|
683
678
|
else if (typeof cb === "function") {
|
|
684
679
|
if (typeof optionsOrCb !== "object")
|
|
685
|
-
throw new Error(
|
|
680
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
686
681
|
this.send(command, optionsOrCb || {}, cb);
|
|
687
682
|
}
|
|
688
683
|
else {
|
|
689
684
|
return this.send(command, optionsOrCb);
|
|
690
685
|
}
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
|
|
686
|
+
}
|
|
687
|
+
getRules(args, optionsOrCb, cb) {
|
|
688
|
+
const command = new GetRulesCommand(args);
|
|
694
689
|
if (typeof optionsOrCb === "function") {
|
|
695
690
|
this.send(command, optionsOrCb);
|
|
696
691
|
}
|
|
697
692
|
else if (typeof cb === "function") {
|
|
698
693
|
if (typeof optionsOrCb !== "object")
|
|
699
|
-
throw new Error(
|
|
694
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
700
695
|
this.send(command, optionsOrCb || {}, cb);
|
|
701
696
|
}
|
|
702
697
|
else {
|
|
703
698
|
return this.send(command, optionsOrCb);
|
|
704
699
|
}
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
|
|
700
|
+
}
|
|
701
|
+
getVariables(args, optionsOrCb, cb) {
|
|
702
|
+
const command = new GetVariablesCommand(args);
|
|
708
703
|
if (typeof optionsOrCb === "function") {
|
|
709
704
|
this.send(command, optionsOrCb);
|
|
710
705
|
}
|
|
711
706
|
else if (typeof cb === "function") {
|
|
712
707
|
if (typeof optionsOrCb !== "object")
|
|
713
|
-
throw new Error(
|
|
708
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
714
709
|
this.send(command, optionsOrCb || {}, cb);
|
|
715
710
|
}
|
|
716
711
|
else {
|
|
717
712
|
return this.send(command, optionsOrCb);
|
|
718
713
|
}
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
|
|
714
|
+
}
|
|
715
|
+
listEventPredictions(args, optionsOrCb, cb) {
|
|
716
|
+
const command = new ListEventPredictionsCommand(args);
|
|
722
717
|
if (typeof optionsOrCb === "function") {
|
|
723
718
|
this.send(command, optionsOrCb);
|
|
724
719
|
}
|
|
725
720
|
else if (typeof cb === "function") {
|
|
726
721
|
if (typeof optionsOrCb !== "object")
|
|
727
|
-
throw new Error(
|
|
722
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
728
723
|
this.send(command, optionsOrCb || {}, cb);
|
|
729
724
|
}
|
|
730
725
|
else {
|
|
731
726
|
return this.send(command, optionsOrCb);
|
|
732
727
|
}
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
|
|
728
|
+
}
|
|
729
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
730
|
+
const command = new ListTagsForResourceCommand(args);
|
|
736
731
|
if (typeof optionsOrCb === "function") {
|
|
737
732
|
this.send(command, optionsOrCb);
|
|
738
733
|
}
|
|
739
734
|
else if (typeof cb === "function") {
|
|
740
735
|
if (typeof optionsOrCb !== "object")
|
|
741
|
-
throw new Error(
|
|
736
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
742
737
|
this.send(command, optionsOrCb || {}, cb);
|
|
743
738
|
}
|
|
744
739
|
else {
|
|
745
740
|
return this.send(command, optionsOrCb);
|
|
746
741
|
}
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
|
|
742
|
+
}
|
|
743
|
+
putDetector(args, optionsOrCb, cb) {
|
|
744
|
+
const command = new PutDetectorCommand(args);
|
|
750
745
|
if (typeof optionsOrCb === "function") {
|
|
751
746
|
this.send(command, optionsOrCb);
|
|
752
747
|
}
|
|
753
748
|
else if (typeof cb === "function") {
|
|
754
749
|
if (typeof optionsOrCb !== "object")
|
|
755
|
-
throw new Error(
|
|
750
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
756
751
|
this.send(command, optionsOrCb || {}, cb);
|
|
757
752
|
}
|
|
758
753
|
else {
|
|
759
754
|
return this.send(command, optionsOrCb);
|
|
760
755
|
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
756
|
+
}
|
|
757
|
+
putEntityType(args, optionsOrCb, cb) {
|
|
758
|
+
const command = new PutEntityTypeCommand(args);
|
|
764
759
|
if (typeof optionsOrCb === "function") {
|
|
765
760
|
this.send(command, optionsOrCb);
|
|
766
761
|
}
|
|
767
762
|
else if (typeof cb === "function") {
|
|
768
763
|
if (typeof optionsOrCb !== "object")
|
|
769
|
-
throw new Error(
|
|
764
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
770
765
|
this.send(command, optionsOrCb || {}, cb);
|
|
771
766
|
}
|
|
772
767
|
else {
|
|
773
768
|
return this.send(command, optionsOrCb);
|
|
774
769
|
}
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
|
|
770
|
+
}
|
|
771
|
+
putEventType(args, optionsOrCb, cb) {
|
|
772
|
+
const command = new PutEventTypeCommand(args);
|
|
778
773
|
if (typeof optionsOrCb === "function") {
|
|
779
774
|
this.send(command, optionsOrCb);
|
|
780
775
|
}
|
|
781
776
|
else if (typeof cb === "function") {
|
|
782
777
|
if (typeof optionsOrCb !== "object")
|
|
783
|
-
throw new Error(
|
|
778
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
784
779
|
this.send(command, optionsOrCb || {}, cb);
|
|
785
780
|
}
|
|
786
781
|
else {
|
|
787
782
|
return this.send(command, optionsOrCb);
|
|
788
783
|
}
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
|
|
784
|
+
}
|
|
785
|
+
putExternalModel(args, optionsOrCb, cb) {
|
|
786
|
+
const command = new PutExternalModelCommand(args);
|
|
792
787
|
if (typeof optionsOrCb === "function") {
|
|
793
788
|
this.send(command, optionsOrCb);
|
|
794
789
|
}
|
|
795
790
|
else if (typeof cb === "function") {
|
|
796
791
|
if (typeof optionsOrCb !== "object")
|
|
797
|
-
throw new Error(
|
|
792
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
798
793
|
this.send(command, optionsOrCb || {}, cb);
|
|
799
794
|
}
|
|
800
795
|
else {
|
|
801
796
|
return this.send(command, optionsOrCb);
|
|
802
797
|
}
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
|
|
798
|
+
}
|
|
799
|
+
putKMSEncryptionKey(args, optionsOrCb, cb) {
|
|
800
|
+
const command = new PutKMSEncryptionKeyCommand(args);
|
|
806
801
|
if (typeof optionsOrCb === "function") {
|
|
807
802
|
this.send(command, optionsOrCb);
|
|
808
803
|
}
|
|
809
804
|
else if (typeof cb === "function") {
|
|
810
805
|
if (typeof optionsOrCb !== "object")
|
|
811
|
-
throw new Error(
|
|
806
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
812
807
|
this.send(command, optionsOrCb || {}, cb);
|
|
813
808
|
}
|
|
814
809
|
else {
|
|
815
810
|
return this.send(command, optionsOrCb);
|
|
816
811
|
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
|
|
812
|
+
}
|
|
813
|
+
putLabel(args, optionsOrCb, cb) {
|
|
814
|
+
const command = new PutLabelCommand(args);
|
|
820
815
|
if (typeof optionsOrCb === "function") {
|
|
821
816
|
this.send(command, optionsOrCb);
|
|
822
817
|
}
|
|
823
818
|
else if (typeof cb === "function") {
|
|
824
819
|
if (typeof optionsOrCb !== "object")
|
|
825
|
-
throw new Error(
|
|
820
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
826
821
|
this.send(command, optionsOrCb || {}, cb);
|
|
827
822
|
}
|
|
828
823
|
else {
|
|
829
824
|
return this.send(command, optionsOrCb);
|
|
830
825
|
}
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
|
|
826
|
+
}
|
|
827
|
+
putOutcome(args, optionsOrCb, cb) {
|
|
828
|
+
const command = new PutOutcomeCommand(args);
|
|
834
829
|
if (typeof optionsOrCb === "function") {
|
|
835
830
|
this.send(command, optionsOrCb);
|
|
836
831
|
}
|
|
837
832
|
else if (typeof cb === "function") {
|
|
838
833
|
if (typeof optionsOrCb !== "object")
|
|
839
|
-
throw new Error(
|
|
834
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
840
835
|
this.send(command, optionsOrCb || {}, cb);
|
|
841
836
|
}
|
|
842
837
|
else {
|
|
843
838
|
return this.send(command, optionsOrCb);
|
|
844
839
|
}
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
|
|
840
|
+
}
|
|
841
|
+
sendEvent(args, optionsOrCb, cb) {
|
|
842
|
+
const command = new SendEventCommand(args);
|
|
848
843
|
if (typeof optionsOrCb === "function") {
|
|
849
844
|
this.send(command, optionsOrCb);
|
|
850
845
|
}
|
|
851
846
|
else if (typeof cb === "function") {
|
|
852
847
|
if (typeof optionsOrCb !== "object")
|
|
853
|
-
throw new Error(
|
|
848
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
854
849
|
this.send(command, optionsOrCb || {}, cb);
|
|
855
850
|
}
|
|
856
851
|
else {
|
|
857
852
|
return this.send(command, optionsOrCb);
|
|
858
853
|
}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
|
|
854
|
+
}
|
|
855
|
+
tagResource(args, optionsOrCb, cb) {
|
|
856
|
+
const command = new TagResourceCommand(args);
|
|
862
857
|
if (typeof optionsOrCb === "function") {
|
|
863
858
|
this.send(command, optionsOrCb);
|
|
864
859
|
}
|
|
865
860
|
else if (typeof cb === "function") {
|
|
866
861
|
if (typeof optionsOrCb !== "object")
|
|
867
|
-
throw new Error(
|
|
862
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
868
863
|
this.send(command, optionsOrCb || {}, cb);
|
|
869
864
|
}
|
|
870
865
|
else {
|
|
871
866
|
return this.send(command, optionsOrCb);
|
|
872
867
|
}
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
|
|
868
|
+
}
|
|
869
|
+
untagResource(args, optionsOrCb, cb) {
|
|
870
|
+
const command = new UntagResourceCommand(args);
|
|
876
871
|
if (typeof optionsOrCb === "function") {
|
|
877
872
|
this.send(command, optionsOrCb);
|
|
878
873
|
}
|
|
879
874
|
else if (typeof cb === "function") {
|
|
880
875
|
if (typeof optionsOrCb !== "object")
|
|
881
|
-
throw new Error(
|
|
876
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
882
877
|
this.send(command, optionsOrCb || {}, cb);
|
|
883
878
|
}
|
|
884
879
|
else {
|
|
885
880
|
return this.send(command, optionsOrCb);
|
|
886
881
|
}
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
|
|
882
|
+
}
|
|
883
|
+
updateDetectorVersion(args, optionsOrCb, cb) {
|
|
884
|
+
const command = new UpdateDetectorVersionCommand(args);
|
|
890
885
|
if (typeof optionsOrCb === "function") {
|
|
891
886
|
this.send(command, optionsOrCb);
|
|
892
887
|
}
|
|
893
888
|
else if (typeof cb === "function") {
|
|
894
889
|
if (typeof optionsOrCb !== "object")
|
|
895
|
-
throw new Error(
|
|
890
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
896
891
|
this.send(command, optionsOrCb || {}, cb);
|
|
897
892
|
}
|
|
898
893
|
else {
|
|
899
894
|
return this.send(command, optionsOrCb);
|
|
900
895
|
}
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
|
|
896
|
+
}
|
|
897
|
+
updateDetectorVersionMetadata(args, optionsOrCb, cb) {
|
|
898
|
+
const command = new UpdateDetectorVersionMetadataCommand(args);
|
|
904
899
|
if (typeof optionsOrCb === "function") {
|
|
905
900
|
this.send(command, optionsOrCb);
|
|
906
901
|
}
|
|
907
902
|
else if (typeof cb === "function") {
|
|
908
903
|
if (typeof optionsOrCb !== "object")
|
|
909
|
-
throw new Error(
|
|
904
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
910
905
|
this.send(command, optionsOrCb || {}, cb);
|
|
911
906
|
}
|
|
912
907
|
else {
|
|
913
908
|
return this.send(command, optionsOrCb);
|
|
914
909
|
}
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
|
|
910
|
+
}
|
|
911
|
+
updateDetectorVersionStatus(args, optionsOrCb, cb) {
|
|
912
|
+
const command = new UpdateDetectorVersionStatusCommand(args);
|
|
918
913
|
if (typeof optionsOrCb === "function") {
|
|
919
914
|
this.send(command, optionsOrCb);
|
|
920
915
|
}
|
|
921
916
|
else if (typeof cb === "function") {
|
|
922
917
|
if (typeof optionsOrCb !== "object")
|
|
923
|
-
throw new Error(
|
|
918
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
924
919
|
this.send(command, optionsOrCb || {}, cb);
|
|
925
920
|
}
|
|
926
921
|
else {
|
|
927
922
|
return this.send(command, optionsOrCb);
|
|
928
923
|
}
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
|
|
924
|
+
}
|
|
925
|
+
updateEventLabel(args, optionsOrCb, cb) {
|
|
926
|
+
const command = new UpdateEventLabelCommand(args);
|
|
932
927
|
if (typeof optionsOrCb === "function") {
|
|
933
928
|
this.send(command, optionsOrCb);
|
|
934
929
|
}
|
|
935
930
|
else if (typeof cb === "function") {
|
|
936
931
|
if (typeof optionsOrCb !== "object")
|
|
937
|
-
throw new Error(
|
|
932
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
938
933
|
this.send(command, optionsOrCb || {}, cb);
|
|
939
934
|
}
|
|
940
935
|
else {
|
|
941
936
|
return this.send(command, optionsOrCb);
|
|
942
937
|
}
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
|
|
938
|
+
}
|
|
939
|
+
updateModel(args, optionsOrCb, cb) {
|
|
940
|
+
const command = new UpdateModelCommand(args);
|
|
946
941
|
if (typeof optionsOrCb === "function") {
|
|
947
942
|
this.send(command, optionsOrCb);
|
|
948
943
|
}
|
|
949
944
|
else if (typeof cb === "function") {
|
|
950
945
|
if (typeof optionsOrCb !== "object")
|
|
951
|
-
throw new Error(
|
|
946
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
952
947
|
this.send(command, optionsOrCb || {}, cb);
|
|
953
948
|
}
|
|
954
949
|
else {
|
|
955
950
|
return this.send(command, optionsOrCb);
|
|
956
951
|
}
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
|
|
952
|
+
}
|
|
953
|
+
updateModelVersion(args, optionsOrCb, cb) {
|
|
954
|
+
const command = new UpdateModelVersionCommand(args);
|
|
960
955
|
if (typeof optionsOrCb === "function") {
|
|
961
956
|
this.send(command, optionsOrCb);
|
|
962
957
|
}
|
|
963
958
|
else if (typeof cb === "function") {
|
|
964
959
|
if (typeof optionsOrCb !== "object")
|
|
965
|
-
throw new Error(
|
|
960
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
966
961
|
this.send(command, optionsOrCb || {}, cb);
|
|
967
962
|
}
|
|
968
963
|
else {
|
|
969
964
|
return this.send(command, optionsOrCb);
|
|
970
965
|
}
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
|
|
966
|
+
}
|
|
967
|
+
updateModelVersionStatus(args, optionsOrCb, cb) {
|
|
968
|
+
const command = new UpdateModelVersionStatusCommand(args);
|
|
974
969
|
if (typeof optionsOrCb === "function") {
|
|
975
970
|
this.send(command, optionsOrCb);
|
|
976
971
|
}
|
|
977
972
|
else if (typeof cb === "function") {
|
|
978
973
|
if (typeof optionsOrCb !== "object")
|
|
979
|
-
throw new Error(
|
|
974
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
980
975
|
this.send(command, optionsOrCb || {}, cb);
|
|
981
976
|
}
|
|
982
977
|
else {
|
|
983
978
|
return this.send(command, optionsOrCb);
|
|
984
979
|
}
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
|
|
980
|
+
}
|
|
981
|
+
updateRuleMetadata(args, optionsOrCb, cb) {
|
|
982
|
+
const command = new UpdateRuleMetadataCommand(args);
|
|
988
983
|
if (typeof optionsOrCb === "function") {
|
|
989
984
|
this.send(command, optionsOrCb);
|
|
990
985
|
}
|
|
991
986
|
else if (typeof cb === "function") {
|
|
992
987
|
if (typeof optionsOrCb !== "object")
|
|
993
|
-
throw new Error(
|
|
988
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
994
989
|
this.send(command, optionsOrCb || {}, cb);
|
|
995
990
|
}
|
|
996
991
|
else {
|
|
997
992
|
return this.send(command, optionsOrCb);
|
|
998
993
|
}
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
|
|
994
|
+
}
|
|
995
|
+
updateRuleVersion(args, optionsOrCb, cb) {
|
|
996
|
+
const command = new UpdateRuleVersionCommand(args);
|
|
1002
997
|
if (typeof optionsOrCb === "function") {
|
|
1003
998
|
this.send(command, optionsOrCb);
|
|
1004
999
|
}
|
|
1005
1000
|
else if (typeof cb === "function") {
|
|
1006
1001
|
if (typeof optionsOrCb !== "object")
|
|
1007
|
-
throw new Error(
|
|
1002
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1008
1003
|
this.send(command, optionsOrCb || {}, cb);
|
|
1009
1004
|
}
|
|
1010
1005
|
else {
|
|
1011
1006
|
return this.send(command, optionsOrCb);
|
|
1012
1007
|
}
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1008
|
+
}
|
|
1009
|
+
updateVariable(args, optionsOrCb, cb) {
|
|
1010
|
+
const command = new UpdateVariableCommand(args);
|
|
1016
1011
|
if (typeof optionsOrCb === "function") {
|
|
1017
1012
|
this.send(command, optionsOrCb);
|
|
1018
1013
|
}
|
|
1019
1014
|
else if (typeof cb === "function") {
|
|
1020
1015
|
if (typeof optionsOrCb !== "object")
|
|
1021
|
-
throw new Error(
|
|
1016
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1022
1017
|
this.send(command, optionsOrCb || {}, cb);
|
|
1023
1018
|
}
|
|
1024
1019
|
else {
|
|
1025
1020
|
return this.send(command, optionsOrCb);
|
|
1026
1021
|
}
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
}(FraudDetectorClient));
|
|
1030
|
-
export { FraudDetector };
|
|
1022
|
+
}
|
|
1023
|
+
}
|