Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Tests whether the specified event pattern matches the provided event.
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
- 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. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide .tepEvent
- The event, in JSON format, to test against the event pattern.
data TestEventPattern Source #
See: testEventPattern
smart constructor.
Instances
Request Lenses
tepEventPattern :: Lens' TestEventPattern Text Source #
The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide .
tepEvent :: Lens' TestEventPattern Text Source #
The event, in 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 #
See: testEventPatternResponse
smart constructor.
Instances
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.