{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-start-incident-input-schema.json",
  "title": "StartIncidentInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-start-incident-api-openapi.yml#/components/schemas/StartIncidentInput",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A token ensuring that the operation is called only once with the specified details."
    },
    "responsePlanArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the response plan that pre-defines summary, chat channels, Amazon SNS topics, runbooks, title, and impact of the incident."
    },
    "title": {
      "type": "string",
      "description": "Provide a title for the incident. Providing a title overwrites the title provided by the response plan."
    },
    "impact": {
      "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"
    },
    "triggerDetails": {
      "$ref": "#/$defs/TriggerDetails"
    },
    "relatedItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RelatedItem"
      },
      "description": "Add related items to the incident for other responders to use. Related items are Amazon Web Services resources, external links, or files uploaded to an Amazon S3 bucket."
    }
  },
  "required": [
    "responsePlanArn"
  ],
  "$defs": {
    "ItemIdentifier": {
      "type": "object",
      "properties": {
        "value": {
          "$ref": "#/$defs/ItemValue"
        },
        "type": {
          "type": "string",
          "description": "The type of related item."
        }
      },
      "required": [
        "value",
        "type"
      ]
    },
    "ItemValue": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource."
        },
        "url": {
          "type": "string",
          "description": "The URL, if the related item is a non-Amazon Web Services resource."
        },
        "metricDefinition": {
          "type": "string",
          "description": "The metric definition, if the related item is a metric in Amazon CloudWatch."
        },
        "pagerDutyIncidentDetail": {
          "$ref": "#/$defs/PagerDutyIncidentDetail"
        }
      },
      "description": "Exactly one member is set."
    },
    "PagerDutyIncidentDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the incident associated with the PagerDuty service for the response plan."
        },
        "autoResolve": {
          "type": "boolean",
          "description": "Indicates whether to resolve the PagerDuty incident when you resolve the associated Incident Manager incident."
        },
        "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."
        }
      },
      "required": [
        "id"
      ]
    },
    "RelatedItem": {
      "type": "object",
      "properties": {
        "identifier": {
          "$ref": "#/$defs/ItemIdentifier"
        },
        "title": {
          "type": "string",
          "description": "The title of the related item."
        },
        "generatedId": {
          "type": "string",
          "description": "A unique ID for a RelatedItem. Don't specify this parameter when you add a RelatedItem by using the UpdateRelatedItems API action."
        }
      },
      "required": [
        "identifier"
      ]
    },
    "TriggerDetails": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "description": "Identifies the service that sourced the event. All events sourced from within Amazon Web Services begin with \"aws.\" Customer-generated events can have any value here, as long as it doesn't begin with \"aws.\" We recommend the use of Java package-name style reverse domain-name strings."
        },
        "triggerArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the source that detected the incident."
        },
        "timestamp": {
          "type": "string",
          "description": "The timestamp for when the incident was detected."
        },
        "rawData": {
          "type": "string",
          "description": "Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or Incident Manager when an incident is created."
        }
      },
      "required": [
        "source",
        "timestamp"
      ]
    }
  }
}