| 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 |
Network.AWS.Glue.GetDatabases
Description
Retrieves all Databases defined in a given Data Catalog.
- getDatabases :: GetDatabases
- data GetDatabases
- gdCatalogId :: Lens' GetDatabases (Maybe Text)
- gdNextToken :: Lens' GetDatabases (Maybe Text)
- gdMaxResults :: Lens' GetDatabases (Maybe Natural)
- getDatabasesResponse :: Int -> GetDatabasesResponse
- data GetDatabasesResponse
- gdsrsNextToken :: Lens' GetDatabasesResponse (Maybe Text)
- gdsrsResponseStatus :: Lens' GetDatabasesResponse Int
- gdsrsDatabaseList :: Lens' GetDatabasesResponse [Database]
Creating a Request
getDatabases :: GetDatabases Source #
Creates a value of GetDatabases with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdCatalogId- The ID of the Data Catalog from which to retrieveDatabases. If none is supplied, the AWS account ID is used by default.gdNextToken- A continuation token, if this is a continuation call.gdMaxResults- The maximum number of databases to return in one response.
data GetDatabases Source #
See: getDatabases smart constructor.
Instances
Request Lenses
gdCatalogId :: Lens' GetDatabases (Maybe Text) Source #
The ID of the Data Catalog from which to retrieve Databases . If none is supplied, the AWS account ID is used by default.
gdNextToken :: Lens' GetDatabases (Maybe Text) Source #
A continuation token, if this is a continuation call.
gdMaxResults :: Lens' GetDatabases (Maybe Natural) Source #
The maximum number of databases to return in one response.
Destructuring the Response
Arguments
| :: Int | |
| -> GetDatabasesResponse |
Creates a value of GetDatabasesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdsrsNextToken- A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.gdsrsResponseStatus- -- | The response status code.gdsrsDatabaseList- A list ofDatabaseobjects from the specified catalog.
data GetDatabasesResponse Source #
See: getDatabasesResponse smart constructor.
Response Lenses
gdsrsNextToken :: Lens' GetDatabasesResponse (Maybe Text) Source #
A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
gdsrsResponseStatus :: Lens' GetDatabasesResponse Int Source #
- - | The response status code.
gdsrsDatabaseList :: Lens' GetDatabasesResponse [Database] Source #
A list of Database objects from the specified catalog.