create_lookup_table
async
¶
create_lookup_table(
lookup_table_name: LookupTableName,
*,
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,
tags: Optional[Tags] = None,
) -> CreateLookupTableResponse
Creates a lookup table by uploading CSV data or from CloudWatch Logs query results. You can use lookup tables to enrich log data in CloudWatch Logs queries with reference data such as user details, application names, or error descriptions.
The table name must be unique within your account and Region. You must specify either tableBody or queryId, but not both. If you use tableBody, the CSV content must include a header row with column names, use UTF-8 encoding, and not exceed 10 MB.
Parameters:
-
lookup_table_name(LookupTableName) –The name of the lookup table. The name must be unique within your account and Region. The name can contain only alphanumeric characters and underscores, and can be up to 256 characters long.
-
description(Optional[LookupTableDescription], default:None) –A description of the lookup table. The description can be up to 1024 characters long.
-
table_body(Optional[TableBody], default:None) –The CSV content of the lookup table. 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 populate the lookup table. A cancelled query populates the table 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. If you don't specify a key, the data is encrypted with an Amazon Web Services-owned key.
-
tags(Optional[Tags], default:None) –A list of key-value pairs to associate with the lookup table. You can associate as many as 50 tags with a lookup table. Tags can help you organize and categorize your resources.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
InvalidParameterException–A parameter is specified incorrectly.
-
LimitExceededException–You have reached the maximum number of resources that can be created.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
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
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 | |