{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-modify-application-status-check-request-schema.json",
  "title": "ModifyApplicationStatusCheckRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-application-status-check-api-openapi.yml#/components/schemas/ModifyApplicationStatusCheckRequest",
  "type": "object",
  "properties": {
    "ApplicationStatusCheckId": {
      "type": "string",
      "description": "The ID of the application status check to modify."
    },
    "Aggregation": {
      "type": "string",
      "enum": [
        "included",
        "excluded"
      ],
      "description": "The aggregation setting for the application status check. When set to included, the result of this check contributes to the instance-level application status reported by DescribeApplicationStatus. When set to excluded, the check runs independently and does not affect the instance-level status. Valid values: included | excluded."
    },
    "HealthCheckPaths": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HealthCheckPathRequestObject"
      },
      "description": "The health check paths to use for the application status check."
    },
    "Protocol": {
      "type": "string",
      "enum": [
        "http",
        "https"
      ],
      "description": "The protocol to use for the health check. Valid values: http | https."
    },
    "Port": {
      "type": "integer",
      "description": "The port to use for the health check. Valid values: 1 to 65535."
    },
    "Path": {
      "type": "string",
      "description": "The URL path to use for the health check HTTP request (for example, /health or /status)."
    },
    "DeviceIndex": {
      "type": "integer",
      "description": "The index of the network device to use for the health check. The value must be greater than or equal to 0."
    },
    "IpVersion": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6"
      ],
      "description": "The IP version to use for the health check. Valid values: ipv4 and ipv6."
    },
    "IpScope": {
      "type": "string",
      "enum": [
        "private"
      ],
      "description": "The IP scope to use for the health check. Valid value: private."
    },
    "Interval": {
      "type": "integer",
      "description": "The interval, in seconds, between health checks. Valid value: 60."
    },
    "Timeout": {
      "type": "integer",
      "description": "The amount of time, in seconds, to wait for a health check response before considering it failed. Valid values: 1 to 30. The value must be less than Interval."
    },
    "FailureThreshold": {
      "type": "integer",
      "description": "The number of consecutive failed health checks before the application status is considered impaired. The value must be greater than 0."
    },
    "SuccessThreshold": {
      "type": "integer",
      "description": "The number of consecutive successful health checks before the application status is considered healthy. The value must be greater than 0."
    },
    "StatusCodeMatcher": {
      "type": "string",
      "description": "The HTTP status codes that indicate a successful health check response. Specify a comma-separated list of individual status codes or ranges, for example, 200,202,300-399. For a range, the first value must be less than the second value. Maximum length: 64 characters."
    },
    "InitializationGracePeriodSeconds": {
      "type": "integer",
      "description": "The number of seconds to wait before starting health checks after an instance is launched. Valid values: 1 to 600."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same token, the service ignores the request but does not return an error. For more information, see Ensuring idempotency."
    },
    "DryRun": {
      "type": "boolean",
      "description": "Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation."
    }
  },
  "required": [
    "ApplicationStatusCheckId"
  ],
  "$defs": {
    "HealthCheckPathDestinationRequestObject": {
      "type": "object",
      "properties": {
        "SubnetId": {
          "type": "string",
          "description": "The ID of the subnet for the destination."
        },
        "SecurityGroupId": {
          "type": "string",
          "description": "The ID of the security group for the destination."
        }
      }
    },
    "HealthCheckPathRequestObject": {
      "type": "object",
      "properties": {
        "Source": {
          "$ref": "#/$defs/HealthCheckPathSourceRequestObject"
        },
        "Destinations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HealthCheckPathDestinationRequestObject"
          },
          "description": "The destinations for the health check path."
        }
      }
    },
    "HealthCheckPathSourceRequestObject": {
      "type": "object",
      "properties": {
        "SubnetId": {
          "type": "string",
          "description": "The ID of the subnet for the source."
        },
        "SecurityGroupId": {
          "type": "string",
          "description": "The ID of the security group for the source."
        }
      }
    }
  }
}