| Copyright | (c) 2013-2017 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 |
Network.AWS.Glue.CreateDatabase
Description
Creates a new database in a Data Catalog.
- 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
Arguments
| :: DatabaseInput | |
| -> CreateDatabase |
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- ADatabaseInputobject 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 #
Arguments
| :: Int | |
| -> CreateDatabaseResponse |
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.
Response Lenses
cdrsResponseStatus :: Lens' CreateDatabaseResponse Int Source #
- - | The response status code.