aws_sdk_cloudtrail/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(impl Into<String>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::channel) / [`set_channel(Option<String>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::set_channel):<br>required: **true**<br><p>The ARN or ID (the ARN suffix) of the channel that you want to update.</p><br>
7 /// - [`destinations(Destination)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::destinations) / [`set_destinations(Option<Vec::<Destination>>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::set_destinations):<br>required: **false**<br><p>The ARNs of event data stores that you want to log events arriving through the channel.</p><br>
8 /// - [`name(impl Into<String>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_channel::builders::UpdateChannelFluentBuilder::set_name):<br>required: **false**<br><p>Changes the name of the channel.</p><br>
9 /// - On success, responds with [`UpdateChannelOutput`](crate::operation::update_channel::UpdateChannelOutput) with field(s):
10 /// - [`channel_arn(Option<String>)`](crate::operation::update_channel::UpdateChannelOutput::channel_arn): <p>The ARN of the channel that was updated.</p>
11 /// - [`name(Option<String>)`](crate::operation::update_channel::UpdateChannelOutput::name): <p>The name of the channel that was updated.</p>
12 /// - [`source(Option<String>)`](crate::operation::update_channel::UpdateChannelOutput::source): <p>The event source of the channel that was updated.</p>
13 /// - [`destinations(Option<Vec::<Destination>>)`](crate::operation::update_channel::UpdateChannelOutput::destinations): <p>The event data stores that log events arriving through the channel.</p>
14 /// - On failure, responds with [`SdkError<UpdateChannelError>`](crate::operation::update_channel::UpdateChannelError)
15 pub fn update_channel(&self) -> crate::operation::update_channel::builders::UpdateChannelFluentBuilder {
16 crate::operation::update_channel::builders::UpdateChannelFluentBuilder::new(self.handle.clone())
17 }
18}