{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-endpoint-request-schema.json",
  "title": "EndpointRequest",
  "description": "Describes the settings of a public endpoint for an Amazon Lightsail container service.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-container-services-api-openapi.yml#/components/schemas/EndpointRequest",
  "type": "object",
  "properties": {
    "containerName": {
      "allOf": [
        {
          "$ref": "#/$defs/string"
        }
      ],
      "description": "The name of the container for the endpoint."
    },
    "containerPort": {
      "allOf": [
        {
          "$ref": "#/$defs/integer"
        }
      ],
      "description": "The port of the container to which traffic is forwarded to."
    },
    "healthCheck": {
      "allOf": [
        {
          "$ref": "#/$defs/ContainerServiceHealthCheckConfig"
        }
      ],
      "description": "An object that describes the health check configuration of the container."
    }
  },
  "required": [
    "containerName",
    "containerPort"
  ],
  "$defs": {
    "ContainerServiceHealthCheckConfig": {
      "type": "object",
      "properties": {
        "healthyThreshold": {
          "allOf": [
            {
              "$ref": "#/$defs/integer"
            }
          ],
          "description": "The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2 ."
        },
        "unhealthyThreshold": {
          "allOf": [
            {
              "$ref": "#/$defs/integer"
            }
          ],
          "description": "The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2 ."
        },
        "timeoutSeconds": {
          "allOf": [
            {
              "$ref": "#/$defs/integer"
            }
          ],
          "description": "The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2 ."
        },
        "intervalSeconds": {
          "allOf": [
            {
              "$ref": "#/$defs/integer"
            }
          ],
          "description": "The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5 ."
        },
        "path": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The path on the container on which to perform the health check. The default value is / ."
        },
        "successCodes": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499 . You can specify multiple values (for example, 200,202 ) or a range of values (for example, 200-299 )."
        }
      },
      "description": "Describes the health check configuration of an Amazon Lightsail container service."
    },
    "integer": {
      "type": "integer"
    },
    "string": {
      "type": "string"
    }
  }
}