Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Retrieves the definition of a specified database.
- getDatabase :: Text -> GetDatabase
- data GetDatabase
- gddCatalogId :: Lens' GetDatabase (Maybe Text)
- gddName :: Lens' GetDatabase Text
- getDatabaseResponse :: Int -> GetDatabaseResponse
- data GetDatabaseResponse
- gdrsDatabase :: Lens' GetDatabaseResponse (Maybe Database)
- gdrsResponseStatus :: Lens' GetDatabaseResponse Int
Creating a Request
:: Text | |
-> GetDatabase |
Creates a value of GetDatabase
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gddCatalogId
- The ID of the Data Catalog in which the database resides. If none is supplied, the AWS account ID is used by default.gddName
- The name of the database to retrieve.
data GetDatabase Source #
See: getDatabase
smart constructor.
Request Lenses
gddCatalogId :: Lens' GetDatabase (Maybe Text) Source #
The ID of the Data Catalog in which the database resides. If none is supplied, the AWS account ID is used by default.
Destructuring the Response
Creates a value of GetDatabaseResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdrsDatabase
- The definition of the specified database in the catalog.gdrsResponseStatus
- -- | The response status code.
data GetDatabaseResponse Source #
See: getDatabaseResponse
smart constructor.
Response Lenses
gdrsDatabase :: Lens' GetDatabaseResponse (Maybe Database) Source #
The definition of the specified database in the catalog.
gdrsResponseStatus :: Lens' GetDatabaseResponse Int Source #
- - | The response status code.