Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- testEventPattern :: Text -> Text -> TestEventPattern
- data TestEventPattern
- tepEventPattern :: Lens' TestEventPattern Text
- tepEvent :: Lens' TestEventPattern Text
- testEventPatternResponse :: Int -> TestEventPatternResponse
- data TestEventPatternResponse
- teprsResult :: Lens' TestEventPatternResponse (Maybe Bool)
- teprsResponseStatus :: Lens' TestEventPatternResponse Int
Creating a Request
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:
tepEventPattern
- The event pattern you want to test.tepEvent
- The event in the JSON format to test against the event pattern.
data TestEventPattern Source #
Container for the parameters to the TestEventPattern
operation.
See: testEventPattern
smart constructor.
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:
teprsResult
- Indicates whether the event matches the event pattern.teprsResponseStatus
- -- | The response status code.
data TestEventPatternResponse Source #
The result of the TestEventPattern
operation.
See: testEventPatternResponse
smart constructor.
Response Lenses
teprsResult :: Lens' TestEventPatternResponse (Maybe Bool) Source #
Indicates whether the event matches the event pattern.
teprsResponseStatus :: Lens' TestEventPatternResponse Int Source #
- - | The response status code.