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

Description

Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.

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 ListNamedQueries Source #

See: newListNamedQueries smart constructor.

Constructors

ListNamedQueries' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of queries 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 the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.

Instances

Instances details
ToJSON ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

ToHeaders ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

ToPath ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

ToQuery ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

AWSPager ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

AWSRequest ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Associated Types

type AWSResponse ListNamedQueries #

Generic ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Associated Types

type Rep ListNamedQueries :: Type -> Type #

Read ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Show ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

NFData ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Methods

rnf :: ListNamedQueries -> () #

Eq ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Hashable ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

type AWSResponse ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

type Rep ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

type Rep ListNamedQueries = D1 ('MetaData "ListNamedQueries" "Amazonka.Athena.ListNamedQueries" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListNamedQueries'" '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)))))

newListNamedQueries :: ListNamedQueries Source #

Create a value of ListNamedQueries 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:ListNamedQueries', listNamedQueries_maxResults - The maximum number of queries to return in this request.

ListNamedQueries, listNamedQueries_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.

ListNamedQueries, listNamedQueries_workGroup - The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.

Request Lenses

listNamedQueries_maxResults :: Lens' ListNamedQueries (Maybe Natural) Source #

The maximum number of queries to return in this request.

listNamedQueries_nextToken :: Lens' ListNamedQueries (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.

listNamedQueries_workGroup :: Lens' ListNamedQueries (Maybe Text) Source #

The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.

Destructuring the Response

data ListNamedQueriesResponse Source #

See: newListNamedQueriesResponse smart constructor.

Constructors

ListNamedQueriesResponse' 

Fields

  • namedQueryIds :: Maybe (NonEmpty Text)

    The list of unique query IDs.

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

Instances

Instances details
Generic ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Associated Types

type Rep ListNamedQueriesResponse :: Type -> Type #

Read ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Show ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

NFData ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Eq ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

type Rep ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

type Rep ListNamedQueriesResponse = D1 ('MetaData "ListNamedQueriesResponse" "Amazonka.Athena.ListNamedQueries" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListNamedQueriesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "namedQueryIds") '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))))

newListNamedQueriesResponse Source #

Create a value of ListNamedQueriesResponse 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:namedQueryIds:ListNamedQueriesResponse', listNamedQueriesResponse_namedQueryIds - The list of unique query IDs.

ListNamedQueries, listNamedQueriesResponse_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:ListNamedQueriesResponse', listNamedQueriesResponse_httpStatus - The response's http status code.

Response Lenses

listNamedQueriesResponse_nextToken :: Lens' ListNamedQueriesResponse (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.