Skip to content

EventType

Source: src/AWS/FraudDetector/EventType.ts

An Amazon Fraud Detector event type — the schema of an event (its variables, labels, and entity types) that detectors evaluate. Event types are cheap metadata objects.

const purchase = yield* FraudDetector.EventType("purchase", {
eventVariables: ["email", "ip"],
entityTypes: ["customer"],
labels: ["fraud", "legit"],
});