UserDefinedFunctionArgs

data class UserDefinedFunctionArgs(val catalogId: Output<String>? = null, val className: Output<String>? = null, val databaseName: Output<String>? = null, val name: Output<String>? = null, val ownerName: Output<String>? = null, val ownerType: Output<String>? = null, val resourceUris: Output<List<UserDefinedFunctionResourceUriArgs>>? = null) : ConvertibleToJava<UserDefinedFunctionArgs>

Provides a Glue User Defined Function Resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.CatalogDatabase;
import com.pulumi.aws.glue.CatalogDatabaseArgs;
import com.pulumi.aws.glue.UserDefinedFunction;
import com.pulumi.aws.glue.UserDefinedFunctionArgs;
import com.pulumi.aws.glue.inputs.UserDefinedFunctionResourceUriArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleCatalogDatabase = new CatalogDatabase("exampleCatalogDatabase", CatalogDatabaseArgs.builder()
.name("my_database")
.build());
var exampleUserDefinedFunction = new UserDefinedFunction("exampleUserDefinedFunction", UserDefinedFunctionArgs.builder()
.catalogId(exampleCatalogDatabase.catalogId())
.databaseName(exampleCatalogDatabase.name())
.className("class")
.ownerName("owner")
.ownerType("GROUP")
.resourceUris(UserDefinedFunctionResourceUriArgs.builder()
.resourceType("ARCHIVE")
.uri("uri")
.build())
.build());
}
}

Import

Glue User Defined Functions can be imported using the catalog_id:database_name:function_name. If you have not set a Catalog ID specify the AWS Account ID that the database is in, e.g.,

$ pulumi import aws:glue/userDefinedFunction:UserDefinedFunction func 123456789012:my_database:my_func

Constructors

Link copied to clipboard
constructor(catalogId: Output<String>? = null, className: Output<String>? = null, databaseName: Output<String>? = null, name: Output<String>? = null, ownerName: Output<String>? = null, ownerType: Output<String>? = null, resourceUris: Output<List<UserDefinedFunctionResourceUriArgs>>? = null)

Properties

Link copied to clipboard
val catalogId: Output<String>? = null

ID of the Glue Catalog to create the function in. If omitted, this defaults to the AWS Account ID.

Link copied to clipboard
val className: Output<String>? = null

The Java class that contains the function code.

Link copied to clipboard
val databaseName: Output<String>? = null

The name of the Database to create the Function.

Link copied to clipboard
val name: Output<String>? = null

The name of the function.

Link copied to clipboard
val ownerName: Output<String>? = null

The owner of the function.

Link copied to clipboard
val ownerType: Output<String>? = null

The owner type. can be one of USER, ROLE, and GROUP.

Link copied to clipboard

The configuration block for Resource URIs. See resource uris below for more details.

Functions

Link copied to clipboard
open override fun toJava(): UserDefinedFunctionArgs