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 |
Lists the databases in the specified data catalog.
This operation returns paginated results.
Synopsis
- data ListDatabases = ListDatabases' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- catalogName :: Text
- newListDatabases :: Text -> ListDatabases
- listDatabases_nextToken :: Lens' ListDatabases (Maybe Text)
- listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural)
- listDatabases_catalogName :: Lens' ListDatabases Text
- data ListDatabasesResponse = ListDatabasesResponse' {
- databaseList :: Maybe [Database]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListDatabasesResponse :: Int -> ListDatabasesResponse
- listDatabasesResponse_databaseList :: Lens' ListDatabasesResponse (Maybe [Database])
- listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (Maybe Text)
- listDatabasesResponse_httpStatus :: Lens' ListDatabasesResponse Int
Creating a Request
data ListDatabases Source #
See: newListDatabases
smart constructor.
ListDatabases' | |
|
Instances
Create a value of ListDatabases
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:nextToken:ListDatabases'
, listDatabases_nextToken
- A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken
from the response object of the
previous page call.
$sel:maxResults:ListDatabases'
, listDatabases_maxResults
- Specifies the maximum number of results to return.
$sel:catalogName:ListDatabases'
, listDatabases_catalogName
- The name of the data catalog that contains the databases to return.
Request Lenses
listDatabases_nextToken :: Lens' ListDatabases (Maybe Text) Source #
A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken
from the response object of the
previous page call.
listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural) Source #
Specifies the maximum number of results to return.
listDatabases_catalogName :: Lens' ListDatabases Text Source #
The name of the data catalog that contains the databases to return.
Destructuring the Response
data ListDatabasesResponse Source #
See: newListDatabasesResponse
smart constructor.
ListDatabasesResponse' | |
|
Instances
newListDatabasesResponse Source #
Create a value of ListDatabasesResponse
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:databaseList:ListDatabasesResponse'
, listDatabasesResponse_databaseList
- A list of databases from a data catalog.
$sel:nextToken:ListDatabases'
, listDatabasesResponse_nextToken
- A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken from the response object of the previous
page call.
$sel:httpStatus:ListDatabasesResponse'
, listDatabasesResponse_httpStatus
- The response's http status code.
Response Lenses
listDatabasesResponse_databaseList :: Lens' ListDatabasesResponse (Maybe [Database]) Source #
A list of databases from a data catalog.
listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (Maybe Text) Source #
A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
listDatabasesResponse_httpStatus :: Lens' ListDatabasesResponse Int Source #
The response's http status code.