Package com.pulumi.aws.glue
Class Partition
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.glue.Partition
-
public class Partition extends com.pulumi.resources.CustomResourceProvides a Glue Partition Resource. ## Example Usage
## 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 ```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()); } }
-
-
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 Partitionget(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()
-
-
-
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.
-
-