{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-forecast/json-schema/amazon-forecast-describe-explainability-response-schema.json",
  "title": "DescribeExplainabilityResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-forecast-explainability-api-openapi.yml#/components/schemas/DescribeExplainabilityResponse",
  "type": "object",
  "properties": {
    "ExplainabilityArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Explainability."
    },
    "ExplainabilityName": {
      "type": "string",
      "description": "The name of the Explainability."
    },
    "ResourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Predictor or Forecast used to create the Explainability resource."
    },
    "ExplainabilityConfig": {
      "$ref": "#/$defs/ExplainabilityConfig"
    },
    "EnableVisualization": {
      "type": "boolean",
      "description": "Whether the visualization was enabled for the Explainability resource."
    },
    "DataSource": {
      "$ref": "#/$defs/DataSource"
    },
    "Schema": {
      "$ref": "#/$defs/Schema"
    },
    "StartDateTime": {
      "type": "string",
      "description": "If TimePointGranularity is set to SPECIFIC, the first time point in the Explainability."
    },
    "EndDateTime": {
      "type": "string",
      "description": "If TimePointGranularity is set to SPECIFIC, the last time point in the Explainability."
    },
    "EstimatedTimeRemainingInMinutes": {
      "type": "integer",
      "description": "The estimated time remaining in minutes for the CreateExplainability job to complete."
    },
    "Message": {
      "type": "string",
      "description": "If an error occurred, a message about the error."
    },
    "Status": {
      "type": "string",
      "description": "The status of the Explainability resource. States include: ACTIVE CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED CREATE_STOPPING, CREATE_STOPPED DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED"
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "When the Explainability resource 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."
    }
  },
  "$defs": {
    "DataSource": {
      "type": "object",
      "properties": {
        "S3Config": {
          "$ref": "#/$defs/S3Config"
        }
      },
      "required": [
        "S3Config"
      ]
    },
    "ExplainabilityConfig": {
      "type": "object",
      "properties": {
        "TimeSeriesGranularity": {
          "type": "string",
          "enum": [
            "ALL",
            "SPECIFIC"
          ],
          "description": "To create an Explainability for all time series in your datasets, use ALL. To create an Explainability for specific time series in your datasets, use SPECIFIC. Specify time series by uploading a CSV or Parquet file to an Amazon S3 bucket and set the location within the DataDestination data type."
        },
        "TimePointGranularity": {
          "type": "string",
          "enum": [
            "ALL",
            "SPECIFIC"
          ],
          "description": "To create an Explainability for all time points in your forecast horizon, use ALL. To create an Explainability for specific time points in your forecast horizon, use SPECIFIC. Specify time points with the StartDateTime and EndDateTime parameters within the CreateExplainability operation."
        }
      },
      "required": [
        "TimeSeriesGranularity",
        "TimePointGranularity"
      ]
    },
    "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)."
        }
      }
    }
  }
}