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 |
Lists the metadata for the tables in the specified data catalog database.
This operation returns paginated results.
Synopsis
- data ListTableMetadata = ListTableMetadata' {
- nextToken :: Maybe Text
- expression :: Maybe Text
- maxResults :: Maybe Natural
- catalogName :: Text
- databaseName :: Text
- newListTableMetadata :: Text -> Text -> ListTableMetadata
- listTableMetadata_nextToken :: Lens' ListTableMetadata (Maybe Text)
- listTableMetadata_expression :: Lens' ListTableMetadata (Maybe Text)
- listTableMetadata_maxResults :: Lens' ListTableMetadata (Maybe Natural)
- listTableMetadata_catalogName :: Lens' ListTableMetadata Text
- listTableMetadata_databaseName :: Lens' ListTableMetadata Text
- data ListTableMetadataResponse = ListTableMetadataResponse' {}
- newListTableMetadataResponse :: Int -> ListTableMetadataResponse
- listTableMetadataResponse_nextToken :: Lens' ListTableMetadataResponse (Maybe Text)
- listTableMetadataResponse_tableMetadataList :: Lens' ListTableMetadataResponse (Maybe [TableMetadata])
- listTableMetadataResponse_httpStatus :: Lens' ListTableMetadataResponse Int
Creating a Request
data ListTableMetadata Source #
See: newListTableMetadata
smart constructor.
ListTableMetadata' | |
|
Instances
:: Text | |
-> Text | |
-> ListTableMetadata |
Create a value of ListTableMetadata
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:nextToken:ListTableMetadata'
, listTableMetadata_nextToken
- A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken from the response object of the previous
page call.
$sel:expression:ListTableMetadata'
, listTableMetadata_expression
- A regex filter that pattern-matches table names. If no expression is
supplied, metadata for all tables are listed.
$sel:maxResults:ListTableMetadata'
, listTableMetadata_maxResults
- Specifies the maximum number of results to return.
$sel:catalogName:ListTableMetadata'
, listTableMetadata_catalogName
- The name of the data catalog for which table metadata should be
returned.
$sel:databaseName:ListTableMetadata'
, listTableMetadata_databaseName
- The name of the database for which table metadata should be returned.
Request Lenses
listTableMetadata_nextToken :: Lens' ListTableMetadata (Maybe Text) Source #
A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
listTableMetadata_expression :: Lens' ListTableMetadata (Maybe Text) Source #
A regex filter that pattern-matches table names. If no expression is supplied, metadata for all tables are listed.
listTableMetadata_maxResults :: Lens' ListTableMetadata (Maybe Natural) Source #
Specifies the maximum number of results to return.
listTableMetadata_catalogName :: Lens' ListTableMetadata Text Source #
The name of the data catalog for which table metadata should be returned.
listTableMetadata_databaseName :: Lens' ListTableMetadata Text Source #
The name of the database for which table metadata should be returned.
Destructuring the Response
data ListTableMetadataResponse Source #
See: newListTableMetadataResponse
smart constructor.
ListTableMetadataResponse' | |
|
Instances
newListTableMetadataResponse Source #
Create a value of ListTableMetadataResponse
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:nextToken:ListTableMetadata'
, listTableMetadataResponse_nextToken
- A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken from the response object of the previous
page call.
$sel:tableMetadataList:ListTableMetadataResponse'
, listTableMetadataResponse_tableMetadataList
- A list of table metadata.
$sel:httpStatus:ListTableMetadataResponse'
, listTableMetadataResponse_httpStatus
- The response's http status code.
Response Lenses
listTableMetadataResponse_nextToken :: Lens' ListTableMetadataResponse (Maybe Text) Source #
A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
listTableMetadataResponse_tableMetadataList :: Lens' ListTableMetadataResponse (Maybe [TableMetadata]) Source #
A list of table metadata.
listTableMetadataResponse_httpStatus :: Lens' ListTableMetadataResponse Int Source #
The response's http status code.