{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-forecast/json-schema/amazon-forecast-describe-what-if-forecast-response-schema.json",
  "title": "DescribeWhatIfForecastResponse",
  "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/DescribeWhatIfForecastResponse",
  "type": "object",
  "properties": {
    "WhatIfForecastName": {
      "type": "string",
      "description": "The name of the what-if forecast."
    },
    "WhatIfForecastArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the what-if forecast."
    },
    "WhatIfAnalysisArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the what-if analysis that contains this forecast."
    },
    "EstimatedTimeRemainingInMinutes": {
      "type": "integer",
      "description": "The approximate time remaining to complete the what-if forecast, in minutes."
    },
    "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 forecast must be ACTIVE before you can access the forecast."
    },
    "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."
    },
    "TimeSeriesTransformations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TimeSeriesTransformation"
      },
      "description": "An array of Action and TimeSeriesConditions elements that describe what transformations were applied to which time series."
    },
    "TimeSeriesReplacementsDataSource": {
      "$ref": "#/$defs/TimeSeriesReplacementsDataSource"
    },
    "ForecastTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The quantiles at which probabilistic forecasts are generated. You can specify up to five quantiles per what-if forecast in the CreateWhatIfForecast operation. If you didn't specify quantiles, the default values are [\"0.1\", \"0.5\", \"0.9\"]."
    }
  },
  "$defs": {
    "Action": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "The related time series that you are modifying. This value is case insensitive."
        },
        "Operation": {
          "type": "string",
          "enum": [
            "ADD",
            "SUBTRACT",
            "MULTIPLY",
            "DIVIDE"
          ],
          "description": "The operation that is applied to the provided attribute. Operations include: ADD - adds Value to all rows of AttributeName. SUBTRACT - subtracts Value from all rows of AttributeName. MULTIPLY - multiplies all rows of AttributeName by Value. DIVIDE - divides all rows of AttributeName by Value."
        },
        "Value": {
          "type": "number",
          "description": "The value that is applied for the chosen Operation."
        }
      },
      "required": [
        "AttributeName",
        "Operation",
        "Value"
      ]
    },
    "S3Config": {
      "type": "object",
      "properties": {
        "Path": {
          "type": "string",
          "description": "The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket."
        },
        "RoleArn": {
          "type": "string",
          "description": "The ARN of the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key. Passing a role across Amazon Web Services accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error."
        },
        "KMSKeyArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an Key Management Service (KMS) key."
        }
      },
      "required": [
        "Path",
        "RoleArn"
      ]
    },
    "Schema": {
      "type": "object",
      "properties": {
        "Attributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SchemaAttribute"
          },
          "description": "An array of attributes specifying the name and type of each field in a dataset."
        }
      }
    },
    "SchemaAttribute": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "The name of the dataset field."
        },
        "AttributeType": {
          "type": "string",
          "enum": [
            "string",
            "integer",
            "float",
            "timestamp",
            "geolocation"
          ],
          "description": "The data type of the field. For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float)."
        }
      }
    },
    "TimeSeriesCondition": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "The item_id, dimension name, IM name, or timestamp that you are modifying."
        },
        "AttributeValue": {
          "type": "string",
          "description": "The value that is applied for the chosen Condition."
        },
        "Condition": {
          "type": "string",
          "enum": [
            "EQUALS",
            "NOT_EQUALS",
            "LESS_THAN",
            "GREATER_THAN"
          ],
          "description": "The condition to apply. Valid values are EQUALS, NOT_EQUALS, LESS_THAN and GREATER_THAN."
        }
      },
      "required": [
        "AttributeName",
        "AttributeValue",
        "Condition"
      ]
    },
    "TimeSeriesReplacementsDataSource": {
      "type": "object",
      "properties": {
        "S3Config": {
          "$ref": "#/$defs/S3Config"
        },
        "Schema": {
          "$ref": "#/$defs/Schema"
        },
        "Format": {
          "type": "string",
          "description": "The format of the replacement data, CSV or PARQUET."
        },
        "TimestampFormat": {
          "type": "string",
          "description": "The timestamp format of the replacement data."
        }
      },
      "required": [
        "S3Config",
        "Schema"
      ]
    },
    "TimeSeriesTransformation": {
      "type": "object",
      "properties": {
        "Action": {
          "$ref": "#/$defs/Action"
        },
        "TimeSeriesConditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TimeSeriesCondition"
          },
          "description": "An array of conditions that define which members of the related time series are transformed."
        }
      }
    }
  }
}