Class CfnVariable
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::FraudDetector::Variable.
Manages a variable.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.frauddetector.*;
CfnVariable cfnVariable = CfnVariable.Builder.create(this, "MyCfnVariable")
.dataSource("dataSource")
.dataType("dataType")
.defaultValue("defaultValue")
.name("name")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.variableType("variableType")
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnVariable(Construct scope, String id, CfnVariableProps props) Create a newAWS::FraudDetector::Variable.protectedCfnVariable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVariable(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the variable.Timestamp of when variable was created.Timestamp of when variable was last updated.The data source of the variable.The data type of the variable.The default value of the variable.The description of the variable.getName()The name of the variable.getTags()An array of key-value pairs to apply to this resource.The type of the variable.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDataSource(String value) The data source of the variable.voidsetDataType(String value) The data type of the variable.voidsetDefaultValue(String value) The default value of the variable.voidsetDescription(String value) The description of the variable.voidThe name of the variable.voidsetVariableType(String value) The type of the variable.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVariable
protected CfnVariable(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVariable
protected CfnVariable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVariable
@Stability(Stable) public CfnVariable(@NotNull Construct scope, @NotNull String id, @NotNull CfnVariableProps props) Create a newAWS::FraudDetector::Variable.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the variable. -
getAttrCreatedTime
Timestamp of when variable was created. -
getAttrLastUpdatedTime
Timestamp of when variable was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getDataSource
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. -
setDataSource
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. -
getDataType
The data type of the variable.Valid data types:
STRING | INTEGER | BOOLEAN | FLOAT -
setDataType
The data type of the variable.Valid data types:
STRING | INTEGER | BOOLEAN | FLOAT -
getDefaultValue
The default value of the variable. -
setDefaultValue
The default value of the variable. -
getName
The name of the variable.Pattern:
^[0-9a-z_-]+$ -
setName
The name of the variable.Pattern:
^[0-9a-z_-]+$ -
getDescription
The description of the variable. -
setDescription
The description of the variable. -
getVariableType
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 -
setVariableType
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
-