Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Network.AWS.Glue.GetTables
Description
Retrieves the definitions of some or all of the tables in a given Database
.
This operation returns paginated results.
Synopsis
- getTables :: Text -> GetTables
- data GetTables
- gtCatalogId :: Lens' GetTables (Maybe Text)
- gtNextToken :: Lens' GetTables (Maybe Text)
- gtExpression :: Lens' GetTables (Maybe Text)
- gtMaxResults :: Lens' GetTables (Maybe Natural)
- gtDatabaseName :: Lens' GetTables Text
- getTablesResponse :: Int -> GetTablesResponse
- data GetTablesResponse
- gtsrsTableList :: Lens' GetTablesResponse [Table]
- gtsrsNextToken :: Lens' GetTablesResponse (Maybe Text)
- gtsrsResponseStatus :: Lens' GetTablesResponse Int
Creating a Request
Creates a value of GetTables
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtCatalogId
- The ID of the Data Catalog where the tables reside. If none is supplied, the AWS account ID is used by default.gtNextToken
- A continuation token, included if this is a continuation call.gtExpression
- A regular expression pattern. If present, only those tables whose names match the pattern are returned.gtMaxResults
- The maximum number of tables to return in a single response.gtDatabaseName
- The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.
See: getTables
smart constructor.
Instances
Request Lenses
gtCatalogId :: Lens' GetTables (Maybe Text) Source #
The ID of the Data Catalog where the tables reside. If none is supplied, the AWS account ID is used by default.
gtNextToken :: Lens' GetTables (Maybe Text) Source #
A continuation token, included if this is a continuation call.
gtExpression :: Lens' GetTables (Maybe Text) Source #
A regular expression pattern. If present, only those tables whose names match the pattern are returned.
gtMaxResults :: Lens' GetTables (Maybe Natural) Source #
The maximum number of tables to return in a single response.
gtDatabaseName :: Lens' GetTables Text Source #
The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.
Destructuring the Response
Arguments
:: Int | |
-> GetTablesResponse |
Creates a value of GetTablesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtsrsTableList
- A list of the requestedTable
objects.gtsrsNextToken
- A continuation token, present if the current list segment is not the last.gtsrsResponseStatus
- -- | The response status code.
data GetTablesResponse Source #
See: getTablesResponse
smart constructor.
Instances
Response Lenses
gtsrsTableList :: Lens' GetTablesResponse [Table] Source #
A list of the requested Table
objects.
gtsrsNextToken :: Lens' GetTablesResponse (Maybe Text) Source #
A continuation token, present if the current list segment is not the last.
gtsrsResponseStatus :: Lens' GetTablesResponse Int Source #
- - | The response status code.