src/DynamoDb/WriteRequestBatch.php
public function put(array $item, $table = null)
    {
        $this->queue[] = [
            'table' => $this->determineTable($table),
            'data'  => ['PutRequest' => ['Item' => $item]],
        ];

        $this->autoFlush();

        return $this;
    }
public function put(array $item, $table = null)
    {
        $this->queue[] = [
            'table' => $this->determineTable($table),
            'data'  => ['PutRequest' => ['Item' => $item]],
        ];

        $this->autoFlush();

        return $this;
    }
public function put ( array $ item , $ table = null ) { $ this -> queue [ ] = [ 'table' => $ this -> determineTable ( $ table ) , 'data' => [ 'PutRequest' => [ 'Item' => $ item ] ] , ] ; $ this -> autoFlush ( ) ; return $ this ; }
Adds a put item request to the batch.

@param array       $item  Data for an item to put. Format:
[
'attribute1' => ['type' => 'value'],
'attribute2' => ['type' => 'value'],
...
]
@param string|null $table The name of the table. This must be specified
unless the "table" option was provided in the
config of the WriteRequestBatch.

@return $this
Adds a put item request to the batch .