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

Description

Lists the databases in the specified data catalog.

This operation returns paginated results.

Synopsis

Creating a Request

data ListDatabases Source #

See: newListDatabases smart constructor.

Constructors

ListDatabases' 

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.

  • maxResults :: Maybe Natural

    Specifies the maximum number of results to return.

  • catalogName :: Text

    The name of the data catalog that contains the databases to return.

Instances

Instances details
Eq ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Read ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Show ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Generic ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Associated Types

type Rep ListDatabases :: Type -> Type #

NFData ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Methods

rnf :: ListDatabases -> () #

Hashable ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

ToJSON ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

AWSPager ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

AWSRequest ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Associated Types

type AWSResponse ListDatabases #

ToHeaders ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

ToPath ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

ToQuery ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

type Rep ListDatabases Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

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

Defined in Amazonka.Athena.ListDatabases

newListDatabases Source #

Create a value of ListDatabases 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:ListDatabases', listDatabases_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:maxResults:ListDatabases', listDatabases_maxResults - Specifies the maximum number of results to return.

$sel:catalogName:ListDatabases', listDatabases_catalogName - The name of the data catalog that contains the databases to return.

Request Lenses

listDatabases_nextToken :: Lens' ListDatabases (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.

listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural) Source #

Specifies the maximum number of results to return.

listDatabases_catalogName :: Lens' ListDatabases Text Source #

The name of the data catalog that contains the databases to return.

Destructuring the Response

data ListDatabasesResponse Source #

See: newListDatabasesResponse smart constructor.

Constructors

ListDatabasesResponse' 

Fields

  • databaseList :: Maybe [Database]

    A list of databases from a data catalog.

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

Defined in Amazonka.Athena.ListDatabases

Read ListDatabasesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Show ListDatabasesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Generic ListDatabasesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Associated Types

type Rep ListDatabasesResponse :: Type -> Type #

NFData ListDatabasesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

Methods

rnf :: ListDatabasesResponse -> () #

type Rep ListDatabasesResponse Source # 
Instance details

Defined in Amazonka.Athena.ListDatabases

type Rep ListDatabasesResponse = D1 ('MetaData "ListDatabasesResponse" "Amazonka.Athena.ListDatabases" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "ListDatabasesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "databaseList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Database])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListDatabasesResponse Source #

Create a value of ListDatabasesResponse 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:databaseList:ListDatabasesResponse', listDatabasesResponse_databaseList - A list of databases from a data catalog.

$sel:nextToken:ListDatabases', listDatabasesResponse_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:ListDatabasesResponse', listDatabasesResponse_httpStatus - The response's http status code.

Response Lenses

listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (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.