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
8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 | |