amazonka-glue-2.0: Amazon Glue 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.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.

  • queryAsOfTime :: Maybe POSIX

    The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId.

  • transactionId :: Maybe Text

    The transaction ID at which to read the table contents.

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

Defined in Amazonka.Glue.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

AWSRequest GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Associated Types

type AWSResponse 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 #

Read GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Show GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

NFData GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Methods

rnf :: GetTable -> () #

Eq GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Hashable GetTable Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Methods

hashWithSalt :: Int -> GetTable -> Int #

hash :: GetTable -> Int #

type AWSResponse 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" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "GetTable'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queryAsOfTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "transactionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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:

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:queryAsOfTime:GetTable', getTable_queryAsOfTime - The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId.

$sel:transactionId:GetTable', getTable_transactionId - The transaction ID at which to read the table contents.

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

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_queryAsOfTime :: Lens' GetTable (Maybe UTCTime) Source #

The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId.

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

The transaction ID at which to read the table contents.

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
Generic GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Associated Types

type Rep GetTableResponse :: Type -> Type #

Read GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Show GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

NFData GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

Methods

rnf :: GetTableResponse -> () #

Eq GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

type Rep GetTableResponse Source # 
Instance details

Defined in Amazonka.Glue.GetTable

type Rep GetTableResponse = D1 ('MetaData "GetTableResponse" "Amazonka.Glue.GetTable" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" '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:

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.