aws_sdk_s3tables/client/create_table_bucket.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 [`CreateTableBucket`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::set_name):<br>required: **true**<br><p>The name for the table bucket.</p><br>
7 /// - [`encryption_configuration(EncryptionConfiguration)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::encryption_configuration) / [`set_encryption_configuration(Option<EncryptionConfiguration>)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::set_encryption_configuration):<br>required: **false**<br><p>The encryption configuration to use for the table bucket. This configuration specifies the default encryption settings that will be applied to all tables created in this bucket unless overridden at the table level. The configuration includes the encryption algorithm and, if using SSE-KMS, the KMS key to use.</p><br>
8 /// - [`storage_class_configuration(StorageClassConfiguration)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::storage_class_configuration) / [`set_storage_class_configuration(Option<StorageClassConfiguration>)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::set_storage_class_configuration):<br>required: **false**<br><p>The default storage class configuration for the table bucket. This configuration will be applied to all new tables created in this bucket unless overridden at the table level. If not specified, the service default storage class will be used.</p><br>
9 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::set_tags):<br>required: **false**<br><p>A map of user-defined tags that you would like to apply to the table bucket that you are creating. A tag is a key-value pair that you apply to your resources. Tags can help you organize and control access to resources. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html">Tagging for cost allocation or attribute-based access control (ABAC)</a>.</p><note> <p>You must have the <code>s3tables:TagResource</code> permission in addition to <code>s3tables:CreateTableBucket</code> permisson to create a table bucket with tags.</p> </note><br>
10 /// - On success, responds with [`CreateTableBucketOutput`](crate::operation::create_table_bucket::CreateTableBucketOutput) with field(s):
11 /// - [`arn(String)`](crate::operation::create_table_bucket::CreateTableBucketOutput::arn): <p>The Amazon Resource Name (ARN) of the table bucket.</p>
12 /// - On failure, responds with [`SdkError<CreateTableBucketError>`](crate::operation::create_table_bucket::CreateTableBucketError)
13 pub fn create_table_bucket(&self) -> crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder {
14 crate::operation::create_table_bucket::builders::CreateTableBucketFluentBuilder::new(self.handle.clone())
15 }
16}