# CfnUserDefinedFunctionProps

Properties for defining a `CfnUserDefinedFunction`.

Used as props by: [CfnUserDefinedFunction](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnUserDefinedFunction.html)

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const cfnUserDefinedFunctionProps: glue.CfnUserDefinedFunctionProps = {
  databaseName: 'databaseName',
  functionName: 'functionName',

  // the properties below are optional
  className: 'className',
  functionType: 'functionType',
  ownerName: 'ownerName',
  ownerType: 'ownerType',
  resourceUris: [{
    resourceType: 'resourceType',
    uri: 'uri',
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

cfn_user_defined_function_props = glue.CfnUserDefinedFunctionProps(
    database_name="databaseName",
    function_name="functionName",

    # the properties below are optional
    class_name="className",
    function_type="functionType",
    owner_name="ownerName",
    owner_type="ownerType",
    resource_uris=[glue.CfnUserDefinedFunction.ResourceUriProperty(
        resource_type="resourceType",
        uri="uri"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

CfnUserDefinedFunctionProps cfnUserDefinedFunctionProps = CfnUserDefinedFunctionProps.builder()
        .databaseName("databaseName")
        .functionName("functionName")

        // the properties below are optional
        .className("className")
        .functionType("functionType")
        .ownerName("ownerName")
        .ownerType("ownerType")
        .resourceUris(List.of(ResourceUriProperty.builder()
                .resourceType("resourceType")
                .uri("uri")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var cfnUserDefinedFunctionProps = new CfnUserDefinedFunctionProps {
    DatabaseName = "databaseName",
    FunctionName = "functionName",

    // the properties below are optional
    ClassName = "className",
    FunctionType = "functionType",
    OwnerName = "ownerName",
    OwnerType = "ownerType",
    ResourceUris = new [] { new ResourceUriProperty {
        ResourceType = "resourceType",
        Uri = "uri"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUserDefinedFunctionProps := &CfnUserDefinedFunctionProps{
	DatabaseName: jsii.String("databaseName"),
	FunctionName: jsii.String("functionName"),

	// the properties below are optional
	ClassName: jsii.String("className"),
	FunctionType: jsii.String("functionType"),
	OwnerName: jsii.String("ownerName"),
	OwnerType: jsii.String("ownerType"),
	ResourceUris: []interface{}{
		&ResourceUriProperty{
			ResourceType: jsii.String("resourceType"),
			Uri: jsii.String("uri"),
		},
	},
}
```

## Properties

- `className`: string — The Java class that contains the function code.

- `databaseName`: string (required) — The name of the catalog database in which the function is located.

- `functionName`: string (required) — The name of the function.

- `functionType`: string — The type of the function.

- `ownerName`: string — The owner of the function.

- `ownerType`: string — The owner type.

- `resourceUris`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserDefinedFunction.ResourceUriProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnUserDefinedFunction.ResourceUriProperty.html)[] — The resource URIs for the function.
