{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-clean-rooms/json-schema/amazon-clean-rooms-update-configured-table-association-analysis-rule-input-schema.json",
  "title": "UpdateConfiguredTableAssociationAnalysisRuleInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-clean-rooms-analysisrule-api-openapi.yml#/components/schemas/UpdateConfiguredTableAssociationAnalysisRuleInput",
  "type": "object",
  "properties": {
    "membershipIdentifier": {
      "type": "string",
      "description": "A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID."
    },
    "configuredTableAssociationIdentifier": {
      "type": "string",
      "description": "The identifier for the configured table association to update."
    },
    "analysisRuleType": {
      "type": "string",
      "enum": [
        "AGGREGATION",
        "LIST",
        "CUSTOM"
      ],
      "description": "The analysis rule type that you want to update."
    },
    "analysisRulePolicy": {
      "$ref": "#/$defs/ConfiguredTableAssociationAnalysisRulePolicy"
    }
  },
  "required": [
    "membershipIdentifier",
    "configuredTableAssociationIdentifier",
    "analysisRuleType",
    "analysisRulePolicy"
  ],
  "$defs": {
    "ConfiguredTableAssociationAnalysisRuleAggregation": {
      "type": "object",
      "properties": {
        "allowedResultReceivers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of collaboration members who are allowed to receive results of queries run with this configured table."
        },
        "allowedAdditionalAnalyses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of resources or wildcards (ARNs) that are allowed to perform additional analysis on query output. The allowedAdditionalAnalyses parameter is currently supported for the list analysis rule (AnalysisRuleList) and the custom analysis rule (AnalysisRuleCustom)."
        }
      }
    },
    "ConfiguredTableAssociationAnalysisRuleCustom": {
      "type": "object",
      "properties": {
        "allowedResultReceivers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of collaboration members who are allowed to receive results of queries run with this configured table."
        },
        "allowedAdditionalAnalyses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of resources or wildcards (ARNs) that are allowed to perform additional analysis on query output."
        }
      }
    },
    "ConfiguredTableAssociationAnalysisRuleList": {
      "type": "object",
      "properties": {
        "allowedResultReceivers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of collaboration members who are allowed to receive results of queries run with this configured table."
        },
        "allowedAdditionalAnalyses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of resources or wildcards (ARNs) that are allowed to perform additional analysis on query output."
        }
      }
    },
    "ConfiguredTableAssociationAnalysisRulePolicy": {
      "type": "object",
      "properties": {
        "v1": {
          "$ref": "#/$defs/ConfiguredTableAssociationAnalysisRulePolicyV1"
        }
      },
      "description": "Exactly one member is set."
    },
    "ConfiguredTableAssociationAnalysisRulePolicyV1": {
      "type": "object",
      "properties": {
        "list": {
          "$ref": "#/$defs/ConfiguredTableAssociationAnalysisRuleList"
        },
        "aggregation": {
          "$ref": "#/$defs/ConfiguredTableAssociationAnalysisRuleAggregation"
        },
        "custom": {
          "$ref": "#/$defs/ConfiguredTableAssociationAnalysisRuleCustom"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}