{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-update-router-network-interface-request-schema.json",
  "title": "UpdateRouterNetworkInterfaceRequest",
  "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/UpdateRouterNetworkInterfaceRequest",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the router network interface that you want to update."
    },
    "Name": {
      "type": "string",
      "description": "The updated name for the router network interface."
    },
    "Configuration": {
      "$ref": "#/$defs/RouterNetworkInterfaceConfiguration"
    }
  },
  "required": [
    "Arn"
  ],
  "$defs": {
    "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"
      ]
    },
    "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"
      ]
    }
  }
}