{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-describe-stream-response-schema.json",
  "title": "DescribeStreamResponse",
  "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/DescribeStreamResponse",
  "type": "object",
  "properties": {
    "streamInfo": {
      "allOf": [
        {
          "$ref": "#/$defs/StreamInfo"
        },
        {
          "description": "Information about the stream."
        }
      ]
    }
  },
  "$defs": {
    "DateType": {
      "type": "string",
      "format": "date-time"
    },
    "FileId": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255
    },
    "RoleArn": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2048
    },
    "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"
    },
    "StreamArn": {
      "type": "string"
    },
    "StreamDescription": {
      "type": "string",
      "pattern": "[^\\p{C}]+",
      "maxLength": 2028
    },
    "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."
            }
          ]
        }
      },
      "description": "Represents a file to stream."
    },
    "StreamFiles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StreamFile"
      },
      "minItems": 1,
      "maxItems": 50
    },
    "StreamId": {
      "type": "string",
      "pattern": "[a-zA-Z0-9_-]+",
      "minLength": 1,
      "maxLength": 128
    },
    "StreamInfo": {
      "type": "object",
      "properties": {
        "streamId": {
          "allOf": [
            {
              "$ref": "#/$defs/StreamId"
            },
            {
              "description": "The stream ID."
            }
          ]
        },
        "streamArn": {
          "allOf": [
            {
              "$ref": "#/$defs/StreamArn"
            },
            {
              "description": "The stream ARN."
            }
          ]
        },
        "streamVersion": {
          "allOf": [
            {
              "$ref": "#/$defs/StreamVersion"
            },
            {
              "description": "The stream version."
            }
          ]
        },
        "description": {
          "allOf": [
            {
              "$ref": "#/$defs/StreamDescription"
            },
            {
              "description": "The description of the stream."
            }
          ]
        },
        "files": {
          "allOf": [
            {
              "$ref": "#/$defs/StreamFiles"
            },
            {
              "description": "The files to stream."
            }
          ]
        },
        "createdAt": {
          "allOf": [
            {
              "$ref": "#/$defs/DateType"
            },
            {
              "description": "The date when the stream was created."
            }
          ]
        },
        "lastUpdatedAt": {
          "allOf": [
            {
              "$ref": "#/$defs/DateType"
            },
            {
              "description": "The date when the stream was last updated."
            }
          ]
        },
        "roleArn": {
          "allOf": [
            {
              "$ref": "#/$defs/RoleArn"
            },
            {
              "description": "An IAM role IoT assumes to access your S3 files."
            }
          ]
        }
      },
      "description": "Information about a stream."
    },
    "StreamVersion": {
      "type": "integer",
      "minimum": 0,
      "maximum": 65535
    }
  }
}