Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
data LabelSchema Source #
The label schema.
See: newLabelSchema
smart constructor.
LabelSchema' | |
|
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:unlabeledEventsTreatment:LabelSchema'
, labelSchema_unlabeledEventsTreatment
- The action to take for unlabeled events.
$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.
labelSchema_unlabeledEventsTreatment :: Lens' LabelSchema (Maybe UnlabeledEventsTreatment) Source #
The action to take for unlabeled events.
labelSchema_labelMapper :: Lens' LabelSchema (HashMap Text (NonEmpty 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.