Smaws_Client_DynamoDB.UpdateItem
val request :
Smaws_Lib.Context.t ->
update_item_input ->
(update_item_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConditionalCheckFailedException of conditional_check_failed_exception
| `InternalServerError of internal_server_error
| `InvalidEndpointException of invalid_endpoint_exception
| `ItemCollectionSizeLimitExceededException of
item_collection_size_limit_exceeded_exception
| `ProvisionedThroughputExceededException of
provisioned_throughput_exceeded_exception
| `RequestLimitExceeded of request_limit_exceeded
| `ResourceNotFoundException of resource_not_found_exception
| `TransactionConflictException of transaction_conflict_exception ])
Stdlib.result
Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).
You can also return the item's attribute values in the same UpdateItem
operation using the ReturnValues
parameter.