{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-trusted-advisor/json-schema/amazon-trusted-advisor-describe-cases-response-schema.json",
  "title": "DescribeCasesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-trusted-advisor-describecases-api-openapi.yml#/components/schemas/DescribeCasesResponse",
  "type": "object",
  "properties": {
    "cases": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CaseDetails"
      },
      "description": "The details for the cases that match the request."
    },
    "nextToken": {
      "type": "string",
      "description": "A resumption point for pagination."
    }
  },
  "$defs": {
    "AttachmentDetails": {
      "type": "object",
      "properties": {
        "attachmentId": {
          "type": "string",
          "description": "The ID of the attachment."
        },
        "fileName": {
          "type": "string",
          "description": "The file name of the attachment."
        }
      }
    },
    "CaseDetails": {
      "type": "object",
      "properties": {
        "caseId": {
          "type": "string",
          "description": "The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-exen-2025-c4c1d2bf33c5cf47"
        },
        "displayId": {
          "type": "string",
          "description": "The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string."
        },
        "subject": {
          "type": "string",
          "description": "The subject line for the case in the Amazon Web Services Support Center."
        },
        "status": {
          "type": "string",
          "description": "The status of the case. Valid values: all-open customer-action-completed opened pending-customer-action reopened resolved unassigned work-in-progress"
        },
        "serviceCode": {
          "type": "string",
          "description": "The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by calling DescribeServices."
        },
        "categoryCode": {
          "type": "string",
          "description": "The category of problem for the support case."
        },
        "severityCode": {
          "type": "string",
          "description": "The code for the severity level returned by the call to DescribeSeverityLevels."
        },
        "submittedBy": {
          "type": "string",
          "description": "The email address of the account that submitted the case."
        },
        "timeCreated": {
          "type": "string",
          "description": "The time that the case was created in the Amazon Web Services Support Center."
        },
        "recentCommunications": {
          "$ref": "#/$defs/RecentCaseCommunications"
        },
        "ccEmailAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The email addresses that receive copies of communication about the case."
        },
        "language": {
          "type": "string",
          "description": "The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English (\"en\"), Japanese (\"ja\") , Chinese (\"zh\"), Spanish (\"es\"), Portuguese (\"pt\"), French (\"fr\"), Korean (“ko”), and Turkish (\"tr\"). You must specify the ISO 639-1 code for the language parameter if you want support in that language."
        }
      }
    },
    "Communication": {
      "type": "object",
      "properties": {
        "caseId": {
          "type": "string",
          "description": "The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-exen-2025-c4c1d2bf33c5cf47"
        },
        "body": {
          "type": "string",
          "description": "The text of the communication between the customer and Amazon Web Services Support."
        },
        "submittedBy": {
          "type": "string",
          "description": "The identity of the account that submitted, or responded to, the support case. Customer entries include the IAM role as well as the email address (for example, \"AdminRole (Role) ). Entries from the Amazon Web Services Support team display \"Amazon Web Services,\" and don't show an email address."
        },
        "timeCreated": {
          "type": "string",
          "description": "The time the communication was created."
        },
        "attachments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttachmentDetails"
          },
          "description": "Information about all attachments on the case communication. This includes attachments added through AddAttachmentsToSet and attachments uploaded through GetAttachmentUploadLinks. Use this field to enumerate every attachment on the communication. To download an attachment listed in this field, use GetAttachmentDownloadLink. GetAttachmentDownloadLink returns a presigned URL that works for attachments of any size."
        },
        "attachmentSet": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttachmentDetails"
          },
          "description": "Information about the attachments to the case communication that are 5 MB or smaller. This field doesn't include attachments larger than 5 MB. To enumerate every attachment on the communication, including attachments larger than 5 MB, use the attachments field instead."
        }
      }
    },
    "RecentCaseCommunications": {
      "type": "object",
      "properties": {
        "communications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Communication"
          },
          "description": "The five most recent communications associated with the case."
        },
        "nextToken": {
          "type": "string",
          "description": "A resumption point for pagination."
        }
      }
    }
  }
}