aws_sdk_s3tables/client/get_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 [`GetTablePolicy`](crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`table_bucket_arn(impl Into<String>)`](crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder::table_bucket_arn) / [`set_table_bucket_arn(Option<String>)`](crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder::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::get_table_policy::builders::GetTablePolicyFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder::set_namespace):<br>required: **true**<br><p>The namespace associated with the table.</p><br>
8 /// - [`name(impl Into<String>)`](crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder::set_name):<br>required: **true**<br><p>The name of the table.</p><br>
9 /// - On success, responds with [`GetTablePolicyOutput`](crate::operation::get_table_policy::GetTablePolicyOutput) with field(s):
10 /// - [`resource_policy(String)`](crate::operation::get_table_policy::GetTablePolicyOutput::resource_policy): <p>The <code>JSON</code> that defines the policy.</p>
11 /// - On failure, responds with [`SdkError<GetTablePolicyError>`](crate::operation::get_table_policy::GetTablePolicyError)
12 pub fn get_table_policy(&self) -> crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder {
13 crate::operation::get_table_policy::builders::GetTablePolicyFluentBuilder::new(self.handle.clone())
14 }
15}