Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Updates an existing database definition in a Data Catalog.
Synopsis
- updateDatabase :: Text -> DatabaseInput -> UpdateDatabase
- data UpdateDatabase
- udCatalogId :: Lens' UpdateDatabase (Maybe Text)
- udName :: Lens' UpdateDatabase Text
- udDatabaseInput :: Lens' UpdateDatabase DatabaseInput
- updateDatabaseResponse :: Int -> UpdateDatabaseResponse
- data UpdateDatabaseResponse
- udrsResponseStatus :: Lens' UpdateDatabaseResponse Int
Creating a Request
Creates a value of UpdateDatabase
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
udCatalogId
- The ID of the Data Catalog in which the metadata database resides. If none is supplied, the AWS account ID is used by default.udName
- The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.udDatabaseInput
- ADatabaseInput
object specifying the new definition of the metadata database in the catalog.
data UpdateDatabase Source #
See: updateDatabase
smart constructor.
Instances
Request Lenses
udCatalogId :: Lens' UpdateDatabase (Maybe Text) Source #
The ID of the Data Catalog in which the metadata database resides. If none is supplied, the AWS account ID is used by default.
udName :: Lens' UpdateDatabase Text Source #
The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.
udDatabaseInput :: Lens' UpdateDatabase DatabaseInput Source #
A DatabaseInput
object specifying the new definition of the metadata database in the catalog.
Destructuring the Response
updateDatabaseResponse Source #
Creates a value of UpdateDatabaseResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
udrsResponseStatus
- -- | The response status code.
data UpdateDatabaseResponse Source #
See: updateDatabaseResponse
smart constructor.
Instances
Response Lenses
udrsResponseStatus :: Lens' UpdateDatabaseResponse Int Source #
- - | The response status code.