{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-medialive/json-schema/amazon-medialive-create-node-registration-script-request-schema.json",
  "title": "CreateNodeRegistrationScriptRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-medialive-operations-api-openapi.yml#/components/schemas/CreateNodeRegistrationScriptRequest",
  "type": "object",
  "properties": {
    "ClusterId": {
      "type": "string",
      "description": "The ID of the cluster"
    },
    "Id": {
      "type": "string",
      "description": "If you're generating a re-registration script for an already existing node, this is where you provide the id."
    },
    "Name": {
      "type": "string",
      "description": "Specify a pattern for MediaLive Anywhere to use to assign a name to each Node in the Cluster. The pattern can include the variables $hn (hostname of the node hardware) and $ts for the date and time that the Node is created, in UTC (for example, 2024-08-20T23:35:12Z)."
    },
    "NodeInterfaceMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NodeInterfaceMapping"
      },
      "description": "Documentation update needed"
    },
    "RequestId": {
      "type": "string",
      "description": "An ID that you assign to a create request. This ID ensures idempotency when creating resources."
    },
    "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."
    }
  },
  "required": [
    "ClusterId"
  ],
  "$defs": {
    "NodeInterfaceMapping": {
      "type": "object",
      "properties": {
        "LogicalInterfaceName": {
          "type": "string",
          "description": "A uniform logical interface name to address in a MediaLive channel configuration."
        },
        "NetworkInterfaceMode": {
          "type": "string",
          "enum": [
            "NAT",
            "BRIDGE"
          ]
        },
        "PhysicalInterfaceName": {
          "type": "string",
          "description": "The name of the physical interface on the hardware that will be running Elemental anywhere."
        },
        "PhysicalInterfaceIpAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IP addresses associated with the physical interface on the node hardware."
        }
      }
    }
  }
}