update_lookup_table
¶
update_lookup_table(
lookup_table_arn: Arn,
*,
config_overrides: Optional[CloudWatchLogsClientConfig] = None,
description: Optional[LookupTableDescription] = None,
table_body: Optional[TableBody] = None,
query_id: Optional[QueryId] = None,
kms_key_id: Optional[KmsKeyId] = None,
) -> UpdateLookupTableResponse
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.
Parameters:
-
lookup_table_arn(Arn) –The ARN of the lookup table to update.
-
description(Optional[LookupTableDescription], default:None) –An updated description of the lookup table.
-
table_body(Optional[TableBody], default:None) –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
tableBodyorqueryId, but not both. -
query_id(Optional[QueryId], default:None) –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
tableBodyorqueryId, but not both. -
kms_key_id(Optional[KmsKeyId], default:None) –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.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
InvalidParameterException–A parameter is specified incorrectly.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service cannot complete the request.
-
ValidationException–One of the parameters for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/cloud_watch_logs.py
8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 | |