Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > dd7204292d310452063d09b5de9c13b7 > files > 1095

aws-cli-docs-1.16.163-1.mga7.noarch.rpm

**To check whether an event pattern matches a specified event**

This example tests whether the pattern "source:com.mycompany.myapp" matches the specified event. In this example, the output would be "true"::

  aws events test-event-pattern --event-pattern "{\"source\":[\"com.mycompany.myapp\"]}" --event "{\"id\":\"1\",\"source\":\"com.mycompany.myapp\",\"detail-type\":\"myDetailType\",\"account\":\"123456789012\",\"region\":\"us-east-1\",\"time\":\"2017-04-11T20:11:04Z\"}"