UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,145 lines 414 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataDatabricksCleanRoomAsset = exports.DataDatabricksCleanRoomAssetVolumeLocalDetailsOutputReference = exports.DataDatabricksCleanRoomAssetViewLocalDetailsOutputReference = exports.DataDatabricksCleanRoomAssetViewOutputReference = exports.DataDatabricksCleanRoomAssetViewColumnsList = exports.DataDatabricksCleanRoomAssetViewColumnsOutputReference = exports.DataDatabricksCleanRoomAssetViewColumnsMaskOutputReference = exports.DataDatabricksCleanRoomAssetTableLocalDetailsOutputReference = exports.DataDatabricksCleanRoomAssetTableLocalDetailsPartitionsList = exports.DataDatabricksCleanRoomAssetTableLocalDetailsPartitionsOutputReference = exports.DataDatabricksCleanRoomAssetTableLocalDetailsPartitionsValueList = exports.DataDatabricksCleanRoomAssetTableLocalDetailsPartitionsValueOutputReference = exports.DataDatabricksCleanRoomAssetTableOutputReference = exports.DataDatabricksCleanRoomAssetTableColumnsList = exports.DataDatabricksCleanRoomAssetTableColumnsOutputReference = exports.DataDatabricksCleanRoomAssetTableColumnsMaskOutputReference = exports.DataDatabricksCleanRoomAssetNotebookOutputReference = exports.DataDatabricksCleanRoomAssetNotebookReviewsList = exports.DataDatabricksCleanRoomAssetNotebookReviewsOutputReference = exports.DataDatabricksCleanRoomAssetForeignTableLocalDetailsOutputReference = exports.DataDatabricksCleanRoomAssetForeignTableOutputReference = exports.DataDatabricksCleanRoomAssetForeignTableColumnsList = exports.DataDatabricksCleanRoomAssetForeignTableColumnsOutputReference = exports.DataDatabricksCleanRoomAssetForeignTableColumnsMaskOutputReference = void 0; exports.dataDatabricksCleanRoomAssetForeignTableColumnsMaskToTerraform = dataDatabricksCleanRoomAssetForeignTableColumnsMaskToTerraform; exports.dataDatabricksCleanRoomAssetForeignTableColumnsMaskToHclTerraform = dataDatabricksCleanRoomAssetForeignTableColumnsMaskToHclTerraform; exports.dataDatabricksCleanRoomAssetForeignTableColumnsToTerraform = dataDatabricksCleanRoomAssetForeignTableColumnsToTerraform; exports.dataDatabricksCleanRoomAssetForeignTableColumnsToHclTerraform = dataDatabricksCleanRoomAssetForeignTableColumnsToHclTerraform; exports.dataDatabricksCleanRoomAssetForeignTableToTerraform = dataDatabricksCleanRoomAssetForeignTableToTerraform; exports.dataDatabricksCleanRoomAssetForeignTableToHclTerraform = dataDatabricksCleanRoomAssetForeignTableToHclTerraform; exports.dataDatabricksCleanRoomAssetForeignTableLocalDetailsToTerraform = dataDatabricksCleanRoomAssetForeignTableLocalDetailsToTerraform; exports.dataDatabricksCleanRoomAssetForeignTableLocalDetailsToHclTerraform = dataDatabricksCleanRoomAssetForeignTableLocalDetailsToHclTerraform; exports.dataDatabricksCleanRoomAssetNotebookReviewsToTerraform = dataDatabricksCleanRoomAssetNotebookReviewsToTerraform; exports.dataDatabricksCleanRoomAssetNotebookReviewsToHclTerraform = dataDatabricksCleanRoomAssetNotebookReviewsToHclTerraform; exports.dataDatabricksCleanRoomAssetNotebookToTerraform = dataDatabricksCleanRoomAssetNotebookToTerraform; exports.dataDatabricksCleanRoomAssetNotebookToHclTerraform = dataDatabricksCleanRoomAssetNotebookToHclTerraform; exports.dataDatabricksCleanRoomAssetTableColumnsMaskToTerraform = dataDatabricksCleanRoomAssetTableColumnsMaskToTerraform; exports.dataDatabricksCleanRoomAssetTableColumnsMaskToHclTerraform = dataDatabricksCleanRoomAssetTableColumnsMaskToHclTerraform; exports.dataDatabricksCleanRoomAssetTableColumnsToTerraform = dataDatabricksCleanRoomAssetTableColumnsToTerraform; exports.dataDatabricksCleanRoomAssetTableColumnsToHclTerraform = dataDatabricksCleanRoomAssetTableColumnsToHclTerraform; exports.dataDatabricksCleanRoomAssetTableToTerraform = dataDatabricksCleanRoomAssetTableToTerraform; exports.dataDatabricksCleanRoomAssetTableToHclTerraform = dataDatabricksCleanRoomAssetTableToHclTerraform; exports.dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsValueToTerraform = dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsValueToTerraform; exports.dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsValueToHclTerraform = dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsValueToHclTerraform; exports.dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsToTerraform = dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsToTerraform; exports.dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsToHclTerraform = dataDatabricksCleanRoomAssetTableLocalDetailsPartitionsToHclTerraform; exports.dataDatabricksCleanRoomAssetTableLocalDetailsToTerraform = dataDatabricksCleanRoomAssetTableLocalDetailsToTerraform; exports.dataDatabricksCleanRoomAssetTableLocalDetailsToHclTerraform = dataDatabricksCleanRoomAssetTableLocalDetailsToHclTerraform; exports.dataDatabricksCleanRoomAssetViewColumnsMaskToTerraform = dataDatabricksCleanRoomAssetViewColumnsMaskToTerraform; exports.dataDatabricksCleanRoomAssetViewColumnsMaskToHclTerraform = dataDatabricksCleanRoomAssetViewColumnsMaskToHclTerraform; exports.dataDatabricksCleanRoomAssetViewColumnsToTerraform = dataDatabricksCleanRoomAssetViewColumnsToTerraform; exports.dataDatabricksCleanRoomAssetViewColumnsToHclTerraform = dataDatabricksCleanRoomAssetViewColumnsToHclTerraform; exports.dataDatabricksCleanRoomAssetViewToTerraform = dataDatabricksCleanRoomAssetViewToTerraform; exports.dataDatabricksCleanRoomAssetViewToHclTerraform = dataDatabricksCleanRoomAssetViewToHclTerraform; exports.dataDatabricksCleanRoomAssetViewLocalDetailsToTerraform = dataDatabricksCleanRoomAssetViewLocalDetailsToTerraform; exports.dataDatabricksCleanRoomAssetViewLocalDetailsToHclTerraform = dataDatabricksCleanRoomAssetViewLocalDetailsToHclTerraform; exports.dataDatabricksCleanRoomAssetVolumeLocalDetailsToTerraform = dataDatabricksCleanRoomAssetVolumeLocalDetailsToTerraform; exports.dataDatabricksCleanRoomAssetVolumeLocalDetailsToHclTerraform = dataDatabricksCleanRoomAssetVolumeLocalDetailsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataDatabricksCleanRoomAssetForeignTableColumnsMaskToTerraform(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 { function_name: cdktf.stringToTerraform(struct.functionName), using_column_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.usingColumnNames), }; } function dataDatabricksCleanRoomAssetForeignTableColumnsMaskToHclTerraform(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 = { function_name: { value: cdktf.stringToHclTerraform(struct.functionName), isBlock: false, type: "simple", storageClassType: "string", }, using_column_names: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.usingColumnNames), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksCleanRoomAssetForeignTableColumnsMaskOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._functionName !== undefined) { hasAnyValues = true; internalValueResult.functionName = this._functionName; } if (this._usingColumnNames !== undefined) { hasAnyValues = true; internalValueResult.usingColumnNames = this._usingColumnNames; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._functionName = undefined; this._usingColumnNames = 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._functionName = value.functionName; this._usingColumnNames = value.usingColumnNames; } } get functionName() { return this.getStringAttribute('function_name'); } set functionName(value) { this._functionName = value; } resetFunctionName() { this._functionName = undefined; } // Temporarily expose input value. Use with caution. get functionNameInput() { return this._functionName; } get usingColumnNames() { return this.getListAttribute('using_column_names'); } set usingColumnNames(value) { this._usingColumnNames = value; } resetUsingColumnNames() { this._usingColumnNames = undefined; } // Temporarily expose input value. Use with caution. get usingColumnNamesInput() { return this._usingColumnNames; } } exports.DataDatabricksCleanRoomAssetForeignTableColumnsMaskOutputReference = DataDatabricksCleanRoomAssetForeignTableColumnsMaskOutputReference; _a = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetForeignTableColumnsMaskOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetForeignTableColumnsMaskOutputReference", version: "15.3.1" }; function dataDatabricksCleanRoomAssetForeignTableColumnsToTerraform(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 { comment: cdktf.stringToTerraform(struct.comment), mask: dataDatabricksCleanRoomAssetForeignTableColumnsMaskToTerraform(struct.mask), name: cdktf.stringToTerraform(struct.name), nullable: cdktf.booleanToTerraform(struct.nullable), partition_index: cdktf.numberToTerraform(struct.partitionIndex), position: cdktf.numberToTerraform(struct.position), type_interval_type: cdktf.stringToTerraform(struct.typeIntervalType), type_json: cdktf.stringToTerraform(struct.typeJson), type_name: cdktf.stringToTerraform(struct.typeName), type_precision: cdktf.numberToTerraform(struct.typePrecision), type_scale: cdktf.numberToTerraform(struct.typeScale), type_text: cdktf.stringToTerraform(struct.typeText), }; } function dataDatabricksCleanRoomAssetForeignTableColumnsToHclTerraform(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 = { comment: { value: cdktf.stringToHclTerraform(struct.comment), isBlock: false, type: "simple", storageClassType: "string", }, mask: { value: dataDatabricksCleanRoomAssetForeignTableColumnsMaskToHclTerraform(struct.mask), isBlock: true, type: "struct", storageClassType: "DataDatabricksCleanRoomAssetForeignTableColumnsMask", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, nullable: { value: cdktf.booleanToHclTerraform(struct.nullable), isBlock: false, type: "simple", storageClassType: "boolean", }, partition_index: { value: cdktf.numberToHclTerraform(struct.partitionIndex), isBlock: false, type: "simple", storageClassType: "number", }, position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, type_interval_type: { value: cdktf.stringToHclTerraform(struct.typeIntervalType), isBlock: false, type: "simple", storageClassType: "string", }, type_json: { value: cdktf.stringToHclTerraform(struct.typeJson), isBlock: false, type: "simple", storageClassType: "string", }, type_name: { value: cdktf.stringToHclTerraform(struct.typeName), isBlock: false, type: "simple", storageClassType: "string", }, type_precision: { value: cdktf.numberToHclTerraform(struct.typePrecision), isBlock: false, type: "simple", storageClassType: "number", }, type_scale: { value: cdktf.numberToHclTerraform(struct.typeScale), isBlock: false, type: "simple", storageClassType: "number", }, type_text: { value: cdktf.stringToHclTerraform(struct.typeText), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksCleanRoomAssetForeignTableColumnsOutputReference 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; // mask - computed: true, optional: true, required: false this._mask = new DataDatabricksCleanRoomAssetForeignTableColumnsMaskOutputReference(this, "mask"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._comment !== undefined) { hasAnyValues = true; internalValueResult.comment = this._comment; } if (this._mask?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.mask = this._mask?.internalValue; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._nullable !== undefined) { hasAnyValues = true; internalValueResult.nullable = this._nullable; } if (this._partitionIndex !== undefined) { hasAnyValues = true; internalValueResult.partitionIndex = this._partitionIndex; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._typeIntervalType !== undefined) { hasAnyValues = true; internalValueResult.typeIntervalType = this._typeIntervalType; } if (this._typeJson !== undefined) { hasAnyValues = true; internalValueResult.typeJson = this._typeJson; } if (this._typeName !== undefined) { hasAnyValues = true; internalValueResult.typeName = this._typeName; } if (this._typePrecision !== undefined) { hasAnyValues = true; internalValueResult.typePrecision = this._typePrecision; } if (this._typeScale !== undefined) { hasAnyValues = true; internalValueResult.typeScale = this._typeScale; } if (this._typeText !== undefined) { hasAnyValues = true; internalValueResult.typeText = this._typeText; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._comment = undefined; this._mask.internalValue = undefined; this._name = undefined; this._nullable = undefined; this._partitionIndex = undefined; this._position = undefined; this._typeIntervalType = undefined; this._typeJson = undefined; this._typeName = undefined; this._typePrecision = undefined; this._typeScale = undefined; this._typeText = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._comment = value.comment; this._mask.internalValue = value.mask; this._name = value.name; this._nullable = value.nullable; this._partitionIndex = value.partitionIndex; this._position = value.position; this._typeIntervalType = value.typeIntervalType; this._typeJson = value.typeJson; this._typeName = value.typeName; this._typePrecision = value.typePrecision; this._typeScale = value.typeScale; this._typeText = value.typeText; } } get comment() { return this.getStringAttribute('comment'); } set comment(value) { this._comment = value; } resetComment() { this._comment = undefined; } // Temporarily expose input value. Use with caution. get commentInput() { return this._comment; } get mask() { return this._mask; } putMask(value) { this._mask.internalValue = value; } resetMask() { this._mask.internalValue = undefined; } // Temporarily expose input value. Use with caution. get maskInput() { return this._mask.internalValue; } 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 nullable() { return this.getBooleanAttribute('nullable'); } set nullable(value) { this._nullable = value; } resetNullable() { this._nullable = undefined; } // Temporarily expose input value. Use with caution. get nullableInput() { return this._nullable; } get partitionIndex() { return this.getNumberAttribute('partition_index'); } set partitionIndex(value) { this._partitionIndex = value; } resetPartitionIndex() { this._partitionIndex = undefined; } // Temporarily expose input value. Use with caution. get partitionIndexInput() { return this._partitionIndex; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } resetPosition() { this._position = undefined; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get typeIntervalType() { return this.getStringAttribute('type_interval_type'); } set typeIntervalType(value) { this._typeIntervalType = value; } resetTypeIntervalType() { this._typeIntervalType = undefined; } // Temporarily expose input value. Use with caution. get typeIntervalTypeInput() { return this._typeIntervalType; } get typeJson() { return this.getStringAttribute('type_json'); } set typeJson(value) { this._typeJson = value; } resetTypeJson() { this._typeJson = undefined; } // Temporarily expose input value. Use with caution. get typeJsonInput() { return this._typeJson; } get typeName() { return this.getStringAttribute('type_name'); } set typeName(value) { this._typeName = value; } resetTypeName() { this._typeName = undefined; } // Temporarily expose input value. Use with caution. get typeNameInput() { return this._typeName; } get typePrecision() { return this.getNumberAttribute('type_precision'); } set typePrecision(value) { this._typePrecision = value; } resetTypePrecision() { this._typePrecision = undefined; } // Temporarily expose input value. Use with caution. get typePrecisionInput() { return this._typePrecision; } get typeScale() { return this.getNumberAttribute('type_scale'); } set typeScale(value) { this._typeScale = value; } resetTypeScale() { this._typeScale = undefined; } // Temporarily expose input value. Use with caution. get typeScaleInput() { return this._typeScale; } get typeText() { return this.getStringAttribute('type_text'); } set typeText(value) { this._typeText = value; } resetTypeText() { this._typeText = undefined; } // Temporarily expose input value. Use with caution. get typeTextInput() { return this._typeText; } } exports.DataDatabricksCleanRoomAssetForeignTableColumnsOutputReference = DataDatabricksCleanRoomAssetForeignTableColumnsOutputReference; _b = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetForeignTableColumnsOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetForeignTableColumnsOutputReference", version: "15.3.1" }; class DataDatabricksCleanRoomAssetForeignTableColumnsList 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 DataDatabricksCleanRoomAssetForeignTableColumnsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksCleanRoomAssetForeignTableColumnsList = DataDatabricksCleanRoomAssetForeignTableColumnsList; _c = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetForeignTableColumnsList[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetForeignTableColumnsList", version: "15.3.1" }; function dataDatabricksCleanRoomAssetForeignTableToTerraform(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 {}; } function dataDatabricksCleanRoomAssetForeignTableToHclTerraform(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 = {}; return attrs; } class DataDatabricksCleanRoomAssetForeignTableOutputReference 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); this.isEmptyObject = false; // columns - computed: true, optional: false, required: false this._columns = new DataDatabricksCleanRoomAssetForeignTableColumnsList(this, "columns", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } get columns() { return this._columns; } } exports.DataDatabricksCleanRoomAssetForeignTableOutputReference = DataDatabricksCleanRoomAssetForeignTableOutputReference; _d = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetForeignTableOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetForeignTableOutputReference", version: "15.3.1" }; function dataDatabricksCleanRoomAssetForeignTableLocalDetailsToTerraform(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 { local_name: cdktf.stringToTerraform(struct.localName), }; } function dataDatabricksCleanRoomAssetForeignTableLocalDetailsToHclTerraform(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 = { local_name: { value: cdktf.stringToHclTerraform(struct.localName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksCleanRoomAssetForeignTableLocalDetailsOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._localName !== undefined) { hasAnyValues = true; internalValueResult.localName = this._localName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._localName = 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._localName = value.localName; } } get localName() { return this.getStringAttribute('local_name'); } set localName(value) { this._localName = value; } // Temporarily expose input value. Use with caution. get localNameInput() { return this._localName; } } exports.DataDatabricksCleanRoomAssetForeignTableLocalDetailsOutputReference = DataDatabricksCleanRoomAssetForeignTableLocalDetailsOutputReference; _e = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetForeignTableLocalDetailsOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetForeignTableLocalDetailsOutputReference", version: "15.3.1" }; function dataDatabricksCleanRoomAssetNotebookReviewsToTerraform(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 { comment: cdktf.stringToTerraform(struct.comment), created_at_millis: cdktf.numberToTerraform(struct.createdAtMillis), review_state: cdktf.stringToTerraform(struct.reviewState), review_sub_reason: cdktf.stringToTerraform(struct.reviewSubReason), reviewer_collaborator_alias: cdktf.stringToTerraform(struct.reviewerCollaboratorAlias), }; } function dataDatabricksCleanRoomAssetNotebookReviewsToHclTerraform(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 = { comment: { value: cdktf.stringToHclTerraform(struct.comment), isBlock: false, type: "simple", storageClassType: "string", }, created_at_millis: { value: cdktf.numberToHclTerraform(struct.createdAtMillis), isBlock: false, type: "simple", storageClassType: "number", }, review_state: { value: cdktf.stringToHclTerraform(struct.reviewState), isBlock: false, type: "simple", storageClassType: "string", }, review_sub_reason: { value: cdktf.stringToHclTerraform(struct.reviewSubReason), isBlock: false, type: "simple", storageClassType: "string", }, reviewer_collaborator_alias: { value: cdktf.stringToHclTerraform(struct.reviewerCollaboratorAlias), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksCleanRoomAssetNotebookReviewsOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._comment !== undefined) { hasAnyValues = true; internalValueResult.comment = this._comment; } if (this._createdAtMillis !== undefined) { hasAnyValues = true; internalValueResult.createdAtMillis = this._createdAtMillis; } if (this._reviewState !== undefined) { hasAnyValues = true; internalValueResult.reviewState = this._reviewState; } if (this._reviewSubReason !== undefined) { hasAnyValues = true; internalValueResult.reviewSubReason = this._reviewSubReason; } if (this._reviewerCollaboratorAlias !== undefined) { hasAnyValues = true; internalValueResult.reviewerCollaboratorAlias = this._reviewerCollaboratorAlias; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._comment = undefined; this._createdAtMillis = undefined; this._reviewState = undefined; this._reviewSubReason = undefined; this._reviewerCollaboratorAlias = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._comment = value.comment; this._createdAtMillis = value.createdAtMillis; this._reviewState = value.reviewState; this._reviewSubReason = value.reviewSubReason; this._reviewerCollaboratorAlias = value.reviewerCollaboratorAlias; } } get comment() { return this.getStringAttribute('comment'); } set comment(value) { this._comment = value; } resetComment() { this._comment = undefined; } // Temporarily expose input value. Use with caution. get commentInput() { return this._comment; } get createdAtMillis() { return this.getNumberAttribute('created_at_millis'); } set createdAtMillis(value) { this._createdAtMillis = value; } resetCreatedAtMillis() { this._createdAtMillis = undefined; } // Temporarily expose input value. Use with caution. get createdAtMillisInput() { return this._createdAtMillis; } get reviewState() { return this.getStringAttribute('review_state'); } set reviewState(value) { this._reviewState = value; } resetReviewState() { this._reviewState = undefined; } // Temporarily expose input value. Use with caution. get reviewStateInput() { return this._reviewState; } get reviewSubReason() { return this.getStringAttribute('review_sub_reason'); } set reviewSubReason(value) { this._reviewSubReason = value; } resetReviewSubReason() { this._reviewSubReason = undefined; } // Temporarily expose input value. Use with caution. get reviewSubReasonInput() { return this._reviewSubReason; } get reviewerCollaboratorAlias() { return this.getStringAttribute('reviewer_collaborator_alias'); } set reviewerCollaboratorAlias(value) { this._reviewerCollaboratorAlias = value; } resetReviewerCollaboratorAlias() { this._reviewerCollaboratorAlias = undefined; } // Temporarily expose input value. Use with caution. get reviewerCollaboratorAliasInput() { return this._reviewerCollaboratorAlias; } } exports.DataDatabricksCleanRoomAssetNotebookReviewsOutputReference = DataDatabricksCleanRoomAssetNotebookReviewsOutputReference; _f = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetNotebookReviewsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetNotebookReviewsOutputReference", version: "15.3.1" }; class DataDatabricksCleanRoomAssetNotebookReviewsList 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 DataDatabricksCleanRoomAssetNotebookReviewsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksCleanRoomAssetNotebookReviewsList = DataDatabricksCleanRoomAssetNotebookReviewsList; _g = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetNotebookReviewsList[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetNotebookReviewsList", version: "15.3.1" }; function dataDatabricksCleanRoomAssetNotebookToTerraform(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 { notebook_content: cdktf.stringToTerraform(struct.notebookContent), runner_collaborator_aliases: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.runnerCollaboratorAliases), }; } function dataDatabricksCleanRoomAssetNotebookToHclTerraform(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 = { notebook_content: { value: cdktf.stringToHclTerraform(struct.notebookContent), isBlock: false, type: "simple", storageClassType: "string", }, runner_collaborator_aliases: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.runnerCollaboratorAliases), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksCleanRoomAssetNotebookOutputReference 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); this.isEmptyObject = false; // reviews - computed: true, optional: false, required: false this._reviews = new DataDatabricksCleanRoomAssetNotebookReviewsList(this, "reviews", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._notebookContent !== undefined) { hasAnyValues = true; internalValueResult.notebookContent = this._notebookContent; } if (this._runnerCollaboratorAliases !== undefined) { hasAnyValues = true; internalValueResult.runnerCollaboratorAliases = this._runnerCollaboratorAliases; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._notebookContent = undefined; this._runnerCollaboratorAliases = 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._notebookContent = value.notebookContent; this._runnerCollaboratorAliases = value.runnerCollaboratorAliases; } } // etag - computed: true, optional: false, required: false get etag() { return this.getStringAttribute('etag'); } get notebookContent() { return this.getStringAttribute('notebook_content'); } set notebookContent(value) { this._notebookContent = value; } // Temporarily expose input value. Use with caution. get notebookContentInput() { return this._notebookContent; } // review_state - computed: true, optional: false, required: false get reviewState() { return this.getStringAttribute('review_state'); } get reviews() { return this._reviews; } get runnerCollaboratorAliases() { return this.getListAttribute('runner_collaborator_aliases'); } set runnerCollaboratorAliases(value) { this._runnerCollaboratorAliases = value; } resetRunnerCollaboratorAliases() { this._runnerCollaboratorAliases = undefined; } // Temporarily expose input value. Use with caution. get runnerCollaboratorAliasesInput() { return this._runnerCollaboratorAliases; } } exports.DataDatabricksCleanRoomAssetNotebookOutputReference = DataDatabricksCleanRoomAssetNotebookOutputReference; _h = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetNotebookOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetNotebookOutputReference", version: "15.3.1" }; function dataDatabricksCleanRoomAssetTableColumnsMaskToTerraform(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 { function_name: cdktf.stringToTerraform(struct.functionName), using_column_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.usingColumnNames), }; } function dataDatabricksCleanRoomAssetTableColumnsMaskToHclTerraform(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 = { function_name: { value: cdktf.stringToHclTerraform(struct.functionName), isBlock: false, type: "simple", storageClassType: "string", }, using_column_names: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.usingColumnNames), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksCleanRoomAssetTableColumnsMaskOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._functionName !== undefined) { hasAnyValues = true; internalValueResult.functionName = this._functionName; } if (this._usingColumnNames !== undefined) { hasAnyValues = true; internalValueResult.usingColumnNames = this._usingColumnNames; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._functionName = undefined; this._usingColumnNames = 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._functionName = value.functionName; this._usingColumnNames = value.usingColumnNames; } } get functionName() { return this.getStringAttribute('function_name'); } set functionName(value) { this._functionName = value; } resetFunctionName() { this._functionName = undefined; } // Temporarily expose input value. Use with caution. get functionNameInput() { return this._functionName; } get usingColumnNames() { return this.getListAttribute('using_column_names'); } set usingColumnNames(value) { this._usingColumnNames = value; } resetUsingColumnNames() { this._usingColumnNames = undefined; } // Temporarily expose input value. Use with caution. get usingColumnNamesInput() { return this._usingColumnNames; } } exports.DataDatabricksCleanRoomAssetTableColumnsMaskOutputReference = DataDatabricksCleanRoomAssetTableColumnsMaskOutputReference; _j = JSII_RTTI_SYMBOL_1; DataDatabricksCleanRoomAssetTableColumnsMaskOutputReference[_j] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomAsset.DataDatabricksCleanRoomAssetTableColumnsMaskOutputReference", version: "15.3.1" }; function dataDatabricksCleanRoomAssetTableColumnsToTerraform(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 { comment: cdktf.stringToTerraform(struct.comment), mask: dataDatabricksCleanRoomAssetTableColumnsMaskToTerraform(struct.mask), name: cdktf.stringToTerraform(struct.name), nullable: cdktf.booleanToTerraform(struct.nullable), partition_index: cdktf.numberToTerraform(struct.partitionIndex), position: cdktf.numberToTerraform(struct.position), type_interval_type: cdktf.stringToTerraform(struct.typeIntervalType), type_json: cdktf.stringToTerraform(struct.typeJson), type_name: cdktf.stringToTerraform(struct.typeName), type_precision: cdktf.numberToTerraform(struct.typePrecision), type_scale: cdktf.numberToTerraform(struct.typeScale), type_text: cdktf.stringToTerraform(struct.typeText), }; } function dataDatabricksCleanRoomAssetTableColumnsToHclTerraform(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 = { comment: { value: cdktf.stringToHclTerraform(struct.comment), isBlock: false, type: "simple", storageClassType: "string", }, mask: { value: dataDatabricksCleanRoomAssetTableColumnsMaskToHclTerraform(struct.mask), isBlock: true, type: "struct", storageClassType: "DataDatabrick