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

  • 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 Source #

See: putEvents smart constructor.

Instances
Eq PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Data PutEvents Source # 
Instance details

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

Defined in Network.AWS.CloudWatchEvents.PutEvents

Show PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Generic PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Associated Types

type Rep PutEvents :: Type -> Type #

Hashable PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

ToJSON PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

AWSRequest PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Associated Types

type Rs PutEvents :: Type #

ToHeaders PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Methods

toHeaders :: PutEvents -> [Header] #

ToPath PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

ToQuery PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

NFData PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Methods

rnf :: PutEvents -> () #

type Rep PutEvents Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

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

Defined in Network.AWS.CloudWatchEvents.PutEvents

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:

  • persFailedEntryCount - The number of failed entries.
  • persEntries - The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
  • persResponseStatus - -- | The response status code.

data PutEventsResponse Source #

See: putEventsResponse smart constructor.

Instances
Eq PutEventsResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Data PutEventsResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

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

Defined in Network.AWS.CloudWatchEvents.PutEvents

Show PutEventsResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Generic PutEventsResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Associated Types

type Rep PutEventsResponse :: Type -> Type #

NFData PutEventsResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

Methods

rnf :: PutEventsResponse -> () #

type Rep PutEventsResponse Source # 
Instance details

Defined in Network.AWS.CloudWatchEvents.PutEvents

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

Response Lenses

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

The number of failed entries.

persEntries :: Lens' PutEventsResponse [PutEventsResultEntry] Source #

The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.

persResponseStatus :: Lens' PutEventsResponse Int Source #

  • - | The response status code.