{
  "$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-output-schema.json",
  "title": "UpdateReviewTemplateAnswerOutput",
  "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/UpdateReviewTemplateAnswerOutput",
  "type": "object",
  "properties": {
    "TemplateArn": {
      "type": "string",
      "description": "The review template ARN."
    },
    "LensAlias": {
      "type": "string"
    },
    "Answer": {
      "$ref": "#/$defs/ReviewTemplateAnswer"
    }
  },
  "$defs": {
    "AdditionalResources": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "HELPFUL_RESOURCE",
            "IMPROVEMENT_PLAN"
          ],
          "description": "Type of additional resource for a custom lens."
        },
        "Content": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ChoiceContent"
          },
          "description": "The URLs for additional resources, either helpful resources or improvement plans, for a custom lens. Up to five additional URLs can be specified."
        }
      }
    },
    "Choice": {
      "type": "object",
      "properties": {
        "ChoiceId": {
          "type": "string"
        },
        "Title": {
          "type": "string"
        },
        "Description": {
          "type": "string"
        },
        "HelpfulResource": {
          "$ref": "#/$defs/ChoiceContent"
        },
        "ImprovementPlan": {
          "$ref": "#/$defs/ChoiceContent"
        },
        "AdditionalResources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdditionalResources"
          },
          "description": "The additional resources for a choice in a custom lens. A choice can have up to two additional resources: one of type HELPFUL_RESOURCE, one of type IMPROVEMENT_PLAN, or both."
        }
      }
    },
    "ChoiceAnswer": {
      "type": "object",
      "properties": {
        "ChoiceId": {
          "type": "string"
        },
        "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."
        }
      }
    },
    "ChoiceContent": {
      "type": "object",
      "properties": {
        "DisplayText": {
          "type": "string",
          "description": "The display text for the choice content."
        },
        "Url": {
          "type": "string",
          "description": "The URL for the choice content."
        }
      }
    },
    "ReviewTemplateAnswer": {
      "type": "object",
      "properties": {
        "QuestionId": {
          "type": "string"
        },
        "PillarId": {
          "type": "string"
        },
        "QuestionTitle": {
          "type": "string"
        },
        "QuestionDescription": {
          "type": "string"
        },
        "ImprovementPlanUrl": {
          "type": "string"
        },
        "HelpfulResourceUrl": {
          "type": "string"
        },
        "HelpfulResourceDisplayText": {
          "type": "string",
          "description": "The helpful resource text to be displayed for a custom lens. This field does not apply to Amazon Web Services official lenses."
        },
        "Choices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Choice"
          }
        },
        "SelectedChoices": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ChoiceAnswers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ChoiceAnswer"
          },
          "description": "A list of selected choices to a question in your review template."
        },
        "IsApplicable": {
          "type": "boolean"
        },
        "AnswerStatus": {
          "type": "string",
          "enum": [
            "UNANSWERED",
            "ANSWERED"
          ],
          "description": "The status of whether or not this question has been answered."
        },
        "Notes": {
          "type": "string"
        },
        "Reason": {
          "type": "string",
          "enum": [
            "OUT_OF_SCOPE",
            "BUSINESS_PRIORITIES",
            "ARCHITECTURE_CONSTRAINTS",
            "OTHER",
            "NONE"
          ],
          "description": "The reason why the question is not applicable to your review template."
        }
      }
    }
  }
}