aws_sdk_s3tables/client/put_table_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 [`PutTablePolicy`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`table_bucket_arn(impl Into<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::table_bucket_arn) / [`set_table_bucket_arn(Option<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::set_table_bucket_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the table bucket that contains the table.</p><br>
7 /// - [`namespace(impl Into<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::set_namespace):<br>required: **true**<br><p>The namespace associated with the table.</p><br>
8 /// - [`name(impl Into<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::set_name):<br>required: **true**<br><p>The name of the table.</p><br>
9 /// - [`resource_policy(impl Into<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::resource_policy) / [`set_resource_policy(Option<String>)`](crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::set_resource_policy):<br>required: **true**<br><p>The <code>JSON</code> that defines the policy.</p><br>
10 /// - On success, responds with [`PutTablePolicyOutput`](crate::operation::put_table_policy::PutTablePolicyOutput)
11 /// - On failure, responds with [`SdkError<PutTablePolicyError>`](crate::operation::put_table_policy::PutTablePolicyError)
12 pub fn put_table_policy(&self) -> crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder {
13 crate::operation::put_table_policy::builders::PutTablePolicyFluentBuilder::new(self.handle.clone())
14 }
15}