import * as core from "@terrascript/core"; export interface PartitionIndexBlkArgs extends core.SchemaArgs { indexName?: string | core.StringOut; indexStatus: string | core.StringOut; keys?: core.Array | core.ArrayOut; } export class PartitionIndexBlk extends core.Schema { @core.attr(String) public indexName?: string | core.StringOut; @core.attr(String, { computed: true }) public indexStatus!: string | core.StringOut; @core.attr(String, { kind: "array" }) public keys?: core.Array | core.ArrayOut; } export interface PartitionIndexArgs extends core.ResourceArgs { /** * (Optional) The catalog ID where the table resides. */ catalogId?: string | core.StringOut; /** * (Required) Name of the metadata database where the table metadata resides. For Hive compatibility, t * his must be all lowercase. */ databaseName: string | core.StringOut; /** * (Required) Configuration block for a partition index. See [`partition_index`](#partition_index) belo * w. */ partitionIndex: PartitionIndexBlk; /** * (Required) Name of the table. For Hive compatibility, this must be entirely lowercase. */ tableName: string | core.StringOut; } export class PartitionIndex extends core.Resource { /** * (Optional) The catalog ID where the table resides. */ @core.attr(String, { computed: true }) public catalogId?: string | core.StringOut; /** * (Required) Name of the metadata database where the table metadata resides. For Hive compatibility, t * his must be all lowercase. */ @core.attr(String) public databaseName!: string | core.StringOut; /** * Catalog ID, Database name, table name, and index name. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Configuration block for a partition index. See [`partition_index`](#partition_index) belo * w. */ @core.attr(PartitionIndexBlk) public partitionIndex!: PartitionIndexBlk; /** * (Required) Name of the table. For Hive compatibility, this must be entirely lowercase. */ @core.attr(String) public tableName!: string | core.StringOut; constructor(name: string, args?: PartitionIndexArgs) { super(name, "aws_glue_partition_index", args); } public override getNamespace(): string { return "aws_glue"; } }