Resource: aws_glue_user_defined_function

Provides a Glue User Defined Function Resource.

Example Usage

resource "aws_glue_catalog_database" "example" {
  name = "my_database"
}

resource "aws_glue_user_defined_function" "example" {
  name          = "my_func"
  catalog_id    = aws_glue_catalog_database.example.catalog_id
  database_name = aws_glue_catalog_database.example.name
  class_name    = "class"
  owner_name    = "owner"
  owner_type    = "GROUP"

  resource_uris {
    resource_type = "ARCHIVE"
    uri           = "uri"
  }
}

Argument Reference

This resource supports the following arguments:

Resource URIs

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Glue User Defined Functions 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. For example:

import {
  to = aws_glue_user_defined_function.func
  id = "123456789012:my_database:my_func"
}

Using terraform import, import Glue User Defined Functions 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. For example:

% terraform import aws_glue_user_defined_function.func 123456789012:my_database:my_func