class Aws::DynamoDB::Types::BatchWriteItemInput


@see docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchWriteItemInput AWS API Documentation
@return [String]
returned.
response. If set to ‘NONE` (the default), no statistics are
any, that were modified during the operation are returned in the
`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`
throughput consumption that is returned in the response:
Determines the level of detail about either provisioned or on-demand
@!attribute [rw] return_consumed_capacity
@return [Hash<String,Array<Types::WriteRequest>>]
schema in the table’s attribute definition.
then the data types for those attributes must match those of the
If you specify any attributes that are part of an index key,
are rejected with a ‘ValidationException` exception.
attributes must not be empty. Requests that contain empty values
attributes must have lengths greater than zero; and set type
Attribute values must not be null; string and binary type
this map consists of an attribute name and an attribute value.
* `Item` - A map of attributes and their values. Each entry in
item. The item to be put is identified by an `Item` subelement:
* `PutRequest` - Perform a `PutItem` operation on the specified
^
values for both the partition key and the sort key.
partition key. For a composite primary key, you must provide
simple primary key, you only need to provide a value for the
must provide all of the key attributes. For example, with a
attribute name and an attribute value. For each primary key, you
identify the item. Each entry in this map consists of an
* `Key` - A map of primary key attribute values that uniquely
subelement:
specified item. The item to be deleted is identified by a `Key`
* `DeleteRequest` - Perform a `DeleteItem` operation on the
element in the map consists of the following:
operations to be performed (`DeleteRequest` or `PutRequest`). Each
A map of one or more table names and, for each table, a list of
@!attribute [rw] request_items
}
return_item_collection_metrics: “SIZE”, # accepts SIZE, NONE
return_consumed_capacity: “INDEXES”, # accepts INDEXES, TOTAL, NONE
},
],
},
},
},
“AttributeName” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
key: { # required
delete_request: {
},
},
“AttributeName” => “value”, # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
item: { # required
put_request: {
{
“TableName” => [
request_items: { # required
{
data as a hash:
@note When making an API call, you may pass BatchWriteItemInput
Represents the input of a `BatchWriteItem` operation.