1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetChannel`](crate::operation::get_channel::builders::GetChannelFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`channel(impl Into<String>)`](crate::operation::get_channel::builders::GetChannelFluentBuilder::channel) / [`set_channel(Option<String>)`](crate::operation::get_channel::builders::GetChannelFluentBuilder::set_channel):<br>required: **true**<br><p>The ARN or <code>UUID</code> of a channel.</p><br>
    /// - On success, responds with [`GetChannelOutput`](crate::operation::get_channel::GetChannelOutput) with field(s):
    ///   - [`channel_arn(Option<String>)`](crate::operation::get_channel::GetChannelOutput::channel_arn): <p>The ARN of an channel returned by a <code>GetChannel</code> request.</p>
    ///   - [`name(Option<String>)`](crate::operation::get_channel::GetChannelOutput::name): <p>The name of the CloudTrail channel. For service-linked channels, the name is <code>aws-service-channel/service-name/custom-suffix</code> where <code>service-name</code> represents the name of the Amazon Web Services service that created the channel and <code>custom-suffix</code> represents the suffix generated by the Amazon Web Services service.</p>
    ///   - [`source(Option<String>)`](crate::operation::get_channel::GetChannelOutput::source): <p>The source for the CloudTrail channel.</p>
    ///   - [`source_config(Option<SourceConfig>)`](crate::operation::get_channel::GetChannelOutput::source_config): <p>Provides information about the advanced event selectors configured for the channel, and whether the channel applies to all Regions or a single Region.</p>
    ///   - [`destinations(Option<Vec::<Destination>>)`](crate::operation::get_channel::GetChannelOutput::destinations): <p>The destinations for the channel. For channels created for integrations, the destinations are the event data stores that log events arriving through the channel. For service-linked channels, the destination is the Amazon Web Services service that created the service-linked channel to receive events.</p>
    ///   - [`ingestion_status(Option<IngestionStatus>)`](crate::operation::get_channel::GetChannelOutput::ingestion_status): <p>A table showing information about the most recent successful and failed attempts to ingest events.</p>
    /// - On failure, responds with [`SdkError<GetChannelError>`](crate::operation::get_channel::GetChannelError)
    pub fn get_channel(&self) -> crate::operation::get_channel::builders::GetChannelFluentBuilder {
        crate::operation::get_channel::builders::GetChannelFluentBuilder::new(self.handle.clone())
    }
}