aws-cdk-lib.aws_frauddetector.CfnVariableProps

interface CfnVariableProps

LanguageType name
.NETAmazon.CDK.AWS.FraudDetector.CfnVariableProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsfrauddetector#CfnVariableProps
Javasoftware.amazon.awscdk.services.frauddetector.CfnVariableProps
Pythonaws_cdk.aws_frauddetector.CfnVariableProps
TypeScript aws-cdk-lib » aws_frauddetector » CfnVariableProps

Properties for defining a CfnVariable.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_frauddetector as frauddetector } from 'aws-cdk-lib';
const cfnVariableProps: frauddetector.CfnVariableProps = {
  dataSource: 'dataSource',
  dataType: 'dataType',
  defaultValue: 'defaultValue',
  name: 'name',

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  variableType: 'variableType',
};

Properties

NameTypeDescription
dataSourcestringThe data source of the variable.
dataTypestringThe data type of the variable.
defaultValuestringThe default value of the variable.
namestringThe name of the variable.
description?stringThe description of the variable.
tags?CfnTag[]An array of key-value pairs to apply to this resource.
variableType?stringThe type of the variable. For more information see Variable types .

dataSource

Type: 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.


dataType

Type: string

The data type of the variable.

Valid data types: STRING | INTEGER | BOOLEAN | FLOAT


defaultValue

Type: string

The default value of the variable.


name

Type: string

The name of the variable.

Pattern: ^[0-9a-z_-]+$


description?

Type: string (optional)

The description of the variable.


tags?

Type: CfnTag[] (optional)

An array of key-value pairs to apply to this resource.

For more information, see Tag .


variableType?

Type: string (optional)

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 | USERAGENT