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 [`CreateChannel`](crate::operation::create_channel::builders::CreateChannelFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`channel_group_name(impl Into<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::channel_group_name) / [`set_channel_group_name(Option<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::set_channel_group_name):<br>required: **true**<br><p>The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.</p><br>
    ///   - [`channel_name(impl Into<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::channel_name) / [`set_channel_name(Option<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::set_channel_name):<br>required: **true**<br><p>The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group. You can't change the name after you create the channel.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive token that you provide to ensure the idempotency of the request.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::set_description):<br>required: **false**<br><p>Enter any descriptive text that helps you to identify the channel.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_channel::builders::CreateChannelFluentBuilder::set_tags):<br>required: **false**<br><p>A comma-separated list of tag key:value pairs that you define. For example:</p> <p><code>"Key1": "Value1",</code></p> <p><code>"Key2": "Value2"</code></p><br>
    /// - On success, responds with [`CreateChannelOutput`](crate::operation::create_channel::CreateChannelOutput) with field(s):
    ///   - [`arn(String)`](crate::operation::create_channel::CreateChannelOutput::arn): <p>The Amazon Resource Name (ARN) associated with the resource.</p>
    ///   - [`channel_name(String)`](crate::operation::create_channel::CreateChannelOutput::channel_name): <p>The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.</p>
    ///   - [`channel_group_name(String)`](crate::operation::create_channel::CreateChannelOutput::channel_group_name): <p>The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.</p>
    ///   - [`created_at(DateTime)`](crate::operation::create_channel::CreateChannelOutput::created_at): <p>The date and time the channel was created.</p>
    ///   - [`modified_at(DateTime)`](crate::operation::create_channel::CreateChannelOutput::modified_at): <p>The date and time the channel was modified.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_channel::CreateChannelOutput::description): <p>The description for your channel.</p>
    ///   - [`ingest_endpoints(Option<Vec::<IngestEndpoint>>)`](crate::operation::create_channel::CreateChannelOutput::ingest_endpoints): <p>The list of ingest endpoints.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_channel::CreateChannelOutput::tags): <p>The comma-separated list of tag key:value pairs assigned to the channel.</p>
    /// - On failure, responds with [`SdkError<CreateChannelError>`](crate::operation::create_channel::CreateChannelError)
    pub fn create_channel(&self) -> crate::operation::create_channel::builders::CreateChannelFluentBuilder {
        crate::operation::create_channel::builders::CreateChannelFluentBuilder::new(self.handle.clone())
    }
}