User Defined Function
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
The time at which the function was created.
Link copied to clipboard
The name of the Database to create the Function.
Link copied to clipboard
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.