Skip to content
v2.277.0

CfnUserDefinedFunctionProps Struct ​

Properties for defining a CfnUserDefinedFunction.

Example ​

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
# 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
// 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();
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"
    } }
};
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 ​

classNameoptionalstringclass_nameoptionalstrclassNameoptionalStringClassNameoptionalstringClassNameoptional*string#
The Java class that contains the function code.
databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*stringrequired#
The name of the catalog database in which the function is located.
functionNamestringfunction_namestrfunctionNameStringFunctionNamestringFunctionName*stringrequired#
The name of the function.
functionTypeoptionalstringfunction_typeoptionalstrfunctionTypeoptionalStringFunctionTypeoptionalstringFunctionTypeoptional*string#
The type of the function.
ownerNameoptionalstringowner_nameoptionalstrownerNameoptionalStringOwnerNameoptionalstringOwnerNameoptional*string#
The owner of the function.
ownerTypeoptionalstringowner_typeoptionalstrownerTypeoptionalStringOwnerTypeoptionalstringOwnerTypeoptional*string#
The owner type.
resourceUrisoptionalIResolvable | IResolvable | CfnUserDefinedFunction.ResourceUriProperty[]resource_urisoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourceUriProperty]]]resourceUrisoptionalIResolvableResourceUrisoptionalIResolvableResourceUrisoptionalinterface{}#
The resource URIs for the function.