| 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.DeleteDatabase
Description
Removes a specified database from a Data Catalog.
After completing this operation, you no longer have access to the tables (and all table versions and partitions that might belong to the tables) and the user-defined functions in the deleted database. 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 DeleteDatabase, use DeleteTableVersion or
BatchDeleteTableVersion, DeletePartition or BatchDeletePartition,
DeleteUserDefinedFunction, and DeleteTable or BatchDeleteTable, to
delete any resources that belong to the database.
Synopsis
- data DeleteDatabase = DeleteDatabase' {}
- newDeleteDatabase :: Text -> DeleteDatabase
- deleteDatabase_catalogId :: Lens' DeleteDatabase (Maybe Text)
- deleteDatabase_name :: Lens' DeleteDatabase Text
- data DeleteDatabaseResponse = DeleteDatabaseResponse' {
- httpStatus :: Int
- newDeleteDatabaseResponse :: Int -> DeleteDatabaseResponse
- deleteDatabaseResponse_httpStatus :: Lens' DeleteDatabaseResponse Int
Creating a Request
data DeleteDatabase Source #
See: newDeleteDatabase smart constructor.
Constructors
| DeleteDatabase' | |
Instances
Arguments
| :: Text | |
| -> DeleteDatabase |
Create a value of DeleteDatabase 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:
DeleteDatabase, deleteDatabase_catalogId - The ID of the Data Catalog in which the database resides. If none is
provided, the Amazon Web Services account ID is used by default.
DeleteDatabase, deleteDatabase_name - The name of the database to delete. For Hive compatibility, this must be
all lowercase.
Request Lenses
deleteDatabase_catalogId :: Lens' DeleteDatabase (Maybe Text) Source #
The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.
deleteDatabase_name :: Lens' DeleteDatabase Text Source #
The name of the database to delete. For Hive compatibility, this must be all lowercase.
Destructuring the Response
data DeleteDatabaseResponse Source #
See: newDeleteDatabaseResponse smart constructor.
Constructors
| DeleteDatabaseResponse' | |
Fields
| |
Instances
newDeleteDatabaseResponse Source #
Create a value of DeleteDatabaseResponse 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:httpStatus:DeleteDatabaseResponse', deleteDatabaseResponse_httpStatus - The response's http status code.
Response Lenses
deleteDatabaseResponse_httpStatus :: Lens' DeleteDatabaseResponse Int Source #
The response's http status code.