UserDefinedFunction

class UserDefinedFunction : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the Glue User Defined Function.

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

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>

The Java class that contains the function code.

Link copied to clipboard
val createTime: Output<String>

The time at which the function was created.

Link copied to clipboard
val databaseName: Output<String>

The name of the Database to create the Function.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the function.

Link copied to clipboard
val ownerName: Output<String>

The owner of the function.

Link copied to clipboard
val ownerType: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val urn: Output<String>