title: message filter for code pipeline message by SNS aws
body: <p>I created a SNS subscription and started receiving bunch of emails</p>
  <p>I'm interested in receiving only following emails:</p>
  <p>All emails with pipeline name and status weather failed or succeeded in message body</p>
  <pre><code>{&quot;account&quot;:&quot;&quot;,&quot;detailType&quot;:&quot;CodePipeline Pipeline Execution State Change&quot;,&quot;region&quot;:&quot;ap-south-1&quot;,&quot;source&quot;:&quot;aws.codepipeline&quot;,&quot;time&quot;:&quot;&quot;,&quot;notificationRuleArn&quot;:&quot;arn:aws:codestar-notifications:ap-south-1:notificationrule/3a1a2bf7acf27ba4dba4b9bbab0ac14550994ec6&quot;,&quot;detail&quot;:{&quot;pipeline&quot;:&quot;demo&quot;,&quot;execution-id&quot;:&quot;2df769bc-37b6-4853-942a-7e2fc1c0b66d&quot;,&quot;state&quot;:&quot;SUCCEEDED&quot;,&quot;version&quot;:5.0},&quot;resources&quot;:[&quot;arn:aws:codepipeline:ap-south-1&quot;],&quot;additionalAttributes&quot;:{}}
  </code></pre>
  <p>Tried adding below in subscription filter policy for status :</p>
  <pre><code>{
    &quot;status&quot;: [
      &quot;failed&quot;,
      &quot;succeeded&quot;
    ]
  }
  
  </code></pre>
  <p>but not even getting notification after this?</p>