get_table_metadata
async
¶
get_table_metadata(
catalog_name: CatalogNameString,
database_name: NameString,
table_name: NameString,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
work_group: Optional[WorkGroupName] = None,
) -> GetTableMetadataOutput
Returns table metadata for the specified catalog, database, and table.
Parameters:
-
catalog_name(CatalogNameString) –The name of the data catalog that contains the database and table metadata to return.
-
database_name(NameString) –The name of the database that contains the table metadata to return.
-
table_name(NameString) –The name of the table for which metadata is returned.
-
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.