Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.
Synopsis
- putEvents :: NonEmpty PutEventsRequestEntry -> PutEvents
- data PutEvents
- peEntries :: Lens' PutEvents (NonEmpty PutEventsRequestEntry)
- putEventsResponse :: Int -> PutEventsResponse
- data PutEventsResponse
- persFailedEntryCount :: Lens' PutEventsResponse (Maybe Int)
- persEntries :: Lens' PutEventsResponse [PutEventsResultEntry]
- persResponseStatus :: Lens' PutEventsResponse Int
Creating a Request
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.
See: putEvents
smart constructor.
Instances
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
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
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.