| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.FraudDetector.Types.LabelSchema
Description
Synopsis
Documentation
data LabelSchema Source #
The label schema.
See: newLabelSchema smart constructor.
Constructors
| LabelSchema' | |
Fields
| |
Instances
newLabelSchema :: LabelSchema Source #
Create a value of LabelSchema with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:labelMapper:LabelSchema', labelSchema_labelMapper - The label mapper maps the Amazon Fraud Detector supported model
classification labels (FRAUD, LEGIT) to the appropriate event type
labels. For example, if "FRAUD" and "LEGIT" are Amazon Fraud
Detector supported labels, this mapper could be:
{"FRAUD" => ["0"], "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]} or
{"FRAUD" => ["fraud", "abuse"],
"LEGIT" => ["legit", "safe"]}. The value part of the mapper is a
list, because you may have multiple label variants from your event type
for a single Amazon Fraud Detector label.
$sel:unlabeledEventsTreatment:LabelSchema', labelSchema_unlabeledEventsTreatment - The action to take for unlabeled events.
labelSchema_labelMapper :: Lens' LabelSchema (Maybe (HashMap Text [Text])) Source #
The label mapper maps the Amazon Fraud Detector supported model
classification labels (FRAUD, LEGIT) to the appropriate event type
labels. For example, if "FRAUD" and "LEGIT" are Amazon Fraud
Detector supported labels, this mapper could be:
{"FRAUD" => ["0"], "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]} or
{"FRAUD" => ["fraud", "abuse"],
"LEGIT" => ["legit", "safe"]}. The value part of the mapper is a
list, because you may have multiple label variants from your event type
for a single Amazon Fraud Detector label.
labelSchema_unlabeledEventsTreatment :: Lens' LabelSchema (Maybe UnlabeledEventsTreatment) Source #
The action to take for unlabeled events.