[
 {
  "op": "add",
  "path": "/properties/ImageId/format",
  "value": "AWS::EC2::Image.Id"
 },
 {
  "op": "add",
  "path": "/properties/SecurityGroups/anyOf",
  "value": [
   {
    "format": "AWS::EC2::SecurityGroup.Ids"
   },
   {
    "format": "AWS::EC2::SecurityGroup.Names"
   }
  ]
 },
 {
  "op": "add",
  "path": "/properties/SecurityGroups/items/anyOf",
  "value": [
   {
    "format": "AWS::EC2::SecurityGroup.Id"
   },
   {
    "format": "AWS::EC2::SecurityGroup.Name"
   }
  ]
 }
]
