Skip to content

UserDefinedFunctionInput

Source code in docs_src/capo_glue/types/user_defined_function_input.py
class UserDefinedFunctionInput(TypedDict, closed=True):
    function_name: NotRequired["capo_glue.types.name_string.NameString"]
    """<p>The name of the function.</p>"""
    class_name: NotRequired["capo_glue.types.name_string.NameString"]
    """<p>The Java class that contains the function code.</p>"""
    owner_name: NotRequired["capo_glue.types.name_string.NameString"]
    """<p>The owner of the function.</p>"""
    function_type: NotRequired["capo_glue.types.function_type.FunctionType"]
    """<p>The type of the function.</p>"""
    owner_type: NotRequired["capo_glue.types.principal_type.PrincipalType"]
    """<p>The owner type.</p>"""
    resource_uris: NotRequired["capo_glue.types.resource_uri_list.ResourceUriList"]
    """<p>The resource URIs for the function.</p>"""
    artifact_location: NotRequired["capo_glue.types.uri.URI"]
    """<p>The Amazon S3 location that contains the function's artifacts. Required when <code>GovernanceMode</code> is <code>LAKE_FORMATION</code>. You must register the location with Lake Formation, and every resource URI must be under this location.</p>"""
    governance_mode: NotRequired["capo_glue.types.governance_mode.GovernanceMode"]
    """<p>How access to the function is governed. Specify <code>LAKE_FORMATION</code> to manage access to the function with Lake Formation permissions. If you don't specify a value, the default is <code>IAM_ONLY</code>. You can't change the governance mode after the function is created.</p> <p>When <code>GovernanceMode</code> is <code>LAKE_FORMATION</code>:</p> <ul> <li> <p>You must be a data lake administrator or have all permissions on the Data Catalog with the grant option.</p> </li> <li> <p>You must have the <code>DATA_LOCATION_ACCESS</code> permission on the <code>ArtifactLocation</code>, unless you're a data lake administrator.</p> </li> <li> <p>You must specify from 1 to 10 resource URIs, each under the <code>ArtifactLocation</code>.</p> </li> <li> <p>You can't rename the function.</p> </li> </ul>"""

artifact_location instance-attribute

artifact_location: NotRequired[URI]

The Amazon S3 location that contains the function's artifacts. Required when GovernanceMode is LAKE_FORMATION. You must register the location with Lake Formation, and every resource URI must be under this location.

class_name instance-attribute

class_name: NotRequired[NameString]

The Java class that contains the function code.

function_name instance-attribute

function_name: NotRequired[NameString]

The name of the function.

function_type instance-attribute

function_type: NotRequired[FunctionType]

The type of the function.

governance_mode instance-attribute

governance_mode: NotRequired[GovernanceMode]

How access to the function is governed. Specify LAKE_FORMATION to manage access to the function with Lake Formation permissions. If you don't specify a value, the default is IAM_ONLY. You can't change the governance mode after the function is created.

When GovernanceMode is LAKE_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_ACCESS permission on the ArtifactLocation, 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.

owner_name instance-attribute

owner_name: NotRequired[NameString]

The owner of the function.

owner_type instance-attribute

owner_type: NotRequired[PrincipalType]

The owner type.

resource_uris instance-attribute

resource_uris: NotRequired[ResourceUriList]

The resource URIs for the function.