{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-create-router-network-interface-request-schema.json",
  "title": "CreateRouterNetworkInterfaceRequest",
  "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/CreateRouterNetworkInterfaceRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the router network interface."
    },
    "Configuration": {
      "$ref": "#/$defs/RouterNetworkInterfaceConfiguration"
    },
    "RegionName": {
      "type": "string",
      "description": "The Amazon Web Services Region for the router network interface. Defaults to the current region if not specified."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Key-value pairs that can be used to tag and organize this router network interface."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique identifier for the request to ensure idempotency."
    }
  },
  "required": [
    "Name",
    "Configuration"
  ],
  "$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"
      ]
    }
  }
}