aws_sdk_mediastore/client/
put_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 [`PutContainerPolicy`](crate::operation::put_container_policy::builders::PutContainerPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`container_name(impl Into<String>)`](crate::operation::put_container_policy::builders::PutContainerPolicyFluentBuilder::container_name) / [`set_container_name(Option<String>)`](crate::operation::put_container_policy::builders::PutContainerPolicyFluentBuilder::set_container_name):<br>required: **true**<br><p>The name of the container.</p><br>
7    ///   - [`policy(impl Into<String>)`](crate::operation::put_container_policy::builders::PutContainerPolicyFluentBuilder::policy) / [`set_policy(Option<String>)`](crate::operation::put_container_policy::builders::PutContainerPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The contents of the policy, which includes the following:</p> <ul>  <li>   <p>One <code>Version</code> tag</p></li>  <li>   <p>One <code>Statement</code> tag that contains the standard tags for the policy.</p></li> </ul><br>
8    /// - On success, responds with [`PutContainerPolicyOutput`](crate::operation::put_container_policy::PutContainerPolicyOutput)
9    /// - On failure, responds with [`SdkError<PutContainerPolicyError>`](crate::operation::put_container_policy::PutContainerPolicyError)
10    pub fn put_container_policy(&self) -> crate::operation::put_container_policy::builders::PutContainerPolicyFluentBuilder {
11        crate::operation::put_container_policy::builders::PutContainerPolicyFluentBuilder::new(self.handle.clone())
12    }
13}