{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-trusted-advisor/json-schema/amazon-trusted-advisor-get-attachment-upload-links-response-schema.json",
  "title": "GetAttachmentUploadLinksResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-trusted-advisor-operations-api-openapi.yml#/components/schemas/GetAttachmentUploadLinksResponse",
  "type": "object",
  "properties": {
    "uploadId": {
      "type": "string",
      "description": "The unique identifier for the multipart upload. Use this value in subsequent calls to GetAttachmentUploadLinks, DescribeAttachmentUploadStatus, and CompleteAttachmentUpload, and to attach the upload to a case through the uploadIds parameter on CreateCase or AddCommunicationToCase."
    },
    "partSizeBytes": {
      "type": "integer",
      "description": "The size, in bytes, of each part. Split the file into parts of this size before you upload them to the presigned URLs. For an upload with n total parts, parts 1 through n - 1 are exactly this size; the last part may be smaller. Maximum: 104,857,600 bytes (approximately 100 MB)."
    },
    "totalParts": {
      "type": "integer",
      "description": "The total number of parts that the file is split into. Upload one part to each presigned URL."
    },
    "nextIndex": {
      "type": "integer",
      "description": "The next part index to request presigned URLs for. If all upload URLs for the file have been returned, this field is null. Use this value as the startIndex in uploadRange on a subsequent call to GetAttachmentUploadLinks to retrieve the next batch of upload URLs."
    },
    "uploadUrls": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UploadUrl"
      },
      "description": "The list of presigned upload URLs for the requested range of parts. The list contains at most 10 URLs per call. Upload each part to its corresponding URL by using HTTP PUT before the URL expires."
    }
  },
  "required": [
    "uploadId",
    "partSizeBytes",
    "totalParts",
    "uploadUrls"
  ],
  "$defs": {
    "UploadUrl": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The presigned HTTPS URL that you use to upload a single part with HTTP PUT. Upload URLs are served from uploadv1.attachments.support.{region}.amazonaws.com. The uploadv1 prefix is subject to change."
        },
        "partIndex": {
          "type": "integer",
          "description": "The index of the part that this URL uploads."
        },
        "expiryDate": {
          "type": "string",
          "description": "The date and time, in ISO-8601 format, when the presigned URL expires. Upload the part before this time."
        }
      },
      "required": [
        "url",
        "partIndex",
        "expiryDate"
      ]
    }
  }
}