{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resilience-hub/json-schema/amazon-resilience-hub-describe-app-assessment-response-schema.json",
  "title": "DescribeAppAssessmentResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-resilience-hub-assessments-api-openapi.yml#/components/schemas/DescribeAppAssessmentResponse",
  "type": "object",
  "properties": {
    "assessment": {
      "$ref": "#/$defs/AppAssessment"
    }
  },
  "required": [
    "assessment"
  ],
  "$defs": {
    "AppAssessment": {
      "type": "object",
      "properties": {
        "appArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide."
        },
        "appVersion": {
          "type": "string",
          "description": "Version of an application."
        },
        "invoker": {
          "type": "string",
          "enum": [
            "User",
            "System"
          ],
          "description": "The entity that invoked the assessment."
        },
        "cost": {
          "$ref": "#/$defs/Cost"
        },
        "resiliencyScore": {
          "$ref": "#/$defs/ResiliencyScore"
        },
        "compliance": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DisruptionCompliance"
          },
          "description": "Application compliance against the resiliency policy."
        },
        "complianceStatus": {
          "type": "string",
          "enum": [
            "PolicyBreached",
            "PolicyMet",
            "NotApplicable",
            "MissingPolicy"
          ],
          "description": "Current status of the compliance for the resiliency policy."
        },
        "assessmentStatus": {
          "type": "string",
          "enum": [
            "Pending",
            "InProgress",
            "Failed",
            "Success"
          ],
          "description": "Current status of the assessment for the resiliency policy."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Starting time for the action."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "End time for the action."
        },
        "message": {
          "type": "string",
          "description": "Error or warning message from the assessment execution"
        },
        "assessmentName": {
          "type": "string",
          "description": "Name of the assessment."
        },
        "assessmentArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide."
        },
        "policy": {
          "$ref": "#/$defs/ResiliencyPolicy"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair."
        },
        "resourceErrorsDetails": {
          "$ref": "#/$defs/ResourceErrorsDetails"
        },
        "versionName": {
          "type": "string",
          "description": "Version name of the published application."
        },
        "driftStatus": {
          "type": "string",
          "enum": [
            "NotChecked",
            "NotDetected",
            "Detected"
          ],
          "description": "Indicates if compliance drifts (deviations) were detected while running an assessment for your application."
        },
        "summary": {
          "$ref": "#/$defs/AssessmentSummary"
        }
      },
      "required": [
        "invoker",
        "assessmentStatus",
        "assessmentArn"
      ]
    },
    "AssessmentRiskRecommendation": {
      "type": "object",
      "properties": {
        "risk": {
          "type": "string",
          "description": "Indicates the description of the potential risk identified in the application as part of the Resilience Hub assessment. This property is available only in the US East (N. Virginia) Region."
        },
        "recommendation": {
          "type": "string",
          "description": "Indicates the recommendation provided by the Resilience Hub to address the identified risks in the application. This property is available only in the US East (N. Virginia) Region."
        },
        "appComponents": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Indicates the Application Components (AppComponents) that were assessed as part of the assessment and are associated with the identified risk and recommendation. This property is available only in the US East (N. Virginia) Region."
        }
      }
    },
    "AssessmentSummary": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string",
          "description": "Indicates a concise summary that provides an overview of the Resilience Hub assessment. This property is available only in the US East (N. Virginia) Region."
        },
        "riskRecommendations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AssessmentRiskRecommendation"
          },
          "description": "Indicates the top risks and recommendations identified by the Resilience Hub assessment, each representing a specific risk and the corresponding recommendation to address it. This property is available only in the US East (N. Virginia) Region."
        }
      }
    },
    "Cost": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "description": "The cost amount."
        },
        "currency": {
          "type": "string",
          "description": "The cost currency, for example USD."
        },
        "frequency": {
          "type": "string",
          "enum": [
            "Hourly",
            "Daily",
            "Monthly",
            "Yearly"
          ],
          "description": "The cost frequency."
        }
      },
      "required": [
        "amount",
        "currency",
        "frequency"
      ]
    },
    "DisruptionCompliance": {
      "type": "object",
      "properties": {
        "achievableRtoInSecs": {
          "type": "integer",
          "description": "The Recovery Time Objective (RTO) that is achievable, in seconds"
        },
        "currentRtoInSecs": {
          "type": "integer",
          "description": "The current RTO, in seconds."
        },
        "rtoReferenceId": {
          "type": "string",
          "description": "Reference identifier of the RTO."
        },
        "rtoDescription": {
          "type": "string",
          "description": "The RTO description."
        },
        "currentRpoInSecs": {
          "type": "integer",
          "description": "The current RPO, in seconds."
        },
        "rpoReferenceId": {
          "type": "string",
          "description": "Reference identifier of the RPO ."
        },
        "rpoDescription": {
          "type": "string",
          "description": "The RPO description."
        },
        "complianceStatus": {
          "type": "string",
          "enum": [
            "PolicyBreached",
            "PolicyMet",
            "NotApplicable",
            "MissingPolicy"
          ],
          "description": "The current status of compliance for the resiliency policy."
        },
        "achievableRpoInSecs": {
          "type": "integer",
          "description": "The Recovery Point Objective (RPO) that is achievable, in seconds."
        },
        "message": {
          "type": "string",
          "description": "The disruption compliance message."
        }
      },
      "required": [
        "complianceStatus"
      ]
    },
    "FailurePolicy": {
      "type": "object",
      "properties": {
        "rtoInSecs": {
          "type": "integer",
          "description": "Recovery Time Objective (RTO) in seconds."
        },
        "rpoInSecs": {
          "type": "integer",
          "description": "Recovery Point Objective (RPO) in seconds."
        }
      },
      "required": [
        "rtoInSecs",
        "rpoInSecs"
      ]
    },
    "ResiliencyPolicy": {
      "type": "object",
      "properties": {
        "policyArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide."
        },
        "policyName": {
          "type": "string",
          "description": "The name of the policy"
        },
        "policyDescription": {
          "type": "string",
          "description": "Description of the resiliency policy."
        },
        "dataLocationConstraint": {
          "type": "string",
          "enum": [
            "AnyLocation",
            "SameContinent",
            "SameCountry"
          ],
          "description": "Specifies a high-level geographical location constraint for where your resilience policy data can be stored."
        },
        "tier": {
          "type": "string",
          "enum": [
            "MissionCritical",
            "Critical",
            "Important",
            "CoreServices",
            "NonCritical",
            "NotApplicable"
          ],
          "description": "The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (NonCritical)."
        },
        "estimatedCostTier": {
          "type": "string",
          "enum": [
            "L1",
            "L2",
            "L3",
            "L4"
          ],
          "description": "Specifies the estimated cost tier of the resiliency policy."
        },
        "policy": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/FailurePolicy"
          },
          "description": "The resiliency policy."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the resiliency policy was created."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair."
        }
      }
    },
    "ResiliencyScore": {
      "type": "object",
      "properties": {
        "score": {
          "type": "number",
          "description": "The outage score for a valid key."
        },
        "disruptionScore": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "The disruption score for a valid key."
        },
        "componentScore": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ScoringComponentResiliencyScore"
          },
          "description": "The score generated by Resilience Hub for the scoring component after running an assessment. For example, if the score is 25 points, it indicates the overall score of your application generated by Resilience Hub after running an assessment."
        }
      },
      "required": [
        "score",
        "disruptionScore"
      ]
    },
    "ResourceError": {
      "type": "object",
      "properties": {
        "logicalResourceId": {
          "type": "string",
          "description": "Identifier of the logical resource."
        },
        "physicalResourceId": {
          "type": "string",
          "description": "Identifier of the physical resource."
        },
        "reason": {
          "type": "string",
          "description": "This is the error message."
        }
      }
    },
    "ResourceErrorsDetails": {
      "type": "object",
      "properties": {
        "resourceErrors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceError"
          },
          "description": "A list of errors retrieving an application's resources."
        },
        "hasMoreErrors": {
          "type": "boolean",
          "description": "This indicates if there are more errors not listed in the resourceErrors list."
        }
      }
    },
    "ScoringComponentResiliencyScore": {
      "type": "object",
      "properties": {
        "score": {
          "type": "number",
          "description": "Resiliency score points given for the scoring component. The score is always less than or equal to the possibleScore."
        },
        "possibleScore": {
          "type": "number",
          "description": "Maximum possible score that can be obtained for the scoring component. For example, if the possibleScore is 20 points, it indicates the maximum possible score you can achieve for the scoring component when you run a new assessment after implementing all the Resilience Hub recommendations."
        },
        "outstandingCount": {
          "type": "integer",
          "description": "Number of recommendations that must be implemented to obtain the maximum possible score for the scoring component. For SOPs, alarms, and tests, these are the number of recommendations that must be implemented. For compliance, these are the number of Application Components that have breached the resiliency policy. For example, if the outstandingCount for Alarms coverage scoring component is 5, it indicates that 5 Amazon CloudWatch alarms need to be implemented to achieve the maximum possible score."
        },
        "excludedCount": {
          "type": "integer",
          "description": "Number of recommendations that were excluded from the assessment. For example, if the excludedCount for Alarms coverage scoring component is 7, it indicates that 7 Amazon CloudWatch alarms are excluded from the assessment."
        }
      }
    }
  }
}