{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-attached-file-response-schema.json",
  "title": "GetAttachedFileResponse",
  "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/GetAttachedFileResponse",
  "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."
    },
    "FileName": {
      "type": "string",
      "description": "A case-sensitive name of the attached file being uploaded."
    },
    "FileSizeInBytes": {
      "type": "integer",
      "description": "The size of the attached file in bytes."
    },
    "AssociatedResourceArn": {
      "type": "string",
      "description": "The resource to which the attached file is (being) uploaded to. The supported resources are Cases, Email, and Task."
    },
    "FileUseCaseType": {
      "type": "string",
      "enum": [
        "CONTACT_ANALYSIS",
        "EMAIL_MESSAGE",
        "EMAIL_MESSAGE_PLAIN_TEXT",
        "EMAIL_MESSAGE_REDACTED",
        "EMAIL_MESSAGE_PLAIN_TEXT_REDACTED",
        "ATTACHMENT",
        "VOICE_RECORDING"
      ],
      "description": "The use case for the file."
    },
    "CreatedBy": {
      "$ref": "#/$defs/CreatedByInfo"
    },
    "DownloadUrlMetadata": {
      "$ref": "#/$defs/DownloadUrlMetadata"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }."
    }
  },
  "required": [
    "FileSizeInBytes"
  ],
  "$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."
    },
    "DownloadUrlMetadata": {
      "type": "object",
      "properties": {
        "Url": {
          "type": "string",
          "description": "A pre-signed URL that should be used to download 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."
        }
      }
    }
  }
}