aws_sdk_iotanalytics/client/
update_channel.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 [`UpdateChannel`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`channel_name(impl Into<String>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::channel_name) / [`set_channel_name(Option<String>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::set_channel_name):<br>required: **true**<br><p>The name of the channel to be updated.</p><br>
7    ///   - [`channel_storage(ChannelStorage)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::channel_storage) / [`set_channel_storage(Option<ChannelStorage>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::set_channel_storage):<br>required: **false**<br><p>Where channel data is stored. You can choose one of <code>serviceManagedS3</code> or <code>customerManagedS3</code> storage. If not specified, the default is <code>serviceManagedS3</code>. You can't change this storage option after the channel is created.</p><br>
8    ///   - [`retention_period(RetentionPeriod)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::retention_period) / [`set_retention_period(Option<RetentionPeriod>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::set_retention_period):<br>required: **false**<br><p>How long, in days, message data is kept for the channel. The retention period can't be updated if the channel's Amazon S3 storage is customer-managed.</p><br>
9    /// - On success, responds with [`UpdateChannelOutput`](crate::operation::update_channel::UpdateChannelOutput)
10    /// - On failure, responds with [`SdkError<UpdateChannelError>`](crate::operation::update_channel::UpdateChannelError)
11    pub fn update_channel(&self) -> crate::operation::update_channel::builders::UpdateChannelFluentBuilder {
12        crate::operation::update_channel::builders::UpdateChannelFluentBuilder::new(self.handle.clone())
13    }
14}