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

Description

Retrieves the Table definition in a Data Catalog for a specified table.

Synopsis

Creating a Request

data GetTable Source #

See: newGetTable smart constructor.

Constructors

GetTable' 

Fields

  • catalogId :: Maybe Text

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

  • databaseName :: Text

    The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.

  • name :: Text

    The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.

Instances

Instances details
Eq GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Read GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Show GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Generic GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Associated Types

type Rep GetTable :: Type -> Type #

Methods

from :: GetTable -> Rep GetTable x #

to :: Rep GetTable x -> GetTable #

NFData GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Methods

rnf :: GetTable -> () #

Hashable GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Methods

hashWithSalt :: Int -> GetTable -> Int #

hash :: GetTable -> Int #

ToJSON GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

AWSRequest GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Associated Types

type AWSResponse GetTable #

ToHeaders GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Methods

toHeaders :: GetTable -> [Header] #

ToPath GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

ToQuery GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

type Rep GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

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

Defined in Amazonka.Glue.GetTable

newGetTable Source #

Create a value of GetTable 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:GetTable', getTable_catalogId - The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.

$sel:databaseName:GetTable', getTable_databaseName - The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.

$sel:name:GetTable', getTable_name - The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.

Request Lenses

getTable_catalogId :: Lens' GetTable (Maybe Text) Source #

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

getTable_databaseName :: Lens' GetTable Text Source #

The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.

getTable_name :: Lens' GetTable Text Source #

The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.

Destructuring the Response

data GetTableResponse Source #

See: newGetTableResponse smart constructor.

Constructors

GetTableResponse' 

Fields

Instances

Instances details
Eq GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Read GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Show GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Generic GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Associated Types

type Rep GetTableResponse :: Type -> Type #

NFData GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Methods

rnf :: GetTableResponse -> () #

type Rep GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

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

newGetTableResponse Source #

Create a value of GetTableResponse 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:table:GetTableResponse', getTableResponse_table - The Table object that defines the specified table.

$sel:httpStatus:GetTableResponse', getTableResponse_httpStatus - The response's http status code.

Response Lenses

getTableResponse_table :: Lens' GetTableResponse (Maybe Table) Source #

The Table object that defines the specified table.

getTableResponse_httpStatus :: Lens' GetTableResponse Int Source #

The response's http status code.