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 #

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

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

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

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Show TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Generic TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Associated Types

type Rep TestEventPattern :: Type -> Type #

Hashable TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

ToJSON TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

AWSRequest TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Associated Types

type Rs TestEventPattern :: Type #

ToHeaders TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

ToPath TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

ToQuery TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

NFData TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Methods

rnf :: TestEventPattern -> () #

type Rep TestEventPattern # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

type Rep TestEventPattern = D1 (MetaData "TestEventPattern" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.6.1-CoHMjgQmalEK7ihh8e5m1B" 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 # 
Instance details

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

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

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

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Show TestEventPatternResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Generic TestEventPatternResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

Associated Types

type Rep TestEventPatternResponse :: Type -> Type #

NFData TestEventPatternResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

type Rep TestEventPatternResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.TestEventPattern

type Rep TestEventPatternResponse = D1 (MetaData "TestEventPatternResponse" "Network.AWS.CloudWatchEvents.TestEventPattern" "amazonka-cloudwatch-events-1.6.1-CoHMjgQmalEK7ihh8e5m1B" 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) #

Indicates whether the event matches the event pattern.

teprsResponseStatus :: Lens' TestEventPatternResponse Int #

  • - | The response status code.