{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-list-review-template-answers-output-schema.json",
  "title": "ListReviewTemplateAnswersOutput",
  "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/ListReviewTemplateAnswersOutput",
  "type": "object",
  "properties": {
    "TemplateArn": {
      "type": "string",
      "description": "The ARN of the review template."
    },
    "LensAlias": {
      "type": "string"
    },
    "AnswerSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReviewTemplateAnswerSummary"
      },
      "description": "List of answer summaries of a lens review in a review template."
    },
    "NextToken": {
      "type": "string"
    }
  },
  "$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."
        }
      }
    },
    "ChoiceAnswerSummary": {
      "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."
        }
      }
    },
    "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."
        }
      }
    },
    "ReviewTemplateAnswerSummary": {
      "type": "object",
      "properties": {
        "QuestionId": {
          "type": "string"
        },
        "PillarId": {
          "type": "string"
        },
        "QuestionTitle": {
          "type": "string"
        },
        "Choices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Choice"
          }
        },
        "SelectedChoices": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ChoiceAnswerSummaries": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ChoiceAnswerSummary"
          },
          "description": "A list of selected choices to a question in the review template."
        },
        "IsApplicable": {
          "type": "boolean"
        },
        "AnswerStatus": {
          "type": "string",
          "enum": [
            "UNANSWERED",
            "ANSWERED"
          ],
          "description": "The status of whether or not this question has been answered."
        },
        "Reason": {
          "type": "string",
          "enum": [
            "OUT_OF_SCOPE",
            "BUSINESS_PRIORITIES",
            "ARCHITECTURE_CONSTRAINTS",
            "OTHER",
            "NONE"
          ],
          "description": "The reason why a choice is not-applicable to a question in the review template."
        },
        "QuestionType": {
          "type": "string",
          "enum": [
            "PRIORITIZED",
            "NON_PRIORITIZED"
          ],
          "description": "The type of question."
        }
      }
    }
  }
}