aws_sdk_glue/client/batch_delete_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 [`BatchDeletePartition`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`catalog_id(impl Into<String>)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::catalog_id) / [`set_catalog_id(Option<String>)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::set_catalog_id):<br>required: **false**<br><p>The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default.</p><br>
7 /// - [`database_name(impl Into<String>)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::database_name) / [`set_database_name(Option<String>)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::set_database_name):<br>required: **true**<br><p>The name of the catalog database in which the table in question resides.</p><br>
8 /// - [`table_name(impl Into<String>)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::table_name) / [`set_table_name(Option<String>)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::set_table_name):<br>required: **true**<br><p>The name of the table that contains the partitions to be deleted.</p><br>
9 /// - [`partitions_to_delete(PartitionValueList)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::partitions_to_delete) / [`set_partitions_to_delete(Option<Vec::<PartitionValueList>>)`](crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::set_partitions_to_delete):<br>required: **true**<br><p>A list of <code>PartitionInput</code> structures that define the partitions to be deleted.</p><br>
10 /// - On success, responds with [`BatchDeletePartitionOutput`](crate::operation::batch_delete_partition::BatchDeletePartitionOutput) with field(s):
11 /// - [`errors(Option<Vec::<PartitionError>>)`](crate::operation::batch_delete_partition::BatchDeletePartitionOutput::errors): <p>The errors encountered when trying to delete the requested partitions.</p>
12 /// - On failure, responds with [`SdkError<BatchDeletePartitionError>`](crate::operation::batch_delete_partition::BatchDeletePartitionError)
13 pub fn batch_delete_partition(&self) -> crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder {
14 crate::operation::batch_delete_partition::builders::BatchDeletePartitionFluentBuilder::new(self.handle.clone())
15 }
16}