{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-dataset-response-schema.json",
  "title": "DescribeDatasetResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-datasets-api-openapi.yml#/components/schemas/DescribeDatasetResponse",
  "type": "object",
  "properties": {
    "datasetId": {
      "type": "string",
      "description": "The ID of the dataset."
    },
    "datasetArn": {
      "type": "string",
      "description": "The ARN of the dataset. The format is arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}."
    },
    "datasetName": {
      "type": "string",
      "description": "The name of the dataset."
    },
    "datasetDescription": {
      "type": "string",
      "description": "A description about the dataset, and its functionality."
    },
    "datasetType": {
      "type": "string",
      "enum": [
        "SESSION",
        "CURATED",
        "EXTERNAL"
      ],
      "description": "The type of dataset: a session dataset, a curated dataset, or a connection to an external datasource."
    },
    "datasetConfig": {
      "$ref": "#/$defs/DatasetConfig"
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace that contains the dataset."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The metadata for the dataset."
    },
    "datasetSource": {
      "$ref": "#/$defs/DatasetSource"
    },
    "datasetStatus": {
      "$ref": "#/$defs/DatasetStatus"
    },
    "datasetCreationDate": {
      "type": "string",
      "format": "date-time",
      "description": "The dataset creation date, in Unix epoch time."
    },
    "datasetLastUpdateDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date the dataset was last updated, in Unix epoch time."
    },
    "datasetVersion": {
      "type": "string",
      "description": "The version of the dataset."
    },
    "enrichmentStatus": {
      "$ref": "#/$defs/DatasetEnrichment"
    }
  },
  "required": [
    "datasetId",
    "datasetArn",
    "datasetName",
    "datasetDescription",
    "datasetSource",
    "datasetStatus",
    "datasetCreationDate",
    "datasetLastUpdateDate"
  ],
  "$defs": {
    "DatasetConfig": {
      "type": "object",
      "properties": {
        "session": {
          "$ref": "#/$defs/SessionConfig"
        }
      }
    },
    "DatasetEnrichment": {
      "type": "object",
      "properties": {
        "video": {
          "$ref": "#/$defs/DatasetEnrichmentEntry"
        }
      }
    },
    "DatasetEnrichmentEntry": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "FULLY_ENRICHED",
            "PARTIALLY_ENRICHED",
            "NOT_ENRICHED"
          ],
          "description": "The enrichment status of the data type in the dataset."
        },
        "lastEnrichedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date the data was last enriched, in Unix epoch time."
        }
      },
      "required": [
        "status"
      ]
    },
    "DatasetSource": {
      "type": "object",
      "properties": {
        "sourceType": {
          "type": "string",
          "enum": [
            "KENDRA",
            "SITEWISE"
          ],
          "description": "The type of data source for the dataset."
        },
        "sourceFormat": {
          "type": "string",
          "enum": [
            "KNOWLEDGE_BASE",
            "TIMESERIES"
          ],
          "description": "The format of the dataset source associated with the dataset."
        },
        "sourceDetail": {
          "$ref": "#/$defs/SourceDetail"
        }
      },
      "required": [
        "sourceType",
        "sourceFormat"
      ]
    },
    "DatasetStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "FAILED"
          ],
          "description": "The current status of the dataset."
        },
        "error": {
          "$ref": "#/$defs/ErrorDetails"
        }
      },
      "required": [
        "state"
      ]
    },
    "DetailedError": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "INCOMPATIBLE_COMPUTE_LOCATION",
            "INCOMPATIBLE_FORWARDING_CONFIGURATION"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetailedError"
          },
          "description": "A list of detailed errors."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "KendraSourceDetail": {
      "type": "object",
      "properties": {
        "knowledgeBaseArn": {
          "type": "string",
          "description": "The knowledgeBaseArn details for the Kendra dataset source."
        },
        "roleArn": {
          "type": "string",
          "description": "The roleARN details for the Kendra dataset source."
        }
      },
      "required": [
        "knowledgeBaseArn",
        "roleArn"
      ]
    },
    "SessionConfig": {
      "type": "object",
      "properties": {
        "sessionStartTimestamp": {
          "$ref": "#/$defs/TimeInNanos"
        },
        "sessionEndTimestamp": {
          "$ref": "#/$defs/TimeInNanos"
        }
      },
      "required": [
        "sessionStartTimestamp",
        "sessionEndTimestamp"
      ]
    },
    "SourceDetail": {
      "type": "object",
      "properties": {
        "kendra": {
          "$ref": "#/$defs/KendraSourceDetail"
        }
      }
    },
    "TimeInNanos": {
      "type": "object",
      "properties": {
        "timeInSeconds": {
          "type": "integer",
          "description": "The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos."
        },
        "offsetInNanos": {
          "type": "integer",
          "description": "The nanosecond offset from timeInSeconds."
        }
      },
      "required": [
        "timeInSeconds"
      ]
    }
  }
}