| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.BatchDeletePartition
Description
Deletes one or more partitions in a batch operation.
Synopsis
- data BatchDeletePartition = BatchDeletePartition' {}
- newBatchDeletePartition :: Text -> Text -> BatchDeletePartition
- batchDeletePartition_catalogId :: Lens' BatchDeletePartition (Maybe Text)
- batchDeletePartition_databaseName :: Lens' BatchDeletePartition Text
- batchDeletePartition_tableName :: Lens' BatchDeletePartition Text
- batchDeletePartition_partitionsToDelete :: Lens' BatchDeletePartition [PartitionValueList]
- data BatchDeletePartitionResponse = BatchDeletePartitionResponse' {
- errors :: Maybe [PartitionError]
- httpStatus :: Int
- newBatchDeletePartitionResponse :: Int -> BatchDeletePartitionResponse
- batchDeletePartitionResponse_errors :: Lens' BatchDeletePartitionResponse (Maybe [PartitionError])
- batchDeletePartitionResponse_httpStatus :: Lens' BatchDeletePartitionResponse Int
Creating a Request
data BatchDeletePartition Source #
See: newBatchDeletePartition smart constructor.
Constructors
| BatchDeletePartition' | |
Fields
| |
Instances
newBatchDeletePartition Source #
Arguments
| :: Text | |
| -> Text | |
| -> BatchDeletePartition |
Create a value of BatchDeletePartition with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
BatchDeletePartition, batchDeletePartition_catalogId - 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.
BatchDeletePartition, batchDeletePartition_databaseName - The name of the catalog database in which the table in question resides.
BatchDeletePartition, batchDeletePartition_tableName - The name of the table that contains the partitions to be deleted.
$sel:partitionsToDelete:BatchDeletePartition', batchDeletePartition_partitionsToDelete - A list of PartitionInput structures that define the partitions to be
deleted.
Request Lenses
batchDeletePartition_catalogId :: Lens' BatchDeletePartition (Maybe Text) Source #
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.
batchDeletePartition_databaseName :: Lens' BatchDeletePartition Text Source #
The name of the catalog database in which the table in question resides.
batchDeletePartition_tableName :: Lens' BatchDeletePartition Text Source #
The name of the table that contains the partitions to be deleted.
batchDeletePartition_partitionsToDelete :: Lens' BatchDeletePartition [PartitionValueList] Source #
A list of PartitionInput structures that define the partitions to be
deleted.
Destructuring the Response
data BatchDeletePartitionResponse Source #
See: newBatchDeletePartitionResponse smart constructor.
Constructors
| BatchDeletePartitionResponse' | |
Fields
| |
Instances
newBatchDeletePartitionResponse Source #
Create a value of BatchDeletePartitionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:errors:BatchDeletePartitionResponse', batchDeletePartitionResponse_errors - The errors encountered when trying to delete the requested partitions.
$sel:httpStatus:BatchDeletePartitionResponse', batchDeletePartitionResponse_httpStatus - The response's http status code.
Response Lenses
batchDeletePartitionResponse_errors :: Lens' BatchDeletePartitionResponse (Maybe [PartitionError]) Source #
The errors encountered when trying to delete the requested partitions.
batchDeletePartitionResponse_httpStatus :: Lens' BatchDeletePartitionResponse Int Source #
The response's http status code.