aws_sdk_mediatailor/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_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 of the channel associated with this Channel Policy.</p><br>
7 /// - On success, responds with [`GetChannelPolicyOutput`](crate::operation::get_channel_policy::GetChannelPolicyOutput) with field(s):
8 /// - [`policy(Option<String>)`](crate::operation::get_channel_policy::GetChannelPolicyOutput::policy): <p>The IAM policy for the channel. IAM policies are used to control access to your channel.</p>
9 /// - On failure, responds with [`SdkError<GetChannelPolicyError>`](crate::operation::get_channel_policy::GetChannelPolicyError)
10 pub fn get_channel_policy(&self) -> crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder {
11 crate::operation::get_channel_policy::builders::GetChannelPolicyFluentBuilder::new(self.handle.clone())
12 }
13}