Athena / Paginator / ListTableMetadata
ListTableMetadata#
- class Athena.Paginator.ListTableMetadata#
paginator = client.get_paginator('list_table_metadata')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
Athena.Client.list_table_metadata()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( CatalogName='string', DatabaseName='string', Expression='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
CatalogName (string) –
[REQUIRED]
The name of the data catalog for which table metadata should be returned.
DatabaseName (string) –
[REQUIRED]
The name of the database for which table metadata should be returned.
Expression (string) – A regex filter that pattern-matches table names. If no expression is supplied, metadata for all tables are listed.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'TableMetadataList': [ { 'Name': 'string', 'CreateTime': datetime(2015, 1, 1), 'LastAccessTime': datetime(2015, 1, 1), 'TableType': 'string', 'Columns': [ { 'Name': 'string', 'Type': 'string', 'Comment': 'string' }, ], 'PartitionKeys': [ { 'Name': 'string', 'Type': 'string', 'Comment': 'string' }, ], 'Parameters': { 'string': 'string' } }, ], }
Response Structure
(dict) –
TableMetadataList (list) –
A list of table metadata.
(dict) –
Contains metadata for a table.
Name (string) –
The name of the table.
CreateTime (datetime) –
The time that the table was created.
LastAccessTime (datetime) –
The last time the table was accessed.
TableType (string) –
The type of table. In Athena, only
EXTERNAL_TABLE
is supported.Columns (list) –
A list of the columns in the table.
(dict) –
Contains metadata for a column in a table.
Name (string) –
The name of the column.
Type (string) –
The data type of the column.
Comment (string) –
Optional information about the column.
PartitionKeys (list) –
A list of the partition keys in the table.
(dict) –
Contains metadata for a column in a table.
Name (string) –
The name of the column.
Type (string) –
The data type of the column.
Comment (string) –
Optional information about the column.
Parameters (dict) –
A set of custom key/value pairs for table properties.
(string) –
(string) –