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

data TestEventPattern Source #

See: testEventPattern smart constructor.

Instances
Eq TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Data TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.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 Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Show TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Generic TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Associated Types

type Rep TestEventPattern :: Type -> Type #

Hashable TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

ToJSON TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

AWSRequest TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Associated Types

type Rs TestEventPattern :: Type #

ToHeaders TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

ToPath TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

ToQuery TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

NFData TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Methods

rnf :: TestEventPattern -> () #

type Rep TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

type Rep TestEventPattern = D1 (MetaData "TestEventPattern" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.6.1-Gr8NdACzlKB7o8reClGMUI" False) (C1 (MetaCons "TestEventPattern'" PrefixI True) (S1 (MetaSel (Just "_tepEventPattern") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tepEvent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs TestEventPattern Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

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:

data TestEventPatternResponse Source #

See: testEventPatternResponse smart constructor.

Instances
Eq TestEventPatternResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Data TestEventPatternResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

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 # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Show TestEventPatternResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Generic TestEventPatternResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Associated Types

type Rep TestEventPatternResponse :: Type -> Type #

NFData TestEventPatternResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

type Rep TestEventPatternResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

type Rep TestEventPatternResponse = D1 (MetaData "TestEventPatternResponse" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.6.1-Gr8NdACzlKB7o8reClGMUI" False) (C1 (MetaCons "TestEventPatternResponse'" PrefixI True) (S1 (MetaSel (Just "_teprsResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_teprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

Indicates whether the event matches the event pattern.