{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-create-lookup-table-request-schema.json",
  "title": "CreateLookupTableRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-lookup-table-api-openapi.yml#/components/schemas/CreateLookupTableRequest",
  "type": "object",
  "properties": {
    "lookupTableName": {
      "type": "string",
      "description": "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": {
      "type": "string",
      "description": "A description of the lookup table. The description can be up to 1024 characters long."
    },
    "tableBody": {
      "type": "string",
      "description": "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 tableBody or queryId, but not both."
    },
    "queryId": {
      "type": "string",
      "description": "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 tableBody or queryId, but not both."
    },
    "kmsKeyId": {
      "type": "string",
      "description": "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": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "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."
    }
  },
  "required": [
    "lookupTableName"
  ]
}