{
  "$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-request-schema.json",
  "title": "GetAttachmentUploadLinksRequest",
  "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/GetAttachmentUploadLinksRequest",
  "type": "object",
  "properties": {
    "fileName": {
      "type": "string",
      "description": "The name of the file to upload, including the file extension. This value is required when you initiate a new upload."
    },
    "fileSizeBytes": {
      "type": "integer",
      "description": "The total size of the file in bytes. The service uses this value to calculate the total number of parts and the size of each part. Required when you initiate a new upload (when uploadId isn't provided). Valid range: 1 to 157,286,400 bytes (approximately 150 MB)."
    },
    "uploadId": {
      "type": "string",
      "description": "The unique identifier of an in-progress multipart upload, returned by a previous call to GetAttachmentUploadLinks. Specify uploadId to retrieve additional presigned upload URLs for an upload that has already been initiated. Required when fileSizeBytes isn't provided. Length: 1 to 2,048 characters."
    },
    "uploadRange": {
      "$ref": "#/$defs/UploadRange"
    },
    "dryRun": {
      "type": "boolean",
      "description": "Specifies whether to validate the request without actually generating upload URLs. When set to true, the request is validated but no URLs are returned, and the operation returns a DryRunOperationException. When omitted or set to false, the request runs normally."
    }
  },
  "required": [
    "fileName"
  ],
  "$defs": {
    "UploadRange": {
      "type": "object",
      "properties": {
        "startIndex": {
          "type": "integer",
          "description": "The starting part index of the range, inclusive. Part indexes start at 1."
        },
        "endIndex": {
          "type": "integer",
          "description": "The ending part index of the range, exclusive. The range is half-open: startIndex is inclusive and endIndex is exclusive. For example, a range with startIndex of 1 and endIndex of 4 requests URLs for parts 1, 2, and 3. The range size (endIndex - startIndex) must not exceed 10. If you omit endIndex, the service defaults to startIndex + 10, capped by the total number of parts."
        }
      },
      "required": [
        "startIndex"
      ]
    }
  }
}