Class CfnVariablePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVariablePropsMixin>
- Enclosing class:
CfnVariablePropsMixin
CfnVariablePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) dataSource(String dataSource) The data source of the variable.The data type of the variable.defaultValue(String defaultValue) The default value of the variable.description(String description) The description of the variable.The name of the variable.An array of key-value pairs to apply to this resource.variableType(String variableType) The type of the variable.
-
Method Details
-
create
@Stability(Stable) public static CfnVariablePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnVariablePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnVariablePropsMixin.Builder.
-
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.- Parameters:
dataSource- The data source of the variable. This parameter is required.- Returns:
this- See Also:
-
dataType
The data type of the variable.Valid data types:
STRING | INTEGER | BOOLEAN | FLOAT- Parameters:
dataType- The data type of the variable. This parameter is required.- Returns:
this- See Also:
-
defaultValue
The default value of the variable.- Parameters:
defaultValue- The default value of the variable. This parameter is required.- Returns:
this- See Also:
-
description
The description of the variable.- Parameters:
description- The description of the variable. This parameter is required.- Returns:
this- See Also:
-
name
The name of the variable.Pattern:
^[0-9a-z_-]+$- Parameters:
name- The name of the variable. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
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 | USERAGENT- Parameters:
variableType- The type of the variable. For more information see Variable types . This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVariablePropsMixin>- Returns:
- a newly built instance of
CfnVariablePropsMixin.
-