@Stability(value=Stable) public static final class CfnVariable.Builder extends Object implements software.amazon.jsii.Builder<CfnVariable>
CfnVariable.| Modifier and Type | Method and Description |
|---|---|
CfnVariable |
build() |
static CfnVariable.Builder |
create(software.constructs.Construct scope,
String id) |
CfnVariable.Builder |
dataSource(String dataSource)
The data source of the variable.
|
CfnVariable.Builder |
dataType(String dataType)
The data type of the variable.
|
CfnVariable.Builder |
defaultValue(String defaultValue)
The default value of the variable.
|
CfnVariable.Builder |
description(String description)
The description of the variable.
|
CfnVariable.Builder |
name(String name)
The name of the variable.
|
CfnVariable.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs to apply to this resource.
|
CfnVariable.Builder |
variableType(String variableType)
The type of the variable.
|
@Stability(value=Stable) public static CfnVariable.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnVariable.Builder.@Stability(value=Stable) public CfnVariable.Builder dataSource(String dataSource)
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.
dataSource - The data source of the variable. This parameter is required.this@Stability(value=Stable) public CfnVariable.Builder dataType(String dataType)
Valid data types: STRING | INTEGER | BOOLEAN | FLOAT
dataType - The data type of the variable. This parameter is required.this@Stability(value=Stable) public CfnVariable.Builder defaultValue(String defaultValue)
defaultValue - The default value of the variable. This parameter is required.this@Stability(value=Stable) public CfnVariable.Builder name(String name)
Pattern: ^[0-9a-z_-]+$
name - The name of the variable. This parameter is required.this@Stability(value=Stable) public CfnVariable.Builder description(String description)
description - The description of the variable. This parameter is required.this@Stability(value=Stable) public CfnVariable.Builder tags(List<? extends CfnTag> tags)
For more information, see Tag .
tags - An array of key-value pairs to apply to this resource. This parameter is required.this@Stability(value=Stable) public CfnVariable.Builder variableType(String variableType)
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
variableType - 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) . This parameter is required.this@Stability(value=Stable) public CfnVariable build()
build in interface software.amazon.jsii.Builder<CfnVariable>Copyright © 2022. All rights reserved.