title: How can I make sure DynamoDB putItem was successful
body: <p>I'm using amazon sdk v2 and using aws factory for dynamoDB and I have a simple putItem operation but I have no idea how I can make sure putItem was successful or not because putItem returns a Model which doesnt contain any information about status of operation. Any idea?
  Here is my code</p>
  
  <pre><code>class DynamoLogger{
  protected $client;
  protected $tableName;
  
  public function __construct(ServiceBuilder $builder, $tableName)
  {
      $this-&gt;client = $builder-&gt;get('dynamodb');
      $this-&gt;tableName = $tableName;
  }
  
  public function log(Request $request)
  {
      $model = $this-&gt;client-&gt;putItem(array(
          'TableName' =&gt; $this-&gt;tableName,
          'Item' =&gt; array(
              'cc_id' =&gt; array(
                  'S' =&gt; $request-&gt;get('cc_id')
              ),
              'date' =&gt; array(
                  'S' =&gt; date('Y-m-d H:i:s') . substr((string)microtime(), 1, 8)
              ),
              'tt_id' =&gt; array(
                  'N' =&gt; $request-&gt;get('tt_id')
              ),
              'action_name' =&gt; array(
                  'S' =&gt; $request-&gt;get('name')
              ),
              'action_value' =&gt; array(
                  'S' =&gt; $request-&gt;get('value')
              ),
              'gg_nn' =&gt; array(
                  'S' =&gt; $request-&gt;get('gg_nn')
              ),
              'ffr_id' =&gt; array(
                  'N' =&gt; $request-&gt;get('ffr_id')
              )
          ),
          'ReturnValues' =&gt; 'ALL_OLD'
      ));
      return $model;
  }
  </code></pre>
  
  <p>}</p>