{
 "if": {
  "properties": {
   "IpProtocol": {
    "not": {
     "enum": [
      1,
      "1",
      "icmp",
      6,
      "6",
      "tcp",
      17,
      "17",
      "udp",
      "TCP",
      "UDP",
      "ICMP"
     ]
    },
    "type": [
     "string",
     "integer"
    ]
   }
  },
  "required": [
   "IpProtocol"
  ],
  "type": "object"
 },
 "then": {
  "properties": {
   "FromPort": false,
   "ToPort": false
  }
 }
}
