{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-start-attached-file-upload-response-schema.json",
  "title": "StartAttachedFileUploadResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-attached-files-api-openapi.yml#/components/schemas/StartAttachedFileUploadResponse",
  "type": "object",
  "properties": {
    "FileArn": {
      "type": "string",
      "description": "The unique identifier of the attached file resource (ARN)."
    },
    "FileId": {
      "type": "string",
      "description": "The unique identifier of the attached file resource."
    },
    "CreationTime": {
      "type": "string",
      "description": "The time of Creation of the file resource as an ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2024-05-03T02:41:28.172Z."
    },
    "FileStatus": {
      "type": "string",
      "enum": [
        "APPROVED",
        "REJECTED",
        "PROCESSING",
        "FAILED",
        "DRAFTING"
      ],
      "description": "The current status of the attached file."
    },
    "CreatedBy": {
      "$ref": "#/$defs/CreatedByInfo"
    },
    "UploadUrlMetadata": {
      "$ref": "#/$defs/UploadUrlMetadata"
    }
  },
  "$defs": {
    "CreatedByInfo": {
      "type": "object",
      "properties": {
        "ConnectUserArn": {
          "type": "string",
          "description": "An agent ARN representing a connect user."
        },
        "AWSIdentityArn": {
          "type": "string",
          "description": "STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided."
        }
      },
      "description": "Exactly one member is set."
    },
    "UploadUrlMetadata": {
      "type": "object",
      "properties": {
        "Url": {
          "type": "string",
          "description": "A pre-signed S3 URL that should be used for uploading the attached file."
        },
        "UrlExpiry": {
          "type": "string",
          "description": "The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."
        },
        "HeadersToInclude": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of headers that should be provided when uploading the attached file."
        }
      }
    }
  }
}