awswrangler.timestream.list_tables¶
- awswrangler.timestream.list_tables(database: str | None = None, boto3_session: Session | None = None) list[str] ¶
List tables in timestream.
- Parameters:
database (
str
|None
) – Database name. If None, all tables in Timestream will be returned. Otherwise, only the tables inside the given database are returned.boto3_session (
Session
|None
) – The default boto3 session will be used if boto3_session isNone
.
- Return type:
list
[str
]- Returns:
A list of table names.
Examples
Listing all tables in timestream across databases
>>> import awswrangler as wr >>> wr.timestream.list_tables() ["table1", "table2"]
Listing all tables in timestream in a specific database
>>> import awswrangler as wr >>> wr.timestream.list_tables(DatabaseName="database1") ["table1"]