| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.FraudDetector.CreateVariable
Description
Creates a variable.
Synopsis
- data CreateVariable = CreateVariable' {
- description :: Maybe Text
- tags :: Maybe [Tag]
- variableType :: Maybe Text
- name :: Text
- dataType :: DataType
- dataSource :: DataSource
- defaultValue :: Text
- newCreateVariable :: Text -> DataType -> DataSource -> Text -> CreateVariable
- createVariable_description :: Lens' CreateVariable (Maybe Text)
- createVariable_tags :: Lens' CreateVariable (Maybe [Tag])
- createVariable_variableType :: Lens' CreateVariable (Maybe Text)
- createVariable_name :: Lens' CreateVariable Text
- createVariable_dataType :: Lens' CreateVariable DataType
- createVariable_dataSource :: Lens' CreateVariable DataSource
- createVariable_defaultValue :: Lens' CreateVariable Text
- data CreateVariableResponse = CreateVariableResponse' {
- httpStatus :: Int
- newCreateVariableResponse :: Int -> CreateVariableResponse
- createVariableResponse_httpStatus :: Lens' CreateVariableResponse Int
Creating a Request
data CreateVariable Source #
See: newCreateVariable smart constructor.
Constructors
| CreateVariable' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DataType | |
| -> DataSource | |
| -> Text | |
| -> CreateVariable |
Create a value of CreateVariable with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateVariable, createVariable_description - The description.
$sel:tags:CreateVariable', createVariable_tags - A collection of key and value pairs.
CreateVariable, createVariable_variableType - The variable type. 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
CreateVariable, createVariable_name - The name of the variable.
CreateVariable, createVariable_dataType - The data type.
CreateVariable, createVariable_dataSource - The source of the data.
CreateVariable, createVariable_defaultValue - The default value for the variable when no value is received.
Request Lenses
createVariable_description :: Lens' CreateVariable (Maybe Text) Source #
The description.
createVariable_tags :: Lens' CreateVariable (Maybe [Tag]) Source #
A collection of key and value pairs.
createVariable_variableType :: Lens' CreateVariable (Maybe Text) Source #
The variable type. 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
createVariable_name :: Lens' CreateVariable Text Source #
The name of the variable.
createVariable_dataType :: Lens' CreateVariable DataType Source #
The data type.
createVariable_dataSource :: Lens' CreateVariable DataSource Source #
The source of the data.
createVariable_defaultValue :: Lens' CreateVariable Text Source #
The default value for the variable when no value is received.
Destructuring the Response
data CreateVariableResponse Source #
See: newCreateVariableResponse smart constructor.
Constructors
| CreateVariableResponse' | |
Fields
| |
Instances
newCreateVariableResponse Source #
Create a value of CreateVariableResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateVariableResponse', createVariableResponse_httpStatus - The response's http status code.
Response Lenses
createVariableResponse_httpStatus :: Lens' CreateVariableResponse Int Source #
The response's http status code.