{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-vpc-lattice/json-schema/amazon-vpc-lattice-update-target-group-request-schema.json",
  "title": "UpdateTargetGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-vpc-lattice-updatetargetgroup-api-openapi.yml#/components/schemas/UpdateTargetGroupRequest",
  "type": "object",
  "properties": {
    "targetGroupIdentifier": {
      "type": "string",
      "description": "The ID or ARN of the target group."
    },
    "healthCheck": {
      "$ref": "#/$defs/HealthCheckConfig"
    }
  },
  "required": [
    "targetGroupIdentifier",
    "healthCheck"
  ],
  "$defs": {
    "HealthCheckConfig": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether health checking is enabled."
        },
        "protocol": {
          "type": "string",
          "description": "The protocol used when performing health checks on targets. The possible protocols are HTTP and HTTPS. The default is HTTP."
        },
        "protocolVersion": {
          "type": "string",
          "description": "The protocol version used when performing health checks on targets. The possible protocol versions are HTTP1 and HTTP2."
        },
        "port": {
          "type": "integer",
          "description": "The port used when performing health checks on targets. The default setting is the port that a target receives traffic on."
        },
        "path": {
          "type": "string",
          "description": "The destination for health checks on the targets. If the protocol version is HTTP/1.1 or HTTP/2, specify a valid URI (for example, /path?query). The default path is /. Health checks are not supported if the protocol version is gRPC, however, you can choose HTTP/1.1 or HTTP/2 and specify a valid URI."
        },
        "healthCheckIntervalSeconds": {
          "type": "integer",
          "description": "The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds."
        },
        "healthCheckTimeoutSeconds": {
          "type": "integer",
          "description": "The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds."
        },
        "healthyThresholdCount": {
          "type": "integer",
          "description": "The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5."
        },
        "unhealthyThresholdCount": {
          "type": "integer",
          "description": "The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2."
        },
        "matcher": {
          "$ref": "#/$defs/Matcher"
        }
      }
    },
    "Matcher": {
      "type": "object",
      "properties": {
        "httpCode": {
          "type": "string",
          "description": "The HTTP code to use when checking for a successful response from a target."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}