{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resilience-hub/json-schema/amazon-resilience-hub-list-test-recommendations-response-schema.json",
  "title": "ListTestRecommendationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-resilience-hub-recommendations-api-openapi.yml#/components/schemas/ListTestRecommendationsResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "Token for the next set of results, or null if there are no more results."
    },
    "testRecommendations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TestRecommendation"
      },
      "description": "The test recommendations for the Resilience Hub application."
    }
  },
  "required": [
    "testRecommendations"
  ],
  "$defs": {
    "Alarm": {
      "type": "object",
      "properties": {
        "alarmArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the Amazon CloudWatch alarm."
        },
        "source": {
          "type": "string",
          "description": "Indicates the source of the Amazon CloudWatch alarm. That is, it indicates if the alarm was created using Resilience Hub recommendation (AwsResilienceHub), or if you had created the alarm in Amazon CloudWatch (Customer)."
        }
      }
    },
    "Experiment": {
      "type": "object",
      "properties": {
        "experimentArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the FIS experiment."
        },
        "experimentTemplateId": {
          "type": "string",
          "description": "Identifier of the FIS experiment template."
        }
      }
    },
    "RecommendationItem": {
      "type": "object",
      "properties": {
        "resourceId": {
          "type": "string",
          "description": "Identifier of the resource."
        },
        "targetAccountId": {
          "type": "string",
          "description": "Identifier of the target account."
        },
        "targetRegion": {
          "type": "string",
          "description": "The target region."
        },
        "alreadyImplemented": {
          "type": "boolean",
          "description": "Specifies if the recommendation has already been implemented."
        },
        "excluded": {
          "type": "boolean",
          "description": "Indicates if an operational recommendation item is excluded."
        },
        "excludeReason": {
          "type": "string",
          "enum": [
            "AlreadyImplemented",
            "NotRelevant",
            "ComplexityOfImplementation"
          ],
          "description": "Indicates the reason for excluding an operational recommendation."
        },
        "latestDiscoveredExperiment": {
          "$ref": "#/$defs/Experiment"
        },
        "discoveredAlarm": {
          "$ref": "#/$defs/Alarm"
        }
      }
    },
    "TestRecommendation": {
      "type": "object",
      "properties": {
        "recommendationId": {
          "type": "string",
          "description": "Identifier for the test recommendation."
        },
        "referenceId": {
          "type": "string",
          "description": "Reference identifier for the test recommendation."
        },
        "appComponentId": {
          "type": "string",
          "description": "Indicates the identifier of the AppComponent."
        },
        "appComponentName": {
          "type": "string",
          "description": "Name of the Application Component."
        },
        "name": {
          "type": "string",
          "description": "Name of the test recommendation."
        },
        "intent": {
          "type": "string",
          "description": "Intent of the test recommendation."
        },
        "risk": {
          "type": "string",
          "enum": [
            "Small",
            "Medium",
            "High"
          ],
          "description": "Level of risk for this test recommendation."
        },
        "type": {
          "type": "string",
          "enum": [
            "Software",
            "Hardware",
            "AZ",
            "Region"
          ],
          "description": "Type of test recommendation."
        },
        "description": {
          "type": "string",
          "description": "Description for the test recommendation."
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RecommendationItem"
          },
          "description": "The test recommendation items."
        },
        "prerequisite": {
          "type": "string",
          "description": "Prerequisite of the test recommendation."
        },
        "dependsOnAlarms": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of recommended alarms that are used in the test and must be exported before or with the test."
        },
        "recommendationStatus": {
          "type": "string",
          "enum": [
            "Implemented",
            "Inactive",
            "NotImplemented",
            "Excluded"
          ],
          "description": "Status of the recommended test."
        }
      },
      "required": [
        "referenceId"
      ]
    }
  }
}