Module Values.TransactWriteItemsOutputSource

TransactWriteItems is a synchronous write operation that groups up to 100 action requests. These actions can target items in different tables, but not in different Amazon Web Services accounts or Regions, and no two actions can target the same item. For example, you cannot both ConditionCheck and Update the same item. The aggregate size of the items in the transaction cannot exceed 4 MB. The actions are completed atomically so that either all of them succeed, or all of them fail. They are defined by the following objects: Put  —   Initiates a PutItem operation to write a new item. This structure specifies the primary key of the item to be written, the name of the table to write it in, an optional condition expression that must be satisfied for the write to succeed, a list of the item's attributes, and a field indicating whether to retrieve the item's attributes if the condition is not met. Update  —   Initiates an UpdateItem operation to update an existing item. This structure specifies the primary key of the item to be updated, the name of the table where it resides, an optional condition expression that must be satisfied for the update to succeed, an expression that defines one or more attributes to be updated, and a field indicating whether to retrieve the item's attributes if the condition is not met. Delete  —   Initiates a DeleteItem operation to delete an existing item. This structure specifies the primary key of the item to be deleted, the name of the table where it resides, an optional condition expression that must be satisfied for the deletion to succeed, and a field indicating whether to retrieve the item's attributes if the condition is not met. ConditionCheck  —   Applies a condition to an item that is not being modified by the transaction. This structure specifies the primary key of the item to be checked, the name of the table where it resides, a condition expression that must be satisfied for the transaction to succeed, and a field indicating whether to retrieve the item's attributes if the condition is not met. DynamoDB rejects the entire TransactWriteItems request if any of the following is true: A condition in one of the condition expressions is not met. An ongoing operation is in the process of updating the same item. There is insufficient provisioned capacity for the transaction to be completed. An item size becomes too large (bigger than 400 KB), a local secondary index (LSI) becomes too large, or a similar validation error occurs because of changes made by the transaction. The aggregate size of the items in the transaction exceeds 4 MB. There is a user error, such as an invalid data format.

Sourcetype nonrec t = {
  1. consumedCapacity : ConsumedCapacityMultiple.t option;
    (*

    The capacity units consumed by the entire TransactWriteItems operation. The values of the list are ordered according to the ordering of the TransactItems request parameter.

    *)
  2. itemCollectionMetrics : ItemCollectionMetricsPerTable.t option;
    (*

    A list of tables that were processed by TransactWriteItems and, for each table, information about any item collections that were affected by individual UpdateItem, PutItem, or DeleteItem operations.

    *)
}
Sourcetype nonrec error = [
  1. | `IdempotentParameterMismatchException of IdempotentParameterMismatchException.t
  2. | `InternalServerError of InternalServerError.t
  3. | `ProvisionedThroughputExceededException of ProvisionedThroughputExceededException.t
  4. | `RequestLimitExceeded of RequestLimitExceeded.t
  5. | `ResourceNotFoundException of ResourceNotFoundException.t
  6. | `ThrottlingException of ThrottlingException.t
  7. | `TransactionCanceledException of TransactionCanceledException.t
  8. | `TransactionInProgressException of TransactionInProgressException.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?consumedCapacity:??? -> ?itemCollectionMetrics:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `IdempotentParameterMismatchException of IdempotentParameterMismatchException.t | `InternalServerError of InternalServerError.t | `ProvisionedThroughputExceededException of ProvisionedThroughputExceededException.t | `RequestLimitExceeded of RequestLimitExceeded.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `TransactionCanceledException of TransactionCanceledException.t | `TransactionInProgressException of TransactionInProgressException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `IdempotentParameterMismatchException of IdempotentParameterMismatchException.t | `InternalServerError of InternalServerError.t | `ProvisionedThroughputExceededException of ProvisionedThroughputExceededException.t | `RequestLimitExceeded of RequestLimitExceeded.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `TransactionCanceledException of TransactionCanceledException.t | `TransactionInProgressException of TransactionInProgressException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Double of ConsumedCapacityUnits.t | `Map of ([> `String of IndexName.t ] * [> `Structure of (string * [> `Double of ConsumedCapacityUnits.t ]) list ]) list | `String of TableArn.t | `Structure of (string * [> `Double of ConsumedCapacityUnits.t ]) list ]) list ] list | `Map of ([> `String of TableArn.t ] * [> `List of [> `Structure of (string * [> `List of [> `Double of ItemCollectionSizeEstimateBound.t ] list | `Map of ([> `String of AttributeName.t ] * Awso.Botodata.value) list ]) list ] list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t