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

Description

Lists the data catalogs in the current Amazon Web Services account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListDataCatalogs Source #

See: newListDataCatalogs smart constructor.

Constructors

ListDataCatalogs' 

Fields

  • maxResults :: Maybe Natural

    Specifies the maximum number of data catalogs 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.

Instances

Instances details
ToJSON ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

ToHeaders ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

ToPath ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

ToQuery ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

AWSPager ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

AWSRequest ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Associated Types

type AWSResponse ListDataCatalogs #

Generic ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Associated Types

type Rep ListDataCatalogs :: Type -> Type #

Read ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Show ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

NFData ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Methods

rnf :: ListDataCatalogs -> () #

Eq ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Hashable ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

type AWSResponse ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

type Rep ListDataCatalogs Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

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

newListDataCatalogs :: ListDataCatalogs Source #

Create a value of ListDataCatalogs 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:ListDataCatalogs', listDataCatalogs_maxResults - Specifies the maximum number of data catalogs to return.

ListDataCatalogs, listDataCatalogs_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.

Request Lenses

listDataCatalogs_maxResults :: Lens' ListDataCatalogs (Maybe Natural) Source #

Specifies the maximum number of data catalogs to return.

listDataCatalogs_nextToken :: Lens' ListDataCatalogs (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 ListDataCatalogsResponse Source #

See: newListDataCatalogsResponse smart constructor.

Constructors

ListDataCatalogsResponse' 

Fields

  • dataCatalogsSummary :: Maybe [DataCatalogSummary]

    A summary list of data catalogs.

  • 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 ListDataCatalogsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Associated Types

type Rep ListDataCatalogsResponse :: Type -> Type #

Read ListDataCatalogsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Show ListDataCatalogsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

NFData ListDataCatalogsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

Eq ListDataCatalogsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

type Rep ListDataCatalogsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDataCatalogs

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

newListDataCatalogsResponse Source #

Create a value of ListDataCatalogsResponse 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:dataCatalogsSummary:ListDataCatalogsResponse', listDataCatalogsResponse_dataCatalogsSummary - A summary list of data catalogs.

ListDataCatalogs, listDataCatalogsResponse_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:ListDataCatalogsResponse', listDataCatalogsResponse_httpStatus - The response's http status code.

Response Lenses

listDataCatalogsResponse_nextToken :: Lens' ListDataCatalogsResponse (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.