title: How to use DynamoDBStreamEvent Trigger Lambda when only update certain attribute
body: <p>I use serverless framework to deploy cloudFormation.
  I want to trigger lambda to deleteObject on my S3 bucket after I update my DynamoDB Table with certain attribute, eg. my table has account, user, icon, I only want when I update icon, it trigger Lambda to delete my iconObject on S3 bucket.</p>
  
  <p>As I read the documentation on AWS, it seems the eventName of dynamoDB stream Event only have three status, REMOVE, MODIFY, INSERT.        </p>
  
  <p><a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_Record.html" rel="noreferrer">
  AWS Documentation » Amazon DynamoDB » API Reference » Data Types » Amazon DynamoDB Streams » Record
  Record</a></p>
  
  <p>Could I do as below? But how do I know it update icon instead other attribute like account or user?</p>
  
  <pre><code>if (this._record.eventName === 'MODIFY' &amp;&amp; this._record.NewImage!== this._record.OldImage ){
          return this._remove(this._record.dynamodb);
      }
  </code></pre>