| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.CreateDatabase
Description
Creates a new database in a Data Catalog.
Synopsis
- data CreateDatabase = CreateDatabase' {
- catalogId :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- databaseInput :: DatabaseInput
- newCreateDatabase :: DatabaseInput -> CreateDatabase
- createDatabase_catalogId :: Lens' CreateDatabase (Maybe Text)
- createDatabase_tags :: Lens' CreateDatabase (Maybe (HashMap Text 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:
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:tags:CreateDatabase', createDatabase_tags - The tags you assign to the database.
$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_tags :: Lens' CreateDatabase (Maybe (HashMap Text Text)) Source #
The tags you assign to the database.
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.