{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-clean-rooms/json-schema/amazon-clean-rooms-populate-intermediate-table-input-schema.json",
  "title": "PopulateIntermediateTableInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-clean-rooms-operations-api-openapi.yml#/components/schemas/PopulateIntermediateTableInput",
  "type": "object",
  "properties": {
    "intermediateTableIdentifier": {
      "type": "string",
      "description": "The unique identifier of the intermediate table to populate."
    },
    "membershipIdentifier": {
      "type": "string",
      "description": "The unique identifier of the membership that contains the intermediate table."
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The runtime parameter values that override the defaults in the stored query."
    },
    "computeConfiguration": {
      "$ref": "#/$defs/IntermediateTableComputeConfiguration"
    },
    "analysisPayerAccountId": {
      "type": "string",
      "description": "The account ID of the member that pays for the analysis compute costs."
    }
  },
  "required": [
    "intermediateTableIdentifier",
    "membershipIdentifier"
  ],
  "$defs": {
    "IntermediateTableComputeConfiguration": {
      "type": "object",
      "properties": {
        "queryComputeConfiguration": {
          "$ref": "#/$defs/WorkerComputeConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "WorkerComputeConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CR.1X",
            "CR.4X",
            "CR.8X"
          ],
          "description": "The worker compute configuration type."
        },
        "number": {
          "type": "integer",
          "description": "The number of workers. SQL queries support a minimum value of 2 and a maximum value of 400. PySpark jobs support a minimum value of 4 and a maximum value of 128."
        },
        "properties": {
          "$ref": "#/$defs/WorkerComputeConfigurationProperties"
        }
      }
    },
    "WorkerComputeConfigurationProperties": {
      "type": "object",
      "properties": {
        "spark": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Spark configuration properties for SQL and PySpark workloads. This map contains key-value pairs that configure Apache Spark settings to optimize performance for your data processing jobs. You can specify up to 50 Spark properties, with each key being 1-200 characters and each value being 0-500 characters. These properties allow you to adjust compute capacity for large datasets and complex workloads."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}