CloudWatchLogsClient.update_lookup_table
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Updates an existing lookup table by replacing all of its content with new CSV data or CloudWatch Logs query results. After the update completes, queries that use this table use the new data. This is a full replacement operation. All existing content is replaced. You must specify either tableBody or queryId , but not both.
Install and imports
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
UpdateLookupTableOutput,
)
Signature
async def update_lookup_table(
*,
lookup_table_arn: str,
description: str | None = None,
table_body: str | None = None,
query_id: str | None = None,
kms_key_id: str | None = None,
) -> UpdateLookupTableOutput: ...
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_arn |
Yes | The ARN of the lookup table to update. |
description |
No | An updated description of the lookup table. |
table_body |
No | The new CSV content to replace the existing data. 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 replace the lookup table content. A cancelled query replaces the content 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. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string. |
Output
UpdateLookupTableOutput.
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 | — |
last_updated_time |
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, ResourceNotFoundError, ServiceUnavailableError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.