UserDefinedFunctionInput
A structure used to create or update a user-defined function.
Contents
- ArtifactLocation
-
The Amazon S3 location that contains the function's artifacts. Required when
GovernanceModeisLAKE_FORMATION. You must register the location with AWS Lake Formation, and every resource URI must be under this location.Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*Required: No
- ClassName
-
The Java class that contains the function code.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*Required: No
- FunctionName
-
The name of 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: No
- FunctionType
-
The type of the function.
Type: String
Valid Values:
REGULAR_FUNCTION | AGGREGATE_FUNCTION | STORED_PROCEDURERequired: No
- GovernanceMode
-
How access to the function is governed. Specify
LAKE_FORMATIONto manage access to the function with AWS Lake Formation permissions. If you don't specify a value, the default isIAM_ONLY. You can't change the governance mode after the function is created.When
GovernanceModeisLAKE_FORMATION:-
You must be a data lake administrator or have all permissions on the Data Catalog with the grant option.
-
You must have the
DATA_LOCATION_ACCESSpermission on theArtifactLocation, unless you're a data lake administrator. -
You must specify from 1 to 10 resource URIs, each under the
ArtifactLocation. -
You can't rename the function.
Type: String
Valid Values:
IAM_ONLY | LAKE_FORMATIONRequired: No
-
- OwnerName
-
The owner of 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: No
- OwnerType
-
The owner type.
Type: String
Valid Values:
USER | ROLE | GROUPRequired: No
- ResourceUris
-
The resource URIs for the function.
Type: Array of ResourceUri objects
Array Members: Minimum number of 0 items. Maximum number of 1000 items.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: