amazonka-athena-2.0: Amazon Athena SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Athena.ListNotebookSessions

Description

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

Creating a Request

data ListNotebookSessions Source #

See: newListNotebookSessions smart constructor.

Constructors

ListNotebookSessions' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of notebook sessions to return.

  • nextToken :: Maybe Text

    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.

  • notebookId :: Text

    The ID of the notebook to list sessions for.

Instances

Instances details
ToJSON ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

ToHeaders ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

ToPath ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

ToQuery ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

AWSRequest ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Associated Types

type AWSResponse ListNotebookSessions #

Generic ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Associated Types

type Rep ListNotebookSessions :: Type -> Type #

Read ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Show ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

NFData ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Methods

rnf :: ListNotebookSessions -> () #

Eq ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Hashable ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

type AWSResponse ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

type Rep ListNotebookSessions Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

type Rep ListNotebookSessions = D1 ('MetaData "ListNotebookSessions" "Amazonka.Athena.ListNotebookSessions" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListNotebookSessions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "notebookId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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.

Constructors

ListNotebookSessionsResponse' 

Fields

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

  • notebookSessionsList :: [NotebookSessionSummary]

    A list of the sessions belonging to the notebook.

Instances

Instances details
Generic ListNotebookSessionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Associated Types

type Rep ListNotebookSessionsResponse :: Type -> Type #

Read ListNotebookSessionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Show ListNotebookSessionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

NFData ListNotebookSessionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

Eq ListNotebookSessionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

type Rep ListNotebookSessionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNotebookSessions

type Rep ListNotebookSessionsResponse = D1 ('MetaData "ListNotebookSessionsResponse" "Amazonka.Athena.ListNotebookSessions" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListNotebookSessionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "notebookSessionsList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [NotebookSessionSummary]))))

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.