public function storeAction(\App\Action $action) { $data = $action->toArray(); // TODO error handling $this->client->PutItem(['TableName' => 'tr_actions', 'Item' => $this->marshaler->marshalItem($data)]); }