Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes multiple tables at once.
After completing this operation, you no longer have access to the table versions and partitions that belong to the deleted table. Glue deletes these "orphaned" resources asynchronously in a timely manner, at the discretion of the service.
To ensure the immediate deletion of all related resources, before
calling BatchDeleteTable
, use DeleteTableVersion
or
BatchDeleteTableVersion
, and DeletePartition
or
BatchDeletePartition
, to delete any resources that belong to the
table.
Synopsis
- data BatchDeleteTable = BatchDeleteTable' {
- catalogId :: Maybe Text
- databaseName :: Text
- tablesToDelete :: [Text]
- newBatchDeleteTable :: Text -> BatchDeleteTable
- batchDeleteTable_catalogId :: Lens' BatchDeleteTable (Maybe Text)
- batchDeleteTable_databaseName :: Lens' BatchDeleteTable Text
- batchDeleteTable_tablesToDelete :: Lens' BatchDeleteTable [Text]
- data BatchDeleteTableResponse = BatchDeleteTableResponse' {
- errors :: Maybe [TableError]
- httpStatus :: Int
- newBatchDeleteTableResponse :: Int -> BatchDeleteTableResponse
- batchDeleteTableResponse_errors :: Lens' BatchDeleteTableResponse (Maybe [TableError])
- batchDeleteTableResponse_httpStatus :: Lens' BatchDeleteTableResponse Int
Creating a Request
data BatchDeleteTable Source #
See: newBatchDeleteTable
smart constructor.
BatchDeleteTable' | |
|
Instances
Create a value of BatchDeleteTable
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:catalogId:BatchDeleteTable'
, batchDeleteTable_catalogId
- The ID of the Data Catalog where the table resides. If none is provided,
the Amazon Web Services account ID is used by default.
$sel:databaseName:BatchDeleteTable'
, batchDeleteTable_databaseName
- The name of the catalog database in which the tables to delete reside.
For Hive compatibility, this name is entirely lowercase.
$sel:tablesToDelete:BatchDeleteTable'
, batchDeleteTable_tablesToDelete
- A list of the table to delete.
Request Lenses
batchDeleteTable_catalogId :: Lens' BatchDeleteTable (Maybe Text) Source #
The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
batchDeleteTable_databaseName :: Lens' BatchDeleteTable Text Source #
The name of the catalog database in which the tables to delete reside. For Hive compatibility, this name is entirely lowercase.
batchDeleteTable_tablesToDelete :: Lens' BatchDeleteTable [Text] Source #
A list of the table to delete.
Destructuring the Response
data BatchDeleteTableResponse Source #
See: newBatchDeleteTableResponse
smart constructor.
BatchDeleteTableResponse' | |
|
Instances
newBatchDeleteTableResponse Source #
Create a value of BatchDeleteTableResponse
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:BatchDeleteTableResponse'
, batchDeleteTableResponse_errors
- A list of errors encountered in attempting to delete the specified
tables.
$sel:httpStatus:BatchDeleteTableResponse'
, batchDeleteTableResponse_httpStatus
- The response's http status code.
Response Lenses
batchDeleteTableResponse_errors :: Lens' BatchDeleteTableResponse (Maybe [TableError]) Source #
A list of errors encountered in attempting to delete the specified tables.
batchDeleteTableResponse_httpStatus :: Lens' BatchDeleteTableResponse Int Source #
The response's http status code.