{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-stream-file-schema.json",
  "title": "StreamFile",
  "description": "Represents a file to stream.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-streams-api-openapi.yml#/components/schemas/StreamFile",
  "type": "object",
  "properties": {
    "fileId": {
      "allOf": [
        {
          "$ref": "#/$defs/FileId"
        },
        {
          "description": "The file ID."
        }
      ]
    },
    "s3Location": {
      "allOf": [
        {
          "$ref": "#/$defs/S3Location"
        },
        {
          "description": "The location of the file in S3."
        }
      ]
    }
  },
  "$defs": {
    "FileId": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255
    },
    "S3Bucket": {
      "type": "string",
      "minLength": 1
    },
    "S3Key": {
      "type": "string",
      "minLength": 1
    },
    "S3Location": {
      "type": "object",
      "properties": {
        "bucket": {
          "allOf": [
            {
              "$ref": "#/$defs/S3Bucket"
            },
            {
              "description": "The S3 bucket."
            }
          ]
        },
        "key": {
          "allOf": [
            {
              "$ref": "#/$defs/S3Key"
            },
            {
              "description": "The S3 key."
            }
          ]
        },
        "version": {
          "allOf": [
            {
              "$ref": "#/$defs/S3Version"
            },
            {
              "description": "The S3 bucket version."
            }
          ]
        }
      },
      "description": "The S3 location."
    },
    "S3Version": {
      "type": "string"
    }
  }
}