Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves the Table
definition in a Data Catalog for a specified
table.
Synopsis
- data GetTable = GetTable' {}
- newGetTable :: Text -> Text -> GetTable
- getTable_catalogId :: 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:
$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.
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:
$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.