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

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:

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.