Skip to content

CloudWatchLogsClient.get_log_object

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): Retrieves a large logging object (LLO) and streams it back. This API is used to fetch the content of large portions of log events that have been ingested through the PutOpenTelemetryLogs API. When log events contain fields that would cause the total event size to exceed 1MB, CloudWatch Logs automatically processes up to 10 fields, starting with the largest fields. Each field is truncated as...

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
    GetLogObjectOutput,
)

Signature

async def get_log_object(
    *,
    log_object_pointer: str,
    unmask: bool | None = None,
) -> GetLogObjectOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
log_object_pointer Yes A pointer to the specific log object to retrieve. This is a required parameter that uniquely identifies the log object within CloudWatch Logs. The pointer is typically obtained from a previous query or filter operation.
unmask No A boolean flag that indicates whether to unmask sensitive log data. When set to true, any masked or redacted data in the log object will be displayed in its original form. Default is false.

Output

GetLogObjectOutput.

Typed response mapping, accessed as response["field"].

Field Type Presence References
field_stream AsyncIterator[GetLogObjectResponseStream] Always present GetLogObjectResponseStream

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

GetLogObjectOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

Output streams: GetLogObjectOutput.

Consume with async for. Do not reuse a consumed stream.

Errors

Import from rboto_cloudwatch_logs.exceptions:

AccessDeniedError, InternalStreamingError, InvalidOperationError, InvalidParameterError, LimitExceededError, ResourceNotFoundError.

Stream decoding may also raise the linked modeled event errors.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model