Class UserDefinedFunction


  • public class UserDefinedFunction
    extends com.pulumi.resources.CustomResource
    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.ArrayList;
     import java.util.Arrays;
     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 example = new CatalogDatabase("example", CatalogDatabaseArgs.builder()
                 .name("my_database")
                 .build());
     
             var exampleUserDefinedFunction = new UserDefinedFunction("exampleUserDefinedFunction", UserDefinedFunctionArgs.builder()
                 .resourceUris(UserDefinedFunctionResourceUriArgs.builder()
                     .resourceType("ARCHIVE")
                     .uri("uri")
                     .build())
                 .name("my_func")
                 .catalogId(example.catalogId())
                 .databaseName(example.name())
                 .className("class")
                 .ownerName("owner")
                 .ownerType("GROUP")
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi 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: ```sh $ pulumi import aws:glue/userDefinedFunction:UserDefinedFunction func 123456789012:my_database:my_func ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> catalogId()  
      com.pulumi.core.Output<java.lang.String> className()  
      com.pulumi.core.Output<java.lang.String> createTime()  
      com.pulumi.core.Output<java.lang.String> databaseName()  
      static UserDefinedFunction get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, UserDefinedFunctionState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> ownerName()  
      com.pulumi.core.Output<java.lang.String> ownerType()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<UserDefinedFunctionResourceUri>>> resourceUris()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserDefinedFunction

        public UserDefinedFunction​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • UserDefinedFunction

        public UserDefinedFunction​(java.lang.String name,
                                   UserDefinedFunctionArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • UserDefinedFunction

        public UserDefinedFunction​(java.lang.String name,
                                   UserDefinedFunctionArgs args,
                                   @Nullable
                                   com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the Glue User Defined Function.
      • catalogId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> catalogId()
        Returns:
        ID of the Glue Catalog to create the function in. If omitted, this defaults to the AWS Account ID.
      • className

        public com.pulumi.core.Output<java.lang.String> className()
        Returns:
        Java class that contains the function code.
      • createTime

        public com.pulumi.core.Output<java.lang.String> createTime()
        Returns:
        Time at which the function was created.
      • databaseName

        public com.pulumi.core.Output<java.lang.String> databaseName()
        Returns:
        Name of the Database to create the Function.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the function.
      • ownerName

        public com.pulumi.core.Output<java.lang.String> ownerName()
        Returns:
        Owner of the function.
      • ownerType

        public com.pulumi.core.Output<java.lang.String> ownerType()
        Returns:
        Owner type. can be one of `USER`, `ROLE`, and `GROUP`.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • resourceUris

        public com.pulumi.core.Output<java.util.Optional<java.util.List<UserDefinedFunctionResourceUri>>> resourceUris()
        Returns:
        Configuration block for Resource URIs. See `resourceUris` Block below for more details.
      • get

        public static UserDefinedFunction get​(java.lang.String name,
                                              com.pulumi.core.Output<java.lang.String> id,
                                              @Nullable
                                              UserDefinedFunctionState state,
                                              @Nullable
                                              com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.