AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::FraudDetector::Variable

CfnVariable

Manages a variable.

Import

import { CfnVariable } from 'aws-cdk-lib/aws-frauddetector';

Or use the module namespace:

import * as frauddetector from 'aws-cdk-lib/aws-frauddetector';
// frauddetector.CfnVariable

Properties

Configuration passed to the constructor as CfnVariableProps.

dataSourceRequired
string

The data source of the variable. Valid values: `EVENT | EXTERNAL_MODEL_SCORE` When defining a variable within a detector, you can only use the `EVENT` value for DataSource when the *Inline* property is set to true. If the *Inline* property is set false, you can use either `EVENT` or `MODEL_SCORE` for DataSource.

dataTypeRequired
string

The data type of the variable. Valid data types: `STRING | INTEGER | BOOLEAN | FLOAT`

defaultValueRequired
string

The default value of the variable.

nameRequired
string

The name of the variable. Pattern: `^[0-9a-z_-]+$`

descriptionOptional
string

The description of the variable.

tagsOptional
CfnTag[]

An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .

variableTypeOptional
string

The type of the variable. For more information see [Variable types](https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#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`

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-frauddetector
CFN TypeAWS::FraudDetector::Variable
Properties7

External Links