{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-batch-get-router-network-interface-response-schema.json",
  "title": "BatchGetRouterNetworkInterfaceResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-routernetworkinterface-api-openapi.yml#/components/schemas/BatchGetRouterNetworkInterfaceResponse",
  "type": "object",
  "properties": {
    "RouterNetworkInterfaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RouterNetworkInterface"
      },
      "description": "An array of router network interfaces that were successfully retrieved."
    },
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchGetRouterNetworkInterfaceError"
      },
      "description": "An array of errors that occurred when retrieving the requested router network interfaces."
    }
  },
  "required": [
    "RouterNetworkInterfaces",
    "Errors"
  ],
  "$defs": {
    "BatchGetRouterNetworkInterfaceError": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the router network interface for which the error occurred."
        },
        "Code": {
          "type": "string",
          "description": "The error code associated with the error."
        },
        "Message": {
          "type": "string",
          "description": "A message describing the error."
        }
      },
      "required": [
        "Arn",
        "Code",
        "Message"
      ]
    },
    "PublicRouterNetworkInterfaceConfiguration": {
      "type": "object",
      "properties": {
        "AllowRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PublicRouterNetworkInterfaceRule"
          },
          "description": "The list of allowed CIDR blocks for the public router network interface."
        }
      },
      "required": [
        "AllowRules"
      ]
    },
    "PublicRouterNetworkInterfaceRule": {
      "type": "object",
      "properties": {
        "Cidr": {
          "type": "string",
          "description": "The CIDR block that is allowed to access the public router network interface."
        }
      },
      "required": [
        "Cidr"
      ]
    },
    "RouterNetworkInterface": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the router network interface."
        },
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the router network interface."
        },
        "Id": {
          "type": "string",
          "description": "The unique identifier of the router network interface."
        },
        "State": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "ERROR",
            "RECOVERING"
          ],
          "description": "The current state of the router network interface."
        },
        "NetworkInterfaceType": {
          "type": "string",
          "enum": [
            "PUBLIC",
            "VPC"
          ],
          "description": "The type of the router network interface."
        },
        "Configuration": {
          "$ref": "#/$defs/RouterNetworkInterfaceConfiguration"
        },
        "AssociatedOutputCount": {
          "type": "integer",
          "description": "The number of router outputs associated with the network interface."
        },
        "AssociatedInputCount": {
          "type": "integer",
          "description": "The number of router inputs associated with the network interface."
        },
        "RegionName": {
          "type": "string",
          "description": "The Amazon Web Services Region where the router network interface is located."
        },
        "CreatedAt": {
          "type": "string",
          "description": "The timestamp when the router network interface was created."
        },
        "UpdatedAt": {
          "type": "string",
          "description": "The timestamp when the router network interface was last updated."
        },
        "Tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Key-value pairs that can be used to tag and organize this router network interface."
        }
      },
      "required": [
        "Name",
        "Arn",
        "Id",
        "State",
        "NetworkInterfaceType",
        "Configuration",
        "AssociatedOutputCount",
        "AssociatedInputCount",
        "RegionName",
        "CreatedAt",
        "UpdatedAt",
        "Tags"
      ]
    },
    "RouterNetworkInterfaceConfiguration": {
      "type": "object",
      "properties": {
        "Public": {
          "$ref": "#/$defs/PublicRouterNetworkInterfaceConfiguration"
        },
        "Vpc": {
          "$ref": "#/$defs/VpcRouterNetworkInterfaceConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "VpcRouterNetworkInterfaceConfiguration": {
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the security groups to associate with the router network interface within the VPC."
        },
        "SubnetId": {
          "type": "string",
          "description": "The ID of the subnet within the VPC to associate the router network interface with."
        }
      },
      "required": [
        "SecurityGroupIds",
        "SubnetId"
      ]
    }
  }
}