| Copyright | (c) 2013-2021 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 |
Amazonka.CloudWatchLogs.GetLogRecord
Description
Retrieves all of the fields and values of a single log event. All fields
are retrieved, even if the original query that produced the
logRecordPointer retrieved only a subset of fields. Fields are
returned as field name/field value pairs.
The full unparsed log event is returned within @message.
Synopsis
- data GetLogRecord = GetLogRecord' {}
- newGetLogRecord :: Text -> GetLogRecord
- getLogRecord_logRecordPointer :: Lens' GetLogRecord Text
- data GetLogRecordResponse = GetLogRecordResponse' {}
- newGetLogRecordResponse :: Int -> GetLogRecordResponse
- getLogRecordResponse_logRecord :: Lens' GetLogRecordResponse (Maybe (HashMap Text Text))
- getLogRecordResponse_httpStatus :: Lens' GetLogRecordResponse Int
Creating a Request
data GetLogRecord Source #
See: newGetLogRecord smart constructor.
Constructors
| GetLogRecord' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetLogRecord |
Create a value of GetLogRecord with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:logRecordPointer:GetLogRecord', getLogRecord_logRecordPointer - The pointer corresponding to the log event record you want to retrieve.
You get this from the response of a GetQueryResults operation. In that
response, the value of the @ptr field for a log event is the value to
use as logRecordPointer to retrieve that complete log event record.
Request Lenses
getLogRecord_logRecordPointer :: Lens' GetLogRecord Text Source #
The pointer corresponding to the log event record you want to retrieve.
You get this from the response of a GetQueryResults operation. In that
response, the value of the @ptr field for a log event is the value to
use as logRecordPointer to retrieve that complete log event record.
Destructuring the Response
data GetLogRecordResponse Source #
See: newGetLogRecordResponse smart constructor.
Constructors
| GetLogRecordResponse' | |
Instances
newGetLogRecordResponse Source #
Arguments
| :: Int | |
| -> GetLogRecordResponse |
Create a value of GetLogRecordResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:logRecord:GetLogRecordResponse', getLogRecordResponse_logRecord - The requested log event, as a JSON string.
$sel:httpStatus:GetLogRecordResponse', getLogRecordResponse_httpStatus - The response's http status code.
Response Lenses
getLogRecordResponse_logRecord :: Lens' GetLogRecordResponse (Maybe (HashMap Text Text)) Source #
The requested log event, as a JSON string.
getLogRecordResponse_httpStatus :: Lens' GetLogRecordResponse Int Source #
The response's http status code.