amazonka-cloudwatch-events-1.4.0: Amazon CloudWatch Events SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchEvents.TestEventPattern

Contents

Description

Tests whether an event pattern matches the provided event.

Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.

Synopsis

Creating a Request

testEventPattern Source

Creates a value of TestEventPattern with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

tepEventPattern :: Lens' TestEventPattern Text Source

The event pattern you want to test.

tepEvent :: Lens' TestEventPattern Text Source

The event in the JSON format to test against the event pattern.

Destructuring the Response

testEventPatternResponse Source

Creates a value of TestEventPatternResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

teprsResult :: Lens' TestEventPatternResponse (Maybe Bool) Source

Indicates whether the event matches the event pattern.