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