

# UserDefinedFunctionResource

Identifies a user-defined function, or all user-defined functions in a database, as a resource that you can grant permissions on. You can grant permissions only on functions whose `GovernanceMode` is `LAKE_FORMATION`.

## Contents
<a name="API_UserDefinedFunctionResource_Contents"></a>

 ** DatabaseName **   <a name="lakeformation-Type-UserDefinedFunctionResource-DatabaseName"></a>
The name of the database that contains the function.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`   
Required: Yes

 ** CatalogId **   <a name="lakeformation-Type-UserDefinedFunctionResource-CatalogId"></a>
The ID of the Data Catalog. By default, it's your account ID.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`   
Required: No

 ** Name **   <a name="lakeformation-Type-UserDefinedFunctionResource-Name"></a>
The name of the function.  
Exactly one of `UserDefinedFunctionResource$Name` or `UserDefinedFunctionResource$UserDefinedFunctionWildcard` is required.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`   
Required: No

 ** UserDefinedFunctionWildcard **   <a name="lakeformation-Type-UserDefinedFunctionResource-UserDefinedFunctionWildcard"></a>
A wildcard object representing every user-defined function in the database, including functions created after the grant.  
Exactly one of `UserDefinedFunctionResource$Name` or `UserDefinedFunctionResource$UserDefinedFunctionWildcard` is required.  
Type: [UserDefinedFunctionWildcard](API_UserDefinedFunctionWildcard.md) object  
Required: No

## See Also
<a name="API_UserDefinedFunctionResource_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lakeformation-2017-03-31/UserDefinedFunctionResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lakeformation-2017-03-31/UserDefinedFunctionResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lakeformation-2017-03-31/UserDefinedFunctionResource) 