{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/TargetType",
  "/properties/ProtocolVersion",
  "/properties/Port",
  "/properties/Name",
  "/properties/VpcId",
  "/properties/Protocol",
  "/properties/IpAddressType"
 ],
 "definitions": {
  "Matcher": {
   "additionalProperties": false,
   "properties": {
    "GrpcCode": {
     "type": "string"
    },
    "HttpCode": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  },
  "TargetDescription": {
   "additionalProperties": false,
   "properties": {
    "AvailabilityZone": {
     "type": "string"
    },
    "Id": {
     "type": "string"
    },
    "Port": {
     "maximum": 65535,
     "minimum": 1,
     "type": "integer"
    },
    "QuicServerId": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Id"
   ],
   "type": "object"
  },
  "TargetGroupAttribute": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/TargetGroupArn"
 ],
 "properties": {
  "HealthCheckEnabled": {
   "type": "boolean"
  },
  "HealthCheckIntervalSeconds": {
   "maximum": 300,
   "minimum": 5,
   "type": "integer"
  },
  "HealthCheckPath": {
   "maxLength": 1024,
   "minLength": 1,
   "type": "string"
  },
  "HealthCheckPort": {
   "type": "string"
  },
  "HealthCheckProtocol": {
   "enum": [
    "GENEVE",
    "HTTP",
    "HTTPS",
    "QUIC",
    "TCP",
    "TCP_QUIC",
    "TCP_UDP",
    "TLS",
    "UDP"
   ],
   "type": "string"
  },
  "HealthCheckTimeoutSeconds": {
   "maximum": 120,
   "minimum": 2,
   "type": "integer"
  },
  "HealthyThresholdCount": {
   "maximum": 10,
   "minimum": 2,
   "type": "integer"
  },
  "IpAddressType": {
   "enum": [
    "ipv4",
    "ipv6"
   ],
   "type": "string"
  },
  "LoadBalancerArns": {
   "insertionOrder": false,
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Matcher": {
   "$ref": "#/definitions/Matcher"
  },
  "Name": {
   "type": "string"
  },
  "Port": {
   "maximum": 65535,
   "minimum": 1,
   "type": "integer"
  },
  "Protocol": {
   "enum": [
    "GENEVE",
    "HTTP",
    "HTTPS",
    "QUIC",
    "TCP",
    "TCP_QUIC",
    "TCP_UDP",
    "TLS",
    "UDP"
   ],
   "type": "string"
  },
  "ProtocolVersion": {
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "minItems": 1,
   "type": "array",
   "uniqueItems": false
  },
  "TargetControlPort": {
   "maximum": 65535,
   "minimum": 1,
   "type": "integer"
  },
  "TargetGroupArn": {
   "type": "string"
  },
  "TargetGroupAttributes": {
   "arrayType": "AttributeList",
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/TargetGroupAttribute"
   },
   "type": "array",
   "uniqueItems": true
  },
  "TargetGroupFullName": {
   "type": "string"
  },
  "TargetGroupName": {
   "type": "string"
  },
  "TargetType": {
   "enum": [
    "alb",
    "instance",
    "ip",
    "lambda"
   ],
   "type": "string"
  },
  "Targets": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/TargetDescription"
   },
   "type": "array",
   "uniqueItems": true
  },
  "UnhealthyThresholdCount": {
   "maximum": 10,
   "minimum": 2,
   "type": "integer"
  },
  "VpcId": {
   "format": "AWS::EC2::VPC.Id",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/LoadBalancerArns",
  "/properties/TargetGroupArn",
  "/properties/TargetGroupName",
  "/properties/TargetGroupFullName"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ElasticLoadBalancingV2::TargetGroup"
}
