amazonka-cloudwatch-events-1.4.5: 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:

  • 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.

Instances

Eq TestEventPattern Source # 
Data TestEventPattern Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestEventPattern -> c TestEventPattern #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestEventPattern #

toConstr :: TestEventPattern -> Constr #

dataTypeOf :: TestEventPattern -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TestEventPattern) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestEventPattern) #

gmapT :: (forall b. Data b => b -> b) -> TestEventPattern -> TestEventPattern #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestEventPattern -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestEventPattern -> r #

gmapQ :: (forall d. Data d => d -> u) -> TestEventPattern -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TestEventPattern -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestEventPattern -> m TestEventPattern #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestEventPattern -> m TestEventPattern #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestEventPattern -> m TestEventPattern #

Read TestEventPattern Source # 
Show TestEventPattern Source # 
Generic TestEventPattern Source # 
Hashable TestEventPattern Source # 
ToJSON TestEventPattern Source # 
NFData TestEventPattern Source # 

Methods

rnf :: TestEventPattern -> () #

AWSRequest TestEventPattern Source # 
ToPath TestEventPattern Source # 
ToHeaders TestEventPattern Source # 
ToQuery TestEventPattern Source # 
type Rep TestEventPattern Source # 
type Rep TestEventPattern = D1 (MetaData "TestEventPattern" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.4.5-C1rNKxAlYdGGYs6EYwCVVS" False) (C1 (MetaCons "TestEventPattern'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_tepEventPattern") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tepEvent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs TestEventPattern Source # 

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:

data TestEventPatternResponse Source #

The result of the TestEventPattern operation.

See: testEventPatternResponse smart constructor.

Instances

Eq TestEventPatternResponse Source # 
Data TestEventPatternResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestEventPatternResponse -> c TestEventPatternResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestEventPatternResponse #

toConstr :: TestEventPatternResponse -> Constr #

dataTypeOf :: TestEventPatternResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TestEventPatternResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestEventPatternResponse) #

gmapT :: (forall b. Data b => b -> b) -> TestEventPatternResponse -> TestEventPatternResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestEventPatternResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestEventPatternResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> TestEventPatternResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TestEventPatternResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestEventPatternResponse -> m TestEventPatternResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestEventPatternResponse -> m TestEventPatternResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestEventPatternResponse -> m TestEventPatternResponse #

Read TestEventPatternResponse Source # 
Show TestEventPatternResponse Source # 
Generic TestEventPatternResponse Source # 
NFData TestEventPatternResponse Source # 
type Rep TestEventPatternResponse Source # 
type Rep TestEventPatternResponse = D1 (MetaData "TestEventPatternResponse" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.4.5-C1rNKxAlYdGGYs6EYwCVVS" False) (C1 (MetaCons "TestEventPatternResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_teprsResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_teprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

teprsResult :: Lens' TestEventPatternResponse (Maybe Bool) Source #

Indicates whether the event matches the event pattern.