Skip to content

Updates an existing lookup table by replacing all of its content with new CSV data or CloudWatch Logs query results

Description

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.

Usage

cloudwatchlogs_update_lookup_table(lookupTableArn, description,
  tableBody, queryId, kmsKeyId)

Arguments

  • lookupTableArn

    [required] The ARN of the lookup table to update.

  • description

    An updated description of the lookup table.

  • 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 tableBody or queryId, but not both.

  • 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 tableBody or queryId, but not both.

  • kmsKeyId

    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.

Value

A list with the following syntax:

list(
  lookupTableArn = "string",
  lastUpdatedTime = 123
)

Request syntax

svc$update_lookup_table(
  lookupTableArn = "string",
  description = "string",
  tableBody = "string",
  queryId = "string",
  kmsKeyId = "string"
)