class Aws::DynamoDB::Types::TransactWriteItemsInput
@see docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TransactWriteItemsInput AWS API Documentation
@return [String]
not need to pass this option.
**A suitable default value is auto-generated.** You should normally
returns an ‘IdempotentParameterMismatch` exception.
other parameters within the 10-minute idempotency window, DynamoDB
If you submit a request with the same client token but a change in
10 minutes, or the result might not be idempotent.
resubmit the same request with the same client token for more than
with the same client token is treated as a new request. Do not
request that uses it is completed. After 10 minutes, any request
A client request token is valid for 10 minutes after the first
units consumed in reading the item.
calls with the same client token return the number of read capacity
consumed in making the changes. Subsequent `TransactWriteItems`
`TransactWriteItems` call returns the amount of write capacity units
`ReturnConsumedCapacity>` parameter is set, then the initial
responses to the calls might not be the same. If the
token produce the same result on the server (no side effects), the
Although multiple identical calls using the same client request
calls have the same effect as one single call.
`TransactWriteItems` idempotent, meaning that multiple identical
Providing a `ClientRequestToken` makes the call to
@!attribute [rw] client_request_token
@return [String]
returned.
the response. If set to `NONE` (the default), no statistics are
any), that were modified during the operation and are returned in
`SIZE`, the response includes statistics about item collections (if
Determines whether item collection metrics are returned. If set to
@!attribute [rw] return_item_collection_metrics
@return [String]
response.
* `NONE` - No `ConsumedCapacity` details are included in the
`ConsumedCapacity` for the operation.
* `TOTAL` - The response includes only the aggregate
table(s).
`INDEXES` will only return `ConsumedCapacity` information for
do not access any indexes at all. In these cases, specifying
Note that some operations, such as `GetItem` and `BatchGetItem`,
and secondary index that was accessed.
for the operation, together with `ConsumedCapacity` for each table
* `INDEXES` - The response includes the aggregate `ConsumedCapacity`
consumption that is returned in the response:
Determines the level of detail about provisioned throughput
@!attribute [rw] return_consumed_capacity
@return [Array<Types::TransactWriteItem>]
them can operate on the same item.
tables must reside in the same AWS account and Region, and no two of
object. These can operate on items in different tables, but the
which contains a `ConditionCheck`, `Put`, `Update`, or `Delete`
An ordered array of up to 25 `TransactWriteItem` objects, each of
@!attribute [rw] transact_items
}
client_request_token: “ClientRequestToken”,
return_item_collection_metrics: “SIZE”, # accepts SIZE, NONE
return_consumed_capacity: “INDEXES”, # accepts INDEXES, TOTAL, NONE
],
},
},
return_values_on_condition_check_failure: “ALL_OLD”, # accepts ALL_OLD, NONE
},
“ExpressionAttributeValueVariable” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
expression_attribute_values: {
},
“ExpressionAttributeNameVariable” => “AttributeName”,
expression_attribute_names: {
condition_expression: “ConditionExpression”,
table_name: “TableName”, # required
update_expression: “UpdateExpression”, # required
},
“AttributeName” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
key: { # required
update: {
},
return_values_on_condition_check_failure: “ALL_OLD”, # accepts ALL_OLD, NONE
},
“ExpressionAttributeValueVariable” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
expression_attribute_values: {
},
“ExpressionAttributeNameVariable” => “AttributeName”,
expression_attribute_names: {
condition_expression: “ConditionExpression”,
table_name: “TableName”, # required
},
“AttributeName” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
key: { # required
delete: {
},
return_values_on_condition_check_failure: “ALL_OLD”, # accepts ALL_OLD, NONE
},
“ExpressionAttributeValueVariable” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
expression_attribute_values: {
},
“ExpressionAttributeNameVariable” => “AttributeName”,
expression_attribute_names: {
condition_expression: “ConditionExpression”,
table_name: “TableName”, # required
},
“AttributeName” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
item: { # required
put: {
},
return_values_on_condition_check_failure: “ALL_OLD”, # accepts ALL_OLD, NONE
},
“ExpressionAttributeValueVariable” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
expression_attribute_values: {
},
“ExpressionAttributeNameVariable” => “AttributeName”,
expression_attribute_names: {
condition_expression: “ConditionExpression”, # required
table_name: “TableName”, # required
},
“AttributeName” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
key: { # required
condition_check: {
{
transact_items: [ # required
{
data as a hash:
@note When making an API call, you may pass TransactWriteItemsInput