| 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.DynamoDB.Types.ConditionCheck
Description
Synopsis
- data ConditionCheck = ConditionCheck' {}
- newConditionCheck :: Text -> Text -> ConditionCheck
- conditionCheck_expressionAttributeNames :: Lens' ConditionCheck (Maybe (HashMap Text Text))
- conditionCheck_expressionAttributeValues :: Lens' ConditionCheck (Maybe (HashMap Text AttributeValue))
- conditionCheck_returnValuesOnConditionCheckFailure :: Lens' ConditionCheck (Maybe ReturnValuesOnConditionCheckFailure)
- conditionCheck_key :: Lens' ConditionCheck (HashMap Text AttributeValue)
- conditionCheck_tableName :: Lens' ConditionCheck Text
- conditionCheck_conditionExpression :: Lens' ConditionCheck Text
Documentation
data ConditionCheck Source #
Represents a request to perform a check that an item exists or to check the condition of specific attributes of the item.
See: newConditionCheck smart constructor.
Constructors
| ConditionCheck' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ConditionCheck |
Create a value of ConditionCheck 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:expressionAttributeNames:ConditionCheck', conditionCheck_expressionAttributeNames - One or more substitution tokens for attribute names in an expression.
$sel:expressionAttributeValues:ConditionCheck', conditionCheck_expressionAttributeValues - One or more values that can be substituted in an expression.
$sel:returnValuesOnConditionCheckFailure:ConditionCheck', conditionCheck_returnValuesOnConditionCheckFailure - Use ReturnValuesOnConditionCheckFailure to get the item attributes if
the ConditionCheck condition fails. For
ReturnValuesOnConditionCheckFailure, the valid values are: NONE and
ALL_OLD.
$sel:key:ConditionCheck', conditionCheck_key - The primary key of the item to be checked. Each element consists of an
attribute name and a value for that attribute.
$sel:tableName:ConditionCheck', conditionCheck_tableName - Name of the table for the check item request.
$sel:conditionExpression:ConditionCheck', conditionCheck_conditionExpression - A condition that must be satisfied in order for a conditional update to
succeed.
conditionCheck_expressionAttributeNames :: Lens' ConditionCheck (Maybe (HashMap Text Text)) Source #
One or more substitution tokens for attribute names in an expression.
conditionCheck_expressionAttributeValues :: Lens' ConditionCheck (Maybe (HashMap Text AttributeValue)) Source #
One or more values that can be substituted in an expression.
conditionCheck_returnValuesOnConditionCheckFailure :: Lens' ConditionCheck (Maybe ReturnValuesOnConditionCheckFailure) Source #
Use ReturnValuesOnConditionCheckFailure to get the item attributes if
the ConditionCheck condition fails. For
ReturnValuesOnConditionCheckFailure, the valid values are: NONE and
ALL_OLD.
conditionCheck_key :: Lens' ConditionCheck (HashMap Text AttributeValue) Source #
The primary key of the item to be checked. Each element consists of an attribute name and a value for that attribute.
conditionCheck_tableName :: Lens' ConditionCheck Text Source #
Name of the table for the check item request.
conditionCheck_conditionExpression :: Lens' ConditionCheck Text Source #
A condition that must be satisfied in order for a conditional update to succeed.