AWS::FraudDetector::Variable
Manages a variable.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::FraudDetector::Variable", "Properties" : { "DataSource" :String, "DataType" :String, "DefaultValue" :String, "Description" :String, "Name" :String, "Tags" :[ Tag, ... ], "VariableType" :String} }
YAML
Type: AWS::FraudDetector::Variable Properties: DataSource:StringDataType:StringDefaultValue:StringDescription:StringName:StringTags:- TagVariableType:String
Properties
DataSource-
The data source of the variable.
Valid values:
EVENT | EXTERNAL_MODEL_SCOREWhen defining a variable within a detector, you can only use the
EVENTvalue for DataSource when the Inline property is set to true. If the Inline property is set false, you can use eitherEVENTorMODEL_SCOREfor DataSource.Required: Yes
Type: String
Update requires: No interruption
DataType-
The data type of the variable.
Valid data types:
STRING | INTEGER | BOOLEAN | FLOATRequired: Yes
Type: String
Update requires: No interruption
DefaultValue-
The default value of the variable.
Required: Yes
Type: String
Update requires: No interruption
Description-
The description of the variable.
Required: No
Type: String
Update requires: No interruption
Name-
The name of the variable.
Pattern:
^[0-9a-z_-]+$Required: Yes
Type: String
Update requires: Replacement
Tags-
An array of key-value pairs to apply to this resource.
For more information, see Tag.
Required: No
Type: List of Tag
Update requires: No interruption
VariableType-
The type of the variable. 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 | USERAGENTRequired: No
Type: String
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the primary identifier for the resource, which is the ARN.
Example: { "Ref": "arn:aws:frauddetector:us-west-2:123123123123:outcome/outcome_name"}
For more information about using the Reffunction, see Ref.
Fn::GetAtt
The Fn::GetAttintrinsic 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::GetAttintrinsic function, see Fn::GetAtt.
See also
-
CreateVariable in the Amazon Fraud Detector API Reference
-
Create a variable in the Amazon Fraud Detector User Guide