{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-clean-rooms/json-schema/amazon-clean-rooms-start-analysis-log-export-input-schema.json",
  "title": "StartAnalysisLogExportInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-clean-rooms-analysislogexports-api-openapi.yml#/components/schemas/StartAnalysisLogExportInput",
  "type": "object",
  "properties": {
    "membershipIdentifier": {
      "type": "string",
      "description": "A unique identifier for the membership to export the analysis logs for. Currently accepts a membership ID."
    },
    "analysisId": {
      "type": "string",
      "description": "The unique identifier of the protected query that you want to export the analysis logs for."
    },
    "analysisType": {
      "type": "string",
      "enum": [
        "PROTECTED_QUERY"
      ],
      "description": "The type of analysis that the logs are exported for. Currently, only PROTECTED_QUERY is supported."
    },
    "resultConfiguration": {
      "$ref": "#/$defs/AnalysisLogExportResultConfiguration"
    }
  },
  "required": [
    "membershipIdentifier",
    "analysisId",
    "analysisType",
    "resultConfiguration"
  ],
  "$defs": {
    "AnalysisLogExportOutputConfiguration": {
      "type": "object",
      "properties": {
        "s3": {
          "$ref": "#/$defs/AnalysisLogExportS3OutputConfiguration"
        }
      },
      "required": [
        "s3"
      ]
    },
    "AnalysisLogExportResultConfiguration": {
      "type": "object",
      "properties": {
        "outputConfiguration": {
          "$ref": "#/$defs/AnalysisLogExportOutputConfiguration"
        }
      },
      "required": [
        "outputConfiguration"
      ]
    },
    "AnalysisLogExportS3OutputConfiguration": {
      "type": "object",
      "properties": {
        "bucket": {
          "type": "string",
          "description": "The S3 bucket that the exported analysis logs are written to. The bucket must be in the same Amazon Web Services Region as the collaboration."
        },
        "keyPrefix": {
          "type": "string",
          "description": "The S3 key prefix under which the exported analysis logs are written. Only one export can be in progress at a time for a given query and destination. To export the same query twice at once, use a different key prefix for the second export."
        }
      },
      "required": [
        "bucket"
      ]
    }
  }
}