| Copyright | (c) 2013-2018 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.Athena.ListNamedQueries
Description
Provides a list of all available query IDs.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide .
This operation returns paginated results.
Synopsis
- listNamedQueries :: ListNamedQueries
- data ListNamedQueries
- lnqNextToken :: Lens' ListNamedQueries (Maybe Text)
- lnqMaxResults :: Lens' ListNamedQueries (Maybe Natural)
- listNamedQueriesResponse :: Int -> ListNamedQueriesResponse
- data ListNamedQueriesResponse
- lnqrsNextToken :: Lens' ListNamedQueriesResponse (Maybe Text)
- lnqrsNamedQueryIds :: Lens' ListNamedQueriesResponse (Maybe (NonEmpty Text))
- lnqrsResponseStatus :: Lens' ListNamedQueriesResponse Int
Creating a Request
listNamedQueries :: ListNamedQueries Source #
Creates a value of ListNamedQueries with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lnqNextToken- The token that specifies where to start pagination if a previous request was truncated.lnqMaxResults- The maximum number of queries to return in this request.
data ListNamedQueries Source #
See: listNamedQueries smart constructor.
Instances
Request Lenses
lnqNextToken :: Lens' ListNamedQueries (Maybe Text) Source #
The token that specifies where to start pagination if a previous request was truncated.
lnqMaxResults :: Lens' ListNamedQueries (Maybe Natural) Source #
The maximum number of queries to return in this request.
Destructuring the Response
listNamedQueriesResponse Source #
Arguments
| :: Int | |
| -> ListNamedQueriesResponse |
Creates a value of ListNamedQueriesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lnqrsNextToken- A token to be used by the next request if this request is truncated.lnqrsNamedQueryIds- The list of unique query IDs.lnqrsResponseStatus- -- | The response status code.
data ListNamedQueriesResponse Source #
See: listNamedQueriesResponse smart constructor.
Instances
Response Lenses
lnqrsNextToken :: Lens' ListNamedQueriesResponse (Maybe Text) Source #
A token to be used by the next request if this request is truncated.
lnqrsNamedQueryIds :: Lens' ListNamedQueriesResponse (Maybe (NonEmpty Text)) Source #
The list of unique query IDs.
lnqrsResponseStatus :: Lens' ListNamedQueriesResponse Int Source #
- - | The response status code.