{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-update-stream-request-schema.json",
  "title": "UpdateStreamRequest",
  "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/UpdateStreamRequest",
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "description": "The stream ID."
    },
    "description": {
      "type": "string",
      "description": "The description of the stream."
    },
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StreamFile"
      },
      "description": "The files associated with the stream."
    },
    "roleArn": {
      "type": "string",
      "description": "An IAM role that allows the IoT service principal assumes to access your S3 files."
    }
  },
  "required": [
    "streamId"
  ],
  "$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"
        }
      }
    }
  }
}