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 |
Creates a new database in a Data Catalog.
Synopsis
- createDatabase :: DatabaseInput -> CreateDatabase
- data CreateDatabase
- cdCatalogId :: Lens' CreateDatabase (Maybe Text)
- cdDatabaseInput :: Lens' CreateDatabase DatabaseInput
- createDatabaseResponse :: Int -> CreateDatabaseResponse
- data CreateDatabaseResponse
- cdrsResponseStatus :: Lens' CreateDatabaseResponse Int
Creating a Request
Creates a value of CreateDatabase
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdCatalogId
- The ID of the Data Catalog in which to create the database. If none is supplied, the AWS account ID is used by default.cdDatabaseInput
- ADatabaseInput
object defining the metadata database to create in the catalog.
data CreateDatabase Source #
See: createDatabase
smart constructor.
Instances
Request Lenses
cdCatalogId :: Lens' CreateDatabase (Maybe Text) Source #
The ID of the Data Catalog in which to create the database. If none is supplied, the AWS account ID is used by default.
cdDatabaseInput :: Lens' CreateDatabase DatabaseInput Source #
A DatabaseInput
object defining the metadata database to create in the catalog.
Destructuring the Response
createDatabaseResponse Source #
Creates a value of CreateDatabaseResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdrsResponseStatus
- -- | The response status code.
data CreateDatabaseResponse Source #
See: createDatabaseResponse
smart constructor.
Instances
Response Lenses
cdrsResponseStatus :: Lens' CreateDatabaseResponse Int Source #
- - | The response status code.