{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-update-review-template-answer-input-schema.json",
  "title": "UpdateReviewTemplateAnswerInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-well-architected-tool-answers-api-openapi.yml#/components/schemas/UpdateReviewTemplateAnswerInput",
  "type": "object",
  "properties": {
    "TemplateArn": {
      "type": "string",
      "description": "The review template ARN."
    },
    "LensAlias": {
      "type": "string"
    },
    "QuestionId": {
      "type": "string"
    },
    "SelectedChoices": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ChoiceUpdates": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ChoiceUpdate"
      },
      "description": "A list of choices to be updated."
    },
    "Notes": {
      "type": "string"
    },
    "IsApplicable": {
      "type": "boolean"
    },
    "Reason": {
      "type": "string",
      "enum": [
        "OUT_OF_SCOPE",
        "BUSINESS_PRIORITIES",
        "ARCHITECTURE_CONSTRAINTS",
        "OTHER",
        "NONE"
      ],
      "description": "The update reason."
    }
  },
  "required": [
    "TemplateArn",
    "LensAlias",
    "QuestionId"
  ],
  "$defs": {
    "ChoiceUpdate": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "SELECTED",
            "NOT_APPLICABLE",
            "UNSELECTED"
          ],
          "description": "The status of a choice."
        },
        "Reason": {
          "type": "string",
          "enum": [
            "OUT_OF_SCOPE",
            "BUSINESS_PRIORITIES",
            "ARCHITECTURE_CONSTRAINTS",
            "OTHER",
            "NONE"
          ],
          "description": "The reason why a choice is non-applicable to a question in your workload."
        },
        "Notes": {
          "type": "string",
          "description": "The notes associated with a choice."
        }
      },
      "required": [
        "Status"
      ]
    }
  }
}