{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-create-ops-item-request-schema.json",
  "title": "CreateOpsItemRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-ops-item-api-openapi.yml#/components/schemas/CreateOpsItemRequest",
  "type": "object",
  "properties": {
    "Description": {
      "type": "string",
      "description": "User-defined text that contains information about the OpsItem, in Markdown format. Provide enough information so that users viewing this OpsItem for the first time understand the issue."
    },
    "OpsItemType": {
      "type": "string",
      "description": "The type of OpsItem to create. Systems Manager supports the following types of OpsItems: /aws/issue This type of OpsItem is used for default OpsItems created by OpsCenter. /aws/insight This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems. /aws/changerequest This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests. Amazon Web Services Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see Amazon Web Services S"
    },
    "OperationalData": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/OpsItemDataValue"
      },
      "description": "Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB. Operational data keys can't begin with the following: amazon, aws, amzn, ssm, /amazon, /aws, /amzn, /ssm. You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with acces"
    },
    "Notifications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpsItemNotification"
      },
      "description": "The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed."
    },
    "Priority": {
      "type": "integer",
      "description": "The importance of this OpsItem in relation to other OpsItems in the system."
    },
    "RelatedOpsItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RelatedOpsItem"
      },
      "description": "One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource."
    },
    "Source": {
      "type": "string",
      "description": "The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The source name can't contain the following strings: aws, amazon, and amzn."
    },
    "Title": {
      "type": "string",
      "description": "A short heading that describes the nature of the OpsItem and the impacted resource."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Optional metadata that you assign to a resource. Tags use a key-value pair. For example: Key=Department,Value=Finance To add tags to a new OpsItem, a user must have IAM permissions for both the ssm:CreateOpsItems operation and the ssm:AddTagsToResource operation. To add tags to an existing OpsItem, use the AddTagsToResource operation."
    },
    "Category": {
      "type": "string",
      "description": "Specify a category to assign to an OpsItem."
    },
    "Severity": {
      "type": "string",
      "description": "Specify a severity to assign to an OpsItem."
    },
    "ActualStartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest."
    },
    "ActualEndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest."
    },
    "PlannedStartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type /aws/changerequest."
    },
    "PlannedEndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type /aws/changerequest."
    },
    "AccountId": {
      "type": "string",
      "description": "The target Amazon Web Services account where you want to create an OpsItem. To make this call, your account must be configured to work with OpsItems across accounts. For more information, see Set up OpsCenter in the Amazon Web Services Systems Manager User Guide."
    }
  },
  "required": [
    "Description",
    "Source",
    "Title"
  ],
  "$defs": {
    "OpsItemDataValue": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "The value of the OperationalData key."
        },
        "Type": {
          "type": "string",
          "enum": [
            "SearchableString",
            "String"
          ],
          "description": "The type of key-value pair. Valid types include SearchableString and String."
        }
      }
    },
    "OpsItemNotification": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed."
        }
      }
    },
    "RelatedOpsItem": {
      "type": "object",
      "properties": {
        "OpsItemId": {
          "type": "string",
          "description": "The ID of an OpsItem related to the current OpsItem."
        }
      },
      "required": [
        "OpsItemId"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}