list_table_metadata
¶
list_table_metadata(
catalog_name: CatalogNameString,
database_name: NameString,
*,
config_overrides: Optional[AthenaClientConfig] = 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/athena.py
3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 | |