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 |
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.
Instances
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:
$sel:catalogId: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.
$sel:name: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.
DeleteDatabaseResponse' | |
|
Instances
Eq DeleteDatabaseResponse Source # | |
Defined in Amazonka.Glue.DeleteDatabase | |
Read DeleteDatabaseResponse Source # | |
Show DeleteDatabaseResponse Source # | |
Defined in Amazonka.Glue.DeleteDatabase showsPrec :: Int -> DeleteDatabaseResponse -> ShowS # show :: DeleteDatabaseResponse -> String # showList :: [DeleteDatabaseResponse] -> ShowS # | |
Generic DeleteDatabaseResponse Source # | |
Defined in Amazonka.Glue.DeleteDatabase type Rep DeleteDatabaseResponse :: Type -> Type # | |
NFData DeleteDatabaseResponse Source # | |
Defined in Amazonka.Glue.DeleteDatabase rnf :: DeleteDatabaseResponse -> () # | |
type Rep DeleteDatabaseResponse Source # | |
Defined in Amazonka.Glue.DeleteDatabase type Rep DeleteDatabaseResponse = D1 ('MetaData "DeleteDatabaseResponse" "Amazonka.Glue.DeleteDatabase" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "DeleteDatabaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.