Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a variable.
Synopsis
- data CreateVariable = CreateVariable' {
- variableType :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- dataType :: DataType
- dataSource :: DataSource
- defaultValue :: Text
- newCreateVariable :: Text -> DataType -> DataSource -> Text -> CreateVariable
- createVariable_variableType :: Lens' CreateVariable (Maybe Text)
- createVariable_description :: Lens' CreateVariable (Maybe Text)
- createVariable_tags :: Lens' CreateVariable (Maybe [Tag])
- 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.
CreateVariable' | |
|
Instances
:: 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:
$sel:variableType: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
$sel:description:CreateVariable'
, createVariable_description
- The description.
$sel:tags:CreateVariable'
, createVariable_tags
- A collection of key and value pairs.
$sel:name:CreateVariable'
, createVariable_name
- The name of the variable.
$sel:dataType:CreateVariable'
, createVariable_dataType
- The data type.
$sel:dataSource:CreateVariable'
, createVariable_dataSource
- The source of the data.
$sel:defaultValue:CreateVariable'
, createVariable_defaultValue
- The default value for the variable when no value is received.
Request Lenses
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_description :: Lens' CreateVariable (Maybe Text) Source #
The description.
createVariable_tags :: Lens' CreateVariable (Maybe [Tag]) Source #
A collection of key and value pairs.
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.
CreateVariableResponse' | |
|
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.