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

Description

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

Creating a Request

data ListQueryExecutions Source #

See: newListQueryExecutions smart constructor.

Constructors

ListQueryExecutions' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of query executions to return in this request.

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

  • workGroup :: Maybe Text

    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.

Instances

Instances details
ToJSON ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

ToHeaders ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

ToPath ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

ToQuery ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

AWSPager ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

AWSRequest ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Associated Types

type AWSResponse ListQueryExecutions #

Generic ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Associated Types

type Rep ListQueryExecutions :: Type -> Type #

Read ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Show ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

NFData ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Methods

rnf :: ListQueryExecutions -> () #

Eq ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Hashable ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

type AWSResponse ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

type Rep ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

type Rep ListQueryExecutions = D1 ('MetaData "ListQueryExecutions" "Amazonka.Athena.ListQueryExecutions" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListQueryExecutions'" '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 "workGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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:maxResults:ListQueryExecutions', listQueryExecutions_maxResults - The maximum number of query executions to return in this request.

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.

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.

Request Lenses

listQueryExecutions_maxResults :: Lens' ListQueryExecutions (Maybe Natural) Source #

The maximum number of query executions to return in this request.

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.

Destructuring the Response

data ListQueryExecutionsResponse Source #

See: newListQueryExecutionsResponse smart constructor.

Constructors

ListQueryExecutionsResponse' 

Fields

Instances

Instances details
Generic ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Associated Types

type Rep ListQueryExecutionsResponse :: Type -> Type #

Read ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Show ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

NFData ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Eq ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

type Rep ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

type Rep ListQueryExecutionsResponse = D1 ('MetaData "ListQueryExecutionsResponse" "Amazonka.Athena.ListQueryExecutions" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListQueryExecutionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "queryExecutionIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

ListQueryExecutions, listQueryExecutionsResponse_nextToken - A token to be used by the next request if this request is truncated.

$sel:queryExecutionIds:ListQueryExecutionsResponse', listQueryExecutionsResponse_queryExecutionIds - The unique IDs of each query execution as an array of strings.

$sel:httpStatus:ListQueryExecutionsResponse', listQueryExecutionsResponse_httpStatus - The response's http status code.

Response Lenses

listQueryExecutionsResponse_nextToken :: Lens' ListQueryExecutionsResponse (Maybe Text) Source #

A token to be used by the next request if this request is truncated.

listQueryExecutionsResponse_queryExecutionIds :: Lens' ListQueryExecutionsResponse (Maybe (NonEmpty Text)) Source #

The unique IDs of each query execution as an array of strings.