{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-create-timeline-event-input-schema.json",
  "title": "CreateTimelineEventInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-create-timeline-event-api-openapi.yml#/components/schemas/CreateTimelineEventInput",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A token that ensures that a client calls the action only once with the specified details."
    },
    "incidentRecordArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the incident record that the action adds the incident to."
    },
    "eventTime": {
      "type": "string",
      "description": "The timestamp for when the event occurred."
    },
    "eventType": {
      "type": "string",
      "description": "The type of event. You can create timeline events of type Custom Event and Note. To make a Note-type event appear on the Incident notes panel in the console, specify eventType as Noteand enter the Amazon Resource Name (ARN) of the incident as the value for eventReference."
    },
    "eventData": {
      "type": "string",
      "description": "A short description of the event."
    },
    "eventReferences": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EventReference"
      },
      "description": "Adds one or more references to the TimelineEvent. A reference is an Amazon Web Services resource involved or associated with the incident. To specify a reference, enter its Amazon Resource Name (ARN). You can also specify a related item associated with a resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item."
    }
  },
  "required": [
    "incidentRecordArn",
    "eventTime",
    "eventType",
    "eventData"
  ],
  "$defs": {
    "EventReference": {
      "type": "object",
      "properties": {
        "resource": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a TimelineEvent."
        },
        "relatedItemId": {
          "type": "string",
          "description": "The ID of a RelatedItem referenced in a TimelineEvent."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}