/** * @param Collection $collection * @param $document */ public function insert($collection, $document) { $document->_id = $this->uuid->uuid4()->toString(); $args = ['TableName' => $collection, 'Item' => $this->marshaler->marshalItem($document)]; $this->getConnection()->putItem($args); }