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.CreateDatabase
Description
Creates a new database in a Data Catalog.
Synopsis
- data CreateDatabase = CreateDatabase' {}
- newCreateDatabase :: DatabaseInput -> CreateDatabase
- createDatabase_catalogId :: Lens' CreateDatabase (Maybe Text)
- createDatabase_databaseInput :: Lens' CreateDatabase DatabaseInput
- data CreateDatabaseResponse = CreateDatabaseResponse' {
- httpStatus :: Int
- newCreateDatabaseResponse :: Int -> CreateDatabaseResponse
- createDatabaseResponse_httpStatus :: Lens' CreateDatabaseResponse Int
Creating a Request
data CreateDatabase Source #
See: newCreateDatabase
smart constructor.
Constructors
CreateDatabase' | |
Fields
|
Instances
Create a value of CreateDatabase
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:CreateDatabase'
, createDatabase_catalogId
- The ID of the Data Catalog in which to create the database. If none is
provided, the Amazon Web Services account ID is used by default.
$sel:databaseInput:CreateDatabase'
, createDatabase_databaseInput
- The metadata for the database.
Request Lenses
createDatabase_catalogId :: Lens' CreateDatabase (Maybe Text) Source #
The ID of the Data Catalog in which to create the database. If none is provided, the Amazon Web Services account ID is used by default.
createDatabase_databaseInput :: Lens' CreateDatabase DatabaseInput Source #
The metadata for the database.
Destructuring the Response
data CreateDatabaseResponse Source #
See: newCreateDatabaseResponse
smart constructor.
Constructors
CreateDatabaseResponse' | |
Fields
|
Instances
newCreateDatabaseResponse Source #
Create a value of CreateDatabaseResponse
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:CreateDatabaseResponse'
, createDatabaseResponse_httpStatus
- The response's http status code.
Response Lenses
createDatabaseResponse_httpStatus :: Lens' CreateDatabaseResponse Int Source #
The response's http status code.