1. Packages
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. glue
  6. UserDefinedFunction

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.74.1
published on Monday, Aug 3, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.74.1
published on Monday, Aug 3, 2026 by Pulumi

    Represents a user-defined function (UDF) definition in the AWS Glue Data Catalog.

    Create UserDefinedFunction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UserDefinedFunction(name: string, args: UserDefinedFunctionArgs, opts?: CustomResourceOptions);
    @overload
    def UserDefinedFunction(resource_name: str,
                            args: UserDefinedFunctionArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserDefinedFunction(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            database_name: Optional[str] = None,
                            class_name: Optional[str] = None,
                            function_name: Optional[str] = None,
                            function_type: Optional[UserDefinedFunctionFunctionType] = None,
                            owner_name: Optional[str] = None,
                            owner_type: Optional[UserDefinedFunctionOwnerType] = None,
                            resource_uris: Optional[Sequence[UserDefinedFunctionResourceUriArgs]] = None)
    func NewUserDefinedFunction(ctx *Context, name string, args UserDefinedFunctionArgs, opts ...ResourceOption) (*UserDefinedFunction, error)
    public UserDefinedFunction(string name, UserDefinedFunctionArgs args, CustomResourceOptions? opts = null)
    public UserDefinedFunction(String name, UserDefinedFunctionArgs args)
    public UserDefinedFunction(String name, UserDefinedFunctionArgs args, CustomResourceOptions options)
    
    type: aws-native:glue:UserDefinedFunction
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_glue_user_defined_function" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args UserDefinedFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserDefinedFunctionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserDefinedFunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserDefinedFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserDefinedFunctionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    UserDefinedFunction Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The UserDefinedFunction resource accepts the following input properties:

    DatabaseName string
    The name of the catalog database in which the function is located.
    ClassName string
    The Java class that contains the function code.
    FunctionName string
    The name of the function.
    FunctionType Pulumi.AwsNative.Glue.UserDefinedFunctionFunctionType
    The type of the function.
    OwnerName string
    The owner of the function.
    OwnerType Pulumi.AwsNative.Glue.UserDefinedFunctionOwnerType
    The owner type.
    ResourceUris List<Pulumi.AwsNative.Glue.Inputs.UserDefinedFunctionResourceUri>
    The resource URIs for the function.
    DatabaseName string
    The name of the catalog database in which the function is located.
    ClassName string
    The Java class that contains the function code.
    FunctionName string
    The name of the function.
    FunctionType UserDefinedFunctionFunctionType
    The type of the function.
    OwnerName string
    The owner of the function.
    OwnerType UserDefinedFunctionOwnerType
    The owner type.
    ResourceUris []UserDefinedFunctionResourceUriArgs
    The resource URIs for the function.
    database_name string
    The name of the catalog database in which the function is located.
    class_name string
    The Java class that contains the function code.
    function_name string
    The name of the function.
    function_type "REGULAR_FUNCTION" | "AGGREGATE_FUNCTION" | "STORED_PROCEDURE"
    The type of the function.
    owner_name string
    The owner of the function.
    owner_type "USER" | "ROLE" | "GROUP"
    The owner type.
    resource_uris list(object)
    The resource URIs for the function.
    databaseName String
    The name of the catalog database in which the function is located.
    className String
    The Java class that contains the function code.
    functionName String
    The name of the function.
    functionType UserDefinedFunctionFunctionType
    The type of the function.
    ownerName String
    The owner of the function.
    ownerType UserDefinedFunctionOwnerType
    The owner type.
    resourceUris List<UserDefinedFunctionResourceUri>
    The resource URIs for the function.
    databaseName string
    The name of the catalog database in which the function is located.
    className string
    The Java class that contains the function code.
    functionName string
    The name of the function.
    functionType UserDefinedFunctionFunctionType
    The type of the function.
    ownerName string
    The owner of the function.
    ownerType UserDefinedFunctionOwnerType
    The owner type.
    resourceUris UserDefinedFunctionResourceUri[]
    The resource URIs for the function.
    database_name str
    The name of the catalog database in which the function is located.
    class_name str
    The Java class that contains the function code.
    function_name str
    The name of the function.
    function_type UserDefinedFunctionFunctionType
    The type of the function.
    owner_name str
    The owner of the function.
    owner_type UserDefinedFunctionOwnerType
    The owner type.
    resource_uris Sequence[UserDefinedFunctionResourceUriArgs]
    The resource URIs for the function.
    databaseName String
    The name of the catalog database in which the function is located.
    className String
    The Java class that contains the function code.
    functionName String
    The name of the function.
    functionType "REGULAR_FUNCTION" | "AGGREGATE_FUNCTION" | "STORED_PROCEDURE"
    The type of the function.
    ownerName String
    The owner of the function.
    ownerType "USER" | "ROLE" | "GROUP"
    The owner type.
    resourceUris List<Property Map>
    The resource URIs for the function.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserDefinedFunction resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) of the user-defined function.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The Amazon Resource Name (ARN) of the user-defined function.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the user-defined function.
    id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the user-defined function.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the user-defined function.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The Amazon Resource Name (ARN) of the user-defined function.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the user-defined function.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    UserDefinedFunctionFunctionType, UserDefinedFunctionFunctionTypeArgs

    RegularFunction
    REGULAR_FUNCTION
    AggregateFunction
    AGGREGATE_FUNCTION
    StoredProcedure
    STORED_PROCEDURE
    UserDefinedFunctionFunctionTypeRegularFunction
    REGULAR_FUNCTION
    UserDefinedFunctionFunctionTypeAggregateFunction
    AGGREGATE_FUNCTION
    UserDefinedFunctionFunctionTypeStoredProcedure
    STORED_PROCEDURE
    "REGULAR_FUNCTION"
    REGULAR_FUNCTION
    "AGGREGATE_FUNCTION"
    AGGREGATE_FUNCTION
    "STORED_PROCEDURE"
    STORED_PROCEDURE
    RegularFunction
    REGULAR_FUNCTION
    AggregateFunction
    AGGREGATE_FUNCTION
    StoredProcedure
    STORED_PROCEDURE
    RegularFunction
    REGULAR_FUNCTION
    AggregateFunction
    AGGREGATE_FUNCTION
    StoredProcedure
    STORED_PROCEDURE
    REGULAR_FUNCTION
    REGULAR_FUNCTION
    AGGREGATE_FUNCTION
    AGGREGATE_FUNCTION
    STORED_PROCEDURE
    STORED_PROCEDURE
    "REGULAR_FUNCTION"
    REGULAR_FUNCTION
    "AGGREGATE_FUNCTION"
    AGGREGATE_FUNCTION
    "STORED_PROCEDURE"
    STORED_PROCEDURE

    UserDefinedFunctionOwnerType, UserDefinedFunctionOwnerTypeArgs

    User
    USER
    Role
    ROLE
    Group
    GROUP
    UserDefinedFunctionOwnerTypeUser
    USER
    UserDefinedFunctionOwnerTypeRole
    ROLE
    UserDefinedFunctionOwnerTypeGroup
    GROUP
    "USER"
    USER
    "ROLE"
    ROLE
    "GROUP"
    GROUP
    User
    USER
    Role
    ROLE
    Group
    GROUP
    User
    USER
    Role
    ROLE
    Group
    GROUP
    USER
    USER
    ROLE
    ROLE
    GROUP
    GROUP
    "USER"
    USER
    "ROLE"
    ROLE
    "GROUP"
    GROUP

    UserDefinedFunctionResourceUri, UserDefinedFunctionResourceUriArgs

    The URIs for function resources.
    ResourceType Pulumi.AwsNative.Glue.UserDefinedFunctionResourceUriResourceType
    The type of the resource.
    Uri string
    The URI for accessing the resource.
    ResourceType UserDefinedFunctionResourceUriResourceType
    The type of the resource.
    Uri string
    The URI for accessing the resource.
    resource_type "JAR" | "FILE" | "ARCHIVE"
    The type of the resource.
    uri string
    The URI for accessing the resource.
    resourceType UserDefinedFunctionResourceUriResourceType
    The type of the resource.
    uri String
    The URI for accessing the resource.
    resourceType UserDefinedFunctionResourceUriResourceType
    The type of the resource.
    uri string
    The URI for accessing the resource.
    resource_type UserDefinedFunctionResourceUriResourceType
    The type of the resource.
    uri str
    The URI for accessing the resource.
    resourceType "JAR" | "FILE" | "ARCHIVE"
    The type of the resource.
    uri String
    The URI for accessing the resource.

    UserDefinedFunctionResourceUriResourceType, UserDefinedFunctionResourceUriResourceTypeArgs

    Jar
    JAR
    File
    FILE
    Archive
    ARCHIVE
    UserDefinedFunctionResourceUriResourceTypeJar
    JAR
    UserDefinedFunctionResourceUriResourceTypeFile
    FILE
    UserDefinedFunctionResourceUriResourceTypeArchive
    ARCHIVE
    "JAR"
    JAR
    "FILE"
    FILE
    "ARCHIVE"
    ARCHIVE
    Jar
    JAR
    File
    FILE
    Archive
    ARCHIVE
    Jar
    JAR
    File
    FILE
    Archive
    ARCHIVE
    JAR
    JAR
    FILE
    FILE
    ARCHIVE
    ARCHIVE
    "JAR"
    JAR
    "FILE"
    FILE
    "ARCHIVE"
    ARCHIVE

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.74.1
    published on Monday, Aug 3, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial