@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.
Files changed (94) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/FraudDetector.js +274 -281
  3. package/dist-es/FraudDetectorClient.js +22 -28
  4. package/dist-es/commands/BatchCreateVariableCommand.js +21 -28
  5. package/dist-es/commands/BatchGetVariableCommand.js +21 -28
  6. package/dist-es/commands/CancelBatchImportJobCommand.js +21 -28
  7. package/dist-es/commands/CancelBatchPredictionJobCommand.js +21 -28
  8. package/dist-es/commands/CreateBatchImportJobCommand.js +21 -28
  9. package/dist-es/commands/CreateBatchPredictionJobCommand.js +21 -28
  10. package/dist-es/commands/CreateDetectorVersionCommand.js +21 -28
  11. package/dist-es/commands/CreateModelCommand.js +21 -28
  12. package/dist-es/commands/CreateModelVersionCommand.js +21 -28
  13. package/dist-es/commands/CreateRuleCommand.js +21 -28
  14. package/dist-es/commands/CreateVariableCommand.js +21 -28
  15. package/dist-es/commands/DeleteBatchImportJobCommand.js +21 -28
  16. package/dist-es/commands/DeleteBatchPredictionJobCommand.js +21 -28
  17. package/dist-es/commands/DeleteDetectorCommand.js +21 -28
  18. package/dist-es/commands/DeleteDetectorVersionCommand.js +21 -28
  19. package/dist-es/commands/DeleteEntityTypeCommand.js +21 -28
  20. package/dist-es/commands/DeleteEventCommand.js +21 -28
  21. package/dist-es/commands/DeleteEventTypeCommand.js +21 -28
  22. package/dist-es/commands/DeleteEventsByEventTypeCommand.js +21 -28
  23. package/dist-es/commands/DeleteExternalModelCommand.js +21 -28
  24. package/dist-es/commands/DeleteLabelCommand.js +21 -28
  25. package/dist-es/commands/DeleteModelCommand.js +21 -28
  26. package/dist-es/commands/DeleteModelVersionCommand.js +21 -28
  27. package/dist-es/commands/DeleteOutcomeCommand.js +21 -28
  28. package/dist-es/commands/DeleteRuleCommand.js +21 -28
  29. package/dist-es/commands/DeleteVariableCommand.js +21 -28
  30. package/dist-es/commands/DescribeDetectorCommand.js +21 -28
  31. package/dist-es/commands/DescribeModelVersionsCommand.js +21 -28
  32. package/dist-es/commands/GetBatchImportJobsCommand.js +21 -28
  33. package/dist-es/commands/GetBatchPredictionJobsCommand.js +21 -28
  34. package/dist-es/commands/GetDeleteEventsByEventTypeStatusCommand.js +21 -28
  35. package/dist-es/commands/GetDetectorVersionCommand.js +21 -28
  36. package/dist-es/commands/GetDetectorsCommand.js +21 -28
  37. package/dist-es/commands/GetEntityTypesCommand.js +21 -28
  38. package/dist-es/commands/GetEventCommand.js +21 -28
  39. package/dist-es/commands/GetEventPredictionCommand.js +21 -28
  40. package/dist-es/commands/GetEventPredictionMetadataCommand.js +21 -28
  41. package/dist-es/commands/GetEventTypesCommand.js +21 -28
  42. package/dist-es/commands/GetExternalModelsCommand.js +21 -28
  43. package/dist-es/commands/GetKMSEncryptionKeyCommand.js +22 -29
  44. package/dist-es/commands/GetLabelsCommand.js +21 -28
  45. package/dist-es/commands/GetModelVersionCommand.js +21 -28
  46. package/dist-es/commands/GetModelsCommand.js +21 -28
  47. package/dist-es/commands/GetOutcomesCommand.js +21 -28
  48. package/dist-es/commands/GetRulesCommand.js +21 -28
  49. package/dist-es/commands/GetVariablesCommand.js +21 -28
  50. package/dist-es/commands/ListEventPredictionsCommand.js +21 -28
  51. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  52. package/dist-es/commands/PutDetectorCommand.js +21 -28
  53. package/dist-es/commands/PutEntityTypeCommand.js +21 -28
  54. package/dist-es/commands/PutEventTypeCommand.js +21 -28
  55. package/dist-es/commands/PutExternalModelCommand.js +21 -28
  56. package/dist-es/commands/PutKMSEncryptionKeyCommand.js +21 -28
  57. package/dist-es/commands/PutLabelCommand.js +21 -28
  58. package/dist-es/commands/PutOutcomeCommand.js +21 -28
  59. package/dist-es/commands/SendEventCommand.js +21 -28
  60. package/dist-es/commands/TagResourceCommand.js +21 -28
  61. package/dist-es/commands/UntagResourceCommand.js +21 -28
  62. package/dist-es/commands/UpdateDetectorVersionCommand.js +21 -28
  63. package/dist-es/commands/UpdateDetectorVersionMetadataCommand.js +21 -28
  64. package/dist-es/commands/UpdateDetectorVersionStatusCommand.js +21 -28
  65. package/dist-es/commands/UpdateEventLabelCommand.js +21 -28
  66. package/dist-es/commands/UpdateModelCommand.js +21 -28
  67. package/dist-es/commands/UpdateModelVersionCommand.js +21 -28
  68. package/dist-es/commands/UpdateModelVersionStatusCommand.js +21 -28
  69. package/dist-es/commands/UpdateRuleMetadataCommand.js +21 -28
  70. package/dist-es/commands/UpdateRuleVersionCommand.js +21 -28
  71. package/dist-es/commands/UpdateVariableCommand.js +21 -28
  72. package/dist-es/endpoints.js +8 -8
  73. package/dist-es/models/FraudDetectorServiceException.js +5 -10
  74. package/dist-es/models/models_0.js +710 -284
  75. package/dist-es/pagination/DescribeModelVersionsPaginator.js +25 -68
  76. package/dist-es/pagination/GetBatchImportJobsPaginator.js +25 -68
  77. package/dist-es/pagination/GetBatchPredictionJobsPaginator.js +25 -68
  78. package/dist-es/pagination/GetDetectorsPaginator.js +25 -68
  79. package/dist-es/pagination/GetEntityTypesPaginator.js +25 -68
  80. package/dist-es/pagination/GetEventTypesPaginator.js +25 -68
  81. package/dist-es/pagination/GetExternalModelsPaginator.js +25 -68
  82. package/dist-es/pagination/GetLabelsPaginator.js +25 -68
  83. package/dist-es/pagination/GetModelsPaginator.js +25 -68
  84. package/dist-es/pagination/GetOutcomesPaginator.js +25 -68
  85. package/dist-es/pagination/GetRulesPaginator.js +25 -68
  86. package/dist-es/pagination/GetVariablesPaginator.js +25 -68
  87. package/dist-es/pagination/ListEventPredictionsPaginator.js +25 -68
  88. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  89. package/dist-es/protocols/Aws_json1_1.js +4746 -6042
  90. package/dist-es/runtimeConfig.browser.js +26 -12
  91. package/dist-es/runtimeConfig.js +30 -12
  92. package/dist-es/runtimeConfig.native.js +8 -5
  93. package/dist-es/runtimeConfig.shared.js +8 -11
  94. package/package.json +33 -33
@@ -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
- var FraudDetector = (function (_super) {
72
- __extends(FraudDetector, _super);
73
- function FraudDetector() {
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.batchGetVariable = function (args, optionsOrCb, cb) {
91
- var command = new BatchGetVariableCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.cancelBatchImportJob = function (args, optionsOrCb, cb) {
105
- var command = new CancelBatchImportJobCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.cancelBatchPredictionJob = function (args, optionsOrCb, cb) {
119
- var command = new CancelBatchPredictionJobCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.createBatchImportJob = function (args, optionsOrCb, cb) {
133
- var command = new CreateBatchImportJobCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.createBatchPredictionJob = function (args, optionsOrCb, cb) {
147
- var command = new CreateBatchPredictionJobCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.createDetectorVersion = function (args, optionsOrCb, cb) {
161
- var command = new CreateDetectorVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.createModel = function (args, optionsOrCb, cb) {
175
- var command = new CreateModelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.createModelVersion = function (args, optionsOrCb, cb) {
189
- var command = new CreateModelVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.createRule = function (args, optionsOrCb, cb) {
203
- var command = new CreateRuleCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.createVariable = function (args, optionsOrCb, cb) {
217
- var command = new CreateVariableCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteBatchImportJob = function (args, optionsOrCb, cb) {
231
- var command = new DeleteBatchImportJobCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteBatchPredictionJob = function (args, optionsOrCb, cb) {
245
- var command = new DeleteBatchPredictionJobCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteDetector = function (args, optionsOrCb, cb) {
259
- var command = new DeleteDetectorCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteDetectorVersion = function (args, optionsOrCb, cb) {
273
- var command = new DeleteDetectorVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteEntityType = function (args, optionsOrCb, cb) {
287
- var command = new DeleteEntityTypeCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteEvent = function (args, optionsOrCb, cb) {
301
- var command = new DeleteEventCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteEventsByEventType = function (args, optionsOrCb, cb) {
315
- var command = new DeleteEventsByEventTypeCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteEventType = function (args, optionsOrCb, cb) {
329
- var command = new DeleteEventTypeCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteExternalModel = function (args, optionsOrCb, cb) {
343
- var command = new DeleteExternalModelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteLabel = function (args, optionsOrCb, cb) {
357
- var command = new DeleteLabelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteModel = function (args, optionsOrCb, cb) {
371
- var command = new DeleteModelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteModelVersion = function (args, optionsOrCb, cb) {
385
- var command = new DeleteModelVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteOutcome = function (args, optionsOrCb, cb) {
399
- var command = new DeleteOutcomeCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteRule = function (args, optionsOrCb, cb) {
413
- var command = new DeleteRuleCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.deleteVariable = function (args, optionsOrCb, cb) {
427
- var command = new DeleteVariableCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.describeDetector = function (args, optionsOrCb, cb) {
441
- var command = new DescribeDetectorCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.describeModelVersions = function (args, optionsOrCb, cb) {
455
- var command = new DescribeModelVersionsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getBatchImportJobs = function (args, optionsOrCb, cb) {
469
- var command = new GetBatchImportJobsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getBatchPredictionJobs = function (args, optionsOrCb, cb) {
483
- var command = new GetBatchPredictionJobsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getDeleteEventsByEventTypeStatus = function (args, optionsOrCb, cb) {
497
- var command = new GetDeleteEventsByEventTypeStatusCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getDetectors = function (args, optionsOrCb, cb) {
511
- var command = new GetDetectorsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getDetectorVersion = function (args, optionsOrCb, cb) {
525
- var command = new GetDetectorVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getEntityTypes = function (args, optionsOrCb, cb) {
539
- var command = new GetEntityTypesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getEvent = function (args, optionsOrCb, cb) {
553
- var command = new GetEventCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getEventPrediction = function (args, optionsOrCb, cb) {
567
- var command = new GetEventPredictionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getEventPredictionMetadata = function (args, optionsOrCb, cb) {
581
- var command = new GetEventPredictionMetadataCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getEventTypes = function (args, optionsOrCb, cb) {
595
- var command = new GetEventTypesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getExternalModels = function (args, optionsOrCb, cb) {
609
- var command = new GetExternalModelsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getKMSEncryptionKey = function (args, optionsOrCb, cb) {
623
- var command = new GetKMSEncryptionKeyCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getLabels = function (args, optionsOrCb, cb) {
637
- var command = new GetLabelsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getModels = function (args, optionsOrCb, cb) {
651
- var command = new GetModelsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getModelVersion = function (args, optionsOrCb, cb) {
665
- var command = new GetModelVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getOutcomes = function (args, optionsOrCb, cb) {
679
- var command = new GetOutcomesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getRules = function (args, optionsOrCb, cb) {
693
- var command = new GetRulesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.getVariables = function (args, optionsOrCb, cb) {
707
- var command = new GetVariablesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.listEventPredictions = function (args, optionsOrCb, cb) {
721
- var command = new ListEventPredictionsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
735
- var command = new ListTagsForResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.putDetector = function (args, optionsOrCb, cb) {
749
- var command = new PutDetectorCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.putEntityType = function (args, optionsOrCb, cb) {
763
- var command = new PutEntityTypeCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.putEventType = function (args, optionsOrCb, cb) {
777
- var command = new PutEventTypeCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.putExternalModel = function (args, optionsOrCb, cb) {
791
- var command = new PutExternalModelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.putKMSEncryptionKey = function (args, optionsOrCb, cb) {
805
- var command = new PutKMSEncryptionKeyCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.putLabel = function (args, optionsOrCb, cb) {
819
- var command = new PutLabelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.putOutcome = function (args, optionsOrCb, cb) {
833
- var command = new PutOutcomeCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.sendEvent = function (args, optionsOrCb, cb) {
847
- var command = new SendEventCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.tagResource = function (args, optionsOrCb, cb) {
861
- var command = new TagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.untagResource = function (args, optionsOrCb, cb) {
875
- var command = new UntagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateDetectorVersion = function (args, optionsOrCb, cb) {
889
- var command = new UpdateDetectorVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateDetectorVersionMetadata = function (args, optionsOrCb, cb) {
903
- var command = new UpdateDetectorVersionMetadataCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateDetectorVersionStatus = function (args, optionsOrCb, cb) {
917
- var command = new UpdateDetectorVersionStatusCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateEventLabel = function (args, optionsOrCb, cb) {
931
- var command = new UpdateEventLabelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateModel = function (args, optionsOrCb, cb) {
945
- var command = new UpdateModelCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateModelVersion = function (args, optionsOrCb, cb) {
959
- var command = new UpdateModelVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateModelVersionStatus = function (args, optionsOrCb, cb) {
973
- var command = new UpdateModelVersionStatusCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateRuleMetadata = function (args, optionsOrCb, cb) {
987
- var command = new UpdateRuleMetadataCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateRuleVersion = function (args, optionsOrCb, cb) {
1001
- var command = new UpdateRuleVersionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- FraudDetector.prototype.updateVariable = function (args, optionsOrCb, cb) {
1015
- var command = new UpdateVariableCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- return FraudDetector;
1029
- }(FraudDetectorClient));
1030
- export { FraudDetector };
1022
+ }
1023
+ }