# AWS::FraudDetector::Variable A resource schema for a Variable in Amazon Fraud Detector. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::FraudDetector::Variable", "Properties" : { "Name" : String, "DataSource" : String, "DataType" : String, "DefaultValue" : String, "Description" : String, "Tags" : [ Tag, ... ], "VariableType" : String, } }### YAML
Type: AWS::FraudDetector::Variable Properties: Name: String DataSource: String DataType: String DefaultValue: String Description: String Tags: - Tag VariableType: String## Properties #### Name The name of the variable. _Required_: Yes _Type_: String _Pattern_:
^[a-z_][a-z0-9_]{0,99}?$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### DataSource
The source of the data.
_Required_: Yes
_Type_: String
_Allowed Values_: EVENT
| EXTERNAL_MODEL_SCORE
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### DataType
The data type.
_Required_: Yes
_Type_: String
_Allowed Values_: STRING
| INTEGER
| FLOAT
| BOOLEAN
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### DefaultValue
The default value for the variable when no value is received.
_Required_: Yes
_Type_: String
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Description
The description.
_Required_: No
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 256
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Tags
Tags associated with this variable.
_Required_: No
_Type_: List of Tag
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### VariableType
The variable type. For more information see https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types
_Required_: No
_Type_: String
_Allowed 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
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Arn.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### Arn
The ARN of the variable.
#### CreatedTime
The time when the variable was created.
#### LastUpdatedTime
The time when the variable was last updated.