{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-update-response-plan-input-schema.json",
  "title": "UpdateResponsePlanInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-update-response-plan-api-openapi.yml#/components/schemas/UpdateResponsePlanInput",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A token ensuring that the operation is called only once with the specified details."
    },
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the response plan."
    },
    "displayName": {
      "type": "string",
      "description": "The long format name of the response plan. The display name can't contain spaces."
    },
    "incidentTemplateTitle": {
      "type": "string",
      "description": "The short format name of the incident. The title can't contain spaces."
    },
    "incidentTemplateImpact": {
      "type": "integer",
      "description": "Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan. Supported impact codes 1 - Critical 2 - High 3 - Medium 4 - Low 5 - No Impact"
    },
    "incidentTemplateSummary": {
      "type": "string",
      "description": "A brief summary of the incident. This typically contains what has happened, what's currently happening, and next steps."
    },
    "incidentTemplateDedupeString": {
      "type": "string",
      "description": "The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the same account."
    },
    "incidentTemplateNotificationTargets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NotificationTargetItem"
      },
      "description": "The Amazon SNS targets that are notified when updates are made to an incident."
    },
    "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 an incident."
    },
    "incidentTemplateTags": {
      "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. To call this action, you must also have permission to call the TagResource API action for the incident record resource."
    },
    "integrations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Integration"
      },
      "description": "Information about third-party services integrated into the response plan."
    }
  },
  "required": [
    "arn"
  ],
  "$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": {}
    },
    "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"
      ]
    }
  }
}