UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,064 lines 674 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6; Object.defineProperty(exports, "__esModule", { value: true }); exports.BigqueryTable = exports.BigqueryTableViewOutputReference = exports.BigqueryTableTimePartitioningOutputReference = exports.BigqueryTableTableReplicationInfoOutputReference = exports.BigqueryTableTableConstraintsOutputReference = exports.BigqueryTableTableConstraintsPrimaryKeyOutputReference = exports.BigqueryTableTableConstraintsForeignKeysList = exports.BigqueryTableTableConstraintsForeignKeysOutputReference = exports.BigqueryTableTableConstraintsForeignKeysReferencedTableOutputReference = exports.BigqueryTableTableConstraintsForeignKeysColumnReferencesOutputReference = exports.BigqueryTableSchemaForeignTypeInfoOutputReference = exports.BigqueryTableRangePartitioningOutputReference = exports.BigqueryTableRangePartitioningRangeOutputReference = exports.BigqueryTableMaterializedViewOutputReference = exports.BigqueryTableExternalDataConfigurationOutputReference = exports.BigqueryTableExternalDataConfigurationParquetOptionsOutputReference = exports.BigqueryTableExternalDataConfigurationJsonOptionsOutputReference = exports.BigqueryTableExternalDataConfigurationHivePartitioningOptionsOutputReference = exports.BigqueryTableExternalDataConfigurationGoogleSheetsOptionsOutputReference = exports.BigqueryTableExternalDataConfigurationCsvOptionsOutputReference = exports.BigqueryTableExternalDataConfigurationBigtableOptionsOutputReference = exports.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyList = exports.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyOutputReference = exports.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList = exports.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnOutputReference = exports.BigqueryTableExternalDataConfigurationAvroOptionsOutputReference = exports.BigqueryTableExternalCatalogTableOptionsOutputReference = exports.BigqueryTableExternalCatalogTableOptionsStorageDescriptorOutputReference = exports.BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoOutputReference = exports.BigqueryTableEncryptionConfigurationOutputReference = exports.BigqueryTableBiglakeConfigurationOutputReference = void 0; exports.bigqueryTableBiglakeConfigurationToTerraform = bigqueryTableBiglakeConfigurationToTerraform; exports.bigqueryTableBiglakeConfigurationToHclTerraform = bigqueryTableBiglakeConfigurationToHclTerraform; exports.bigqueryTableEncryptionConfigurationToTerraform = bigqueryTableEncryptionConfigurationToTerraform; exports.bigqueryTableEncryptionConfigurationToHclTerraform = bigqueryTableEncryptionConfigurationToHclTerraform; exports.bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToTerraform = bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToTerraform; exports.bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToHclTerraform = bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToHclTerraform; exports.bigqueryTableExternalCatalogTableOptionsStorageDescriptorToTerraform = bigqueryTableExternalCatalogTableOptionsStorageDescriptorToTerraform; exports.bigqueryTableExternalCatalogTableOptionsStorageDescriptorToHclTerraform = bigqueryTableExternalCatalogTableOptionsStorageDescriptorToHclTerraform; exports.bigqueryTableExternalCatalogTableOptionsToTerraform = bigqueryTableExternalCatalogTableOptionsToTerraform; exports.bigqueryTableExternalCatalogTableOptionsToHclTerraform = bigqueryTableExternalCatalogTableOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationAvroOptionsToTerraform = bigqueryTableExternalDataConfigurationAvroOptionsToTerraform; exports.bigqueryTableExternalDataConfigurationAvroOptionsToHclTerraform = bigqueryTableExternalDataConfigurationAvroOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToTerraform = bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToTerraform; exports.bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToHclTerraform = bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToHclTerraform; exports.bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyToTerraform = bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyToTerraform; exports.bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyToHclTerraform = bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyToHclTerraform; exports.bigqueryTableExternalDataConfigurationBigtableOptionsToTerraform = bigqueryTableExternalDataConfigurationBigtableOptionsToTerraform; exports.bigqueryTableExternalDataConfigurationBigtableOptionsToHclTerraform = bigqueryTableExternalDataConfigurationBigtableOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationCsvOptionsToTerraform = bigqueryTableExternalDataConfigurationCsvOptionsToTerraform; exports.bigqueryTableExternalDataConfigurationCsvOptionsToHclTerraform = bigqueryTableExternalDataConfigurationCsvOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationGoogleSheetsOptionsToTerraform = bigqueryTableExternalDataConfigurationGoogleSheetsOptionsToTerraform; exports.bigqueryTableExternalDataConfigurationGoogleSheetsOptionsToHclTerraform = bigqueryTableExternalDataConfigurationGoogleSheetsOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationHivePartitioningOptionsToTerraform = bigqueryTableExternalDataConfigurationHivePartitioningOptionsToTerraform; exports.bigqueryTableExternalDataConfigurationHivePartitioningOptionsToHclTerraform = bigqueryTableExternalDataConfigurationHivePartitioningOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationJsonOptionsToTerraform = bigqueryTableExternalDataConfigurationJsonOptionsToTerraform; exports.bigqueryTableExternalDataConfigurationJsonOptionsToHclTerraform = bigqueryTableExternalDataConfigurationJsonOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationParquetOptionsToTerraform = bigqueryTableExternalDataConfigurationParquetOptionsToTerraform; exports.bigqueryTableExternalDataConfigurationParquetOptionsToHclTerraform = bigqueryTableExternalDataConfigurationParquetOptionsToHclTerraform; exports.bigqueryTableExternalDataConfigurationToTerraform = bigqueryTableExternalDataConfigurationToTerraform; exports.bigqueryTableExternalDataConfigurationToHclTerraform = bigqueryTableExternalDataConfigurationToHclTerraform; exports.bigqueryTableMaterializedViewToTerraform = bigqueryTableMaterializedViewToTerraform; exports.bigqueryTableMaterializedViewToHclTerraform = bigqueryTableMaterializedViewToHclTerraform; exports.bigqueryTableRangePartitioningRangeToTerraform = bigqueryTableRangePartitioningRangeToTerraform; exports.bigqueryTableRangePartitioningRangeToHclTerraform = bigqueryTableRangePartitioningRangeToHclTerraform; exports.bigqueryTableRangePartitioningToTerraform = bigqueryTableRangePartitioningToTerraform; exports.bigqueryTableRangePartitioningToHclTerraform = bigqueryTableRangePartitioningToHclTerraform; exports.bigqueryTableSchemaForeignTypeInfoToTerraform = bigqueryTableSchemaForeignTypeInfoToTerraform; exports.bigqueryTableSchemaForeignTypeInfoToHclTerraform = bigqueryTableSchemaForeignTypeInfoToHclTerraform; exports.bigqueryTableTableConstraintsForeignKeysColumnReferencesToTerraform = bigqueryTableTableConstraintsForeignKeysColumnReferencesToTerraform; exports.bigqueryTableTableConstraintsForeignKeysColumnReferencesToHclTerraform = bigqueryTableTableConstraintsForeignKeysColumnReferencesToHclTerraform; exports.bigqueryTableTableConstraintsForeignKeysReferencedTableToTerraform = bigqueryTableTableConstraintsForeignKeysReferencedTableToTerraform; exports.bigqueryTableTableConstraintsForeignKeysReferencedTableToHclTerraform = bigqueryTableTableConstraintsForeignKeysReferencedTableToHclTerraform; exports.bigqueryTableTableConstraintsForeignKeysToTerraform = bigqueryTableTableConstraintsForeignKeysToTerraform; exports.bigqueryTableTableConstraintsForeignKeysToHclTerraform = bigqueryTableTableConstraintsForeignKeysToHclTerraform; exports.bigqueryTableTableConstraintsPrimaryKeyToTerraform = bigqueryTableTableConstraintsPrimaryKeyToTerraform; exports.bigqueryTableTableConstraintsPrimaryKeyToHclTerraform = bigqueryTableTableConstraintsPrimaryKeyToHclTerraform; exports.bigqueryTableTableConstraintsToTerraform = bigqueryTableTableConstraintsToTerraform; exports.bigqueryTableTableConstraintsToHclTerraform = bigqueryTableTableConstraintsToHclTerraform; exports.bigqueryTableTableReplicationInfoToTerraform = bigqueryTableTableReplicationInfoToTerraform; exports.bigqueryTableTableReplicationInfoToHclTerraform = bigqueryTableTableReplicationInfoToHclTerraform; exports.bigqueryTableTimePartitioningToTerraform = bigqueryTableTimePartitioningToTerraform; exports.bigqueryTableTimePartitioningToHclTerraform = bigqueryTableTimePartitioningToHclTerraform; exports.bigqueryTableViewToTerraform = bigqueryTableViewToTerraform; exports.bigqueryTableViewToHclTerraform = bigqueryTableViewToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bigqueryTableBiglakeConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { connection_id: cdktf.stringToTerraform(struct.connectionId), file_format: cdktf.stringToTerraform(struct.fileFormat), storage_uri: cdktf.stringToTerraform(struct.storageUri), table_format: cdktf.stringToTerraform(struct.tableFormat), }; } function bigqueryTableBiglakeConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { connection_id: { value: cdktf.stringToHclTerraform(struct.connectionId), isBlock: false, type: "simple", storageClassType: "string", }, file_format: { value: cdktf.stringToHclTerraform(struct.fileFormat), isBlock: false, type: "simple", storageClassType: "string", }, storage_uri: { value: cdktf.stringToHclTerraform(struct.storageUri), isBlock: false, type: "simple", storageClassType: "string", }, table_format: { value: cdktf.stringToHclTerraform(struct.tableFormat), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableBiglakeConfigurationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._connectionId !== undefined) { hasAnyValues = true; internalValueResult.connectionId = this._connectionId; } if (this._fileFormat !== undefined) { hasAnyValues = true; internalValueResult.fileFormat = this._fileFormat; } if (this._storageUri !== undefined) { hasAnyValues = true; internalValueResult.storageUri = this._storageUri; } if (this._tableFormat !== undefined) { hasAnyValues = true; internalValueResult.tableFormat = this._tableFormat; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._connectionId = undefined; this._fileFormat = undefined; this._storageUri = undefined; this._tableFormat = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connectionId = value.connectionId; this._fileFormat = value.fileFormat; this._storageUri = value.storageUri; this._tableFormat = value.tableFormat; } } get connectionId() { return this.getStringAttribute('connection_id'); } set connectionId(value) { this._connectionId = value; } // Temporarily expose input value. Use with caution. get connectionIdInput() { return this._connectionId; } get fileFormat() { return this.getStringAttribute('file_format'); } set fileFormat(value) { this._fileFormat = value; } // Temporarily expose input value. Use with caution. get fileFormatInput() { return this._fileFormat; } get storageUri() { return this.getStringAttribute('storage_uri'); } set storageUri(value) { this._storageUri = value; } // Temporarily expose input value. Use with caution. get storageUriInput() { return this._storageUri; } get tableFormat() { return this.getStringAttribute('table_format'); } set tableFormat(value) { this._tableFormat = value; } // Temporarily expose input value. Use with caution. get tableFormatInput() { return this._tableFormat; } } exports.BigqueryTableBiglakeConfigurationOutputReference = BigqueryTableBiglakeConfigurationOutputReference; _a = JSII_RTTI_SYMBOL_1; BigqueryTableBiglakeConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableBiglakeConfigurationOutputReference", version: "14.35.1" }; function bigqueryTableEncryptionConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { kms_key_name: cdktf.stringToTerraform(struct.kmsKeyName), }; } function bigqueryTableEncryptionConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { kms_key_name: { value: cdktf.stringToHclTerraform(struct.kmsKeyName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableEncryptionConfigurationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._kmsKeyName !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyName = this._kmsKeyName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeyName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeyName = value.kmsKeyName; } } get kmsKeyName() { return this.getStringAttribute('kms_key_name'); } set kmsKeyName(value) { this._kmsKeyName = value; } // Temporarily expose input value. Use with caution. get kmsKeyNameInput() { return this._kmsKeyName; } // kms_key_version - computed: true, optional: false, required: false get kmsKeyVersion() { return this.getStringAttribute('kms_key_version'); } } exports.BigqueryTableEncryptionConfigurationOutputReference = BigqueryTableEncryptionConfigurationOutputReference; _b = JSII_RTTI_SYMBOL_1; BigqueryTableEncryptionConfigurationOutputReference[_b] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableEncryptionConfigurationOutputReference", version: "14.35.1" }; function bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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.stringToTerraform)(struct.parameters), serialization_library: cdktf.stringToTerraform(struct.serializationLibrary), }; } function bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, parameters: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters), isBlock: false, type: "map", storageClassType: "stringMap", }, serialization_library: { value: cdktf.stringToHclTerraform(struct.serializationLibrary), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; 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; } set internalValue(value) { 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; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get parameters() { return this.getStringMapAttribute('parameters'); } set parameters(value) { this._parameters = value; } resetParameters() { this._parameters = undefined; } // Temporarily expose input value. Use with caution. get parametersInput() { return this._parameters; } get serializationLibrary() { return this.getStringAttribute('serialization_library'); } set serializationLibrary(value) { this._serializationLibrary = value; } // Temporarily expose input value. Use with caution. get serializationLibraryInput() { return this._serializationLibrary; } } exports.BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoOutputReference = BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoOutputReference; _c = JSII_RTTI_SYMBOL_1; BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoOutputReference[_c] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoOutputReference", version: "14.35.1" }; function bigqueryTableExternalCatalogTableOptionsStorageDescriptorToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { input_format: cdktf.stringToTerraform(struct.inputFormat), location_uri: cdktf.stringToTerraform(struct.locationUri), output_format: cdktf.stringToTerraform(struct.outputFormat), serde_info: bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToTerraform(struct.serdeInfo), }; } function bigqueryTableExternalCatalogTableOptionsStorageDescriptorToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { input_format: { value: cdktf.stringToHclTerraform(struct.inputFormat), isBlock: false, type: "simple", storageClassType: "string", }, location_uri: { value: cdktf.stringToHclTerraform(struct.locationUri), isBlock: false, type: "simple", storageClassType: "string", }, output_format: { value: cdktf.stringToHclTerraform(struct.outputFormat), isBlock: false, type: "simple", storageClassType: "string", }, serde_info: { value: bigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoToHclTerraform(struct.serdeInfo), isBlock: true, type: "list", storageClassType: "BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableExternalCatalogTableOptionsStorageDescriptorOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // serde_info - computed: false, optional: true, required: false this._serdeInfo = new BigqueryTableExternalCatalogTableOptionsStorageDescriptorSerdeInfoOutputReference(this, "serde_info"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._inputFormat !== undefined) { hasAnyValues = true; internalValueResult.inputFormat = this._inputFormat; } if (this._locationUri !== undefined) { hasAnyValues = true; internalValueResult.locationUri = this._locationUri; } if (this._outputFormat !== undefined) { hasAnyValues = true; internalValueResult.outputFormat = this._outputFormat; } if (this._serdeInfo?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.serdeInfo = this._serdeInfo?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._inputFormat = undefined; this._locationUri = undefined; this._outputFormat = undefined; this._serdeInfo.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._inputFormat = value.inputFormat; this._locationUri = value.locationUri; this._outputFormat = value.outputFormat; this._serdeInfo.internalValue = value.serdeInfo; } } get inputFormat() { return this.getStringAttribute('input_format'); } set inputFormat(value) { this._inputFormat = value; } resetInputFormat() { this._inputFormat = undefined; } // Temporarily expose input value. Use with caution. get inputFormatInput() { return this._inputFormat; } get locationUri() { return this.getStringAttribute('location_uri'); } set locationUri(value) { this._locationUri = value; } resetLocationUri() { this._locationUri = undefined; } // Temporarily expose input value. Use with caution. get locationUriInput() { return this._locationUri; } get outputFormat() { return this.getStringAttribute('output_format'); } set outputFormat(value) { this._outputFormat = value; } resetOutputFormat() { this._outputFormat = undefined; } // Temporarily expose input value. Use with caution. get outputFormatInput() { return this._outputFormat; } get serdeInfo() { return this._serdeInfo; } putSerdeInfo(value) { this._serdeInfo.internalValue = value; } resetSerdeInfo() { this._serdeInfo.internalValue = undefined; } // Temporarily expose input value. Use with caution. get serdeInfoInput() { return this._serdeInfo.internalValue; } } exports.BigqueryTableExternalCatalogTableOptionsStorageDescriptorOutputReference = BigqueryTableExternalCatalogTableOptionsStorageDescriptorOutputReference; _d = JSII_RTTI_SYMBOL_1; BigqueryTableExternalCatalogTableOptionsStorageDescriptorOutputReference[_d] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableExternalCatalogTableOptionsStorageDescriptorOutputReference", version: "14.35.1" }; function bigqueryTableExternalCatalogTableOptionsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { connection_id: cdktf.stringToTerraform(struct.connectionId), parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.parameters), storage_descriptor: bigqueryTableExternalCatalogTableOptionsStorageDescriptorToTerraform(struct.storageDescriptor), }; } function bigqueryTableExternalCatalogTableOptionsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { connection_id: { value: cdktf.stringToHclTerraform(struct.connectionId), isBlock: false, type: "simple", storageClassType: "string", }, parameters: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters), isBlock: false, type: "map", storageClassType: "stringMap", }, storage_descriptor: { value: bigqueryTableExternalCatalogTableOptionsStorageDescriptorToHclTerraform(struct.storageDescriptor), isBlock: true, type: "list", storageClassType: "BigqueryTableExternalCatalogTableOptionsStorageDescriptorList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableExternalCatalogTableOptionsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // storage_descriptor - computed: false, optional: true, required: false this._storageDescriptor = new BigqueryTableExternalCatalogTableOptionsStorageDescriptorOutputReference(this, "storage_descriptor"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._connectionId !== undefined) { hasAnyValues = true; internalValueResult.connectionId = this._connectionId; } if (this._parameters !== undefined) { hasAnyValues = true; internalValueResult.parameters = this._parameters; } if (this._storageDescriptor?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.storageDescriptor = this._storageDescriptor?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._connectionId = undefined; this._parameters = undefined; this._storageDescriptor.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connectionId = value.connectionId; this._parameters = value.parameters; this._storageDescriptor.internalValue = value.storageDescriptor; } } get connectionId() { return this.getStringAttribute('connection_id'); } set connectionId(value) { this._connectionId = value; } resetConnectionId() { this._connectionId = undefined; } // Temporarily expose input value. Use with caution. get connectionIdInput() { return this._connectionId; } get parameters() { return this.getStringMapAttribute('parameters'); } set parameters(value) { this._parameters = value; } resetParameters() { this._parameters = undefined; } // Temporarily expose input value. Use with caution. get parametersInput() { return this._parameters; } get storageDescriptor() { return this._storageDescriptor; } putStorageDescriptor(value) { this._storageDescriptor.internalValue = value; } resetStorageDescriptor() { this._storageDescriptor.internalValue = undefined; } // Temporarily expose input value. Use with caution. get storageDescriptorInput() { return this._storageDescriptor.internalValue; } } exports.BigqueryTableExternalCatalogTableOptionsOutputReference = BigqueryTableExternalCatalogTableOptionsOutputReference; _e = JSII_RTTI_SYMBOL_1; BigqueryTableExternalCatalogTableOptionsOutputReference[_e] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableExternalCatalogTableOptionsOutputReference", version: "14.35.1" }; function bigqueryTableExternalDataConfigurationAvroOptionsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { use_avro_logical_types: cdktf.booleanToTerraform(struct.useAvroLogicalTypes), }; } function bigqueryTableExternalDataConfigurationAvroOptionsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { use_avro_logical_types: { value: cdktf.booleanToHclTerraform(struct.useAvroLogicalTypes), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableExternalDataConfigurationAvroOptionsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._useAvroLogicalTypes !== undefined) { hasAnyValues = true; internalValueResult.useAvroLogicalTypes = this._useAvroLogicalTypes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._useAvroLogicalTypes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._useAvroLogicalTypes = value.useAvroLogicalTypes; } } get useAvroLogicalTypes() { return this.getBooleanAttribute('use_avro_logical_types'); } set useAvroLogicalTypes(value) { this._useAvroLogicalTypes = value; } // Temporarily expose input value. Use with caution. get useAvroLogicalTypesInput() { return this._useAvroLogicalTypes; } } exports.BigqueryTableExternalDataConfigurationAvroOptionsOutputReference = BigqueryTableExternalDataConfigurationAvroOptionsOutputReference; _f = JSII_RTTI_SYMBOL_1; BigqueryTableExternalDataConfigurationAvroOptionsOutputReference[_f] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableExternalDataConfigurationAvroOptionsOutputReference", version: "14.35.1" }; function bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { encoding: cdktf.stringToTerraform(struct.encoding), field_name: cdktf.stringToTerraform(struct.fieldName), only_read_latest: cdktf.booleanToTerraform(struct.onlyReadLatest), qualifier_encoded: cdktf.stringToTerraform(struct.qualifierEncoded), qualifier_string: cdktf.stringToTerraform(struct.qualifierString), type: cdktf.stringToTerraform(struct.type), }; } function bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { encoding: { value: cdktf.stringToHclTerraform(struct.encoding), isBlock: false, type: "simple", storageClassType: "string", }, field_name: { value: cdktf.stringToHclTerraform(struct.fieldName), isBlock: false, type: "simple", storageClassType: "string", }, only_read_latest: { value: cdktf.booleanToHclTerraform(struct.onlyReadLatest), isBlock: false, type: "simple", storageClassType: "boolean", }, qualifier_encoded: { value: cdktf.stringToHclTerraform(struct.qualifierEncoded), isBlock: false, type: "simple", storageClassType: "string", }, qualifier_string: { value: cdktf.stringToHclTerraform(struct.qualifierString), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._encoding !== undefined) { hasAnyValues = true; internalValueResult.encoding = this._encoding; } if (this._fieldName !== undefined) { hasAnyValues = true; internalValueResult.fieldName = this._fieldName; } if (this._onlyReadLatest !== undefined) { hasAnyValues = true; internalValueResult.onlyReadLatest = this._onlyReadLatest; } if (this._qualifierEncoded !== undefined) { hasAnyValues = true; internalValueResult.qualifierEncoded = this._qualifierEncoded; } if (this._qualifierString !== undefined) { hasAnyValues = true; internalValueResult.qualifierString = this._qualifierString; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._encoding = undefined; this._fieldName = undefined; this._onlyReadLatest = undefined; this._qualifierEncoded = undefined; this._qualifierString = undefined; this._type = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._encoding = value.encoding; this._fieldName = value.fieldName; this._onlyReadLatest = value.onlyReadLatest; this._qualifierEncoded = value.qualifierEncoded; this._qualifierString = value.qualifierString; this._type = value.type; } } get encoding() { return this.getStringAttribute('encoding'); } set encoding(value) { this._encoding = value; } resetEncoding() { this._encoding = undefined; } // Temporarily expose input value. Use with caution. get encodingInput() { return this._encoding; } get fieldName() { return this.getStringAttribute('field_name'); } set fieldName(value) { this._fieldName = value; } resetFieldName() { this._fieldName = undefined; } // Temporarily expose input value. Use with caution. get fieldNameInput() { return this._fieldName; } get onlyReadLatest() { return this.getBooleanAttribute('only_read_latest'); } set onlyReadLatest(value) { this._onlyReadLatest = value; } resetOnlyReadLatest() { this._onlyReadLatest = undefined; } // Temporarily expose input value. Use with caution. get onlyReadLatestInput() { return this._onlyReadLatest; } get qualifierEncoded() { return this.getStringAttribute('qualifier_encoded'); } set qualifierEncoded(value) { this._qualifierEncoded = value; } resetQualifierEncoded() { this._qualifierEncoded = undefined; } // Temporarily expose input value. Use with caution. get qualifierEncodedInput() { return this._qualifierEncoded; } get qualifierString() { return this.getStringAttribute('qualifier_string'); } set qualifierString(value) { this._qualifierString = value; } resetQualifierString() { this._qualifierString = undefined; } // Temporarily expose input value. Use with caution. get qualifierStringInput() { return this._qualifierString; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnOutputReference = BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnOutputReference; _g = JSII_RTTI_SYMBOL_1; BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnOutputReference[_g] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnOutputReference", version: "14.35.1" }; class BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList = BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList; _h = JSII_RTTI_SYMBOL_1; BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList[_h] = { fqn: "@cdktf/provider-google.bigqueryTable.BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList", version: "14.35.1" }; function bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { encoding: cdktf.stringToTerraform(struct.encoding), family_id: cdktf.stringToTerraform(struct.familyId), only_read_latest: cdktf.booleanToTerraform(struct.onlyReadLatest), type: cdktf.stringToTerraform(struct.type), column: cdktf.listMapper(bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToTerraform, true)(struct.column), }; } function bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { encoding: { value: cdktf.stringToHclTerraform(struct.encoding), isBlock: false, type: "simple", storageClassType: "string", }, family_id: { value: cdktf.stringToHclTerraform(struct.familyId), isBlock: false, type: "simple", storageClassType: "string", }, only_read_latest: { value: cdktf.booleanToHclTerraform(struct.onlyReadLatest), isBlock: false, type: "simple", storageClassType: "boolean", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, column: { value: cdktf.listMapperHcl(bigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnToHclTerraform, true)(struct.column), isBlock: true, type: "list", storageClassType: "BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // column - computed: false, optional: true, required: false this._column = new BigqueryTableExternalDataConfigurationBigtableOptionsColumnFamilyColumnList(this, "column", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const inte