{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-vpc-lattice/json-schema/amazon-vpc-lattice-get-target-group-response-schema.json",
  "title": "GetTargetGroupResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-vpc-lattice-gettargetgroup-api-openapi.yml#/components/schemas/GetTargetGroupResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the target group."
    },
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the target group."
    },
    "name": {
      "type": "string",
      "description": "The name of the target group."
    },
    "type": {
      "type": "string",
      "description": "The target group type."
    },
    "config": {
      "$ref": "#/$defs/TargetGroupConfig"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the target group was created, in ISO-8601 format."
    },
    "lastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the target group was last updated, in ISO-8601 format."
    },
    "status": {
      "type": "string",
      "description": "The status."
    },
    "serviceArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) of the service."
    },
    "failureMessage": {
      "type": "string",
      "description": "The failure message."
    },
    "failureCode": {
      "type": "string",
      "description": "The failure code."
    }
  },
  "$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."
    },
    "TargetGroupConfig": {
      "type": "object",
      "properties": {
        "port": {
          "type": "integer",
          "description": "The port on which the targets are listening. For HTTP, the default is 80. For HTTPS, the default is 443. Not supported if the target group type is LAMBDA."
        },
        "protocol": {
          "type": "string",
          "description": "The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not supported if the target group type is LAMBDA."
        },
        "protocolVersion": {
          "type": "string",
          "description": "The protocol version. The default is HTTP1. Not supported if the target group type is LAMBDA."
        },
        "ipAddressType": {
          "type": "string",
          "description": "The type of IP address used for the target group. Supported only if the target group type is IP. The default is IPV4."
        },
        "vpcIdentifier": {
          "type": "string",
          "description": "The ID of the VPC. Not supported if the target group type is LAMBDA."
        },
        "healthCheck": {
          "$ref": "#/$defs/HealthCheckConfig"
        },
        "lambdaEventStructureVersion": {
          "type": "string",
          "description": "The version of the event structure that your Lambda function receives. Supported only if the target group type is LAMBDA. The default is V1."
        }
      }
    }
  }
}