libZSservicesZSamazonka-athenaZSamazonka-athena
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

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

  • maxResults :: Maybe Natural

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

Instances

Instances details
Eq ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Read ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Show ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Generic ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Associated Types

type Rep ListQueryExecutions :: Type -> Type #

NFData ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Methods

rnf :: ListQueryExecutions -> () #

Hashable ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

ToJSON 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 #

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

type Rep ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

type Rep ListQueryExecutions = D1 ('MetaData "ListQueryExecutions" "Amazonka.Athena.ListQueryExecutions" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "ListQueryExecutions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "workGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListQueryExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

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

$sel:workGroup: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.

$sel:maxResults:ListQueryExecutions', listQueryExecutions_maxResults - The maximum number of query executions to return in this request.

Request Lenses

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.

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

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

Destructuring the Response

data ListQueryExecutionsResponse Source #

See: newListQueryExecutionsResponse smart constructor.

Constructors

ListQueryExecutionsResponse' 

Fields

Instances

Instances details
Eq ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Read ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Show ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Generic ListQueryExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListQueryExecutions

Associated Types

type Rep ListQueryExecutionsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "ListQueryExecutionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queryExecutionIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe 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:

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

$sel:nextToken:ListQueryExecutions', listQueryExecutionsResponse_nextToken - A token to be used by the next request if this request is truncated.

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

Response Lenses

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

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

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

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