Skip to main content

aws_sdk_cloudwatchlogs/client/
put_storage_tier_policy.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`PutStorageTierPolicy`](crate::operation::put_storage_tier_policy::builders::PutStorageTierPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`storage_tier(StorageTier)`](crate::operation::put_storage_tier_policy::builders::PutStorageTierPolicyFluentBuilder::storage_tier) / [`set_storage_tier(Option<StorageTier>)`](crate::operation::put_storage_tier_policy::builders::PutStorageTierPolicyFluentBuilder::set_storage_tier):<br>required: **true**<br><p>The storage tier to set for the account. Valid values are <code>STANDARD</code> and <code>INTELLIGENT_TIERING</code>.</p><br>
7    /// - On success, responds with [`PutStorageTierPolicyOutput`](crate::operation::put_storage_tier_policy::PutStorageTierPolicyOutput) with field(s):
8    ///   - [`storage_tier(Option<StorageTier>)`](crate::operation::put_storage_tier_policy::PutStorageTierPolicyOutput::storage_tier): <p>The storage tier that was set.</p>
9    ///   - [`last_updated_time(Option<i64>)`](crate::operation::put_storage_tier_policy::PutStorageTierPolicyOutput::last_updated_time): <p>The time when the storage tier policy was last updated, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
10    /// - On failure, responds with [`SdkError<PutStorageTierPolicyError>`](crate::operation::put_storage_tier_policy::PutStorageTierPolicyError)
11    pub fn put_storage_tier_policy(&self) -> crate::operation::put_storage_tier_policy::builders::PutStorageTierPolicyFluentBuilder {
12        crate::operation::put_storage_tier_policy::builders::PutStorageTierPolicyFluentBuilder::new(self.handle.clone())
13    }
14}