| 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.ListDatabases
Description
Lists the databases in the specified data catalog.
This operation returns paginated results.
Synopsis
- data ListDatabases = ListDatabases' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- catalogName :: Text
- newListDatabases :: Text -> ListDatabases
- listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural)
- listDatabases_nextToken :: Lens' ListDatabases (Maybe Text)
- 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.
Constructors
| ListDatabases' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListDatabases |
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:maxResults:ListDatabases', listDatabases_maxResults - Specifies the maximum number of results to return.
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.
ListDatabases, listDatabases_catalogName - The name of the data catalog that contains the databases to return.
Request Lenses
listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural) Source #
Specifies the maximum number of results to return.
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_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.
Constructors
| ListDatabasesResponse' | |
Fields
| |
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.
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.