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
7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 | |