UNPKG

50.7 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class FraudDetector extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: FraudDetector.Types.ClientConfiguration)
13 config: Config & FraudDetector.Types.ClientConfiguration;
14 /**
15 * Creates a batch of variables.
16 */
17 batchCreateVariable(params: FraudDetector.Types.BatchCreateVariableRequest, callback?: (err: AWSError, data: FraudDetector.Types.BatchCreateVariableResult) => void): Request<FraudDetector.Types.BatchCreateVariableResult, AWSError>;
18 /**
19 * Creates a batch of variables.
20 */
21 batchCreateVariable(callback?: (err: AWSError, data: FraudDetector.Types.BatchCreateVariableResult) => void): Request<FraudDetector.Types.BatchCreateVariableResult, AWSError>;
22 /**
23 * Gets a batch of variables.
24 */
25 batchGetVariable(params: FraudDetector.Types.BatchGetVariableRequest, callback?: (err: AWSError, data: FraudDetector.Types.BatchGetVariableResult) => void): Request<FraudDetector.Types.BatchGetVariableResult, AWSError>;
26 /**
27 * Gets a batch of variables.
28 */
29 batchGetVariable(callback?: (err: AWSError, data: FraudDetector.Types.BatchGetVariableResult) => void): Request<FraudDetector.Types.BatchGetVariableResult, AWSError>;
30 /**
31 * Creates a detector version. The detector version starts in a DRAFT status.
32 */
33 createDetectorVersion(params: FraudDetector.Types.CreateDetectorVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.CreateDetectorVersionResult) => void): Request<FraudDetector.Types.CreateDetectorVersionResult, AWSError>;
34 /**
35 * Creates a detector version. The detector version starts in a DRAFT status.
36 */
37 createDetectorVersion(callback?: (err: AWSError, data: FraudDetector.Types.CreateDetectorVersionResult) => void): Request<FraudDetector.Types.CreateDetectorVersionResult, AWSError>;
38 /**
39 * Creates a version of the model using the specified model type.
40 */
41 createModelVersion(params: FraudDetector.Types.CreateModelVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.CreateModelVersionResult) => void): Request<FraudDetector.Types.CreateModelVersionResult, AWSError>;
42 /**
43 * Creates a version of the model using the specified model type.
44 */
45 createModelVersion(callback?: (err: AWSError, data: FraudDetector.Types.CreateModelVersionResult) => void): Request<FraudDetector.Types.CreateModelVersionResult, AWSError>;
46 /**
47 * Creates a rule for use with the specified detector.
48 */
49 createRule(params: FraudDetector.Types.CreateRuleRequest, callback?: (err: AWSError, data: FraudDetector.Types.CreateRuleResult) => void): Request<FraudDetector.Types.CreateRuleResult, AWSError>;
50 /**
51 * Creates a rule for use with the specified detector.
52 */
53 createRule(callback?: (err: AWSError, data: FraudDetector.Types.CreateRuleResult) => void): Request<FraudDetector.Types.CreateRuleResult, AWSError>;
54 /**
55 * Creates a variable.
56 */
57 createVariable(params: FraudDetector.Types.CreateVariableRequest, callback?: (err: AWSError, data: FraudDetector.Types.CreateVariableResult) => void): Request<FraudDetector.Types.CreateVariableResult, AWSError>;
58 /**
59 * Creates a variable.
60 */
61 createVariable(callback?: (err: AWSError, data: FraudDetector.Types.CreateVariableResult) => void): Request<FraudDetector.Types.CreateVariableResult, AWSError>;
62 /**
63 * Deletes the detector version.
64 */
65 deleteDetectorVersion(params: FraudDetector.Types.DeleteDetectorVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.DeleteDetectorVersionResult) => void): Request<FraudDetector.Types.DeleteDetectorVersionResult, AWSError>;
66 /**
67 * Deletes the detector version.
68 */
69 deleteDetectorVersion(callback?: (err: AWSError, data: FraudDetector.Types.DeleteDetectorVersionResult) => void): Request<FraudDetector.Types.DeleteDetectorVersionResult, AWSError>;
70 /**
71 * Deletes the specified event.
72 */
73 deleteEvent(params: FraudDetector.Types.DeleteEventRequest, callback?: (err: AWSError, data: FraudDetector.Types.DeleteEventResult) => void): Request<FraudDetector.Types.DeleteEventResult, AWSError>;
74 /**
75 * Deletes the specified event.
76 */
77 deleteEvent(callback?: (err: AWSError, data: FraudDetector.Types.DeleteEventResult) => void): Request<FraudDetector.Types.DeleteEventResult, AWSError>;
78 /**
79 * Gets all versions for a specified detector.
80 */
81 describeDetector(params: FraudDetector.Types.DescribeDetectorRequest, callback?: (err: AWSError, data: FraudDetector.Types.DescribeDetectorResult) => void): Request<FraudDetector.Types.DescribeDetectorResult, AWSError>;
82 /**
83 * Gets all versions for a specified detector.
84 */
85 describeDetector(callback?: (err: AWSError, data: FraudDetector.Types.DescribeDetectorResult) => void): Request<FraudDetector.Types.DescribeDetectorResult, AWSError>;
86 /**
87 * Gets all of the model versions for the specified model type or for the specified model type and model ID. You can also get details for a single, specified model version.
88 */
89 describeModelVersions(params: FraudDetector.Types.DescribeModelVersionsRequest, callback?: (err: AWSError, data: FraudDetector.Types.DescribeModelVersionsResult) => void): Request<FraudDetector.Types.DescribeModelVersionsResult, AWSError>;
90 /**
91 * Gets all of the model versions for the specified model type or for the specified model type and model ID. You can also get details for a single, specified model version.
92 */
93 describeModelVersions(callback?: (err: AWSError, data: FraudDetector.Types.DescribeModelVersionsResult) => void): Request<FraudDetector.Types.DescribeModelVersionsResult, AWSError>;
94 /**
95 * Gets a particular detector version.
96 */
97 getDetectorVersion(params: FraudDetector.Types.GetDetectorVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetDetectorVersionResult) => void): Request<FraudDetector.Types.GetDetectorVersionResult, AWSError>;
98 /**
99 * Gets a particular detector version.
100 */
101 getDetectorVersion(callback?: (err: AWSError, data: FraudDetector.Types.GetDetectorVersionResult) => void): Request<FraudDetector.Types.GetDetectorVersionResult, AWSError>;
102 /**
103 * Gets all of detectors. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetEventTypesResponse as part of your request. A null pagination token fetches the records from the beginning.
104 */
105 getDetectors(params: FraudDetector.Types.GetDetectorsRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetDetectorsResult) => void): Request<FraudDetector.Types.GetDetectorsResult, AWSError>;
106 /**
107 * Gets all of detectors. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetEventTypesResponse as part of your request. A null pagination token fetches the records from the beginning.
108 */
109 getDetectors(callback?: (err: AWSError, data: FraudDetector.Types.GetDetectorsResult) => void): Request<FraudDetector.Types.GetDetectorsResult, AWSError>;
110 /**
111 * Gets the details for one or more Amazon SageMaker models that have been imported into the service. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetExternalModelsResult as part of your request. A null pagination token fetches the records from the beginning.
112 */
113 getExternalModels(params: FraudDetector.Types.GetExternalModelsRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetExternalModelsResult) => void): Request<FraudDetector.Types.GetExternalModelsResult, AWSError>;
114 /**
115 * Gets the details for one or more Amazon SageMaker models that have been imported into the service. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetExternalModelsResult as part of your request. A null pagination token fetches the records from the beginning.
116 */
117 getExternalModels(callback?: (err: AWSError, data: FraudDetector.Types.GetExternalModelsResult) => void): Request<FraudDetector.Types.GetExternalModelsResult, AWSError>;
118 /**
119 * Gets a model version.
120 */
121 getModelVersion(params: FraudDetector.Types.GetModelVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetModelVersionResult) => void): Request<FraudDetector.Types.GetModelVersionResult, AWSError>;
122 /**
123 * Gets a model version.
124 */
125 getModelVersion(callback?: (err: AWSError, data: FraudDetector.Types.GetModelVersionResult) => void): Request<FraudDetector.Types.GetModelVersionResult, AWSError>;
126 /**
127 * Gets all of the models for the AWS account, or the specified model type, or gets a single model for the specified model type, model ID combination.
128 */
129 getModels(params: FraudDetector.Types.GetModelsRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetModelsResult) => void): Request<FraudDetector.Types.GetModelsResult, AWSError>;
130 /**
131 * Gets all of the models for the AWS account, or the specified model type, or gets a single model for the specified model type, model ID combination.
132 */
133 getModels(callback?: (err: AWSError, data: FraudDetector.Types.GetModelsResult) => void): Request<FraudDetector.Types.GetModelsResult, AWSError>;
134 /**
135 * Gets one or more outcomes. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, the value must be between 50 and 100. To get the next page results, provide the pagination token from the GetOutcomesResult as part of your request. A null pagination token fetches the records from the beginning.
136 */
137 getOutcomes(params: FraudDetector.Types.GetOutcomesRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetOutcomesResult) => void): Request<FraudDetector.Types.GetOutcomesResult, AWSError>;
138 /**
139 * Gets one or more outcomes. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, the value must be between 50 and 100. To get the next page results, provide the pagination token from the GetOutcomesResult as part of your request. A null pagination token fetches the records from the beginning.
140 */
141 getOutcomes(callback?: (err: AWSError, data: FraudDetector.Types.GetOutcomesResult) => void): Request<FraudDetector.Types.GetOutcomesResult, AWSError>;
142 /**
143 * Evaluates an event against a detector version. If a version ID is not provided, the detector’s (ACTIVE) version is used.
144 */
145 getPrediction(params: FraudDetector.Types.GetPredictionRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetPredictionResult) => void): Request<FraudDetector.Types.GetPredictionResult, AWSError>;
146 /**
147 * Evaluates an event against a detector version. If a version ID is not provided, the detector’s (ACTIVE) version is used.
148 */
149 getPrediction(callback?: (err: AWSError, data: FraudDetector.Types.GetPredictionResult) => void): Request<FraudDetector.Types.GetPredictionResult, AWSError>;
150 /**
151 * Gets all rules available for the specified detector.
152 */
153 getRules(params: FraudDetector.Types.GetRulesRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetRulesResult) => void): Request<FraudDetector.Types.GetRulesResult, AWSError>;
154 /**
155 * Gets all rules available for the specified detector.
156 */
157 getRules(callback?: (err: AWSError, data: FraudDetector.Types.GetRulesResult) => void): Request<FraudDetector.Types.GetRulesResult, AWSError>;
158 /**
159 * Gets all of the variables or the specific variable. This is a paginated API. Providing null maxSizePerPage results in retrieving maximum of 100 records per page. If you provide maxSizePerPage the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetVariablesResult as part of your request. Null pagination token fetches the records from the beginning.
160 */
161 getVariables(params: FraudDetector.Types.GetVariablesRequest, callback?: (err: AWSError, data: FraudDetector.Types.GetVariablesResult) => void): Request<FraudDetector.Types.GetVariablesResult, AWSError>;
162 /**
163 * Gets all of the variables or the specific variable. This is a paginated API. Providing null maxSizePerPage results in retrieving maximum of 100 records per page. If you provide maxSizePerPage the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetVariablesResult as part of your request. Null pagination token fetches the records from the beginning.
164 */
165 getVariables(callback?: (err: AWSError, data: FraudDetector.Types.GetVariablesResult) => void): Request<FraudDetector.Types.GetVariablesResult, AWSError>;
166 /**
167 * Creates or updates a detector.
168 */
169 putDetector(params: FraudDetector.Types.PutDetectorRequest, callback?: (err: AWSError, data: FraudDetector.Types.PutDetectorResult) => void): Request<FraudDetector.Types.PutDetectorResult, AWSError>;
170 /**
171 * Creates or updates a detector.
172 */
173 putDetector(callback?: (err: AWSError, data: FraudDetector.Types.PutDetectorResult) => void): Request<FraudDetector.Types.PutDetectorResult, AWSError>;
174 /**
175 * Creates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.
176 */
177 putExternalModel(params: FraudDetector.Types.PutExternalModelRequest, callback?: (err: AWSError, data: FraudDetector.Types.PutExternalModelResult) => void): Request<FraudDetector.Types.PutExternalModelResult, AWSError>;
178 /**
179 * Creates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.
180 */
181 putExternalModel(callback?: (err: AWSError, data: FraudDetector.Types.PutExternalModelResult) => void): Request<FraudDetector.Types.PutExternalModelResult, AWSError>;
182 /**
183 * Creates or updates a model.
184 */
185 putModel(params: FraudDetector.Types.PutModelRequest, callback?: (err: AWSError, data: FraudDetector.Types.PutModelResult) => void): Request<FraudDetector.Types.PutModelResult, AWSError>;
186 /**
187 * Creates or updates a model.
188 */
189 putModel(callback?: (err: AWSError, data: FraudDetector.Types.PutModelResult) => void): Request<FraudDetector.Types.PutModelResult, AWSError>;
190 /**
191 * Creates or updates an outcome.
192 */
193 putOutcome(params: FraudDetector.Types.PutOutcomeRequest, callback?: (err: AWSError, data: FraudDetector.Types.PutOutcomeResult) => void): Request<FraudDetector.Types.PutOutcomeResult, AWSError>;
194 /**
195 * Creates or updates an outcome.
196 */
197 putOutcome(callback?: (err: AWSError, data: FraudDetector.Types.PutOutcomeResult) => void): Request<FraudDetector.Types.PutOutcomeResult, AWSError>;
198 /**
199 * Updates a detector version. The detector version attributes that you can update include models, external model endpoints, rules, and description. You can only update a DRAFT detector version.
200 */
201 updateDetectorVersion(params: FraudDetector.Types.UpdateDetectorVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.UpdateDetectorVersionResult) => void): Request<FraudDetector.Types.UpdateDetectorVersionResult, AWSError>;
202 /**
203 * Updates a detector version. The detector version attributes that you can update include models, external model endpoints, rules, and description. You can only update a DRAFT detector version.
204 */
205 updateDetectorVersion(callback?: (err: AWSError, data: FraudDetector.Types.UpdateDetectorVersionResult) => void): Request<FraudDetector.Types.UpdateDetectorVersionResult, AWSError>;
206 /**
207 * Updates the detector version's description. You can update the metadata for any detector version (DRAFT, ACTIVE, or INACTIVE).
208 */
209 updateDetectorVersionMetadata(params: FraudDetector.Types.UpdateDetectorVersionMetadataRequest, callback?: (err: AWSError, data: FraudDetector.Types.UpdateDetectorVersionMetadataResult) => void): Request<FraudDetector.Types.UpdateDetectorVersionMetadataResult, AWSError>;
210 /**
211 * Updates the detector version's description. You can update the metadata for any detector version (DRAFT, ACTIVE, or INACTIVE).
212 */
213 updateDetectorVersionMetadata(callback?: (err: AWSError, data: FraudDetector.Types.UpdateDetectorVersionMetadataResult) => void): Request<FraudDetector.Types.UpdateDetectorVersionMetadataResult, AWSError>;
214 /**
215 * Updates the detector version’s status. You can perform the following promotions or demotions using UpdateDetectorVersionStatus: DRAFT to ACTIVE, ACTIVE to INACTIVE, and INACTIVE to ACTIVE.
216 */
217 updateDetectorVersionStatus(params: FraudDetector.Types.UpdateDetectorVersionStatusRequest, callback?: (err: AWSError, data: FraudDetector.Types.UpdateDetectorVersionStatusResult) => void): Request<FraudDetector.Types.UpdateDetectorVersionStatusResult, AWSError>;
218 /**
219 * Updates the detector version’s status. You can perform the following promotions or demotions using UpdateDetectorVersionStatus: DRAFT to ACTIVE, ACTIVE to INACTIVE, and INACTIVE to ACTIVE.
220 */
221 updateDetectorVersionStatus(callback?: (err: AWSError, data: FraudDetector.Types.UpdateDetectorVersionStatusResult) => void): Request<FraudDetector.Types.UpdateDetectorVersionStatusResult, AWSError>;
222 /**
223 * Updates a model version. You can update the description and status attributes using this action. You can perform the following status updates: Change the TRAINING_COMPLETE status to ACTIVE Change ACTIVE back to TRAINING_COMPLETE
224 */
225 updateModelVersion(params: FraudDetector.Types.UpdateModelVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.UpdateModelVersionResult) => void): Request<FraudDetector.Types.UpdateModelVersionResult, AWSError>;
226 /**
227 * Updates a model version. You can update the description and status attributes using this action. You can perform the following status updates: Change the TRAINING_COMPLETE status to ACTIVE Change ACTIVE back to TRAINING_COMPLETE
228 */
229 updateModelVersion(callback?: (err: AWSError, data: FraudDetector.Types.UpdateModelVersionResult) => void): Request<FraudDetector.Types.UpdateModelVersionResult, AWSError>;
230 /**
231 * Updates a rule's metadata.
232 */
233 updateRuleMetadata(params: FraudDetector.Types.UpdateRuleMetadataRequest, callback?: (err: AWSError, data: FraudDetector.Types.UpdateRuleMetadataResult) => void): Request<FraudDetector.Types.UpdateRuleMetadataResult, AWSError>;
234 /**
235 * Updates a rule's metadata.
236 */
237 updateRuleMetadata(callback?: (err: AWSError, data: FraudDetector.Types.UpdateRuleMetadataResult) => void): Request<FraudDetector.Types.UpdateRuleMetadataResult, AWSError>;
238 /**
239 * Updates a rule version resulting in a new rule version.
240 */
241 updateRuleVersion(params: FraudDetector.Types.UpdateRuleVersionRequest, callback?: (err: AWSError, data: FraudDetector.Types.UpdateRuleVersionResult) => void): Request<FraudDetector.Types.UpdateRuleVersionResult, AWSError>;
242 /**
243 * Updates a rule version resulting in a new rule version.
244 */
245 updateRuleVersion(callback?: (err: AWSError, data: FraudDetector.Types.UpdateRuleVersionResult) => void): Request<FraudDetector.Types.UpdateRuleVersionResult, AWSError>;
246 /**
247 * Updates a variable.
248 */
249 updateVariable(params: FraudDetector.Types.UpdateVariableRequest, callback?: (err: AWSError, data: FraudDetector.Types.UpdateVariableResult) => void): Request<FraudDetector.Types.UpdateVariableResult, AWSError>;
250 /**
251 * Updates a variable.
252 */
253 updateVariable(callback?: (err: AWSError, data: FraudDetector.Types.UpdateVariableResult) => void): Request<FraudDetector.Types.UpdateVariableResult, AWSError>;
254}
255declare namespace FraudDetector {
256 export interface BatchCreateVariableError {
257 /**
258 * The name.
259 */
260 name?: string;
261 /**
262 * The error code.
263 */
264 code?: integer;
265 /**
266 * The error message.
267 */
268 message?: string;
269 }
270 export type BatchCreateVariableErrorList = BatchCreateVariableError[];
271 export interface BatchCreateVariableRequest {
272 /**
273 * The list of variables for the batch create variable request.
274 */
275 variableEntries: VariableEntryList;
276 }
277 export interface BatchCreateVariableResult {
278 /**
279 * Provides the errors for the BatchCreateVariable request.
280 */
281 errors?: BatchCreateVariableErrorList;
282 }
283 export interface BatchGetVariableError {
284 /**
285 * The error name.
286 */
287 name?: string;
288 /**
289 * The error code.
290 */
291 code?: integer;
292 /**
293 * The error message.
294 */
295 message?: string;
296 }
297 export type BatchGetVariableErrorList = BatchGetVariableError[];
298 export interface BatchGetVariableRequest {
299 /**
300 * The list of variable names to get.
301 */
302 names: NameList;
303 }
304 export interface BatchGetVariableResult {
305 /**
306 * The returned variables.
307 */
308 variables?: VariableList;
309 /**
310 * The errors from the request.
311 */
312 errors?: BatchGetVariableErrorList;
313 }
314 export interface CreateDetectorVersionRequest {
315 /**
316 * The ID of the detector under which you want to create a new version.
317 */
318 detectorId: identifier;
319 /**
320 * The description of the detector version.
321 */
322 description?: description;
323 /**
324 * The Amazon Sagemaker model endpoints to include in the detector version.
325 */
326 externalModelEndpoints?: ListOfStrings;
327 /**
328 * The rules to include in the detector version.
329 */
330 rules: RuleList;
331 /**
332 * The model versions to include in the detector version.
333 */
334 modelVersions?: ListOfModelVersions;
335 }
336 export interface CreateDetectorVersionResult {
337 /**
338 * The ID for the created version's parent detector.
339 */
340 detectorId?: identifier;
341 /**
342 * The ID for the created detector.
343 */
344 detectorVersionId?: nonEmptyString;
345 /**
346 * The status of the detector version.
347 */
348 status?: DetectorVersionStatus;
349 }
350 export interface CreateModelVersionRequest {
351 /**
352 * The model ID.
353 */
354 modelId: identifier;
355 /**
356 * The model type.
357 */
358 modelType: ModelTypeEnum;
359 /**
360 * The model version description.
361 */
362 description?: description;
363 }
364 export interface CreateModelVersionResult {
365 /**
366 * The model ID.
367 */
368 modelId?: identifier;
369 /**
370 * The model type.
371 */
372 modelType?: ModelTypeEnum;
373 /**
374 * The version of the model.
375 */
376 modelVersionNumber?: nonEmptyString;
377 /**
378 * The model version status.
379 */
380 status?: string;
381 }
382 export interface CreateRuleRequest {
383 /**
384 * The rule ID.
385 */
386 ruleId: identifier;
387 /**
388 * The detector ID for the rule's parent detector.
389 */
390 detectorId: identifier;
391 /**
392 * The rule description.
393 */
394 description?: description;
395 /**
396 * The rule expression.
397 */
398 expression: ruleExpression;
399 /**
400 * The language of the rule.
401 */
402 language: Language;
403 /**
404 * The outcome or outcomes returned when the rule expression matches.
405 */
406 outcomes: NonEmptyListOfStrings;
407 }
408 export interface CreateRuleResult {
409 /**
410 * The created rule.
411 */
412 rule?: Rule;
413 }
414 export interface CreateVariableRequest {
415 /**
416 * The name of the variable.
417 */
418 name: string;
419 /**
420 * The data type.
421 */
422 dataType: DataType;
423 /**
424 * The source of the data.
425 */
426 dataSource: DataSource;
427 /**
428 * The default value for the variable when no value is received.
429 */
430 defaultValue: string;
431 /**
432 * The description.
433 */
434 description?: string;
435 /**
436 * The variable type.
437 */
438 variableType?: string;
439 }
440 export interface CreateVariableResult {
441 }
442 export type CsvIndexToVariableMap = {[key: string]: string};
443 export type DataSource = "EVENT"|"MODEL_SCORE"|"EXTERNAL_MODEL_SCORE"|string;
444 export type DataType = "STRING"|"INTEGER"|"FLOAT"|"BOOLEAN"|string;
445 export interface DeleteDetectorVersionRequest {
446 /**
447 * The ID of the parent detector for the detector version to delete.
448 */
449 detectorId: identifier;
450 /**
451 * The ID of the detector version to delete.
452 */
453 detectorVersionId: nonEmptyString;
454 }
455 export interface DeleteDetectorVersionResult {
456 }
457 export interface DeleteEventRequest {
458 /**
459 * The ID of the event to delete.
460 */
461 eventId: string;
462 }
463 export interface DeleteEventResult {
464 }
465 export interface DescribeDetectorRequest {
466 /**
467 * The detector ID.
468 */
469 detectorId: identifier;
470 /**
471 * The next token from the previous response.
472 */
473 nextToken?: string;
474 /**
475 * The maximum number of results to return for the request.
476 */
477 maxResults?: DetectorVersionMaxResults;
478 }
479 export interface DescribeDetectorResult {
480 /**
481 * The detector ID.
482 */
483 detectorId?: identifier;
484 /**
485 * The status and description for each detector version.
486 */
487 detectorVersionSummaries?: DetectorVersionSummaryList;
488 /**
489 * The next token to be used for subsequent requests.
490 */
491 nextToken?: string;
492 }
493 export interface DescribeModelVersionsRequest {
494 /**
495 * The model ID.
496 */
497 modelId?: identifier;
498 /**
499 * The model version.
500 */
501 modelVersionNumber?: nonEmptyString;
502 /**
503 * The model type.
504 */
505 modelType?: ModelTypeEnum;
506 /**
507 * The next token from the previous results.
508 */
509 nextToken?: string;
510 /**
511 * The maximum number of results to return.
512 */
513 maxResults?: MaxResults;
514 }
515 export interface DescribeModelVersionsResult {
516 /**
517 * The model version details.
518 */
519 modelVersionDetails?: ModelVersionDetailList;
520 /**
521 * The next token.
522 */
523 nextToken?: string;
524 }
525 export interface Detector {
526 /**
527 * The detector ID.
528 */
529 detectorId?: identifier;
530 /**
531 * The detector description.
532 */
533 description?: description;
534 /**
535 * Timestamp of when the detector was last updated.
536 */
537 lastUpdatedTime?: time;
538 /**
539 * Timestamp of when the detector was created.
540 */
541 createdTime?: time;
542 }
543 export type DetectorList = Detector[];
544 export type DetectorVersionMaxResults = number;
545 export type DetectorVersionStatus = "DRAFT"|"ACTIVE"|"INACTIVE"|string;
546 export interface DetectorVersionSummary {
547 /**
548 * The detector version ID.
549 */
550 detectorVersionId?: nonEmptyString;
551 /**
552 * The detector version status.
553 */
554 status?: DetectorVersionStatus;
555 /**
556 * The detector version description.
557 */
558 description?: description;
559 /**
560 * Timestamp of when the detector version was last updated.
561 */
562 lastUpdatedTime?: time;
563 }
564 export type DetectorVersionSummaryList = DetectorVersionSummary[];
565 export type DetectorsMaxResults = number;
566 export type EventAttributeMap = {[key: string]: attributeValue};
567 export interface ExternalModel {
568 /**
569 * The Amazon SageMaker model endpoints.
570 */
571 modelEndpoint?: string;
572 /**
573 * The source of the model.
574 */
575 modelSource?: ModelSource;
576 /**
577 * The role used to invoke the model.
578 */
579 role?: Role;
580 /**
581 * The input configuration.
582 */
583 inputConfiguration?: ModelInputConfiguration;
584 /**
585 * The output configuration.
586 */
587 outputConfiguration?: ModelOutputConfiguration;
588 /**
589 * The Amazon Fraud Detector status for the external model endpoint
590 */
591 modelEndpointStatus?: ModelEndpointStatus;
592 /**
593 * Timestamp of when the model was last updated.
594 */
595 lastUpdatedTime?: time;
596 /**
597 * Timestamp of when the model was last created.
598 */
599 createdTime?: time;
600 }
601 export type ExternalModelEndpointDataBlobMap = {[key: string]: ModelEndpointDataBlob};
602 export type ExternalModelList = ExternalModel[];
603 export type ExternalModelsMaxResults = number;
604 export interface GetDetectorVersionRequest {
605 /**
606 * The detector ID.
607 */
608 detectorId: identifier;
609 /**
610 * The detector version ID.
611 */
612 detectorVersionId: nonEmptyString;
613 }
614 export interface GetDetectorVersionResult {
615 /**
616 * The detector ID.
617 */
618 detectorId?: identifier;
619 /**
620 * The detector version ID.
621 */
622 detectorVersionId?: nonEmptyString;
623 /**
624 * The detector version description.
625 */
626 description?: description;
627 /**
628 * The Amazon SageMaker model endpoints included in the detector version.
629 */
630 externalModelEndpoints?: ListOfStrings;
631 /**
632 * The model versions included in the detector version.
633 */
634 modelVersions?: ListOfModelVersions;
635 /**
636 * The rules included in the detector version.
637 */
638 rules?: RuleList;
639 /**
640 * The status of the detector version.
641 */
642 status?: DetectorVersionStatus;
643 /**
644 * The timestamp when the detector version was last updated.
645 */
646 lastUpdatedTime?: time;
647 /**
648 * The timestamp when the detector version was created.
649 */
650 createdTime?: time;
651 }
652 export interface GetDetectorsRequest {
653 /**
654 * The detector ID.
655 */
656 detectorId?: identifier;
657 /**
658 * The next token for the subsequent request.
659 */
660 nextToken?: string;
661 /**
662 * The maximum number of objects to return for the request.
663 */
664 maxResults?: DetectorsMaxResults;
665 }
666 export interface GetDetectorsResult {
667 /**
668 * The detectors.
669 */
670 detectors?: DetectorList;
671 /**
672 * The next page token.
673 */
674 nextToken?: string;
675 }
676 export interface GetExternalModelsRequest {
677 /**
678 * The Amazon SageMaker model endpoint.
679 */
680 modelEndpoint?: string;
681 /**
682 * The next page token for the request.
683 */
684 nextToken?: string;
685 /**
686 * The maximum number of objects to return for the request.
687 */
688 maxResults?: ExternalModelsMaxResults;
689 }
690 export interface GetExternalModelsResult {
691 /**
692 * Gets the Amazon SageMaker models.
693 */
694 externalModels?: ExternalModelList;
695 /**
696 * The next page token to be used in subsequent requests.
697 */
698 nextToken?: string;
699 }
700 export interface GetModelVersionRequest {
701 /**
702 * The model ID.
703 */
704 modelId: identifier;
705 /**
706 * The model type.
707 */
708 modelType: ModelTypeEnum;
709 /**
710 * The model version.
711 */
712 modelVersionNumber: nonEmptyString;
713 }
714 export interface GetModelVersionResult {
715 /**
716 * The model ID.
717 */
718 modelId?: identifier;
719 /**
720 * The model type.
721 */
722 modelType?: ModelTypeEnum;
723 /**
724 * The model version.
725 */
726 modelVersionNumber?: nonEmptyString;
727 /**
728 * The model version description.
729 */
730 description?: description;
731 /**
732 * The model version status.
733 */
734 status?: string;
735 }
736 export interface GetModelsRequest {
737 /**
738 * The model type.
739 */
740 modelType?: ModelTypeEnum;
741 /**
742 * The model ID.
743 */
744 modelId?: identifier;
745 /**
746 * The next token for the request.
747 */
748 nextToken?: string;
749 /**
750 * The maximum results to return for the request.
751 */
752 maxResults?: MaxResults;
753 }
754 export interface GetModelsResult {
755 /**
756 * The next token for subsequent requests.
757 */
758 nextToken?: string;
759 /**
760 * The returned models.
761 */
762 models?: ModelList;
763 }
764 export interface GetOutcomesRequest {
765 /**
766 * The name of the outcome or outcomes to get.
767 */
768 name?: identifier;
769 /**
770 * The next page token for the request.
771 */
772 nextToken?: string;
773 /**
774 * The maximum number of objects to return for the request.
775 */
776 maxResults?: OutcomesMaxResults;
777 }
778 export interface GetOutcomesResult {
779 /**
780 * The outcomes.
781 */
782 outcomes?: OutcomeList;
783 /**
784 * The next page token for subsequent requests.
785 */
786 nextToken?: string;
787 }
788 export interface GetPredictionRequest {
789 /**
790 * The detector ID.
791 */
792 detectorId: string;
793 /**
794 * The detector version ID.
795 */
796 detectorVersionId?: string;
797 /**
798 * The unique ID used to identify the event.
799 */
800 eventId: string;
801 /**
802 * Names of variables you defined in Amazon Fraud Detector to represent event data elements and their corresponding values for the event you are sending for evaluation.
803 */
804 eventAttributes?: EventAttributeMap;
805 /**
806 * The Amazon SageMaker model endpoint input data blobs.
807 */
808 externalModelEndpointDataBlobs?: ExternalModelEndpointDataBlobMap;
809 }
810 export interface GetPredictionResult {
811 /**
812 * The prediction outcomes.
813 */
814 outcomes?: ListOfStrings;
815 /**
816 * The model scores for models used in the detector version.
817 */
818 modelScores?: ListOfModelScores;
819 }
820 export interface GetRulesRequest {
821 /**
822 * The rule ID.
823 */
824 ruleId?: identifier;
825 /**
826 * The detector ID.
827 */
828 detectorId: identifier;
829 /**
830 * The rule version.
831 */
832 ruleVersion?: nonEmptyString;
833 /**
834 * The next page token.
835 */
836 nextToken?: string;
837 /**
838 * The maximum number of rules to return for the request.
839 */
840 maxResults?: RulesMaxResults;
841 }
842 export interface GetRulesResult {
843 /**
844 * The details of the requested rule.
845 */
846 ruleDetails?: RuleDetailList;
847 /**
848 * The next page token to be used in subsequent requests.
849 */
850 nextToken?: string;
851 }
852 export interface GetVariablesRequest {
853 /**
854 * The name of the variable.
855 */
856 name?: string;
857 /**
858 * The next page token of the get variable request.
859 */
860 nextToken?: string;
861 /**
862 * The max size per page determined for the get variable request.
863 */
864 maxResults?: VariablesMaxResults;
865 }
866 export interface GetVariablesResult {
867 /**
868 * The names of the variables returned.
869 */
870 variables?: VariableList;
871 /**
872 * The next page token to be used in subsequent requests.
873 */
874 nextToken?: string;
875 }
876 export type IsOpaque = boolean;
877 export type JsonKeyToVariableMap = {[key: string]: string};
878 export type LabelMapper = {[key: string]: ListOfStrings};
879 export interface LabelSchema {
880 /**
881 * The label key.
882 */
883 labelKey: string;
884 /**
885 * The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels. For example, if "FRAUD" and "LEGIT" are Amazon Fraud Detector supported labels, this mapper could be: {"FRAUD" =&gt; ["0"], "LEGIT" =&gt; ["1"]} or {"FRAUD" =&gt; ["false"], "LEGIT" =&gt; ["true"]} or {"FRAUD" =&gt; ["fraud", "abuse"], "LEGIT" =&gt; ["legit", "safe"]}. The value part of the mapper is a list, because you may have multiple variants for a single Amazon Fraud Detector label.
886 */
887 labelMapper: LabelMapper;
888 }
889 export type Language = "DETECTORPL"|string;
890 export type ListOfModelScores = ModelScores[];
891 export type ListOfModelVersions = ModelVersion[];
892 export type ListOfStrings = string[];
893 export type MaxResults = number;
894 export type MetricsMap = {[key: string]: string};
895 export interface Model {
896 /**
897 * The model ID.
898 */
899 modelId?: identifier;
900 /**
901 * The model type.
902 */
903 modelType?: ModelTypeEnum;
904 /**
905 * The model description.
906 */
907 description?: description;
908 /**
909 * The model training data source in Amazon S3.
910 */
911 trainingDataSource?: TrainingDataSource;
912 /**
913 * The model input variables.
914 */
915 modelVariables?: ModelVariablesList;
916 /**
917 * The model label schema.
918 */
919 labelSchema?: LabelSchema;
920 /**
921 * Timestamp of last time the model was updated.
922 */
923 lastUpdatedTime?: time;
924 /**
925 * Timestamp of when the model was created.
926 */
927 createdTime?: time;
928 }
929 export interface ModelEndpointDataBlob {
930 /**
931 * The byte buffer of the Amazon SageMaker model endpoint input data blob.
932 */
933 byteBuffer?: blob;
934 /**
935 * The content type of the Amazon SageMaker model endpoint input data blob.
936 */
937 contentType?: contentType;
938 }
939 export type ModelEndpointStatus = "ASSOCIATED"|"DISSOCIATED"|string;
940 export interface ModelInputConfiguration {
941 /**
942 * The format of the model input configuration. The format differs depending on if it is passed through to SageMaker or constructed by Amazon Fraud Detector.
943 */
944 format?: ModelInputDataFormat;
945 /**
946 * For an opaque-model, the input to the model will be a ByteBuffer blob provided in the getPrediction request, and will be passed to SageMaker as-is. For non-opaque models, the input will be constructed by Amazon Fraud Detector based on the model-configuration.
947 */
948 isOpaque: IsOpaque;
949 /**
950 * Template for constructing the JSON input-data sent to SageMaker. At event-evaluation, the placeholders for variable names in the template will be replaced with the variable values before being sent to SageMaker.
951 */
952 jsonInputTemplate?: string;
953 /**
954 * Template for constructing the CSV input-data sent to SageMaker. At event-evaluation, the placeholders for variable-names in the template will be replaced with the variable values before being sent to SageMaker.
955 */
956 csvInputTemplate?: string;
957 }
958 export type ModelInputDataFormat = "TEXT_CSV"|"APPLICATION_JSON"|string;
959 export type ModelList = Model[];
960 export interface ModelOutputConfiguration {
961 /**
962 * The format of the model output configuration.
963 */
964 format: ModelOutputDataFormat;
965 /**
966 * A map of JSON keys in response from SageMaker to the Amazon Fraud Detector variables.
967 */
968 jsonKeyToVariableMap?: JsonKeyToVariableMap;
969 /**
970 * A map of CSV index values in the SageMaker response to the Amazon Fraud Detector variables.
971 */
972 csvIndexToVariableMap?: CsvIndexToVariableMap;
973 }
974 export type ModelOutputDataFormat = "TEXT_CSV"|"APPLICATION_JSONLINES"|string;
975 export type ModelPredictionMap = {[key: string]: float};
976 export interface ModelScores {
977 /**
978 * The model version.
979 */
980 modelVersion?: ModelVersion;
981 /**
982 * The model's fraud prediction scores.
983 */
984 scores?: ModelPredictionMap;
985 }
986 export type ModelSource = "SAGEMAKER"|string;
987 export type ModelTypeEnum = "ONLINE_FRAUD_INSIGHTS"|string;
988 export interface ModelVariable {
989 /**
990 * The model variable's name.&gt;
991 */
992 name: string;
993 /**
994 * The model variable's index.&gt;
995 */
996 index?: ModelVariableIndex;
997 }
998 export type ModelVariableIndex = number;
999 export type ModelVariablesList = ModelVariable[];
1000 export interface ModelVersion {
1001 /**
1002 * The parent model ID.
1003 */
1004 modelId: identifier;
1005 /**
1006 * The model type.
1007 */
1008 modelType: ModelTypeEnum;
1009 /**
1010 * The model version.
1011 */
1012 modelVersionNumber: nonEmptyString;
1013 }
1014 export interface ModelVersionDetail {
1015 /**
1016 * The model ID.
1017 */
1018 modelId?: identifier;
1019 /**
1020 * The model type.
1021 */
1022 modelType?: ModelTypeEnum;
1023 /**
1024 * The model version.
1025 */
1026 modelVersionNumber?: nonEmptyString;
1027 /**
1028 * The model description.
1029 */
1030 description?: description;
1031 /**
1032 * The model status.
1033 */
1034 status?: string;
1035 /**
1036 * The model training data source.
1037 */
1038 trainingDataSource?: TrainingDataSource;
1039 /**
1040 * The model variables.
1041 */
1042 modelVariables?: ModelVariablesList;
1043 /**
1044 * The model label schema.
1045 */
1046 labelSchema?: LabelSchema;
1047 /**
1048 * The model validation metrics.
1049 */
1050 validationMetrics?: MetricsMap;
1051 /**
1052 * The model training metrics.
1053 */
1054 trainingMetrics?: MetricsMap;
1055 /**
1056 * The timestamp when the model was last updated.
1057 */
1058 lastUpdatedTime?: time;
1059 /**
1060 * The timestamp when the model was created.
1061 */
1062 createdTime?: time;
1063 }
1064 export type ModelVersionDetailList = ModelVersionDetail[];
1065 export type ModelVersionStatus = "TRAINING_IN_PROGRESS"|"TRAINING_COMPLETE"|"ACTIVATE_REQUESTED"|"ACTIVATE_IN_PROGRESS"|"ACTIVE"|"INACTIVATE_IN_PROGRESS"|"INACTIVE"|"ERROR"|string;
1066 export type NameList = string[];
1067 export type NonEmptyListOfStrings = string[];
1068 export interface Outcome {
1069 /**
1070 * The outcome name.
1071 */
1072 name?: identifier;
1073 /**
1074 * The outcome description.
1075 */
1076 description?: description;
1077 /**
1078 * The timestamp when the outcome was last updated.
1079 */
1080 lastUpdatedTime?: time;
1081 /**
1082 * The timestamp when the outcome was created.
1083 */
1084 createdTime?: time;
1085 }
1086 export type OutcomeList = Outcome[];
1087 export type OutcomesMaxResults = number;
1088 export interface PutDetectorRequest {
1089 /**
1090 * The detector ID.
1091 */
1092 detectorId: identifier;
1093 /**
1094 * The description of the detector.
1095 */
1096 description?: description;
1097 }
1098 export interface PutDetectorResult {
1099 }
1100 export interface PutExternalModelRequest {
1101 /**
1102 * The model endpoints name.
1103 */
1104 modelEndpoint: string;
1105 /**
1106 * The source of the model.
1107 */
1108 modelSource: ModelSource;
1109 /**
1110 * The IAM role used to invoke the model endpoint.
1111 */
1112 role: Role;
1113 /**
1114 * The model endpoint input configuration.
1115 */
1116 inputConfiguration: ModelInputConfiguration;
1117 /**
1118 * The model endpoint output configuration.
1119 */
1120 outputConfiguration: ModelOutputConfiguration;
1121 /**
1122 * The model endpoint’s status in Amazon Fraud Detector.
1123 */
1124 modelEndpointStatus: ModelEndpointStatus;
1125 }
1126 export interface PutExternalModelResult {
1127 }
1128 export interface PutModelRequest {
1129 /**
1130 * The model ID.
1131 */
1132 modelId: identifier;
1133 /**
1134 * The model type.
1135 */
1136 modelType: ModelTypeEnum;
1137 /**
1138 * The model description.
1139 */
1140 description?: description;
1141 /**
1142 * The training data source location in Amazon S3.
1143 */
1144 trainingDataSource: TrainingDataSource;
1145 /**
1146 * The model input variables.
1147 */
1148 modelVariables: ModelVariablesList;
1149 /**
1150 * The label schema.
1151 */
1152 labelSchema: LabelSchema;
1153 }
1154 export interface PutModelResult {
1155 }
1156 export interface PutOutcomeRequest {
1157 /**
1158 * The name of the outcome.
1159 */
1160 name: identifier;
1161 /**
1162 * The outcome description.
1163 */
1164 description?: description;
1165 }
1166 export interface PutOutcomeResult {
1167 }
1168 export interface Role {
1169 /**
1170 * The role ARN.
1171 */
1172 arn: string;
1173 /**
1174 * The role name.
1175 */
1176 name: string;
1177 }
1178 export interface Rule {
1179 /**
1180 * The detector for which the rule is associated.
1181 */
1182 detectorId: identifier;
1183 /**
1184 * The rule ID.
1185 */
1186 ruleId: identifier;
1187 /**
1188 * The rule version.
1189 */
1190 ruleVersion: nonEmptyString;
1191 }
1192 export interface RuleDetail {
1193 /**
1194 * The rule ID.
1195 */
1196 ruleId?: identifier;
1197 /**
1198 * The rule description.
1199 */
1200 description?: description;
1201 /**
1202 * The detector for which the rule is associated.
1203 */
1204 detectorId?: identifier;
1205 /**
1206 * The rule version.
1207 */
1208 ruleVersion?: nonEmptyString;
1209 /**
1210 * The rule expression.
1211 */
1212 expression?: ruleExpression;
1213 /**
1214 * The rule language.
1215 */
1216 language?: Language;
1217 /**
1218 * The rule outcomes.
1219 */
1220 outcomes?: NonEmptyListOfStrings;
1221 /**
1222 * Timestamp of the last time the rule was updated.
1223 */
1224 lastUpdatedTime?: time;
1225 /**
1226 * The timestamp of when the rule was created.
1227 */
1228 createdTime?: time;
1229 }
1230 export type RuleDetailList = RuleDetail[];
1231 export type RuleList = Rule[];
1232 export type RulesMaxResults = number;
1233 export interface TrainingDataSource {
1234 /**
1235 * The data location of the training data source.
1236 */
1237 dataLocation: s3BucketLocation;
1238 /**
1239 * The data access role ARN for the training data source.
1240 */
1241 dataAccessRoleArn: iamRoleArn;
1242 }
1243 export interface UpdateDetectorVersionMetadataRequest {
1244 /**
1245 * The detector ID.
1246 */
1247 detectorId: identifier;
1248 /**
1249 * The detector version ID.
1250 */
1251 detectorVersionId: nonEmptyString;
1252 /**
1253 * The description.
1254 */
1255 description: description;
1256 }
1257 export interface UpdateDetectorVersionMetadataResult {
1258 }
1259 export interface UpdateDetectorVersionRequest {
1260 /**
1261 * The parent detector ID for the detector version you want to update.
1262 */
1263 detectorId: identifier;
1264 /**
1265 * The detector version ID.
1266 */
1267 detectorVersionId: nonEmptyString;
1268 /**
1269 * The Amazon SageMaker model endpoints to include in the detector version.
1270 */
1271 externalModelEndpoints: ListOfStrings;
1272 /**
1273 * The rules to include in the detector version.
1274 */
1275 rules: RuleList;
1276 /**
1277 * The detector version description.
1278 */
1279 description?: description;
1280 /**
1281 * The model versions to include in the detector version.
1282 */
1283 modelVersions?: ListOfModelVersions;
1284 }
1285 export interface UpdateDetectorVersionResult {
1286 }
1287 export interface UpdateDetectorVersionStatusRequest {
1288 /**
1289 * The detector ID.
1290 */
1291 detectorId: identifier;
1292 /**
1293 * The detector version ID.
1294 */
1295 detectorVersionId: nonEmptyString;
1296 /**
1297 * The new status.
1298 */
1299 status: DetectorVersionStatus;
1300 }
1301 export interface UpdateDetectorVersionStatusResult {
1302 }
1303 export interface UpdateModelVersionRequest {
1304 /**
1305 * The model ID.
1306 */
1307 modelId: identifier;
1308 /**
1309 * The model type.
1310 */
1311 modelType: ModelTypeEnum;
1312 /**
1313 * The model version.
1314 */
1315 modelVersionNumber: nonEmptyString;
1316 /**
1317 * The model description.
1318 */
1319 description: description;
1320 /**
1321 * The new model status.
1322 */
1323 status: ModelVersionStatus;
1324 }
1325 export interface UpdateModelVersionResult {
1326 }
1327 export interface UpdateRuleMetadataRequest {
1328 /**
1329 * The rule to update.
1330 */
1331 rule: Rule;
1332 /**
1333 * The rule description.
1334 */
1335 description: description;
1336 }
1337 export interface UpdateRuleMetadataResult {
1338 }
1339 export interface UpdateRuleVersionRequest {
1340 /**
1341 * The rule to update.
1342 */
1343 rule: Rule;
1344 /**
1345 * The description.
1346 */
1347 description?: description;
1348 /**
1349 * The rule expression.
1350 */
1351 expression: ruleExpression;
1352 /**
1353 * The language.
1354 */
1355 language: Language;
1356 /**
1357 * The outcomes.
1358 */
1359 outcomes: NonEmptyListOfStrings;
1360 }
1361 export interface UpdateRuleVersionResult {
1362 /**
1363 * The new rule version that was created.
1364 */
1365 rule?: Rule;
1366 }
1367 export interface UpdateVariableRequest {
1368 /**
1369 * The name of the variable.
1370 */
1371 name: string;
1372 /**
1373 * The new default value of the variable.
1374 */
1375 defaultValue?: string;
1376 /**
1377 * The new description.
1378 */
1379 description?: string;
1380 /**
1381 * The variable type.
1382 */
1383 variableType?: string;
1384 }
1385 export interface UpdateVariableResult {
1386 }
1387 export interface Variable {
1388 /**
1389 * The name of the variable.
1390 */
1391 name?: string;
1392 /**
1393 * The data type of the variable.
1394 */
1395 dataType?: DataType;
1396 /**
1397 * The data source of the variable.
1398 */
1399 dataSource?: DataSource;
1400 /**
1401 * The default value of the variable.
1402 */
1403 defaultValue?: string;
1404 /**
1405 * The description of the variable.
1406 */
1407 description?: string;
1408 /**
1409 * The variable type of the variable.
1410 */
1411 variableType?: string;
1412 /**
1413 * The time when variable was last updated.
1414 */
1415 lastUpdatedTime?: time;
1416 /**
1417 * The time when the variable was created.
1418 */
1419 createdTime?: time;
1420 }
1421 export interface VariableEntry {
1422 /**
1423 * The name of the variable entry.
1424 */
1425 name?: string;
1426 /**
1427 * The data type of the variable entry.
1428 */
1429 dataType?: string;
1430 /**
1431 * The data source of the variable entry.
1432 */
1433 dataSource?: string;
1434 /**
1435 * The default value of the variable entry.
1436 */
1437 defaultValue?: string;
1438 /**
1439 * The description of the variable entry.
1440 */
1441 description?: string;
1442 /**
1443 * The type of the variable entry.
1444 */
1445 variableType?: string;
1446 }
1447 export type VariableEntryList = VariableEntry[];
1448 export type VariableList = Variable[];
1449 export type VariablesMaxResults = number;
1450 export type attributeKey = string;
1451 export type attributeValue = string;
1452 export type blob = Buffer|Uint8Array|Blob|string;
1453 export type contentType = string;
1454 export type description = string;
1455 export type float = number;
1456 export type iamRoleArn = string;
1457 export type identifier = string;
1458 export type integer = number;
1459 export type nonEmptyString = string;
1460 export type ruleExpression = string;
1461 export type s3BucketLocation = string;
1462 export type time = string;
1463 /**
1464 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1465 */
1466 export type apiVersion = "2019-11-15"|"latest"|string;
1467 export interface ClientApiVersions {
1468 /**
1469 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1470 */
1471 apiVersion?: apiVersion;
1472 }
1473 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1474 /**
1475 * Contains interfaces for use with the FraudDetector client.
1476 */
1477 export import Types = FraudDetector;
1478}
1479export = FraudDetector;