Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves the Table
definition in a Data Catalog for a specified
table.
Synopsis
- data GetTable = GetTable' {
- catalogId :: Maybe Text
- queryAsOfTime :: Maybe POSIX
- transactionId :: Maybe Text
- databaseName :: Text
- name :: Text
- newGetTable :: Text -> Text -> GetTable
- getTable_catalogId :: Lens' GetTable (Maybe Text)
- getTable_queryAsOfTime :: Lens' GetTable (Maybe UTCTime)
- getTable_transactionId :: Lens' GetTable (Maybe Text)
- getTable_databaseName :: Lens' GetTable Text
- getTable_name :: Lens' GetTable Text
- data GetTableResponse = GetTableResponse' {
- table :: Maybe Table
- httpStatus :: Int
- newGetTableResponse :: Int -> GetTableResponse
- getTableResponse_table :: Lens' GetTableResponse (Maybe Table)
- getTableResponse_httpStatus :: Lens' GetTableResponse Int
Creating a Request
See: newGetTable
smart constructor.
GetTable' | |
|
Instances
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.
GetTableResponse' | |
|
Instances
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.