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