UpdateLookupTable
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.
Request Syntax
{
"description": "string",
"kmsKeyId": "string",
"lookupTableArn": "string",
"queryId": "string",
"tableBody": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- description
-
An updated description of the lookup table.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Required: No
- kmsKeyId
-
The ARN of the AWS 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 AWS-owned key instead, specify an empty string.
Type: String
Length Constraints: Maximum length of 256.
Required: No
- lookupTableArn
-
The ARN of the lookup table to update.
Type: String
Required: Yes
- queryId
-
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.Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Required: No
- tableBody
-
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.Type: String
Length Constraints: Minimum length of 1. Maximum length of 10485760.
Required: No
Response Syntax
{
"lastUpdatedTime": number,
"lookupTableArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- lastUpdatedTime
-
The time when the lookup table was last updated, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC.Type: Long
Valid Range: Minimum value of 0.
- lookupTableArn
-
The ARN of the lookup table that was updated.
Type: String
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
You don't have sufficient permissions to perform this action.
HTTP Status Code: 400
- InvalidParameterException
-
A parameter is specified incorrectly.
HTTP Status Code: 400
- ResourceNotFoundException
-
The specified resource does not exist.
HTTP Status Code: 400
- ServiceUnavailableException
-
The service cannot complete the request.
HTTP Status Code: 500
- ValidationException
-
One of the parameters for the request is not valid.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: