Partition Args
data class PartitionArgs(val catalogId: Output<String>? = null, val databaseName: Output<String>? = null, val parameters: Output<Map<String, String>>? = null, val partitionValues: Output<List<String>>? = null, val storageDescriptor: Output<PartitionStorageDescriptorArgs>? = null, val tableName: Output<String>? = null) : ConvertibleToJava<PartitionArgs>
Provides a Glue Partition Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.Partition("example", {
databaseName: "some-database",
tableName: "some-table",
partitionValues: ["some-value"],
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.glue.Partition("example",
database_name="some-database",
table_name="some-table",
partition_values=["some-value"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.Partition("example", new()
{
DatabaseName = "some-database",
TableName = "some-table",
PartitionValues = new[]
{
"some-value",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewPartition(ctx, "example", &glue.PartitionArgs{
DatabaseName: pulumi.String("some-database"),
TableName: pulumi.String("some-table"),
PartitionValues: pulumi.StringArray{
pulumi.String("some-value"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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.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 example = new Partition("example", PartitionArgs.builder()
.databaseName("some-database")
.tableName("some-table")
.partitionValues("some-value")
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:glue:Partition
properties:
databaseName: some-database
tableName: some-table
partitionValues:
- some-value
Content copied to clipboard
Import
Using pulumi import
, import Glue Partitions using the catalog ID (usually AWS account ID), database name, table name and partition values. For example:
$ pulumi import aws:glue/partition:Partition part 123456789012:MyDatabase:MyTable:val1#val2
Content copied to clipboard
Properties
Link copied to clipboard
Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase.
Link copied to clipboard
Properties associated with this table, as a list of key-value pairs.
Link copied to clipboard
The values that define the partition.
Link copied to clipboard
A storage descriptor object containing information about the physical storage of this table. You can refer to the Glue Developer Guide for a full explanation of this object.