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

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

Network.AWS.CloudWatchEvents.TestEventPattern

Contents

Description

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

Creating a Request

testEventPattern #

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:

data TestEventPattern #

See: testEventPattern smart constructor.

Instances

Eq TestEventPattern # 
Data TestEventPattern # 

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 # 
Show TestEventPattern # 
Generic TestEventPattern # 
Hashable TestEventPattern # 
ToJSON TestEventPattern # 
NFData TestEventPattern # 

Methods

rnf :: TestEventPattern -> () #

AWSRequest TestEventPattern # 
ToHeaders TestEventPattern # 
ToPath TestEventPattern # 
ToQuery TestEventPattern # 
type Rep TestEventPattern # 
type Rep TestEventPattern = D1 * (MetaData "TestEventPattern" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" 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 # 

Request Lenses

tepEventPattern :: Lens' TestEventPattern Text #

The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide .

tepEvent :: Lens' TestEventPattern Text #

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

Destructuring the Response

testEventPatternResponse #

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 #

See: testEventPatternResponse smart constructor.

Instances

Eq TestEventPatternResponse # 
Data TestEventPatternResponse # 

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 # 
Show TestEventPatternResponse # 
Generic TestEventPatternResponse # 
NFData TestEventPatternResponse # 
type Rep TestEventPatternResponse # 
type Rep TestEventPatternResponse = D1 * (MetaData "TestEventPatternResponse" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.6.0-28QGFHp8qX59okvAh7fuR8" False) (C1 * (MetaCons "TestEventPatternResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_teprsResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_teprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

teprsResult :: Lens' TestEventPatternResponse (Maybe Bool) #

Indicates whether the event matches the event pattern.

teprsResponseStatus :: Lens' TestEventPatternResponse Int #

  • - | The response status code.