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 definitions of some or all of the tables in a given
Database
.
This operation returns paginated results.
Synopsis
- data GetTables = GetTables' {
- catalogId :: Maybe Text
- nextToken :: Maybe Text
- expression :: Maybe Text
- maxResults :: Maybe Natural
- databaseName :: Text
- newGetTables :: Text -> GetTables
- getTables_catalogId :: Lens' GetTables (Maybe Text)
- getTables_nextToken :: Lens' GetTables (Maybe Text)
- getTables_expression :: Lens' GetTables (Maybe Text)
- getTables_maxResults :: Lens' GetTables (Maybe Natural)
- getTables_databaseName :: Lens' GetTables Text
- data GetTablesResponse = GetTablesResponse' {}
- newGetTablesResponse :: Int -> GetTablesResponse
- getTablesResponse_tableList :: Lens' GetTablesResponse (Maybe [Table])
- getTablesResponse_nextToken :: Lens' GetTablesResponse (Maybe Text)
- getTablesResponse_httpStatus :: Lens' GetTablesResponse Int
Creating a Request
See: newGetTables
smart constructor.
GetTables' | |
|
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:
$sel:catalogId: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:nextToken:GetTables'
, getTables_nextToken
- A continuation token, included if this is a continuation call.
$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.
$sel:databaseName: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_nextToken :: Lens' GetTables (Maybe Text) Source #
A continuation token, included if this is a continuation call.
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_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.
Instances
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:
$sel:tableList:GetTablesResponse'
, getTablesResponse_tableList
- A list of the requested Table
objects.
$sel:nextToken:GetTables'
, getTablesResponse_nextToken
- A continuation token, present if the current list segment is not the
last.
$sel:httpStatus:GetTablesResponse'
, getTablesResponse_httpStatus
- The response's http status code.
Response Lenses
getTablesResponse_tableList :: Lens' GetTablesResponse (Maybe [Table]) Source #
A list of the requested Table
objects.
getTablesResponse_nextToken :: Lens' GetTablesResponse (Maybe Text) Source #
A continuation token, present if the current list segment is not the last.
getTablesResponse_httpStatus :: Lens' GetTablesResponse Int Source #
The response's http status code.