| 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.Athena.GetDatabase
Description
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.
Constructors
| GetDatabase' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetDatabase |
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:
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.
Constructors
| GetDatabaseResponse' | |
Fields
| |
Instances
newGetDatabaseResponse Source #
Arguments
| :: Int | |
| -> GetDatabaseResponse |
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:
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.