Class: Aws::FraudDetector::Types::LabelSchema

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/types.rb

Overview

Note:

When making an API call, you may pass LabelSchema data as a hash:

{
  label_key: "string", # required
  label_mapper: { # required
    "string" => ["string"],
  },
}

The label schema.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#label_keyString

The label key.

Returns:

  • (String)


1341
1342
1343
1344
1345
1346
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/types.rb', line 1341

class LabelSchema < Struct.new(
  :label_key,
  :label_mapper)
  SENSITIVE = []
  include Aws::Structure
end

#label_mapperHash<String,Array<String>>

The label mapper maps the Amazon Fraud Detector supported label to the appropriate source 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 variants for a single Amazon Fraud Detector label.

Returns:

  • (Hash<String,Array<String>>)


1341
1342
1343
1344
1345
1346
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/types.rb', line 1341

class LabelSchema < Struct.new(
  :label_key,
  :label_mapper)
  SENSITIVE = []
  include Aws::Structure
end