Updated on 2026-11-06 GMT+08:00

Querying Function Details

This section describes how to retrieve the metadata of a single function from LakeFormation by its name.

Prerequisites

Function Signature

client.get_function(*, database=None, name) -> Function

Parameter Description

Parameter

Mandatory (Yes/No)

Type

Default Value

Description

database

No

str | None

default_database

Database name. If this parameter is set to None, the default database is used.

name

Yes

str

-

Name of a function.

Return Value

Returns a Function object containing fields such as function_name, resource_uris, version_id, parameters and class_name.

Exception Description

Exception

Trigger Condition

FunctionNotFoundError

The specified function does not exist.

LakeFormationAPIError

Failed to call the LakeFormation API (due to network issues, authentication failures, 5xx errors, or other exceptions).

Sample Code

func = client.get_function(name="to_celsius")
print(func.function_name, func.version_id)
print(func.parameters.signature.to_dict())