list_table_metadata
async
¶
list_table_metadata(
catalog_name: CatalogNameString,
database_name: NameString,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
expression: Optional[ExpressionString] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxTableMetadataCount] = None,
work_group: Optional[WorkGroupName] = None,
) -> ListTableMetadataOutput
Lists the metadata for the tables in the specified data catalog database.
Parameters:
-
catalog_name(CatalogNameString) –The name of the data catalog for which table metadata should be returned.
-
database_name(NameString) –The name of the database for which table metadata should be returned.
-
expression(Optional[ExpressionString], default:None) –A regex filter that pattern-matches table names. If no expression is supplied, metadata for all tables are listed.
-
next_token(Optional[Token], default:None) –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.
-
max_results(Optional[MaxTableMetadataCount], default:None) –Specifies the maximum number of results to return.
-
work_group(Optional[WorkGroupName], default:None) –The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
MetadataException–An exception that Athena received when it called a custom metastore. Occurs if the error is not caused by user input (
InvalidRequestException) or from the Athena platform (InternalServerException). For example, if a user-created Lambda function is missing permissions, the Lambda4XXexception is returned in aMetadataException. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_athena/_services/async_athena.py
3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 | |