1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutStorageConfiguration`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`storage_type(StorageType)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::storage_type) / [`set_storage_type(Option<StorageType>)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::set_storage_type):<br>required: **true**<br><p>The storage tier that you specified for your data. The <code>storageType</code> parameter can be one of the following values:</p> <ul>  <li>   <p><code>SITEWISE_DEFAULT_STORAGE</code> – IoT SiteWise saves your data into the hot tier. The hot tier is a service-managed database.</p></li>  <li>   <p><code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the hot tier. The cold tier is a customer-managed Amazon S3 bucket.</p></li> </ul><br>
    ///   - [`multi_layer_storage(MultiLayerStorage)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::multi_layer_storage) / [`set_multi_layer_storage(Option<MultiLayerStorage>)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::set_multi_layer_storage):<br>required: **false**<br><p>Identifies a storage destination. If you specified <code>MULTI_LAYER_STORAGE</code> for the storage type, you must specify a <code>MultiLayerStorage</code> object.</p><br>
    ///   - [`disassociated_data_storage(DisassociatedDataStorageState)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::disassociated_data_storage) / [`set_disassociated_data_storage(Option<DisassociatedDataStorageState>)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::set_disassociated_data_storage):<br>required: **false**<br><p>Contains the storage configuration for time series (data streams) that aren't associated with asset properties. The <code>disassociatedDataStorage</code> can be one of the following values:</p> <ul>  <li>   <p><code>ENABLED</code> – IoT SiteWise accepts time series that aren't associated with asset properties.</p><important>    <p>After the <code>disassociatedDataStorage</code> is enabled, you can't disable it.</p>   </important></li>  <li>   <p><code>DISABLED</code> – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset properties.</p></li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/data-streams.html">Data streams</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    ///   - [`retention_period(RetentionPeriod)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::retention_period) / [`set_retention_period(Option<RetentionPeriod>)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::set_retention_period):<br>required: **false**<br><p>The number of days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier.</p><br>
    ///   - [`warm_tier(WarmTierState)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::warm_tier) / [`set_warm_tier(Option<WarmTierState>)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::set_warm_tier):<br>required: **false**<br><p>A service managed storage tier optimized for analytical queries. It stores periodically uploaded, buffered and historical data ingested with the CreaeBulkImportJob API.</p><br>
    ///   - [`warm_tier_retention_period(WarmTierRetentionPeriod)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::warm_tier_retention_period) / [`set_warm_tier_retention_period(Option<WarmTierRetentionPeriod>)`](crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::set_warm_tier_retention_period):<br>required: **false**<br><p>Set 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.</p><br>
    /// - On success, responds with [`PutStorageConfigurationOutput`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput) with field(s):
    ///   - [`storage_type(StorageType)`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput::storage_type): <p>The storage tier that you specified for your data. The <code>storageType</code> parameter can be one of the following values:</p> <ul>  <li>   <p><code>SITEWISE_DEFAULT_STORAGE</code> – IoT SiteWise saves your data into the hot tier. The hot tier is a service-managed database.</p></li>  <li>   <p><code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the hot tier. The cold tier is a customer-managed Amazon S3 bucket.</p></li> </ul>
    ///   - [`multi_layer_storage(Option<MultiLayerStorage>)`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput::multi_layer_storage): <p>Contains information about the storage destination.</p>
    ///   - [`disassociated_data_storage(Option<DisassociatedDataStorageState>)`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput::disassociated_data_storage): <p>Contains the storage configuration for time series (data streams) that aren't associated with asset properties. The <code>disassociatedDataStorage</code> can be one of the following values:</p> <ul>  <li>   <p><code>ENABLED</code> – IoT SiteWise accepts time series that aren't associated with asset properties.</p><important>    <p>After the <code>disassociatedDataStorage</code> is enabled, you can't disable it.</p>   </important></li>  <li>   <p><code>DISABLED</code> – IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset properties.</p></li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/data-streams.html">Data streams</a> in the <i>IoT SiteWise User Guide</i>.</p>
    ///   - [`retention_period(Option<RetentionPeriod>)`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput::retention_period): <p>The number of days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier.</p>
    ///   - [`configuration_status(Option<ConfigurationStatus>)`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput::configuration_status): <p>Contains current status information for the configuration.</p>
    ///   - [`warm_tier(Option<WarmTierState>)`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput::warm_tier): <p>A service managed storage tier optimized for analytical queries. It stores periodically uploaded, buffered and historical data ingested with the CreaeBulkImportJob API.</p>
    ///   - [`warm_tier_retention_period(Option<WarmTierRetentionPeriod>)`](crate::operation::put_storage_configuration::PutStorageConfigurationOutput::warm_tier_retention_period): <p>Set 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.</p>
    /// - On failure, responds with [`SdkError<PutStorageConfigurationError>`](crate::operation::put_storage_configuration::PutStorageConfigurationError)
    pub fn put_storage_configuration(&self) -> crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder {
        crate::operation::put_storage_configuration::builders::PutStorageConfigurationFluentBuilder::new(self.handle.clone())
    }
}