{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-create-stream-request-schema.json",
  "title": "CreateStreamRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-streams-api-openapi.yml#/components/schemas/CreateStreamRequest",
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "description": "The stream ID."
    },
    "description": {
      "type": "string",
      "description": "A description of the stream."
    },
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StreamFile"
      },
      "description": "The files to stream."
    },
    "roleArn": {
      "type": "string",
      "description": "An IAM role that allows the IoT service principal to access your S3 files."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata which can be used to manage streams."
    }
  },
  "required": [
    "streamId",
    "files",
    "roleArn"
  ],
  "$defs": {
    "S3Location": {
      "type": "object",
      "properties": {
        "bucket": {
          "type": "string",
          "description": "The S3 bucket."
        },
        "key": {
          "type": "string",
          "description": "The S3 key."
        },
        "version": {
          "type": "string",
          "description": "The S3 bucket version."
        }
      }
    },
    "StreamFile": {
      "type": "object",
      "properties": {
        "fileId": {
          "type": "integer",
          "description": "The file ID."
        },
        "s3Location": {
          "$ref": "#/$defs/S3Location"
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag's key."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}