CloudWatchLogsClient.test_transformer
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Use this operation to test a log transformer. You enter the transformer configuration and a set of log events to test with. The operation responds with an array that includes the original log events and the transformed versions.
Install and imports
from rboto import CloudWatchLogsClient
from collections.abc import Sequence
from rboto_cloudwatch_logs.types import (
Processor,
TestTransformerOutput,
)
Signature
async def test_transformer(
*,
transformer_config: Sequence[Processor],
log_event_messages: Sequence[str],
) -> TestTransformerOutput: ...
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) |
|---|---|---|
transformer_config |
Yes | This structure contains the configuration of this log transformer that you want to test. A log transformer is an array of processors, where each processor applies one type of transformation to the log events that are ingested. |
log_event_messages |
Yes | An array of the raw log events that you want to use to test this transformer. |
Output
TestTransformerOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
transformed_logs |
list[TransformedLogRecordOutput] | None |
Always present | TransformedLogRecordOutput |
| 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.
Related types
Processor, TestTransformerOutput
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.
No output stream.
Errors
Import from rboto_cloudwatch_logs.exceptions:
InvalidOperationError, InvalidParameterError, ServiceUnavailableError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.