aws_sdk_glue/client/batch_create_partition.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 [`BatchCreatePartition`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`catalog_id(impl Into<String>)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::catalog_id) / [`set_catalog_id(Option<String>)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::set_catalog_id):<br>required: **false**<br><p>The ID of the catalog in which the partition is to be created. Currently, this should be the Amazon Web Services account ID.</p><br>
7 /// - [`database_name(impl Into<String>)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::database_name) / [`set_database_name(Option<String>)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::set_database_name):<br>required: **true**<br><p>The name of the metadata database in which the partition is to be created.</p><br>
8 /// - [`table_name(impl Into<String>)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::set_table_name):<br>required: **true**<br><p>The name of the metadata table in which the partition is to be created.</p><br>
9 /// - [`partition_input_list(PartitionInput)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::partition_input_list) / [`set_partition_input_list(Option<Vec::<PartitionInput>>)`](crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::set_partition_input_list):<br>required: **true**<br><p>A list of <code>PartitionInput</code> structures that define the partitions to be created.</p><br>
10 /// - On success, responds with [`BatchCreatePartitionOutput`](crate::operation::batch_create_partition::BatchCreatePartitionOutput) with field(s):
11 /// - [`errors(Option<Vec::<PartitionError>>)`](crate::operation::batch_create_partition::BatchCreatePartitionOutput::errors): <p>The errors encountered when trying to create the requested partitions.</p>
12 /// - On failure, responds with [`SdkError<BatchCreatePartitionError>`](crate::operation::batch_create_partition::BatchCreatePartitionError)
13 pub fn batch_create_partition(&self) -> crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder {
14 crate::operation::batch_create_partition::builders::BatchCreatePartitionFluentBuilder::new(self.handle.clone())
15 }
16}