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 |
Synopsis
- data Put = Put' {}
- newPut :: Text -> Put
- put_expressionAttributeNames :: Lens' Put (Maybe (HashMap Text Text))
- put_expressionAttributeValues :: Lens' Put (Maybe (HashMap Text AttributeValue))
- put_returnValuesOnConditionCheckFailure :: Lens' Put (Maybe ReturnValuesOnConditionCheckFailure)
- put_conditionExpression :: Lens' Put (Maybe Text)
- put_item :: Lens' Put (HashMap Text AttributeValue)
- put_tableName :: Lens' Put Text
Documentation
Represents a request to perform a PutItem
operation.
See: newPut
smart constructor.
Put' | |
|
Instances
Create a value of Put
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:Put'
, put_expressionAttributeNames
- One or more substitution tokens for attribute names in an expression.
$sel:expressionAttributeValues:Put'
, put_expressionAttributeValues
- One or more values that can be substituted in an expression.
$sel:returnValuesOnConditionCheckFailure:Put'
, put_returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if
the Put
condition fails. For ReturnValuesOnConditionCheckFailure
,
the valid values are: NONE and ALL_OLD.
$sel:conditionExpression:Put'
, put_conditionExpression
- A condition that must be satisfied in order for a conditional update to
succeed.
$sel:item:Put'
, put_item
- A map of attribute name to attribute values, representing the primary
key of the item to be written by PutItem
. All of the table's primary
key attributes must be specified, and their data types must match those
of the table's key schema. If any attributes are present in the item
that are part of an index key schema for the table, their types must
match the index key schema.
$sel:tableName:Put'
, put_tableName
- Name of the table in which to write the item.
put_expressionAttributeNames :: Lens' Put (Maybe (HashMap Text Text)) Source #
One or more substitution tokens for attribute names in an expression.
put_expressionAttributeValues :: Lens' Put (Maybe (HashMap Text AttributeValue)) Source #
One or more values that can be substituted in an expression.
put_returnValuesOnConditionCheckFailure :: Lens' Put (Maybe ReturnValuesOnConditionCheckFailure) Source #
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if
the Put
condition fails. For ReturnValuesOnConditionCheckFailure
,
the valid values are: NONE and ALL_OLD.
put_conditionExpression :: Lens' Put (Maybe Text) Source #
A condition that must be satisfied in order for a conditional update to succeed.
put_item :: Lens' Put (HashMap Text AttributeValue) Source #
A map of attribute name to attribute values, representing the primary
key of the item to be written by PutItem
. All of the table's primary
key attributes must be specified, and their data types must match those
of the table's key schema. If any attributes are present in the item
that are part of an index key schema for the table, their types must
match the index key schema.