aws_sdk_glue/client/
create_partition_index.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 [`CreatePartitionIndex`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`catalog_id(impl Into<String>)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::catalog_id) / [`set_catalog_id(Option<String>)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::set_catalog_id):<br>required: **false**<br><p>The catalog ID where the table resides.</p><br>
7    ///   - [`database_name(impl Into<String>)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::database_name) / [`set_database_name(Option<String>)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::set_database_name):<br>required: **true**<br><p>Specifies the name of a database in which you want to create a partition index.</p><br>
8    ///   - [`table_name(impl Into<String>)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::set_table_name):<br>required: **true**<br><p>Specifies the name of a table in which you want to create a partition index.</p><br>
9    ///   - [`partition_index(PartitionIndex)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::partition_index) / [`set_partition_index(Option<PartitionIndex>)`](crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::set_partition_index):<br>required: **true**<br><p>Specifies a <code>PartitionIndex</code> structure to create a partition index in an existing table.</p><br>
10    /// - On success, responds with [`CreatePartitionIndexOutput`](crate::operation::create_partition_index::CreatePartitionIndexOutput)
11    /// - On failure, responds with [`SdkError<CreatePartitionIndexError>`](crate::operation::create_partition_index::CreatePartitionIndexError)
12    pub fn create_partition_index(&self) -> crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder {
13        crate::operation::create_partition_index::builders::CreatePartitionIndexFluentBuilder::new(self.handle.clone())
14    }
15}