aws_sdk_mediapackagev2/client/
get_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 [`GetChannelPolicy`](crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`channel_group_name(impl Into<String>)`](crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder::channel_group_name) / [`set_channel_group_name(Option<String>)`](crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder::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::get_channel_policy::builders::GetChannelPolicyFluentBuilder::channel_name) / [`set_channel_name(Option<String>)`](crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder::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    /// - On success, responds with [`GetChannelPolicyOutput`](crate::operation::get_channel_policy::GetChannelPolicyOutput) with field(s):
9    ///   - [`channel_group_name(String)`](crate::operation::get_channel_policy::GetChannelPolicyOutput::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>
10    ///   - [`channel_name(String)`](crate::operation::get_channel_policy::GetChannelPolicyOutput::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>
11    ///   - [`policy(String)`](crate::operation::get_channel_policy::GetChannelPolicyOutput::policy): <p>The policy assigned to the channel.</p>
12    /// - On failure, responds with [`SdkError<GetChannelPolicyError>`](crate::operation::get_channel_policy::GetChannelPolicyError)
13    pub fn get_channel_policy(&self) -> crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder {
14        crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder::new(self.handle.clone())
15    }
16}