You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::FraudDetector::Types::CreateVariableRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateVariableRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "string", # required
  data_type: "STRING", # required, accepts STRING, INTEGER, FLOAT, BOOLEAN
  data_source: "EVENT", # required, accepts EVENT, MODEL_SCORE, EXTERNAL_MODEL_SCORE
  default_value: "string", # required
  description: "string",
  variable_type: "string",
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#data_sourceString

The source of the data.

Possible values:

  • EVENT
  • MODEL_SCORE
  • EXTERNAL_MODEL_SCORE

Returns:

  • (String)

    The source of the data.

#data_typeString

The data type.

Possible values:

  • STRING
  • INTEGER
  • FLOAT
  • BOOLEAN

Returns:

  • (String)

    The data type.

#default_valueString

The default value for the variable when no value is received.

Returns:

  • (String)

    The default value for the variable when no value is received.

#descriptionString

The description.

Returns:

  • (String)

    The description.

#nameString

The name of the variable.

Returns:

  • (String)

    The name of the variable.

#tagsArray<Types::Tag>

A collection of key and value pairs.

Returns:

  • (Array<Types::Tag>)

    A collection of key and value pairs.

#variable_typeString

The variable type. For more information see Variable types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT

Returns:

  • (String)

    The variable type.