{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-update-attached-files-configuration-request-schema.json",
  "title": "UpdateAttachedFilesConfigurationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-attached-files-configurations-api-openapi.yml#/components/schemas/UpdateAttachedFilesConfigurationRequest",
  "type": "object",
  "properties": {
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance."
    },
    "AttachmentScope": {
      "type": "string",
      "enum": [
        "EMAIL",
        "CHAT",
        "CASE",
        "TASK"
      ],
      "description": "The scope of the attachment. Valid values are EMAIL, CHAT, CASE, and TASK."
    },
    "MaximumSizeLimitInBytes": {
      "type": "integer",
      "description": "The maximum size limit for attached files in bytes. The minimum value is 1 and the maximum value is 104857600 (100 MB)."
    },
    "ExtensionConfiguration": {
      "$ref": "#/$defs/ExtensionConfiguration"
    }
  },
  "required": [
    "InstanceId",
    "AttachmentScope"
  ],
  "$defs": {
    "AllowedExtension": {
      "type": "object",
      "properties": {
        "Extension": {
          "type": "string",
          "description": "The file extension. The extension must be between 1 and 10 characters and can contain only alphanumeric characters, hyphens, and underscores."
        }
      },
      "required": [
        "Extension"
      ]
    },
    "ExtensionConfiguration": {
      "type": "object",
      "properties": {
        "AllowedExtensions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AllowedExtension"
          },
          "description": "The list of allowed file extensions."
        }
      },
      "required": [
        "AllowedExtensions"
      ]
    }
  }
}