{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/IpProtocol",
  "/properties/DestinationSecurityGroupId",
  "/properties/ToPort",
  "/properties/CidrIp",
  "/properties/FromPort",
  "/properties/GroupId",
  "/properties/CidrIpv6",
  "/properties/DestinationPrefixListId"
 ],
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "CidrIp": {
   "format": "ipv4-network",
   "type": "string"
  },
  "CidrIpv6": {
   "format": "ipv6-network",
   "type": "string"
  },
  "Description": {
   "type": "string"
  },
  "DestinationPrefixListId": {
   "type": "string"
  },
  "DestinationSecurityGroupId": {
   "format": "AWS::EC2::SecurityGroup.Id",
   "type": "string"
  },
  "FromPort": {
   "minimum": -1,
   "type": "integer"
  },
  "GroupId": {
   "format": "AWS::EC2::SecurityGroup.Id",
   "type": "string"
  },
  "Id": {
   "type": "string"
  },
  "IpProtocol": {
   "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",
  "GroupId"
 ],
 "requiredXor": [
  "CidrIp",
  "CidrIpv6",
  "DestinationPrefixListId",
  "DestinationSecurityGroupId"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::EC2::SecurityGroupEgress"
}
