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 |
Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.
For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
This operation returns paginated results.
Synopsis
- data ListNamedQueries = ListNamedQueries' {}
- newListNamedQueries :: ListNamedQueries
- listNamedQueries_maxResults :: Lens' ListNamedQueries (Maybe Natural)
- listNamedQueries_nextToken :: Lens' ListNamedQueries (Maybe Text)
- listNamedQueries_workGroup :: Lens' ListNamedQueries (Maybe Text)
- data ListNamedQueriesResponse = ListNamedQueriesResponse' {
- namedQueryIds :: Maybe (NonEmpty Text)
- nextToken :: Maybe Text
- httpStatus :: Int
- newListNamedQueriesResponse :: Int -> ListNamedQueriesResponse
- listNamedQueriesResponse_namedQueryIds :: Lens' ListNamedQueriesResponse (Maybe (NonEmpty Text))
- listNamedQueriesResponse_nextToken :: Lens' ListNamedQueriesResponse (Maybe Text)
- listNamedQueriesResponse_httpStatus :: Lens' ListNamedQueriesResponse Int
Creating a Request
data ListNamedQueries Source #
See: newListNamedQueries
smart constructor.
ListNamedQueries' | |
|
Instances
newListNamedQueries :: ListNamedQueries Source #
Create a value of ListNamedQueries
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:ListNamedQueries'
, listNamedQueries_maxResults
- The maximum number of queries to return in this request.
ListNamedQueries
, listNamedQueries_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.
ListNamedQueries
, listNamedQueries_workGroup
- The name of the workgroup from which the named queries are being
returned. If a workgroup is not specified, the saved queries for the
primary workgroup are returned.
Request Lenses
listNamedQueries_maxResults :: Lens' ListNamedQueries (Maybe Natural) Source #
The maximum number of queries to return in this request.
listNamedQueries_nextToken :: Lens' ListNamedQueries (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.
listNamedQueries_workGroup :: Lens' ListNamedQueries (Maybe Text) Source #
The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.
Destructuring the Response
data ListNamedQueriesResponse Source #
See: newListNamedQueriesResponse
smart constructor.
ListNamedQueriesResponse' | |
|
Instances
newListNamedQueriesResponse Source #
Create a value of ListNamedQueriesResponse
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:namedQueryIds:ListNamedQueriesResponse'
, listNamedQueriesResponse_namedQueryIds
- The list of unique query IDs.
ListNamedQueries
, listNamedQueriesResponse_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:ListNamedQueriesResponse'
, listNamedQueriesResponse_httpStatus
- The response's http status code.
Response Lenses
listNamedQueriesResponse_namedQueryIds :: Lens' ListNamedQueriesResponse (Maybe (NonEmpty Text)) Source #
The list of unique query IDs.
listNamedQueriesResponse_nextToken :: Lens' ListNamedQueriesResponse (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.
listNamedQueriesResponse_httpStatus :: Lens' ListNamedQueriesResponse Int Source #
The response's http status code.