{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resilience-hub/json-schema/amazon-resilience-hub-list-sop-recommendations-response-schema.json",
  "title": "ListSopRecommendationsResponse",
  "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/ListSopRecommendationsResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "Token for the next set of results, or null if there are no more results."
    },
    "sopRecommendations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SopRecommendation"
      },
      "description": "The standard operating procedure (SOP) recommendations for the Resilience Hub applications."
    }
  },
  "required": [
    "sopRecommendations"
  ],
  "$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"
        }
      }
    },
    "SopRecommendation": {
      "type": "object",
      "properties": {
        "serviceType": {
          "type": "string",
          "enum": [
            "SSM"
          ],
          "description": "The service type."
        },
        "appComponentName": {
          "type": "string",
          "description": "Name of the Application Component."
        },
        "description": {
          "type": "string",
          "description": "Description of the SOP recommendation."
        },
        "recommendationId": {
          "type": "string",
          "description": "Identifier for the SOP recommendation."
        },
        "name": {
          "type": "string",
          "description": "Name of the SOP recommendation."
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RecommendationItem"
          },
          "description": "The recommendation items."
        },
        "referenceId": {
          "type": "string",
          "description": "Reference identifier for the SOP recommendation."
        },
        "prerequisite": {
          "type": "string",
          "description": "Prerequisite for the SOP recommendation."
        },
        "recommendationStatus": {
          "type": "string",
          "enum": [
            "Implemented",
            "Inactive",
            "NotImplemented",
            "Excluded"
          ],
          "description": "Status of the recommended standard operating procedure."
        }
      },
      "required": [
        "serviceType",
        "recommendationId",
        "referenceId"
      ]
    }
  }
}