{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/GroupName",
  "/properties/IpProtocol",
  "/properties/SourceSecurityGroupId",
  "/properties/SourcePrefixListId",
  "/properties/ToPort",
  "/properties/CidrIp",
  "/properties/SourceSecurityGroupName",
  "/properties/SourceSecurityGroupOwnerId",
  "/properties/FromPort",
  "/properties/GroupId",
  "/properties/CidrIpv6"
 ],
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "CidrIp": {
   "format": "ipv4-network",
   "type": "string"
  },
  "CidrIpv6": {
   "format": "ipv6-network",
   "type": "string"
  },
  "Description": {
   "type": "string"
  },
  "FromPort": {
   "minimum": -1,
   "type": "integer"
  },
  "GroupId": {
   "format": "AWS::EC2::SecurityGroup.Id",
   "type": "string"
  },
  "GroupName": {
   "type": "string"
  },
  "Id": {
   "type": "string"
  },
  "IpProtocol": {
   "type": "string"
  },
  "SourcePrefixListId": {
   "type": "string"
  },
  "SourceSecurityGroupId": {
   "format": "AWS::EC2::SecurityGroup.Id",
   "type": "string"
  },
  "SourceSecurityGroupName": {
   "format": "AWS::EC2::SecurityGroup.Name",
   "type": "string"
  },
  "SourceSecurityGroupOwnerId": {
   "type": "string"
  },
  "ToPort": {
   "minimum": -1,
   "type": "integer"
  }
 },
 "propertyTransform": {
  "/properties/FromPort": "($mapVal := $lookup({'1': 'icmp','6': 'tcp','17': 'udp','58': 'icmpv6'}, IpProtocol);$ipProtocol := $mapVal ? $mapVal : $lowercase(IpProtocol);$ipProtocol in ['imcp', 'tcp', 'udp', 'imcp'] ? FromPort : -1)",
  "/properties/IpProtocol": "($mapVal := $lookup({'1': 'icmp','6': 'tcp','17': 'udp','58': 'icmpv6'}, IpProtocol);$mapVal ? $mapVal : $lowercase(IpProtocol))",
  "/properties/ToPort": "($mapVal := $lookup({'1': 'icmp','6': 'tcp','17': 'udp','58': 'icmpv6'}, IpProtocol);$ipProtocol := $mapVal ? $mapVal : $lowercase(IpProtocol);$ipProtocol in ['imcp', 'tcp', 'udp', 'imcp'] ? ToPort : -1)"
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "IpProtocol"
 ],
 "requiredXor": [
  "CidrIp",
  "CidrIpv6",
  "SourcePrefixListId",
  "SourceSecurityGroupId",
  "SourceSecurityGroupName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::EC2::SecurityGroupIngress"
}
