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 execution IDs for the queries in the specified workgroup. If a workgroup is not specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the workgroup in which the queries ran.
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 ListQueryExecutions = ListQueryExecutions' {}
- newListQueryExecutions :: ListQueryExecutions
- listQueryExecutions_nextToken :: Lens' ListQueryExecutions (Maybe Text)
- listQueryExecutions_workGroup :: Lens' ListQueryExecutions (Maybe Text)
- listQueryExecutions_maxResults :: Lens' ListQueryExecutions (Maybe Natural)
- data ListQueryExecutionsResponse = ListQueryExecutionsResponse' {
- queryExecutionIds :: Maybe (NonEmpty Text)
- nextToken :: Maybe Text
- httpStatus :: Int
- newListQueryExecutionsResponse :: Int -> ListQueryExecutionsResponse
- listQueryExecutionsResponse_queryExecutionIds :: Lens' ListQueryExecutionsResponse (Maybe (NonEmpty Text))
- listQueryExecutionsResponse_nextToken :: Lens' ListQueryExecutionsResponse (Maybe Text)
- listQueryExecutionsResponse_httpStatus :: Lens' ListQueryExecutionsResponse Int
Creating a Request
data ListQueryExecutions Source #
See: newListQueryExecutions
smart constructor.
ListQueryExecutions' | |
|
Instances
newListQueryExecutions :: ListQueryExecutions Source #
Create a value of ListQueryExecutions
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:ListQueryExecutions'
, listQueryExecutions_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:ListQueryExecutions'
, listQueryExecutions_workGroup
- The name of the workgroup from which queries are being returned. If a
workgroup is not specified, a list of available query execution IDs for
the queries in the primary workgroup is returned.
$sel:maxResults:ListQueryExecutions'
, listQueryExecutions_maxResults
- The maximum number of query executions to return in this request.
Request Lenses
listQueryExecutions_nextToken :: Lens' ListQueryExecutions (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.
listQueryExecutions_workGroup :: Lens' ListQueryExecutions (Maybe Text) Source #
The name of the workgroup from which queries are being returned. If a workgroup is not specified, a list of available query execution IDs for the queries in the primary workgroup is returned.
listQueryExecutions_maxResults :: Lens' ListQueryExecutions (Maybe Natural) Source #
The maximum number of query executions to return in this request.
Destructuring the Response
data ListQueryExecutionsResponse Source #
See: newListQueryExecutionsResponse
smart constructor.
ListQueryExecutionsResponse' | |
|
Instances
newListQueryExecutionsResponse Source #
Create a value of ListQueryExecutionsResponse
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:queryExecutionIds:ListQueryExecutionsResponse'
, listQueryExecutionsResponse_queryExecutionIds
- The unique IDs of each query execution as an array of strings.
$sel:nextToken:ListQueryExecutions'
, listQueryExecutionsResponse_nextToken
- A token to be used by the next request if this request is truncated.
$sel:httpStatus:ListQueryExecutionsResponse'
, listQueryExecutionsResponse_httpStatus
- The response's http status code.
Response Lenses
listQueryExecutionsResponse_queryExecutionIds :: Lens' ListQueryExecutionsResponse (Maybe (NonEmpty Text)) Source #
The unique IDs of each query execution as an array of strings.
listQueryExecutionsResponse_nextToken :: Lens' ListQueryExecutionsResponse (Maybe Text) Source #
A token to be used by the next request if this request is truncated.
listQueryExecutionsResponse_httpStatus :: Lens' ListQueryExecutionsResponse Int Source #
The response's http status code.