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 |
Amazonka.Glue.UpdateDatabase
Description
Updates an existing database definition in a Data Catalog.
Synopsis
- data UpdateDatabase = UpdateDatabase' {
- catalogId :: Maybe Text
- name :: Text
- databaseInput :: DatabaseInput
- newUpdateDatabase :: Text -> DatabaseInput -> UpdateDatabase
- updateDatabase_catalogId :: Lens' UpdateDatabase (Maybe Text)
- updateDatabase_name :: Lens' UpdateDatabase Text
- updateDatabase_databaseInput :: Lens' UpdateDatabase DatabaseInput
- data UpdateDatabaseResponse = UpdateDatabaseResponse' {
- httpStatus :: Int
- newUpdateDatabaseResponse :: Int -> UpdateDatabaseResponse
- updateDatabaseResponse_httpStatus :: Lens' UpdateDatabaseResponse Int
Creating a Request
data UpdateDatabase Source #
See: newUpdateDatabase
smart constructor.
Constructors
UpdateDatabase' | |
Fields
|
Instances
Arguments
:: Text | |
-> DatabaseInput | |
-> UpdateDatabase |
Create a value of UpdateDatabase
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:UpdateDatabase'
, updateDatabase_catalogId
- The ID of the Data Catalog in which the metadata database resides. If
none is provided, the Amazon Web Services account ID is used by default.
$sel:name:UpdateDatabase'
, updateDatabase_name
- The name of the database to update in the catalog. For Hive
compatibility, this is folded to lowercase.
$sel:databaseInput:UpdateDatabase'
, updateDatabase_databaseInput
- A DatabaseInput
object specifying the new definition of the metadata
database in the catalog.
Request Lenses
updateDatabase_catalogId :: Lens' UpdateDatabase (Maybe Text) Source #
The ID of the Data Catalog in which the metadata database resides. If none is provided, the Amazon Web Services account ID is used by default.
updateDatabase_name :: Lens' UpdateDatabase Text Source #
The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.
updateDatabase_databaseInput :: Lens' UpdateDatabase DatabaseInput Source #
A DatabaseInput
object specifying the new definition of the metadata
database in the catalog.
Destructuring the Response
data UpdateDatabaseResponse Source #
See: newUpdateDatabaseResponse
smart constructor.
Constructors
UpdateDatabaseResponse' | |
Fields
|
Instances
newUpdateDatabaseResponse Source #
Create a value of UpdateDatabaseResponse
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:UpdateDatabaseResponse'
, updateDatabaseResponse_httpStatus
- The response's http status code.
Response Lenses
updateDatabaseResponse_httpStatus :: Lens' UpdateDatabaseResponse Int Source #
The response's http status code.