| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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' {
- unmask :: Maybe Bool
- logRecordPointer :: Text
- newGetLogRecord :: Text -> GetLogRecord
- getLogRecord_unmask :: Lens' GetLogRecord (Maybe Bool)
- 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:unmask:GetLogRecord', getLogRecord_unmask - Specify true to display the log event fields with all sensitive data
unmasked and visible. The default is false.
To use this operation with this parameter, you must be signed into an
account with the logs:Unmask permission.
$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_unmask :: Lens' GetLogRecord (Maybe Bool) Source #
Specify true to display the log event fields with all sensitive data
unmasked and visible. The default is false.
To use this operation with this parameter, you must be signed into an
account with the logs:Unmask permission.
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.