{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-get-consolidated-report-output-schema.json",
  "title": "GetConsolidatedReportOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-well-architected-tool-consolidatedreport-api-openapi.yml#/components/schemas/GetConsolidatedReportOutput",
  "type": "object",
  "properties": {
    "Metrics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConsolidatedReportMetric"
      },
      "description": "The metrics that make up the consolidated report. Only returned when JSON format is requested."
    },
    "NextToken": {
      "type": "string"
    },
    "Base64String": {
      "type": "string"
    }
  },
  "$defs": {
    "BestPractice": {
      "type": "object",
      "properties": {
        "ChoiceId": {
          "type": "string"
        },
        "ChoiceTitle": {
          "type": "string"
        }
      }
    },
    "ConsolidatedReportMetric": {
      "type": "object",
      "properties": {
        "MetricType": {
          "type": "string",
          "enum": [
            "WORKLOAD"
          ],
          "description": "The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported."
        },
        "RiskCounts": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          }
        },
        "WorkloadId": {
          "type": "string"
        },
        "WorkloadName": {
          "type": "string"
        },
        "WorkloadArn": {
          "type": "string"
        },
        "UpdatedAt": {
          "type": "string",
          "description": "The date and time when the consolidated report metric was last updated."
        },
        "Lenses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LensMetric"
          },
          "description": "The metrics for the lenses in the workload."
        },
        "LensesAppliedCount": {
          "type": "integer",
          "description": "The total number of lenses applied to the workload."
        }
      }
    },
    "LensMetric": {
      "type": "object",
      "properties": {
        "LensArn": {
          "type": "string",
          "description": "The lens ARN."
        },
        "Pillars": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PillarMetric"
          },
          "description": "The metrics for the pillars in a lens."
        },
        "RiskCounts": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          }
        }
      }
    },
    "PillarMetric": {
      "type": "object",
      "properties": {
        "PillarId": {
          "type": "string"
        },
        "RiskCounts": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          }
        },
        "Questions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuestionMetric"
          },
          "description": "The questions that have been identified as risks in the pillar."
        }
      }
    },
    "QuestionMetric": {
      "type": "object",
      "properties": {
        "QuestionId": {
          "type": "string"
        },
        "Risk": {
          "type": "string",
          "enum": [
            "UNANSWERED",
            "HIGH",
            "MEDIUM",
            "NONE",
            "NOT_APPLICABLE"
          ]
        },
        "BestPractices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BestPractice"
          },
          "description": "The best practices, or choices, that have been identified as contributing to risk in a question."
        }
      }
    }
  }
}