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

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

  • maxResults :: Maybe Natural

    The maximum number of queries to return in this request.

Instances

Instances details
Eq ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Read ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Show ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Generic ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Associated Types

type Rep ListNamedQueries :: Type -> Type #

NFData ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Methods

rnf :: ListNamedQueries -> () #

Hashable ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

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

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

type Rep ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

type Rep ListNamedQueries = D1 ('MetaData "ListNamedQueries" "Amazonka.Athena.ListNamedQueries" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "ListNamedQueries'" '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 ListNamedQueries Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

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

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

$sel:maxResults:ListNamedQueries', listNamedQueries_maxResults - The maximum number of queries to return in this request.

Request Lenses

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.

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

The maximum number of queries to return in this request.

Destructuring the Response

data ListNamedQueriesResponse Source #

See: newListNamedQueriesResponse smart constructor.

Constructors

ListNamedQueriesResponse' 

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.

  • namedQueryIds :: Maybe (NonEmpty Text)

    The list of unique query IDs.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Read ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Show ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Generic ListNamedQueriesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListNamedQueries

Associated Types

type Rep ListNamedQueriesResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "ListNamedQueriesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "namedQueryIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty 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:nextToken: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:namedQueryIds:ListNamedQueriesResponse', listNamedQueriesResponse_namedQueryIds - The list of unique query IDs.

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