CloudWatchLogsClient.create_lookup_table
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Creates a lookup table by uploading CSV data or from CloudWatch Logs query results. You can use lookup tables to enrich log data in CloudWatch Logs queries with reference data such as user details, application names, or error descriptions. The table name must be unique within your account and Region. You must specify either tableBody or queryId , but not both. If you use tableBody , the CSV...
Install and imports
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
CreateLookupTableOutput,
)
Signature
async def create_lookup_table(
*,
lookup_table_name: str,
description: str | None = None,
table_body: str | None = None,
query_id: str | None = None,
kms_key_id: str | None = None,
tags: dict[str, str] | None = None,
) -> CreateLookupTableOutput: ...
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) |
|---|---|---|
lookup_table_name |
Yes | The name of the lookup table. The name must be unique within your account and Region. The name can contain only alphanumeric characters and underscores, and can be up to 256 characters long. |
description |
No | A description of the lookup table. The description can be up to 1024 characters long. |
table_body |
No | The CSV content of the lookup table. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB. You must specify either tableBody or queryId , but not both. |
query_id |
No | The ID of a completed or cancelled CloudWatch Logs query whose results populate the lookup table. A cancelled query populates the table with the partial results that were available when the query was stopped. You must specify either tableBody or queryId , but not both. |
kms_key_id |
No | The ARN of the KMS key to use to encrypt the lookup table data. If you don't specify a key, the data is encrypted with an Amazon Web Services-owned key. |
tags |
No | A list of key-value pairs to associate with the lookup table. You can associate as many as 50 tags with a lookup table. Tags can help you organize and categorize your resources. |
Output
CreateLookupTableOutput.
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 |
|---|---|---|---|
lookup_table_arn |
str | None |
Always present | — |
created_at |
int | None |
Always present | — |
| 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
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:
AccessDeniedError, InvalidParameterError, LimitExceededError, ResourceAlreadyExistsError, ServiceUnavailableError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.