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 |
Lists, in descending order, the sessions that have been created in a
notebook that are in an active state like CREATING
, CREATED
, IDLE
or BUSY
. Newer sessions are listed first; older sessions are listed
later.
Synopsis
- data ListNotebookSessions = ListNotebookSessions' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- notebookId :: Text
- newListNotebookSessions :: Text -> ListNotebookSessions
- listNotebookSessions_maxResults :: Lens' ListNotebookSessions (Maybe Natural)
- listNotebookSessions_nextToken :: Lens' ListNotebookSessions (Maybe Text)
- listNotebookSessions_notebookId :: Lens' ListNotebookSessions Text
- data ListNotebookSessionsResponse = ListNotebookSessionsResponse' {}
- newListNotebookSessionsResponse :: Int -> ListNotebookSessionsResponse
- listNotebookSessionsResponse_nextToken :: Lens' ListNotebookSessionsResponse (Maybe Text)
- listNotebookSessionsResponse_httpStatus :: Lens' ListNotebookSessionsResponse Int
- listNotebookSessionsResponse_notebookSessionsList :: Lens' ListNotebookSessionsResponse [NotebookSessionSummary]
Creating a Request
data ListNotebookSessions Source #
See: newListNotebookSessions
smart constructor.
ListNotebookSessions' | |
|
Instances
newListNotebookSessions Source #
Create a value of ListNotebookSessions
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:ListNotebookSessions'
, listNotebookSessions_maxResults
- The maximum number of notebook sessions to return.
ListNotebookSessions
, listNotebookSessions_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.
ListNotebookSessions
, listNotebookSessions_notebookId
- The ID of the notebook to list sessions for.
Request Lenses
listNotebookSessions_maxResults :: Lens' ListNotebookSessions (Maybe Natural) Source #
The maximum number of notebook sessions to return.
listNotebookSessions_nextToken :: Lens' ListNotebookSessions (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.
listNotebookSessions_notebookId :: Lens' ListNotebookSessions Text Source #
The ID of the notebook to list sessions for.
Destructuring the Response
data ListNotebookSessionsResponse Source #
See: newListNotebookSessionsResponse
smart constructor.
ListNotebookSessionsResponse' | |
|
Instances
newListNotebookSessionsResponse Source #
Create a value of ListNotebookSessionsResponse
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:
ListNotebookSessions
, listNotebookSessionsResponse_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:ListNotebookSessionsResponse'
, listNotebookSessionsResponse_httpStatus
- The response's http status code.
$sel:notebookSessionsList:ListNotebookSessionsResponse'
, listNotebookSessionsResponse_notebookSessionsList
- A list of the sessions belonging to the notebook.
Response Lenses
listNotebookSessionsResponse_nextToken :: Lens' ListNotebookSessionsResponse (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.
listNotebookSessionsResponse_httpStatus :: Lens' ListNotebookSessionsResponse Int Source #
The response's http status code.
listNotebookSessionsResponse_notebookSessionsList :: Lens' ListNotebookSessionsResponse [NotebookSessionSummary] Source #
A list of the sessions belonging to the notebook.