libZSservicesZSamazonka-glueZSamazonka-glue
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.Glue.GetDatabase

Description

Retrieves the definition of a specified database.

Synopsis

Creating a Request

data GetDatabase Source #

See: newGetDatabase smart constructor.

Constructors

GetDatabase' 

Fields

  • catalogId :: Maybe Text

    The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.

  • name :: Text

    The name of the database to retrieve. For Hive compatibility, this should be all lowercase.

Instances

Instances details
Eq GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Read GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Show GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Generic GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Associated Types

type Rep GetDatabase :: Type -> Type #

NFData GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Methods

rnf :: GetDatabase -> () #

Hashable GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

ToJSON GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

AWSRequest GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Associated Types

type AWSResponse GetDatabase #

ToHeaders GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Methods

toHeaders :: GetDatabase -> [Header] #

ToPath GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

ToQuery GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

type Rep GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

type Rep GetDatabase = D1 ('MetaData "GetDatabase" "Amazonka.Glue.GetDatabase" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetDatabase'" 'PrefixI 'True) (S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetDatabase Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

newGetDatabase Source #

Create a value of GetDatabase 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:catalogId:GetDatabase', getDatabase_catalogId - The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.

$sel:name:GetDatabase', getDatabase_name - The name of the database to retrieve. For Hive compatibility, this should be all lowercase.

Request Lenses

getDatabase_catalogId :: Lens' GetDatabase (Maybe Text) Source #

The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.

getDatabase_name :: Lens' GetDatabase Text Source #

The name of the database to retrieve. For Hive compatibility, this should be all lowercase.

Destructuring the Response

data GetDatabaseResponse Source #

See: newGetDatabaseResponse smart constructor.

Constructors

GetDatabaseResponse' 

Fields

Instances

Instances details
Eq GetDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Read GetDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Show GetDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Generic GetDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Associated Types

type Rep GetDatabaseResponse :: Type -> Type #

NFData GetDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

Methods

rnf :: GetDatabaseResponse -> () #

type Rep GetDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.GetDatabase

type Rep GetDatabaseResponse = D1 ('MetaData "GetDatabaseResponse" "Amazonka.Glue.GetDatabase" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetDatabaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "database") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Database)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetDatabaseResponse Source #

Create a value of GetDatabaseResponse 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:database:GetDatabaseResponse', getDatabaseResponse_database - The definition of the specified database in the Data Catalog.

$sel:httpStatus:GetDatabaseResponse', getDatabaseResponse_httpStatus - The response's http status code.

Response Lenses

getDatabaseResponse_database :: Lens' GetDatabaseResponse (Maybe Database) Source #

The definition of the specified database in the Data Catalog.