{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-get-response-plan-output-schema.json",
  "title": "GetResponsePlanOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-getresponseplan-api-openapi.yml#/components/schemas/GetResponsePlanOutput",
  "type": "object",
  "properties": {
    "arn": {
      "type": "string",
      "description": "The ARN of the response plan."
    },
    "name": {
      "type": "string",
      "description": "The short format name of the response plan. The name can't contain spaces."
    },
    "displayName": {
      "type": "string",
      "description": "The long format name of the response plan. Can contain spaces."
    },
    "incidentTemplate": {
      "$ref": "#/$defs/IncidentTemplate"
    },
    "chatChannel": {
      "$ref": "#/$defs/ChatChannel"
    },
    "engagements": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an incident."
    },
    "actions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Action"
      },
      "description": "The actions that this response plan takes at the beginning of the incident."
    },
    "integrations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Integration"
      },
      "description": "Information about third-party services integrated into the Incident Manager response plan."
    }
  },
  "required": [
    "arn",
    "name",
    "incidentTemplate"
  ],
  "$defs": {
    "Action": {
      "type": "object",
      "properties": {
        "ssmAutomation": {
          "$ref": "#/$defs/SsmAutomation"
        }
      },
      "description": "Exactly one member is set."
    },
    "ChatChannel": {
      "type": "object",
      "properties": {
        "empty": {
          "$ref": "#/$defs/EmptyChatChannel"
        },
        "chatbotSns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon SNS targets that Chatbot uses to notify the chat channel of updates to an incident. You can also make updates to the incident through the chat channel by using the Amazon SNS topics."
        }
      },
      "description": "Exactly one member is set."
    },
    "DynamicSsmParameterValue": {
      "type": "object",
      "properties": {
        "variable": {
          "type": "string",
          "description": "Variable dynamic parameters. A parameter value is determined when an incident is created."
        }
      },
      "description": "Exactly one member is set."
    },
    "EmptyChatChannel": {
      "type": "object",
      "properties": {}
    },
    "IncidentTemplate": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "The title of the incident."
        },
        "impact": {
          "type": "integer",
          "description": "The impact of the incident on your customers and applications. Supported impact codes 1 - Critical 2 - High 3 - Medium 4 - Low 5 - No Impact"
        },
        "summary": {
          "type": "string",
          "description": "The summary of the incident. The summary is a brief synopsis of what occurred, what's currently happening, and context."
        },
        "dedupeString": {
          "type": "string",
          "description": "The string Incident Manager uses to prevent the same root cause from creating multiple incidents in the same account. A deduplication string is a term or phrase the system uses to check for duplicate incidents. If you specify a deduplication string, Incident Manager searches for open incidents that contain the same string in the dedupeString field when it creates the incident. If a duplicate is detected, Incident Manager deduplicates the newer incident into the existing incident. By default, Incident Manager automatically deduplicates multiple incidents created by the same Amazon CloudWatch al"
        },
        "notificationTargets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NotificationTargetItem"
          },
          "description": "The Amazon SNS targets that are notified when updates are made to an incident."
        },
        "incidentTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags to assign to the template. When the StartIncident API action is called, Incident Manager assigns the tags specified in the template to the incident."
        }
      },
      "required": [
        "title",
        "impact"
      ]
    },
    "Integration": {
      "type": "object",
      "properties": {
        "pagerDutyConfiguration": {
          "$ref": "#/$defs/PagerDutyConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "NotificationTargetItem": {
      "type": "object",
      "properties": {
        "snsTopicArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the SNS topic."
        }
      },
      "description": "Exactly one member is set."
    },
    "PagerDutyConfiguration": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the PagerDuty configuration."
        },
        "secretId": {
          "type": "string",
          "description": "The ID of the Amazon Web Services Secrets Manager secret that stores your PagerDuty key, either a General Access REST API Key or User Token REST API Key, and other user credentials."
        },
        "pagerDutyIncidentConfiguration": {
          "$ref": "#/$defs/PagerDutyIncidentConfiguration"
        }
      },
      "required": [
        "name",
        "secretId",
        "pagerDutyIncidentConfiguration"
      ]
    },
    "PagerDutyIncidentConfiguration": {
      "type": "object",
      "properties": {
        "serviceId": {
          "type": "string",
          "description": "The ID of the PagerDuty service that the response plan associates with an incident when it launches."
        }
      },
      "required": [
        "serviceId"
      ]
    },
    "SsmAutomation": {
      "type": "object",
      "properties": {
        "roleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands."
        },
        "documentName": {
          "type": "string",
          "description": "The automation document's name."
        },
        "documentVersion": {
          "type": "string",
          "description": "The automation document's version to use when running."
        },
        "targetAccount": {
          "type": "string",
          "description": "The account that the automation document will be run in. This can be in either the management account or an application account."
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "The key-value pair parameters to use when running the automation document."
        },
        "dynamicParameters": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DynamicSsmParameterValue"
          },
          "description": "The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook."
        }
      },
      "required": [
        "roleArn",
        "documentName"
      ]
    }
  }
}