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 |
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_nextToken :: Lens' ListNamedQueries (Maybe Text)
- listNamedQueries_workGroup :: Lens' ListNamedQueries (Maybe Text)
- listNamedQueries_maxResults :: Lens' ListNamedQueries (Maybe Natural)
- data ListNamedQueriesResponse = ListNamedQueriesResponse' {
- nextToken :: Maybe Text
- namedQueryIds :: Maybe (NonEmpty Text)
- httpStatus :: Int
- newListNamedQueriesResponse :: Int -> ListNamedQueriesResponse
- listNamedQueriesResponse_nextToken :: Lens' ListNamedQueriesResponse (Maybe Text)
- listNamedQueriesResponse_namedQueryIds :: Lens' ListNamedQueriesResponse (Maybe (NonEmpty 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:nextToken: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.
$sel:workGroup: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.
$sel:maxResults:ListNamedQueries'
, listNamedQueries_maxResults
- The maximum number of queries to return in this request.
Request Lenses
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.
listNamedQueries_maxResults :: Lens' ListNamedQueries (Maybe Natural) Source #
The maximum number of queries to return in this request.
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:nextToken: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:namedQueryIds:ListNamedQueriesResponse'
, listNamedQueriesResponse_namedQueryIds
- The list of unique query IDs.
$sel:httpStatus:ListNamedQueriesResponse'
, listNamedQueriesResponse_httpStatus
- The response's http status code.
Response Lenses
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_namedQueryIds :: Lens' ListNamedQueriesResponse (Maybe (NonEmpty Text)) Source #
The list of unique query IDs.
listNamedQueriesResponse_httpStatus :: Lens' ListNamedQueriesResponse Int Source #
The response's http status code.