| 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.ListExecutors
Description
Lists, in descending order, the executors that have been submitted to a session. Newer executors are listed first; older executors are listed later. The result can be optionally filtered by state.
Synopsis
- data ListExecutors = ListExecutors' {}
- newListExecutors :: Text -> ListExecutors
- listExecutors_executorStateFilter :: Lens' ListExecutors (Maybe ExecutorState)
- listExecutors_maxResults :: Lens' ListExecutors (Maybe Natural)
- listExecutors_nextToken :: Lens' ListExecutors (Maybe Text)
- listExecutors_sessionId :: Lens' ListExecutors Text
- data ListExecutorsResponse = ListExecutorsResponse' {}
- newListExecutorsResponse :: Int -> Text -> ListExecutorsResponse
- listExecutorsResponse_executorsSummary :: Lens' ListExecutorsResponse (Maybe [ExecutorsSummary])
- listExecutorsResponse_nextToken :: Lens' ListExecutorsResponse (Maybe Text)
- listExecutorsResponse_httpStatus :: Lens' ListExecutorsResponse Int
- listExecutorsResponse_sessionId :: Lens' ListExecutorsResponse Text
Creating a Request
data ListExecutors Source #
See: newListExecutors smart constructor.
Constructors
| ListExecutors' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListExecutors |
Create a value of ListExecutors 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:executorStateFilter:ListExecutors', listExecutors_executorStateFilter - A filter for a specific executor state. A description of each state
follows.
CREATING - The executor is being started, including acquiring
resources.
CREATED - The executor has been started.
REGISTERED - The executor has been registered.
TERMINATING - The executor is in the process of shutting down.
TERMINATED - The executor is no longer running.
FAILED - Due to a failure, the executor is no longer running.
$sel:maxResults:ListExecutors', listExecutors_maxResults - The maximum number of executors to return.
ListExecutors, listExecutors_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.
ListExecutors, listExecutors_sessionId - The session ID.
Request Lenses
listExecutors_executorStateFilter :: Lens' ListExecutors (Maybe ExecutorState) Source #
A filter for a specific executor state. A description of each state follows.
CREATING - The executor is being started, including acquiring
resources.
CREATED - The executor has been started.
REGISTERED - The executor has been registered.
TERMINATING - The executor is in the process of shutting down.
TERMINATED - The executor is no longer running.
FAILED - Due to a failure, the executor is no longer running.
listExecutors_maxResults :: Lens' ListExecutors (Maybe Natural) Source #
The maximum number of executors to return.
listExecutors_nextToken :: Lens' ListExecutors (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.
listExecutors_sessionId :: Lens' ListExecutors Text Source #
The session ID.
Destructuring the Response
data ListExecutorsResponse Source #
See: newListExecutorsResponse smart constructor.
Constructors
| ListExecutorsResponse' | |
Fields
| |
Instances
newListExecutorsResponse Source #
Create a value of ListExecutorsResponse 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:executorsSummary:ListExecutorsResponse', listExecutorsResponse_executorsSummary - Contains summary information about the executor.
ListExecutors, listExecutorsResponse_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:ListExecutorsResponse', listExecutorsResponse_httpStatus - The response's http status code.
ListExecutors, listExecutorsResponse_sessionId - The session ID.
Response Lenses
listExecutorsResponse_executorsSummary :: Lens' ListExecutorsResponse (Maybe [ExecutorsSummary]) Source #
Contains summary information about the executor.
listExecutorsResponse_nextToken :: Lens' ListExecutorsResponse (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.
listExecutorsResponse_httpStatus :: Lens' ListExecutorsResponse Int Source #
The response's http status code.
listExecutorsResponse_sessionId :: Lens' ListExecutorsResponse Text Source #
The session ID.