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 |
Returns a database object for the specified database and data catalog.
Synopsis
- data GetDatabase = GetDatabase' {
- catalogName :: Text
- databaseName :: Text
- newGetDatabase :: Text -> Text -> GetDatabase
- getDatabase_catalogName :: Lens' GetDatabase Text
- getDatabase_databaseName :: Lens' GetDatabase Text
- data GetDatabaseResponse = GetDatabaseResponse' {
- database :: Maybe Database
- httpStatus :: Int
- newGetDatabaseResponse :: Int -> GetDatabaseResponse
- getDatabaseResponse_database :: Lens' GetDatabaseResponse (Maybe Database)
- getDatabaseResponse_httpStatus :: Lens' GetDatabaseResponse Int
Creating a Request
data GetDatabase Source #
See: newGetDatabase
smart constructor.
GetDatabase' | |
|
Instances
Create a value of GetDatabase
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:catalogName:GetDatabase'
, getDatabase_catalogName
- The name of the data catalog that contains the database to return.
$sel:databaseName:GetDatabase'
, getDatabase_databaseName
- The name of the database to return.
Request Lenses
getDatabase_catalogName :: Lens' GetDatabase Text Source #
The name of the data catalog that contains the database to return.
getDatabase_databaseName :: Lens' GetDatabase Text Source #
The name of the database to return.
Destructuring the Response
data GetDatabaseResponse Source #
See: newGetDatabaseResponse
smart constructor.
GetDatabaseResponse' | |
|
Instances
newGetDatabaseResponse Source #
Create a value of GetDatabaseResponse
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:database:GetDatabaseResponse'
, getDatabaseResponse_database
- The database returned.
$sel:httpStatus:GetDatabaseResponse'
, getDatabaseResponse_httpStatus
- The response's http status code.
Response Lenses
getDatabaseResponse_database :: Lens' GetDatabaseResponse (Maybe Database) Source #
The database returned.
getDatabaseResponse_httpStatus :: Lens' GetDatabaseResponse Int Source #
The response's http status code.