aws_sdk_mediastore/client/
get_container_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 [`GetContainerPolicy`](crate::operation::get_container_policy::builders::GetContainerPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`container_name(impl Into<String>)`](crate::operation::get_container_policy::builders::GetContainerPolicyFluentBuilder::container_name) / [`set_container_name(Option<String>)`](crate::operation::get_container_policy::builders::GetContainerPolicyFluentBuilder::set_container_name):<br>required: **true**<br><p>The name of the container.</p><br>
7    /// - On success, responds with [`GetContainerPolicyOutput`](crate::operation::get_container_policy::GetContainerPolicyOutput) with field(s):
8    ///   - [`policy(String)`](crate::operation::get_container_policy::GetContainerPolicyOutput::policy): <p>The contents of the access policy.</p>
9    /// - On failure, responds with [`SdkError<GetContainerPolicyError>`](crate::operation::get_container_policy::GetContainerPolicyError)
10    pub fn get_container_policy(&self) -> crate::operation::get_container_policy::builders::GetContainerPolicyFluentBuilder {
11        crate::operation::get_container_policy::builders::GetContainerPolicyFluentBuilder::new(self.handle.clone())
12    }
13}