Skip to main content

storage_configurations

Creates, updates, deletes, gets or lists a storage_configurations resource.

Overview

Namestorage_configurations
TypeResource
Idaws.iotsitewise.storage_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configuration_statusobjectContains current status information for the configuration.
disallow_ingest_null_na_nbooleanDescribes the configuration for ingesting NULL and NaN data. By default the feature is allowed. The feature is disallowed if the value is true.
disassociated_data_storagestringContains 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. (ENABLED, DISABLED)
last_update_datestring (date-time)The date the storage configuration was last updated, in Unix epoch time.
multi_layer_storageobjectContains information about the storage destination.
retention_periodobjectThe number of days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier.
storage_typestringThe 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. (SITEWISE_DEFAULT_STORAGE, MULTI_LAYER_STORAGE)
warm_tierstringA service managed storage tier optimized for analytical queries. It stores periodically uploaded, buffered and historical data ingested with the CreaeBulkImportJob API. (ENABLED, DISABLED)
warm_tier_retention_periodobjectSet this period to specify how long your data is stored in the warm tier before it is deleted. You can set this only if cold tier is enabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_storage_configurationselectregionRetrieves information about the storage configuration for IoT SiteWise.
put_storage_configurationreplaceregion, storageTypeConfigures storage settings for IoT SiteWise.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about the storage configuration for IoT SiteWise.

SELECT
configuration_status,
disallow_ingest_null_na_n,
disassociated_data_storage,
last_update_date,
multi_layer_storage,
retention_period,
storage_type,
warm_tier,
warm_tier_retention_period
FROM aws.iotsitewise.storage_configurations
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Configures storage settings for IoT SiteWise.

REPLACE aws.iotsitewise.storage_configurations
SET
storageType = '{{ storageType }}',
multiLayerStorage = '{{ multiLayerStorage }}',
disassociatedDataStorage = '{{ disassociatedDataStorage }}',
retentionPeriod = '{{ retentionPeriod }}',
warmTier = '{{ warmTier }}',
warmTierRetentionPeriod = '{{ warmTierRetentionPeriod }}',
disallowIngestNullNaN = {{ disallowIngestNullNaN }}
WHERE
region = '{{ region }}' --required
AND storageType = '{{ storageType }}' --required
RETURNING
configuration_status,
disallow_ingest_null_na_n,
disassociated_data_storage,
multi_layer_storage,
retention_period,
storage_type,
warm_tier,
warm_tier_retention_period;