CloudWatchLogs / Client / create_lookup_table
create_lookup_table¶
- CloudWatchLogs.Client.create_lookup_table(**kwargs)¶
Creates a lookup table by uploading CSV data. You can use lookup tables to enrich log data in CloudWatch Logs Insights queries with reference data such as user details, application names, or error descriptions.
The table name must be unique within your account and Region. The CSV content must include a header row with column names, use UTF-8 encoding, and not exceed 10 MB.
See also: AWS API Documentation
Request Syntax
response = client.create_lookup_table( lookupTableName='string', description='string', tableBody='string', kmsKeyId='string', tags={ 'string': 'string' } )
- Parameters:
lookupTableName (string) –
[REQUIRED]
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 (string) – A description of the lookup table. The description can be up to 1024 characters long.
tableBody (string) –
[REQUIRED]
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.
kmsKeyId (string) – 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 (dict) –
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.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'lookupTableArn': 'string', 'createdAt': 123 }
Response Structure
(dict) –
lookupTableArn (string) –
The ARN of the lookup table that was created.
createdAt (integer) –
The time when the lookup table was created, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC.
Exceptions
CloudWatchLogs.Client.exceptions.InvalidParameterExceptionCloudWatchLogs.Client.exceptions.ResourceAlreadyExistsExceptionCloudWatchLogs.Client.exceptions.AccessDeniedExceptionCloudWatchLogs.Client.exceptions.LimitExceededExceptionCloudWatchLogs.Client.exceptions.ValidationExceptionCloudWatchLogs.Client.exceptions.ServiceUnavailableException