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 |
Retrieves the definition of a specified database.
Synopsis
- data GetDatabase = GetDatabase' {}
- newGetDatabase :: Text -> GetDatabase
- getDatabase_catalogId :: Lens' GetDatabase (Maybe Text)
- getDatabase_name :: 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.
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:catalogId:GetDatabase'
, getDatabase_catalogId
- The ID of the Data Catalog in which the database resides. If none is
provided, the Amazon Web Services account ID is used by default.
$sel:name:GetDatabase'
, getDatabase_name
- The name of the database to retrieve. For Hive compatibility, this
should be all lowercase.
Request Lenses
getDatabase_catalogId :: Lens' GetDatabase (Maybe Text) Source #
The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.
getDatabase_name :: Lens' GetDatabase Text Source #
The name of the database to retrieve. For Hive compatibility, this should be all lowercase.
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 definition of the specified database in the Data Catalog.
$sel:httpStatus:GetDatabaseResponse'
, getDatabaseResponse_httpStatus
- The response's http status code.
Response Lenses
getDatabaseResponse_database :: Lens' GetDatabaseResponse (Maybe Database) Source #
The definition of the specified database in the Data Catalog.
getDatabaseResponse_httpStatus :: Lens' GetDatabaseResponse Int Source #
The response's http status code.