amazonka-cloudwatch-events-1.4.4: 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.PutEvents

Contents

Description

Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.

Synopsis

Creating a Request

putEvents Source #

Creates a value of PutEvents with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PutEvents Source #

Container for the parameters to the PutEvents operation.

See: putEvents smart constructor.

Instances

Eq PutEvents Source # 
Data PutEvents Source # 

Methods

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

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

toConstr :: PutEvents -> Constr #

dataTypeOf :: PutEvents -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutEvents Source # 
Show PutEvents Source # 
Generic PutEvents Source # 

Associated Types

type Rep PutEvents :: * -> * #

Hashable PutEvents Source # 
NFData PutEvents Source # 

Methods

rnf :: PutEvents -> () #

AWSRequest PutEvents Source # 
ToPath PutEvents Source # 
ToHeaders PutEvents Source # 

Methods

toHeaders :: PutEvents -> [Header] #

ToQuery PutEvents Source # 
ToJSON PutEvents Source # 

Methods

toJSON :: PutEvents -> Value #

toEncoding :: PutEvents -> Encoding #

type Rep PutEvents Source # 
type Rep PutEvents = D1 (MetaData "PutEvents" "Network.AWS.CloudWatchEvents.PutEvents" "amazonka-cloudwatch-events-1.4.4-KZ4l8o6fE916IyhwOgxY8Z" True) (C1 (MetaCons "PutEvents'" PrefixI True) (S1 (MetaSel (Just Symbol "_peEntries") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (List1 PutEventsRequestEntry))))
type Rs PutEvents Source # 

Request Lenses

peEntries :: Lens' PutEvents (NonEmpty PutEventsRequestEntry) Source #

The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.

Destructuring the Response

putEventsResponse Source #

Creates a value of PutEventsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PutEventsResponse Source #

The result of the PutEvents operation.

See: putEventsResponse smart constructor.

Instances

Eq PutEventsResponse Source # 
Data PutEventsResponse Source # 

Methods

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

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

toConstr :: PutEventsResponse -> Constr #

dataTypeOf :: PutEventsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutEventsResponse Source # 
Show PutEventsResponse Source # 
Generic PutEventsResponse Source # 
NFData PutEventsResponse Source # 

Methods

rnf :: PutEventsResponse -> () #

type Rep PutEventsResponse Source # 
type Rep PutEventsResponse = D1 (MetaData "PutEventsResponse" "Network.AWS.CloudWatchEvents.PutEvents" "amazonka-cloudwatch-events-1.4.4-KZ4l8o6fE916IyhwOgxY8Z" False) (C1 (MetaCons "PutEventsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_persFailedEntryCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) ((:*:) (S1 (MetaSel (Just Symbol "_persEntries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PutEventsResultEntry]))) (S1 (MetaSel (Just Symbol "_persResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

persFailedEntryCount :: Lens' PutEventsResponse (Maybe Int) Source #

The number of failed entries.

persEntries :: Lens' PutEventsResponse [PutEventsResultEntry] Source #

A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.