1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutChannelPolicy`](crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`channel_group_name(impl Into<String>)`](crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder::channel_group_name) / [`set_channel_group_name(Option<String>)`](crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder::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::put_channel_policy::builders::PutChannelPolicyFluentBuilder::channel_name) / [`set_channel_name(Option<String>)`](crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder::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. </p><br>
    ///   - [`policy(impl Into<String>)`](crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder::policy) / [`set_policy(Option<String>)`](crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The policy to attach to the specified channel.</p><br>
    /// - On success, responds with [`PutChannelPolicyOutput`](crate::operation::put_channel_policy::PutChannelPolicyOutput)
    /// - On failure, responds with [`SdkError<PutChannelPolicyError>`](crate::operation::put_channel_policy::PutChannelPolicyError)
    pub fn put_channel_policy(&self) -> crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder {
        crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder::new(self.handle.clone())
    }
}