| 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 |
Amazonka.Glue.GetTables
Description
Retrieves the definitions of some or all of the tables in a given
Database.
This operation returns paginated results.
Synopsis
- data GetTables = GetTables' {}
- newGetTables :: Text -> GetTables
- getTables_catalogId :: Lens' GetTables (Maybe Text)
- getTables_expression :: Lens' GetTables (Maybe Text)
- getTables_maxResults :: Lens' GetTables (Maybe Natural)
- getTables_nextToken :: Lens' GetTables (Maybe Text)
- getTables_queryAsOfTime :: Lens' GetTables (Maybe UTCTime)
- getTables_transactionId :: Lens' GetTables (Maybe Text)
- getTables_databaseName :: Lens' GetTables Text
- data GetTablesResponse = GetTablesResponse' {}
- newGetTablesResponse :: Int -> GetTablesResponse
- getTablesResponse_nextToken :: Lens' GetTablesResponse (Maybe Text)
- getTablesResponse_tableList :: Lens' GetTablesResponse (Maybe [Table])
- getTablesResponse_httpStatus :: Lens' GetTablesResponse Int
Creating a Request
See: newGetTables smart constructor.
Constructors
| GetTables' | |
Fields
| |
Instances
Create a value of GetTables 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:
GetTables, getTables_catalogId - The ID of the Data Catalog where the tables reside. If none is provided,
the Amazon Web Services account ID is used by default.
$sel:expression:GetTables', getTables_expression - A regular expression pattern. If present, only those tables whose names
match the pattern are returned.
$sel:maxResults:GetTables', getTables_maxResults - The maximum number of tables to return in a single response.
GetTables, getTables_nextToken - A continuation token, included if this is a continuation call.
$sel:queryAsOfTime:GetTables', getTables_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:GetTables', getTables_transactionId - The transaction ID at which to read the table contents.
GetTables, getTables_databaseName - The database in the catalog whose tables to list. For Hive
compatibility, this name is entirely lowercase.
Request Lenses
getTables_catalogId :: Lens' GetTables (Maybe Text) Source #
The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.
getTables_expression :: Lens' GetTables (Maybe Text) Source #
A regular expression pattern. If present, only those tables whose names match the pattern are returned.
getTables_maxResults :: Lens' GetTables (Maybe Natural) Source #
The maximum number of tables to return in a single response.
getTables_nextToken :: Lens' GetTables (Maybe Text) Source #
A continuation token, included if this is a continuation call.
getTables_queryAsOfTime :: Lens' GetTables (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.
getTables_transactionId :: Lens' GetTables (Maybe Text) Source #
The transaction ID at which to read the table contents.
getTables_databaseName :: Lens' GetTables Text Source #
The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.
Destructuring the Response
data GetTablesResponse Source #
See: newGetTablesResponse smart constructor.
Constructors
| GetTablesResponse' | |
Instances
Arguments
| :: Int | |
| -> GetTablesResponse |
Create a value of GetTablesResponse 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:
GetTables, getTablesResponse_nextToken - A continuation token, present if the current list segment is not the
last.
$sel:tableList:GetTablesResponse', getTablesResponse_tableList - A list of the requested Table objects.
$sel:httpStatus:GetTablesResponse', getTablesResponse_httpStatus - The response's http status code.
Response Lenses
getTablesResponse_nextToken :: Lens' GetTablesResponse (Maybe Text) Source #
A continuation token, present if the current list segment is not the last.
getTablesResponse_tableList :: Lens' GetTablesResponse (Maybe [Table]) Source #
A list of the requested Table objects.
getTablesResponse_httpStatus :: Lens' GetTablesResponse Int Source #
The response's http status code.