// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Glue */ export interface GlueCatalogTableConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#catalog_id GlueCatalogTable#catalog_id} */ readonly catalogId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#database_name GlueCatalogTable#database_name} */ readonly databaseName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#description GlueCatalogTable#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#name GlueCatalogTable#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#owner GlueCatalogTable#owner} */ readonly owner?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#parameters GlueCatalogTable#parameters} */ readonly parameters?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#retention GlueCatalogTable#retention} */ readonly retention?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#table_type GlueCatalogTable#table_type} */ readonly tableType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#view_expanded_text GlueCatalogTable#view_expanded_text} */ readonly viewExpandedText?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#view_original_text GlueCatalogTable#view_original_text} */ readonly viewOriginalText?: string; /** * partition_index block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#partition_index GlueCatalogTable#partition_index} */ readonly partitionIndex?: GlueCatalogTablePartitionIndex[]; /** * partition_keys block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#partition_keys GlueCatalogTable#partition_keys} */ readonly partitionKeys?: GlueCatalogTablePartitionKeys[]; /** * storage_descriptor block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#storage_descriptor GlueCatalogTable#storage_descriptor} */ readonly storageDescriptor?: GlueCatalogTableStorageDescriptor; /** * target_table block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#target_table GlueCatalogTable#target_table} */ readonly targetTable?: GlueCatalogTableTargetTable; } export interface GlueCatalogTablePartitionIndex { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#index_name GlueCatalogTable#index_name} */ readonly indexName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#keys GlueCatalogTable#keys} */ readonly keys: string[]; } export function glueCatalogTablePartitionIndexToTerraform(struct?: GlueCatalogTablePartitionIndex): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { index_name: cdktf.stringToTerraform(struct!.indexName), keys: cdktf.listMapper(cdktf.stringToTerraform)(struct!.keys), } } export interface GlueCatalogTablePartitionKeys { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#comment GlueCatalogTable#comment} */ readonly comment?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#name GlueCatalogTable#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#type GlueCatalogTable#type} */ readonly type?: string; } export function glueCatalogTablePartitionKeysToTerraform(struct?: GlueCatalogTablePartitionKeys): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { comment: cdktf.stringToTerraform(struct!.comment), name: cdktf.stringToTerraform(struct!.name), type: cdktf.stringToTerraform(struct!.type), } } export interface GlueCatalogTableStorageDescriptorColumns { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#comment GlueCatalogTable#comment} */ readonly comment?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#name GlueCatalogTable#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#parameters GlueCatalogTable#parameters} */ readonly parameters?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#type GlueCatalogTable#type} */ readonly type?: string; } export function glueCatalogTableStorageDescriptorColumnsToTerraform(struct?: GlueCatalogTableStorageDescriptorColumns): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { comment: cdktf.stringToTerraform(struct!.comment), name: cdktf.stringToTerraform(struct!.name), parameters: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.parameters), type: cdktf.stringToTerraform(struct!.type), } } export interface GlueCatalogTableStorageDescriptorSchemaReferenceSchemaId { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#registry_name GlueCatalogTable#registry_name} */ readonly registryName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#schema_arn GlueCatalogTable#schema_arn} */ readonly schemaArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#schema_name GlueCatalogTable#schema_name} */ readonly schemaName?: string; } export function glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToTerraform(struct?: GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference | GlueCatalogTableStorageDescriptorSchemaReferenceSchemaId): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { registry_name: cdktf.stringToTerraform(struct!.registryName), schema_arn: cdktf.stringToTerraform(struct!.schemaArn), schema_name: cdktf.stringToTerraform(struct!.schemaName), } } export class GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): GlueCatalogTableStorageDescriptorSchemaReferenceSchemaId | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._registryName !== undefined) { hasAnyValues = true; internalValueResult.registryName = this._registryName; } if (this._schemaArn !== undefined) { hasAnyValues = true; internalValueResult.schemaArn = this._schemaArn; } if (this._schemaName !== undefined) { hasAnyValues = true; internalValueResult.schemaName = this._schemaName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: GlueCatalogTableStorageDescriptorSchemaReferenceSchemaId | undefined) { if (value === undefined) { this.isEmptyObject = false; this._registryName = undefined; this._schemaArn = undefined; this._schemaName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._registryName = value.registryName; this._schemaArn = value.schemaArn; this._schemaName = value.schemaName; } } // registry_name - computed: false, optional: true, required: false private _registryName?: string; public get registryName() { return this.getStringAttribute('registry_name'); } public set registryName(value: string) { this._registryName = value; } public resetRegistryName() { this._registryName = undefined; } // Temporarily expose input value. Use with caution. public get registryNameInput() { return this._registryName; } // schema_arn - computed: false, optional: true, required: false private _schemaArn?: string; public get schemaArn() { return this.getStringAttribute('schema_arn'); } public set schemaArn(value: string) { this._schemaArn = value; } public resetSchemaArn() { this._schemaArn = undefined; } // Temporarily expose input value. Use with caution. public get schemaArnInput() { return this._schemaArn; } // schema_name - computed: false, optional: true, required: false private _schemaName?: string; public get schemaName() { return this.getStringAttribute('schema_name'); } public set schemaName(value: string) { this._schemaName = value; } public resetSchemaName() { this._schemaName = undefined; } // Temporarily expose input value. Use with caution. public get schemaNameInput() { return this._schemaName; } } export interface GlueCatalogTableStorageDescriptorSchemaReference { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#schema_version_id GlueCatalogTable#schema_version_id} */ readonly schemaVersionId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#schema_version_number GlueCatalogTable#schema_version_number} */ readonly schemaVersionNumber: number; /** * schema_id block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#schema_id GlueCatalogTable#schema_id} */ readonly schemaId?: GlueCatalogTableStorageDescriptorSchemaReferenceSchemaId; } export function glueCatalogTableStorageDescriptorSchemaReferenceToTerraform(struct?: GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference | GlueCatalogTableStorageDescriptorSchemaReference): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { schema_version_id: cdktf.stringToTerraform(struct!.schemaVersionId), schema_version_number: cdktf.numberToTerraform(struct!.schemaVersionNumber), schema_id: glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToTerraform(struct!.schemaId), } } export class GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): GlueCatalogTableStorageDescriptorSchemaReference | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._schemaVersionId !== undefined) { hasAnyValues = true; internalValueResult.schemaVersionId = this._schemaVersionId; } if (this._schemaVersionNumber !== undefined) { hasAnyValues = true; internalValueResult.schemaVersionNumber = this._schemaVersionNumber; } if (this._schemaId?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.schemaId = this._schemaId?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: GlueCatalogTableStorageDescriptorSchemaReference | undefined) { if (value === undefined) { this.isEmptyObject = false; this._schemaVersionId = undefined; this._schemaVersionNumber = undefined; this._schemaId.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._schemaVersionId = value.schemaVersionId; this._schemaVersionNumber = value.schemaVersionNumber; this._schemaId.internalValue = value.schemaId; } } // schema_version_id - computed: false, optional: true, required: false private _schemaVersionId?: string; public get schemaVersionId() { return this.getStringAttribute('schema_version_id'); } public set schemaVersionId(value: string) { this._schemaVersionId = value; } public resetSchemaVersionId() { this._schemaVersionId = undefined; } // Temporarily expose input value. Use with caution. public get schemaVersionIdInput() { return this._schemaVersionId; } // schema_version_number - computed: false, optional: false, required: true private _schemaVersionNumber?: number; public get schemaVersionNumber() { return this.getNumberAttribute('schema_version_number'); } public set schemaVersionNumber(value: number) { this._schemaVersionNumber = value; } // Temporarily expose input value. Use with caution. public get schemaVersionNumberInput() { return this._schemaVersionNumber; } // schema_id - computed: false, optional: true, required: false private _schemaId = new GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference(this as any, "schema_id", true); public get schemaId() { return this._schemaId; } public putSchemaId(value: GlueCatalogTableStorageDescriptorSchemaReferenceSchemaId) { this._schemaId.internalValue = value; } public resetSchemaId() { this._schemaId.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get schemaIdInput() { return this._schemaId.internalValue; } } export interface GlueCatalogTableStorageDescriptorSerDeInfo { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#name GlueCatalogTable#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#parameters GlueCatalogTable#parameters} */ readonly parameters?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#serialization_library GlueCatalogTable#serialization_library} */ readonly serializationLibrary?: string; } export function glueCatalogTableStorageDescriptorSerDeInfoToTerraform(struct?: GlueCatalogTableStorageDescriptorSerDeInfoOutputReference | GlueCatalogTableStorageDescriptorSerDeInfo): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { name: cdktf.stringToTerraform(struct!.name), parameters: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.parameters), serialization_library: cdktf.stringToTerraform(struct!.serializationLibrary), } } export class GlueCatalogTableStorageDescriptorSerDeInfoOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): GlueCatalogTableStorageDescriptorSerDeInfo | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._parameters !== undefined) { hasAnyValues = true; internalValueResult.parameters = this._parameters; } if (this._serializationLibrary !== undefined) { hasAnyValues = true; internalValueResult.serializationLibrary = this._serializationLibrary; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: GlueCatalogTableStorageDescriptorSerDeInfo | undefined) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; this._parameters = undefined; this._serializationLibrary = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._name = value.name; this._parameters = value.parameters; this._serializationLibrary = value.serializationLibrary; } } // name - computed: false, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // parameters - computed: false, optional: true, required: false private _parameters?: { [key: string]: string } | cdktf.IResolvable; public get parameters() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('parameters') as any; } public set parameters(value: { [key: string]: string } | cdktf.IResolvable) { this._parameters = value; } public resetParameters() { this._parameters = undefined; } // Temporarily expose input value. Use with caution. public get parametersInput() { return this._parameters; } // serialization_library - computed: false, optional: true, required: false private _serializationLibrary?: string; public get serializationLibrary() { return this.getStringAttribute('serialization_library'); } public set serializationLibrary(value: string) { this._serializationLibrary = value; } public resetSerializationLibrary() { this._serializationLibrary = undefined; } // Temporarily expose input value. Use with caution. public get serializationLibraryInput() { return this._serializationLibrary; } } export interface GlueCatalogTableStorageDescriptorSkewedInfo { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#skewed_column_names GlueCatalogTable#skewed_column_names} */ readonly skewedColumnNames?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#skewed_column_value_location_maps GlueCatalogTable#skewed_column_value_location_maps} */ readonly skewedColumnValueLocationMaps?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#skewed_column_values GlueCatalogTable#skewed_column_values} */ readonly skewedColumnValues?: string[]; } export function glueCatalogTableStorageDescriptorSkewedInfoToTerraform(struct?: GlueCatalogTableStorageDescriptorSkewedInfoOutputReference | GlueCatalogTableStorageDescriptorSkewedInfo): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { skewed_column_names: cdktf.listMapper(cdktf.stringToTerraform)(struct!.skewedColumnNames), skewed_column_value_location_maps: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.skewedColumnValueLocationMaps), skewed_column_values: cdktf.listMapper(cdktf.stringToTerraform)(struct!.skewedColumnValues), } } export class GlueCatalogTableStorageDescriptorSkewedInfoOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): GlueCatalogTableStorageDescriptorSkewedInfo | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._skewedColumnNames !== undefined) { hasAnyValues = true; internalValueResult.skewedColumnNames = this._skewedColumnNames; } if (this._skewedColumnValueLocationMaps !== undefined) { hasAnyValues = true; internalValueResult.skewedColumnValueLocationMaps = this._skewedColumnValueLocationMaps; } if (this._skewedColumnValues !== undefined) { hasAnyValues = true; internalValueResult.skewedColumnValues = this._skewedColumnValues; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: GlueCatalogTableStorageDescriptorSkewedInfo | undefined) { if (value === undefined) { this.isEmptyObject = false; this._skewedColumnNames = undefined; this._skewedColumnValueLocationMaps = undefined; this._skewedColumnValues = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._skewedColumnNames = value.skewedColumnNames; this._skewedColumnValueLocationMaps = value.skewedColumnValueLocationMaps; this._skewedColumnValues = value.skewedColumnValues; } } // skewed_column_names - computed: false, optional: true, required: false private _skewedColumnNames?: string[]; public get skewedColumnNames() { return this.getListAttribute('skewed_column_names'); } public set skewedColumnNames(value: string[]) { this._skewedColumnNames = value; } public resetSkewedColumnNames() { this._skewedColumnNames = undefined; } // Temporarily expose input value. Use with caution. public get skewedColumnNamesInput() { return this._skewedColumnNames; } // skewed_column_value_location_maps - computed: false, optional: true, required: false private _skewedColumnValueLocationMaps?: { [key: string]: string } | cdktf.IResolvable; public get skewedColumnValueLocationMaps() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('skewed_column_value_location_maps') as any; } public set skewedColumnValueLocationMaps(value: { [key: string]: string } | cdktf.IResolvable) { this._skewedColumnValueLocationMaps = value; } public resetSkewedColumnValueLocationMaps() { this._skewedColumnValueLocationMaps = undefined; } // Temporarily expose input value. Use with caution. public get skewedColumnValueLocationMapsInput() { return this._skewedColumnValueLocationMaps; } // skewed_column_values - computed: false, optional: true, required: false private _skewedColumnValues?: string[]; public get skewedColumnValues() { return this.getListAttribute('skewed_column_values'); } public set skewedColumnValues(value: string[]) { this._skewedColumnValues = value; } public resetSkewedColumnValues() { this._skewedColumnValues = undefined; } // Temporarily expose input value. Use with caution. public get skewedColumnValuesInput() { return this._skewedColumnValues; } } export interface GlueCatalogTableStorageDescriptorSortColumns { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#column GlueCatalogTable#column} */ readonly column: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#sort_order GlueCatalogTable#sort_order} */ readonly sortOrder: number; } export function glueCatalogTableStorageDescriptorSortColumnsToTerraform(struct?: GlueCatalogTableStorageDescriptorSortColumns): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { column: cdktf.stringToTerraform(struct!.column), sort_order: cdktf.numberToTerraform(struct!.sortOrder), } } export interface GlueCatalogTableStorageDescriptor { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#bucket_columns GlueCatalogTable#bucket_columns} */ readonly bucketColumns?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#compressed GlueCatalogTable#compressed} */ readonly compressed?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#input_format GlueCatalogTable#input_format} */ readonly inputFormat?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#location GlueCatalogTable#location} */ readonly location?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#number_of_buckets GlueCatalogTable#number_of_buckets} */ readonly numberOfBuckets?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#output_format GlueCatalogTable#output_format} */ readonly outputFormat?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#parameters GlueCatalogTable#parameters} */ readonly parameters?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#stored_as_sub_directories GlueCatalogTable#stored_as_sub_directories} */ readonly storedAsSubDirectories?: boolean | cdktf.IResolvable; /** * columns block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#columns GlueCatalogTable#columns} */ readonly columns?: GlueCatalogTableStorageDescriptorColumns[]; /** * schema_reference block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#schema_reference GlueCatalogTable#schema_reference} */ readonly schemaReference?: GlueCatalogTableStorageDescriptorSchemaReference; /** * ser_de_info block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#ser_de_info GlueCatalogTable#ser_de_info} */ readonly serDeInfo?: GlueCatalogTableStorageDescriptorSerDeInfo; /** * skewed_info block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#skewed_info GlueCatalogTable#skewed_info} */ readonly skewedInfo?: GlueCatalogTableStorageDescriptorSkewedInfo; /** * sort_columns block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#sort_columns GlueCatalogTable#sort_columns} */ readonly sortColumns?: GlueCatalogTableStorageDescriptorSortColumns[]; } export function glueCatalogTableStorageDescriptorToTerraform(struct?: GlueCatalogTableStorageDescriptorOutputReference | GlueCatalogTableStorageDescriptor): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { bucket_columns: cdktf.listMapper(cdktf.stringToTerraform)(struct!.bucketColumns), compressed: cdktf.booleanToTerraform(struct!.compressed), input_format: cdktf.stringToTerraform(struct!.inputFormat), location: cdktf.stringToTerraform(struct!.location), number_of_buckets: cdktf.numberToTerraform(struct!.numberOfBuckets), output_format: cdktf.stringToTerraform(struct!.outputFormat), parameters: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.parameters), stored_as_sub_directories: cdktf.booleanToTerraform(struct!.storedAsSubDirectories), columns: cdktf.listMapper(glueCatalogTableStorageDescriptorColumnsToTerraform)(struct!.columns), schema_reference: glueCatalogTableStorageDescriptorSchemaReferenceToTerraform(struct!.schemaReference), ser_de_info: glueCatalogTableStorageDescriptorSerDeInfoToTerraform(struct!.serDeInfo), skewed_info: glueCatalogTableStorageDescriptorSkewedInfoToTerraform(struct!.skewedInfo), sort_columns: cdktf.listMapper(glueCatalogTableStorageDescriptorSortColumnsToTerraform)(struct!.sortColumns), } } export class GlueCatalogTableStorageDescriptorOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): GlueCatalogTableStorageDescriptor | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._bucketColumns !== undefined) { hasAnyValues = true; internalValueResult.bucketColumns = this._bucketColumns; } if (this._compressed !== undefined) { hasAnyValues = true; internalValueResult.compressed = this._compressed; } if (this._inputFormat !== undefined) { hasAnyValues = true; internalValueResult.inputFormat = this._inputFormat; } if (this._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._numberOfBuckets !== undefined) { hasAnyValues = true; internalValueResult.numberOfBuckets = this._numberOfBuckets; } if (this._outputFormat !== undefined) { hasAnyValues = true; internalValueResult.outputFormat = this._outputFormat; } if (this._parameters !== undefined) { hasAnyValues = true; internalValueResult.parameters = this._parameters; } if (this._storedAsSubDirectories !== undefined) { hasAnyValues = true; internalValueResult.storedAsSubDirectories = this._storedAsSubDirectories; } if (this._columns !== undefined) { hasAnyValues = true; internalValueResult.columns = this._columns; } if (this._schemaReference?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.schemaReference = this._schemaReference?.internalValue; } if (this._serDeInfo?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.serDeInfo = this._serDeInfo?.internalValue; } if (this._skewedInfo?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.skewedInfo = this._skewedInfo?.internalValue; } if (this._sortColumns !== undefined) { hasAnyValues = true; internalValueResult.sortColumns = this._sortColumns; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: GlueCatalogTableStorageDescriptor | undefined) { if (value === undefined) { this.isEmptyObject = false; this._bucketColumns = undefined; this._compressed = undefined; this._inputFormat = undefined; this._location = undefined; this._numberOfBuckets = undefined; this._outputFormat = undefined; this._parameters = undefined; this._storedAsSubDirectories = undefined; this._columns = undefined; this._schemaReference.internalValue = undefined; this._serDeInfo.internalValue = undefined; this._skewedInfo.internalValue = undefined; this._sortColumns = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bucketColumns = value.bucketColumns; this._compressed = value.compressed; this._inputFormat = value.inputFormat; this._location = value.location; this._numberOfBuckets = value.numberOfBuckets; this._outputFormat = value.outputFormat; this._parameters = value.parameters; this._storedAsSubDirectories = value.storedAsSubDirectories; this._columns = value.columns; this._schemaReference.internalValue = value.schemaReference; this._serDeInfo.internalValue = value.serDeInfo; this._skewedInfo.internalValue = value.skewedInfo; this._sortColumns = value.sortColumns; } } // bucket_columns - computed: false, optional: true, required: false private _bucketColumns?: string[]; public get bucketColumns() { return this.getListAttribute('bucket_columns'); } public set bucketColumns(value: string[]) { this._bucketColumns = value; } public resetBucketColumns() { this._bucketColumns = undefined; } // Temporarily expose input value. Use with caution. public get bucketColumnsInput() { return this._bucketColumns; } // compressed - computed: false, optional: true, required: false private _compressed?: boolean | cdktf.IResolvable; public get compressed() { return this.getBooleanAttribute('compressed') as any; } public set compressed(value: boolean | cdktf.IResolvable) { this._compressed = value; } public resetCompressed() { this._compressed = undefined; } // Temporarily expose input value. Use with caution. public get compressedInput() { return this._compressed; } // input_format - computed: false, optional: true, required: false private _inputFormat?: string; public get inputFormat() { return this.getStringAttribute('input_format'); } public set inputFormat(value: string) { this._inputFormat = value; } public resetInputFormat() { this._inputFormat = undefined; } // Temporarily expose input value. Use with caution. public get inputFormatInput() { return this._inputFormat; } // location - computed: false, optional: true, required: false private _location?: string; public get location() { return this.getStringAttribute('location'); } public set location(value: string) { this._location = value; } public resetLocation() { this._location = undefined; } // Temporarily expose input value. Use with caution. public get locationInput() { return this._location; } // number_of_buckets - computed: false, optional: true, required: false private _numberOfBuckets?: number; public get numberOfBuckets() { return this.getNumberAttribute('number_of_buckets'); } public set numberOfBuckets(value: number) { this._numberOfBuckets = value; } public resetNumberOfBuckets() { this._numberOfBuckets = undefined; } // Temporarily expose input value. Use with caution. public get numberOfBucketsInput() { return this._numberOfBuckets; } // output_format - computed: false, optional: true, required: false private _outputFormat?: string; public get outputFormat() { return this.getStringAttribute('output_format'); } public set outputFormat(value: string) { this._outputFormat = value; } public resetOutputFormat() { this._outputFormat = undefined; } // Temporarily expose input value. Use with caution. public get outputFormatInput() { return this._outputFormat; } // parameters - computed: false, optional: true, required: false private _parameters?: { [key: string]: string } | cdktf.IResolvable; public get parameters() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('parameters') as any; } public set parameters(value: { [key: string]: string } | cdktf.IResolvable) { this._parameters = value; } public resetParameters() { this._parameters = undefined; } // Temporarily expose input value. Use with caution. public get parametersInput() { return this._parameters; } // stored_as_sub_directories - computed: false, optional: true, required: false private _storedAsSubDirectories?: boolean | cdktf.IResolvable; public get storedAsSubDirectories() { return this.getBooleanAttribute('stored_as_sub_directories') as any; } public set storedAsSubDirectories(value: boolean | cdktf.IResolvable) { this._storedAsSubDirectories = value; } public resetStoredAsSubDirectories() { this._storedAsSubDirectories = undefined; } // Temporarily expose input value. Use with caution. public get storedAsSubDirectoriesInput() { return this._storedAsSubDirectories; } // columns - computed: false, optional: true, required: false private _columns?: GlueCatalogTableStorageDescriptorColumns[]; public get columns() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('columns') as any; } public set columns(value: GlueCatalogTableStorageDescriptorColumns[]) { this._columns = value; } public resetColumns() { this._columns = undefined; } // Temporarily expose input value. Use with caution. public get columnsInput() { return this._columns; } // schema_reference - computed: false, optional: true, required: false private _schemaReference = new GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference(this as any, "schema_reference", true); public get schemaReference() { return this._schemaReference; } public putSchemaReference(value: GlueCatalogTableStorageDescriptorSchemaReference) { this._schemaReference.internalValue = value; } public resetSchemaReference() { this._schemaReference.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get schemaReferenceInput() { return this._schemaReference.internalValue; } // ser_de_info - computed: false, optional: true, required: false private _serDeInfo = new GlueCatalogTableStorageDescriptorSerDeInfoOutputReference(this as any, "ser_de_info", true); public get serDeInfo() { return this._serDeInfo; } public putSerDeInfo(value: GlueCatalogTableStorageDescriptorSerDeInfo) { this._serDeInfo.internalValue = value; } public resetSerDeInfo() { this._serDeInfo.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get serDeInfoInput() { return this._serDeInfo.internalValue; } // skewed_info - computed: false, optional: true, required: false private _skewedInfo = new GlueCatalogTableStorageDescriptorSkewedInfoOutputReference(this as any, "skewed_info", true); public get skewedInfo() { return this._skewedInfo; } public putSkewedInfo(value: GlueCatalogTableStorageDescriptorSkewedInfo) { this._skewedInfo.internalValue = value; } public resetSkewedInfo() { this._skewedInfo.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get skewedInfoInput() { return this._skewedInfo.internalValue; } // sort_columns - computed: false, optional: true, required: false private _sortColumns?: GlueCatalogTableStorageDescriptorSortColumns[]; public get sortColumns() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('sort_columns') as any; } public set sortColumns(value: GlueCatalogTableStorageDescriptorSortColumns[]) { this._sortColumns = value; } public resetSortColumns() { this._sortColumns = undefined; } // Temporarily expose input value. Use with caution. public get sortColumnsInput() { return this._sortColumns; } } export interface GlueCatalogTableTargetTable { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#catalog_id GlueCatalogTable#catalog_id} */ readonly catalogId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#database_name GlueCatalogTable#database_name} */ readonly databaseName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html#name GlueCatalogTable#name} */ readonly name: string; } export function glueCatalogTableTargetTableToTerraform(struct?: GlueCatalogTableTargetTableOutputReference | GlueCatalogTableTargetTable): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { catalog_id: cdktf.stringToTerraform(struct!.catalogId), database_name: cdktf.stringToTerraform(struct!.databaseName), name: cdktf.stringToTerraform(struct!.name), } } export class GlueCatalogTableTargetTableOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): GlueCatalogTableTargetTable | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._catalogId !== undefined) { hasAnyValues = true; internalValueResult.catalogId = this._catalogId; } if (this._databaseName !== undefined) { hasAnyValues = true; internalValueResult.databaseName = this._databaseName; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: GlueCatalogTableTargetTable | undefined) { if (value === undefined) { this.isEmptyObject = false; this._catalogId = undefined; this._databaseName = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._catalogId = value.catalogId; this._databaseName = value.databaseName; this._name = value.name; } } // catalog_id - computed: false, optional: false, required: true private _catalogId?: string; public get catalogId() { return this.getStringAttribute('catalog_id'); } public set catalogId(value: string) { this._catalogId = value; } // Temporarily expose input value. Use with caution. public get catalogIdInput() { return this._catalogId; } // database_name - computed: false, optional: false, required: true private _databaseName?: string; public get databaseName() { return this.getStringAttribute('database_name'); } public set databaseName(value: string) { this._databaseName = value; } // Temporarily expose input value. Use with caution. public get databaseNameInput() { return this._databaseName; } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html aws_glue_catalog_table} */ export class GlueCatalogTable extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_glue_catalog_table"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html aws_glue_catalog_table} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options GlueCatalogTableConfig */ public constructor(scope: Construct, id: string, config: GlueCatalogTableConfig) { super(scope, id, { terraformResourceType: 'aws_glue_catalog_table', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._catalogId = config.catalogId; this._databaseName = config.databaseName; this._description = config.description; this._name = config.name; this._owner = config.owner; this._parameters = config.parameters; this._retention = config.retention; this._tableType = config.tableType; this._viewExpandedText = config.viewExpandedText; this._viewOriginalText = config.viewOriginalText; this._partitionIndex = config.partitionIndex; this._partitionKeys = config.partitionKeys; this._storageDescriptor.internalValue = config.storageDescriptor; this._targetTable.internalValue = config.targetTable; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // catalog_id - computed: true, optional: true, required: false private _catalogId?: string; public get catalogId() { return this.getStringAttribute('catalog_id'); } public set catalogId(value: string) { this._catalogId = value; } public resetCatalogId() { this._catalogId = undefined; } // Temporarily expose input value. Use with caution. public get catalogIdInput() { return this._catalogId; } // database_name - computed: false, optional: false, required: true private _databaseName?: string; public get databaseName() { return this.getStringAttribute('database_name'); } public set databaseName(value: string) { this._databaseName = value; } // Temporarily expose input value. Use with caution. public get databaseNameInput() { return this._databaseName; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // owner - computed: false, optional: true, required: false private _owner?: string; public get owner() { return this.getStringAttribute('owner'); } public set owner(value: string) { this._owner = value; } public resetOwner() { this._owner = undefined; } // Temporarily expose input value. Use with caution. public get ownerInput() { return this._owner; } // parameters - computed: false, optional: true, required: false private _parameters?: { [key: string]: string } | cdktf.IResolvable; public get parameters() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('parameters') as any; } public set parameters(value: { [key: string]: string } | cdktf.IResolvable) { this._parameters = value; } public resetParameters() { this._parameters = undefined; } // Temporarily expose input value. Use with caution. public get parametersInput() { return this._parameters; } // retention - computed: false, optional: true, required: false private _retention?: number; public get retention() { return this.getNumberAttribute('retention'); } public set retention(value: number) { this._retention = value; } public resetRetention() { this._retention = undefined; } // Temporarily expose input value. Use with caution. public get retentionInput() { return this._retention; } // table_type - computed: false, optional: true, required: false private _tableType?: string; public get tableType() { return this.getStringAttribute('table_type'); } public set tableType(value: string) { this._tableType = value; } public resetTableType() { this._tableType = undefined; } // Temporarily expose input value. Use with caution. public get tableTypeInput() { return this._tableType; } // view_expanded_text - computed: false, optional: true, required: false private _viewExpandedText?: string; public get viewExpandedText() { return this.getStringAttribute('view_expanded_text'); } public set viewExpandedText(value: string) { this._viewExpandedText = value; } public resetViewExpandedText() { this._viewExpandedText = undefined; } // Temporarily expose input value. Use with caution. public get viewExpandedTextInput() { return this._viewExpandedText; } // view_original_text - computed: false, optional: true, required: false private _viewOriginalText?: string; public get viewOriginalText() { return this.getStringAttribute('view_original_text'); } public set viewOriginalText(value: string) { this._viewOriginalText = value; } public resetViewOriginalText() { this._viewOriginalText = undefined; } // Temporarily expose input value. Use with caution. public get viewOriginalTextInput() { return this._viewOriginalText; } // partition_index - computed: false, optional: true, required: false private _partitionIndex?: GlueCatalogTablePartitionIndex[]; public get partitionIndex() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('partition_index') as any; } public set partitionIndex(value: GlueCatalogTablePartitionIndex[]) { this._partitionIndex = value; } public resetPartitionIndex() { this._partitionIndex = undefined; } // Temporarily expose input value. Use with caution. public get partitionIndexInput() { return this._partitionIndex; } // partition_keys - computed: false, optional: true, required: false private _partitionKeys?: GlueCatalogTablePartitionKeys[]; public get partitionKeys() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('partition_keys') as any; } public set partitionKeys(value: GlueCatalogTablePartitionKeys[]) { this._partitionKeys = value; } public resetPartitionKeys() { this._partitionKeys = undefined; } // Temporarily expose input value. Use with caution. public get partitionKeysInput() { return this._partitionKeys; } // storage_descriptor - computed: false, optional: true, required: false private _storageDescriptor = new GlueCatalogTableStorageDescriptorOutputReference(this as any, "storage_descriptor", true); public get storageDescriptor() { return this._storageDescriptor; } public putStorageDescriptor(value: GlueCatalogTableStorageDescriptor) { this._storageDescriptor.internalValue = value; } public resetStorageDescriptor() { this._storageDescriptor.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get storageDescriptorInput() { return this._storageDescriptor.internalValue; } // target_table - computed: false, optional: true, required: false private _targetTable = new GlueCatalogTableTargetTableOutputReference(this as any, "target_table", true); public get targetTable() { return this._targetTable; } public putTargetTable(value: GlueCatalogTableTargetTable) { this._targetTable.internalValue = value; } public resetTargetTable() { this._targetTable.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get targetTableInput() { return this._targetTable.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { catalog_id: cdktf.stringToTerraform(this._catalogId), database_name: cdktf.stringToTerraform(this._databaseName), description: cdktf.stringToTerraform(this._description), name: cdktf.stringToTerraform(this._name), owner: cdktf.stringToTerraform(this._owner), parameters: cdktf.hashMapper(cdktf.anyToTerraform)(this._parameters), retention: cdktf.numberToTerraform(this._retention), table_type: cdktf.stringToTerraform(this._tableType), view_expanded_text: cdktf.stringToTerraform(this._viewExpandedText), view_original_text: cdktf.stringToTerraform(this._viewOriginalText), partition_index: cdktf.listMapper(glueCatalogTablePartitionIndexToTerraform)(this._partitionIndex), partition_keys: cdktf.listMapper(glueCatalogTablePartitionKeysToTerraform)(this._partitionKeys), storage_descriptor: glueCatalogTableStorageDescriptorToTerraform(this._storageDescriptor.internalValue), target_table: glueCatalogTableTargetTableToTerraform(this._targetTable.internalValue), }; } }