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

Contents

Description

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

Synopsis

Creating a Request

putEvents #

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:

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

data PutEvents #

Container for the parameters to the PutEvents operation.

See: putEvents smart constructor.

Instances

Eq PutEvents # 
Data PutEvents # 

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 # 
Show PutEvents # 
Generic PutEvents # 

Associated Types

type Rep PutEvents :: * -> * #

Hashable PutEvents # 
ToJSON PutEvents # 
NFData PutEvents # 

Methods

rnf :: PutEvents -> () #

AWSRequest PutEvents # 
ToQuery PutEvents # 
ToPath PutEvents # 
ToHeaders PutEvents # 

Methods

toHeaders :: PutEvents -> [Header] #

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

Request Lenses

peEntries :: Lens' PutEvents (NonEmpty PutEventsRequestEntry) #

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 #

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:

  • persFailedEntryCount - The number of failed entries.
  • persEntries - 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.
  • persResponseStatus - -- | The response status code.

data PutEventsResponse #

The result of the PutEvents operation.

See: putEventsResponse smart constructor.

Instances

Eq PutEventsResponse # 
Data PutEventsResponse # 

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 # 
Show PutEventsResponse # 
Generic PutEventsResponse # 
NFData PutEventsResponse # 

Methods

rnf :: PutEventsResponse -> () #

type Rep PutEventsResponse # 
type Rep PutEventsResponse = D1 (MetaData "PutEventsResponse" "Network.AWS.CloudWatchEvents.PutEvents" "amazonka-cloudwatch-events-1.4.5-6DdwNqzTXs3BVXIlURV4bz" 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) #

The number of failed entries.

persEntries :: Lens' PutEventsResponse [PutEventsResultEntry] #

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.

persResponseStatus :: Lens' PutEventsResponse Int #

  • - | The response status code.