amazonka-frauddetector-2.0: Amazon Fraud Detector SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.FraudDetector.Types.LabelSchema

Description

 
Synopsis

Documentation

data LabelSchema Source #

The label schema.

See: newLabelSchema smart constructor.

Constructors

LabelSchema' 

Fields

  • labelMapper :: Maybe (HashMap Text [Text])

    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.

  • unlabeledEventsTreatment :: Maybe UnlabeledEventsTreatment

    The action to take for unlabeled events.

Instances

Instances details
FromJSON LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

ToJSON LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Generic LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Associated Types

type Rep LabelSchema :: Type -> Type #

Read LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Show LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

NFData LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Methods

rnf :: LabelSchema -> () #

Eq LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Hashable LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

type Rep LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

type Rep LabelSchema = D1 ('MetaData "LabelSchema" "Amazonka.FraudDetector.Types.LabelSchema" "amazonka-frauddetector-2.0-CdXFXtLV8DgKo4Kta7Jw61" 'False) (C1 ('MetaCons "LabelSchema'" 'PrefixI 'True) (S1 ('MetaSel ('Just "labelMapper") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text [Text]))) :*: S1 ('MetaSel ('Just "unlabeledEventsTreatment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UnlabeledEventsTreatment))))

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.