aws_sdk_mediapackagev2/client/
put_channel_policy.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 [`PutChannelPolicy`](crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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>
9    /// - On success, responds with [`PutChannelPolicyOutput`](crate::operation::put_channel_policy::PutChannelPolicyOutput)
10    /// - On failure, responds with [`SdkError<PutChannelPolicyError>`](crate::operation::put_channel_policy::PutChannelPolicyError)
11    pub fn put_channel_policy(&self) -> crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder {
12        crate::operation::put_channel_policy::builders::PutChannelPolicyFluentBuilder::new(self.handle.clone())
13    }
14}