{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-medialive/json-schema/amazon-medialive-update-node-request-schema.json",
  "title": "UpdateNodeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-medialive-nodes-api-openapi.yml#/components/schemas/UpdateNodeRequest",
  "type": "object",
  "properties": {
    "ClusterId": {
      "type": "string",
      "description": "The ID of the cluster"
    },
    "Name": {
      "type": "string",
      "description": "Include this parameter only if you want to change the current name of the Node. Specify a name that is unique in the Cluster. You can't change the name. Names are case-sensitive."
    },
    "NodeId": {
      "type": "string",
      "description": "The ID of the node."
    },
    "Role": {
      "type": "string",
      "enum": [
        "BACKUP",
        "ACTIVE"
      ],
      "description": "The initial role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails."
    },
    "SdiSourceMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SdiSourceMappingUpdateRequest"
      },
      "description": "The mappings of a SDI capture card port to a logical SDI data stream"
    }
  },
  "required": [
    "ClusterId",
    "NodeId"
  ],
  "$defs": {
    "SdiSourceMappingUpdateRequest": {
      "type": "object",
      "properties": {
        "CardNumber": {
          "type": "integer",
          "description": "A number that uniquely identifies the SDI card on the node hardware. For information about how physical cards are identified on your node hardware, see the documentation for your node hardware. The numbering always starts at 1."
        },
        "ChannelNumber": {
          "type": "integer",
          "description": "A number that uniquely identifies a port on the card. This must be an SDI port (not a timecode port, for example). For information about how ports are identified on physical cards, see the documentation for your node hardware."
        },
        "SdiSource": {
          "type": "string",
          "description": "The ID of a SDI source streaming on the given SDI capture card port."
        }
      }
    }
  }
}