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.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

Creating a Request

data ListExecutors Source #

See: newListExecutors smart constructor.

Constructors

ListExecutors' 

Fields

  • executorStateFilter :: Maybe ExecutorState

    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.

  • maxResults :: Maybe Natural

    The maximum number of executors 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.

  • sessionId :: Text

    The session ID.

Instances

Instances details
ToJSON ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

ToHeaders ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

ToPath ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

ToQuery ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

AWSRequest ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Associated Types

type AWSResponse ListExecutors #

Generic ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Associated Types

type Rep ListExecutors :: Type -> Type #

Read ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Show ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

NFData ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Methods

rnf :: ListExecutors -> () #

Eq ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Hashable ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

type AWSResponse ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

type Rep ListExecutors Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

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

newListExecutors Source #

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.

Destructuring the Response

data ListExecutorsResponse Source #

See: newListExecutorsResponse smart constructor.

Constructors

ListExecutorsResponse' 

Fields

  • executorsSummary :: Maybe [ExecutorsSummary]

    Contains summary information about the executor.

  • 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.

  • sessionId :: Text

    The session ID.

Instances

Instances details
Generic ListExecutorsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Associated Types

type Rep ListExecutorsResponse :: Type -> Type #

Read ListExecutorsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Show ListExecutorsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

NFData ListExecutorsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

Methods

rnf :: ListExecutorsResponse -> () #

Eq ListExecutorsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

type Rep ListExecutorsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListExecutors

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

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_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.