{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-storage-configuration-response-schema.json",
  "title": "DescribeStorageConfigurationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-configuration-api-openapi.yml#/components/schemas/DescribeStorageConfigurationResponse",
  "type": "object",
  "properties": {
    "storageType": {
      "type": "string",
      "enum": [
        "SITEWISE_DEFAULT_STORAGE",
        "MULTI_LAYER_STORAGE"
      ],
      "description": "The storage tier that you specified for your data. The storageType parameter can be one of the following values: SITEWISE_DEFAULT_STORAGE – IoT SiteWise saves your data into the hot tier. The hot tier is a service-managed database. MULTI_LAYER_STORAGE – IoT SiteWise saves your data in both the cold tier and the hot tier. The cold tier is a customer-managed Amazon S3 bucket."
    },
    "multiLayerStorage": {
      "$ref": "#/$defs/MultiLayerStorage"
    },
    "disassociatedDataStorage": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "Contains the storage configuration for time series (data streams) that aren't associated with asset properties. The disassociatedDataStorage can be one of the following values: ENABLED – IoT SiteWise accepts time series that aren't associated with asset properties. After the disassociatedDataStorage is enabled, you can't disable it. DISABLED – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset properties. For more information, see Data streams in the IoT SiteWise User Guide."
    },
    "retentionPeriod": {
      "$ref": "#/$defs/RetentionPeriod"
    },
    "configurationStatus": {
      "$ref": "#/$defs/ConfigurationStatus"
    },
    "lastUpdateDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date the storage configuration was last updated, in Unix epoch time."
    },
    "warmTier": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "A service managed storage tier optimized for analytical queries. It stores periodically uploaded, buffered and historical data ingested with the CreaeBulkImportJob API."
    },
    "warmTierRetentionPeriod": {
      "$ref": "#/$defs/WarmTierRetentionPeriod"
    },
    "disallowIngestNullNaN": {
      "type": "boolean",
      "description": "Describes the configuration for ingesting NULL and NaN data. By default the feature is allowed. The feature is disallowed if the value is true."
    }
  },
  "required": [
    "storageType",
    "configurationStatus"
  ],
  "$defs": {
    "ConfigurationErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "ConfigurationStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "UPDATE_IN_PROGRESS",
            "UPDATE_FAILED"
          ],
          "description": "The current state of the configuration."
        },
        "error": {
          "$ref": "#/$defs/ConfigurationErrorDetails"
        }
      },
      "required": [
        "state"
      ]
    },
    "CustomerManagedS3Storage": {
      "type": "object",
      "properties": {
        "s3ResourceArn": {
          "type": "string",
          "description": "The ARN of the Amazon S3 object. For more information about how to find the ARN for an Amazon S3 object, see Amazon S3 resources in the Amazon Simple Storage Service User Guide."
        },
        "roleArn": {
          "type": "string",
          "description": "The ARN of the Identity and Access Management role that allows IoT SiteWise to send data to Amazon S3."
        }
      },
      "required": [
        "s3ResourceArn",
        "roleArn"
      ]
    },
    "MultiLayerStorage": {
      "type": "object",
      "properties": {
        "customerManagedS3Storage": {
          "$ref": "#/$defs/CustomerManagedS3Storage"
        }
      },
      "required": [
        "customerManagedS3Storage"
      ]
    },
    "RetentionPeriod": {
      "type": "object",
      "properties": {
        "numberOfDays": {
          "type": "integer",
          "description": "The number of days that your data is kept. If you specified a value for this parameter, the unlimited parameter must be false."
        },
        "unlimited": {
          "type": "boolean",
          "description": "If true, your data is kept indefinitely. If configured to true, you must not specify a value for the numberOfDays parameter."
        }
      }
    },
    "WarmTierRetentionPeriod": {
      "type": "object",
      "properties": {
        "numberOfDays": {
          "type": "integer",
          "description": "The number of days the data is stored in the warm tier."
        },
        "unlimited": {
          "type": "boolean",
          "description": "If set to true, the data is stored indefinitely in the warm tier."
        }
      }
    }
  }
}