libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.FraudDetector.Types.LabelSchema

Description

 
Synopsis

Documentation

data LabelSchema Source #

The label schema.

See: newLabelSchema smart constructor.

Constructors

LabelSchema' 

Fields

  • unlabeledEventsTreatment :: Maybe UnlabeledEventsTreatment

    The action to take for unlabeled events.

  • labelMapper :: HashMap Text (NonEmpty 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.

Instances

Instances details
Eq LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Read LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Show 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 #

NFData LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

Methods

rnf :: LabelSchema -> () #

Hashable LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

ToJSON LabelSchema Source # 
Instance details

Defined in Amazonka.FraudDetector.Types.LabelSchema

FromJSON 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" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "LabelSchema'" 'PrefixI 'True) (S1 ('MetaSel ('Just "unlabeledEventsTreatment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UnlabeledEventsTreatment)) :*: S1 ('MetaSel ('Just "labelMapper") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text (NonEmpty Text)))))

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_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.