update_lookup_table
async
¶
update_lookup_table(
lookup_table_arn: Arn,
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = 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/async_cloud_watch_logs.py
8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 | |