Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Uploads a batch of log events to the specified log stream.
Every PutLogEvents request must include the sequenceToken
obtained
from the response of the previous request. An upload in a newly created
log stream does not require a sequenceToken
.
The batch of events must satisfy the following constraints:
- The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
- None of the log events in the batch can be more than 2 hours in the future.
- None of the log events in the batch can be older than 14 days or the retention period of the log group.
- The log events in the batch must be in chronological ordered by
their
timestamp
. - The maximum number of log events in a batch is 10,000.
See: AWS API Reference for PutLogEvents.
- putLogEvents :: Text -> Text -> NonEmpty InputLogEvent -> PutLogEvents
- data PutLogEvents
- pleSequenceToken :: Lens' PutLogEvents (Maybe Text)
- pleLogGroupName :: Lens' PutLogEvents Text
- pleLogStreamName :: Lens' PutLogEvents Text
- pleLogEvents :: Lens' PutLogEvents (NonEmpty InputLogEvent)
- putLogEventsResponse :: Int -> PutLogEventsResponse
- data PutLogEventsResponse
- plersRejectedLogEventsInfo :: Lens' PutLogEventsResponse (Maybe RejectedLogEventsInfo)
- plersNextSequenceToken :: Lens' PutLogEventsResponse (Maybe Text)
- plersStatus :: Lens' PutLogEventsResponse Int
Creating a Request
Creates a value of PutLogEvents
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PutLogEvents Source
See: putLogEvents
smart constructor.
Request Lenses
pleSequenceToken :: Lens' PutLogEvents (Maybe Text) Source
A string token that must be obtained from the response of the previous
PutLogEvents
request.
pleLogGroupName :: Lens' PutLogEvents Text Source
The name of the log group to put log events to.
pleLogStreamName :: Lens' PutLogEvents Text Source
The name of the log stream to put log events to.
pleLogEvents :: Lens' PutLogEvents (NonEmpty InputLogEvent) Source
Undocumented member.
Destructuring the Response
Creates a value of PutLogEventsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PutLogEventsResponse Source
See: putLogEventsResponse
smart constructor.
Response Lenses
plersRejectedLogEventsInfo :: Lens' PutLogEventsResponse (Maybe RejectedLogEventsInfo) Source
Undocumented member.
plersNextSequenceToken :: Lens' PutLogEventsResponse (Maybe Text) Source
Undocumented member.
plersStatus :: Lens' PutLogEventsResponse Int Source
The response status code.