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