{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-forecast/json-schema/amazon-forecast-describe-what-if-analysis-response-schema.json",
  "title": "DescribeWhatIfAnalysisResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-forecast-what-if-analysis-api-openapi.yml#/components/schemas/DescribeWhatIfAnalysisResponse",
  "type": "object",
  "properties": {
    "WhatIfAnalysisName": {
      "type": "string",
      "description": "The name of the what-if analysis."
    },
    "WhatIfAnalysisArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the what-if analysis."
    },
    "ForecastArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the what-if forecast."
    },
    "EstimatedTimeRemainingInMinutes": {
      "type": "integer",
      "description": "The approximate time remaining to complete the what-if analysis, in minutes."
    },
    "Status": {
      "type": "string",
      "description": "The status of the what-if analysis. 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 analysis 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."
    },
    "TimeSeriesSelector": {
      "$ref": "#/$defs/TimeSeriesSelector"
    }
  },
  "$defs": {
    "DataSource": {
      "type": "object",
      "properties": {
        "S3Config": {
          "$ref": "#/$defs/S3Config"
        }
      },
      "required": [
        "S3Config"
      ]
    },
    "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)."
        }
      }
    },
    "TimeSeriesIdentifiers": {
      "type": "object",
      "properties": {
        "DataSource": {
          "$ref": "#/$defs/DataSource"
        },
        "Schema": {
          "$ref": "#/$defs/Schema"
        },
        "Format": {
          "type": "string",
          "description": "The format of the data, either CSV or PARQUET."
        }
      }
    },
    "TimeSeriesSelector": {
      "type": "object",
      "properties": {
        "TimeSeriesIdentifiers": {
          "$ref": "#/$defs/TimeSeriesIdentifiers"
        }
      }
    }
  }
}