{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-forecast/json-schema/amazon-forecast-list-what-if-forecasts-response-schema.json",
  "title": "ListWhatIfForecastsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-forecast-what-if-forecast-api-openapi.yml#/components/schemas/ListWhatIfForecastsResponse",
  "type": "object",
  "properties": {
    "WhatIfForecasts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WhatIfForecastSummary"
      },
      "description": "An array of WhatIfForecasts objects that describe the matched forecasts."
    },
    "NextToken": {
      "type": "string",
      "description": "If the result of the previous request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours."
    }
  },
  "$defs": {
    "WhatIfForecastSummary": {
      "type": "object",
      "properties": {
        "WhatIfForecastArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the what-if forecast."
        },
        "WhatIfForecastName": {
          "type": "string",
          "description": "The name of the what-if forecast."
        },
        "WhatIfAnalysisArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the what-if analysis that contains this what-if forecast."
        },
        "Status": {
          "type": "string",
          "description": "The status of the what-if forecast. States include: ACTIVE CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED CREATE_STOPPING, CREATE_STOPPED DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED The Status of the what-if analysis must be ACTIVE before you can access the analysis."
        },
        "Message": {
          "type": "string",
          "description": "If an error occurred, an informational message about the error."
        },
        "CreationTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the what-if forecast was created."
        },
        "LastModificationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last time the resource was modified. The timestamp depends on the status of the job: CREATE_PENDING - The CreationTime. CREATE_IN_PROGRESS - The current timestamp. CREATE_STOPPING - The current timestamp. CREATE_STOPPED - When the job stopped. ACTIVE or CREATE_FAILED - When the job finished or failed."
        }
      }
    }
  }
}