Class Partition


  • public class Partition
    extends com.pulumi.resources.CustomResource
    Provides a Glue Partition Resource. ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.glue.Partition;
     import com.pulumi.aws.glue.PartitionArgs;
     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 Partition("example", PartitionArgs.builder()
                 .databaseName("some-database")
                 .tableName("some-table")
                 .partitionValues("some-value")
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import Glue Partitions using the catalog ID (usually AWS account ID), database name, table name and partition values. For example: ```sh $ pulumi import aws:glue/partition:Partition part 123456789012:MyDatabase:MyTable:val1#val2 ```
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      Partition​(java.lang.String name)  
      Partition​(java.lang.String name, PartitionArgs args)  
      Partition​(java.lang.String name, PartitionArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> catalogId()  
      com.pulumi.core.Output<java.lang.String> creationTime()  
      com.pulumi.core.Output<java.lang.String> databaseName()  
      static Partition get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, PartitionState 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> lastAccessedTime()  
      com.pulumi.core.Output<java.lang.String> lastAnalyzedTime()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> parameters()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> partitionValues()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<PartitionStorageDescriptor>> storageDescriptor()  
      com.pulumi.core.Output<java.lang.String> tableName()  
      • 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

      • Partition

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

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

        public Partition​(java.lang.String name,
                         PartitionArgs 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

      • catalogId

        public com.pulumi.core.Output<java.lang.String> catalogId()
        Returns:
        ID of the Glue Catalog and database to create the table in. If omitted, this defaults to the AWS Account ID plus the database name.
      • creationTime

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

        public com.pulumi.core.Output<java.lang.String> databaseName()
        Returns:
        Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase.
      • lastAccessedTime

        public com.pulumi.core.Output<java.lang.String> lastAccessedTime()
        Returns:
        Last time at which the partition was accessed.
      • lastAnalyzedTime

        public com.pulumi.core.Output<java.lang.String> lastAnalyzedTime()
        Returns:
        Last time at which column statistics were computed for this partition.
      • parameters

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> parameters()
        Returns:
        Properties associated with this table, as a list of key-value pairs.
      • partitionValues

        public com.pulumi.core.Output<java.util.List<java.lang.String>> partitionValues()
        Returns:
        Values that define the partition.
      • 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.
      • storageDescriptor

        public com.pulumi.core.Output<java.util.Optional<PartitionStorageDescriptor>> storageDescriptor()
        Returns:
        Storage descriptor object containing information about the physical storage of this table. You can refer to the [Glue Developer Guide](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-tables.html#aws-glue-api-catalog-tables-StorageDescriptor) for a full explanation of this object.
      • tableName

        public com.pulumi.core.Output<java.lang.String> tableName()
        Returns:
        Name of the table. For Hive compatibility, this must be entirely lowercase.
      • get

        public static Partition get​(java.lang.String name,
                                    com.pulumi.core.Output<java.lang.String> id,
                                    @Nullable
                                    PartitionState 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.