{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-clean-rooms/json-schema/amazon-clean-rooms-update-intermediate-table-input-schema.json",
  "title": "UpdateIntermediateTableInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-clean-rooms-intermediatetables-api-openapi.yml#/components/schemas/UpdateIntermediateTableInput",
  "type": "object",
  "properties": {
    "intermediateTableIdentifier": {
      "type": "string",
      "description": "The unique identifier of the intermediate table to update."
    },
    "membershipIdentifier": {
      "type": "string",
      "description": "The unique identifier of the membership that contains the intermediate table."
    },
    "description": {
      "type": "string",
      "description": "A new description for the intermediate table."
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the customer-managed KMS key to use for encrypting future population data."
    },
    "columns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IntermediateTableColumn"
      },
      "description": "The list of columns with updated type definitions. Only the type of existing columns can be updated."
    }
  },
  "required": [
    "intermediateTableIdentifier",
    "membershipIdentifier"
  ],
  "$defs": {
    "IntermediateTableColumn": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the column."
        },
        "type": {
          "type": "string",
          "description": "The data type of the column."
        }
      },
      "required": [
        "name",
        "type"
      ]
    }
  }
}