UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,147 lines 346 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataDatabricksFunctions = exports.DataDatabricksFunctionsFunctionsList = exports.DataDatabricksFunctionsFunctionsOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesList = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesList = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableList = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionList = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference = exports.DataDatabricksFunctionsFunctionsReturnParamsList = exports.DataDatabricksFunctionsFunctionsReturnParamsOutputReference = exports.DataDatabricksFunctionsFunctionsReturnParamsParametersList = exports.DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference = exports.DataDatabricksFunctionsFunctionsInputParamsList = exports.DataDatabricksFunctionsFunctionsInputParamsOutputReference = exports.DataDatabricksFunctionsFunctionsInputParamsParametersList = exports.DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference = void 0; exports.dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform = dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform; exports.dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform = dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform; exports.dataDatabricksFunctionsFunctionsInputParamsToTerraform = dataDatabricksFunctionsFunctionsInputParamsToTerraform; exports.dataDatabricksFunctionsFunctionsInputParamsToHclTerraform = dataDatabricksFunctionsFunctionsInputParamsToHclTerraform; exports.dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform = dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform; exports.dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform = dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform; exports.dataDatabricksFunctionsFunctionsReturnParamsToTerraform = dataDatabricksFunctionsFunctionsReturnParamsToTerraform; exports.dataDatabricksFunctionsFunctionsReturnParamsToHclTerraform = dataDatabricksFunctionsFunctionsReturnParamsToHclTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToHclTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToHclTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToHclTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesToTerraform; exports.dataDatabricksFunctionsFunctionsRoutineDependenciesToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesToHclTerraform; exports.dataDatabricksFunctionsFunctionsToTerraform = dataDatabricksFunctionsFunctionsToTerraform; exports.dataDatabricksFunctionsFunctionsToHclTerraform = dataDatabricksFunctionsFunctionsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform(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), name: cdktf.stringToTerraform(struct.name), parameter_default: cdktf.stringToTerraform(struct.parameterDefault), parameter_mode: cdktf.stringToTerraform(struct.parameterMode), parameter_type: cdktf.stringToTerraform(struct.parameterType), 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 dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform(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", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, parameter_default: { value: cdktf.stringToHclTerraform(struct.parameterDefault), isBlock: false, type: "simple", storageClassType: "string", }, parameter_mode: { value: cdktf.stringToHclTerraform(struct.parameterMode), isBlock: false, type: "simple", storageClassType: "string", }, parameter_type: { value: cdktf.stringToHclTerraform(struct.parameterType), isBlock: false, type: "simple", storageClassType: "string", }, 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 DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference 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._comment !== undefined) { hasAnyValues = true; internalValueResult.comment = this._comment; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._parameterDefault !== undefined) { hasAnyValues = true; internalValueResult.parameterDefault = this._parameterDefault; } if (this._parameterMode !== undefined) { hasAnyValues = true; internalValueResult.parameterMode = this._parameterMode; } if (this._parameterType !== undefined) { hasAnyValues = true; internalValueResult.parameterType = this._parameterType; } 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.resolvableValue = undefined; this._comment = undefined; this._name = undefined; this._parameterDefault = undefined; this._parameterMode = undefined; this._parameterType = undefined; this._position = undefined; this._typeIntervalType = undefined; this._typeJson = undefined; this._typeName = undefined; this._typePrecision = undefined; this._typeScale = undefined; this._typeText = 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._comment = value.comment; this._name = value.name; this._parameterDefault = value.parameterDefault; this._parameterMode = value.parameterMode; this._parameterType = value.parameterType; 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 name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get parameterDefault() { return this.getStringAttribute('parameter_default'); } set parameterDefault(value) { this._parameterDefault = value; } resetParameterDefault() { this._parameterDefault = undefined; } // Temporarily expose input value. Use with caution. get parameterDefaultInput() { return this._parameterDefault; } get parameterMode() { return this.getStringAttribute('parameter_mode'); } set parameterMode(value) { this._parameterMode = value; } resetParameterMode() { this._parameterMode = undefined; } // Temporarily expose input value. Use with caution. get parameterModeInput() { return this._parameterMode; } get parameterType() { return this.getStringAttribute('parameter_type'); } set parameterType(value) { this._parameterType = value; } resetParameterType() { this._parameterType = undefined; } // Temporarily expose input value. Use with caution. get parameterTypeInput() { return this._parameterType; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // 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; } // 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; } // Temporarily expose input value. Use with caution. get typeTextInput() { return this._typeText; } } exports.DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference = DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference; _a = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference", version: "13.36.0" }; class DataDatabricksFunctionsFunctionsInputParamsParametersList 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 DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksFunctionsFunctionsInputParamsParametersList = DataDatabricksFunctionsFunctionsInputParamsParametersList; _b = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsInputParamsParametersList[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsInputParamsParametersList", version: "13.36.0" }; function dataDatabricksFunctionsFunctionsInputParamsToTerraform(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 { parameters: cdktf.listMapper(dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform, false)(struct.parameters), }; } function dataDatabricksFunctionsFunctionsInputParamsToHclTerraform(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 = { parameters: { value: cdktf.listMapperHcl(dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform, false)(struct.parameters), isBlock: true, type: "list", storageClassType: "DataDatabricksFunctionsFunctionsInputParamsParametersList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksFunctionsFunctionsInputParamsOutputReference 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; // parameters - computed: true, optional: true, required: false this._parameters = new DataDatabricksFunctionsFunctionsInputParamsParametersList(this, "parameters", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._parameters?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.parameters = this._parameters?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._parameters.internalValue = 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._parameters.internalValue = value.parameters; } } get parameters() { return this._parameters; } putParameters(value) { this._parameters.internalValue = value; } resetParameters() { this._parameters.internalValue = undefined; } // Temporarily expose input value. Use with caution. get parametersInput() { return this._parameters.internalValue; } } exports.DataDatabricksFunctionsFunctionsInputParamsOutputReference = DataDatabricksFunctionsFunctionsInputParamsOutputReference; _c = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsInputParamsOutputReference[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsInputParamsOutputReference", version: "13.36.0" }; class DataDatabricksFunctionsFunctionsInputParamsList 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 DataDatabricksFunctionsFunctionsInputParamsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksFunctionsFunctionsInputParamsList = DataDatabricksFunctionsFunctionsInputParamsList; _d = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsInputParamsList[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsInputParamsList", version: "13.36.0" }; function dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform(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), name: cdktf.stringToTerraform(struct.name), parameter_default: cdktf.stringToTerraform(struct.parameterDefault), parameter_mode: cdktf.stringToTerraform(struct.parameterMode), parameter_type: cdktf.stringToTerraform(struct.parameterType), 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 dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform(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", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, parameter_default: { value: cdktf.stringToHclTerraform(struct.parameterDefault), isBlock: false, type: "simple", storageClassType: "string", }, parameter_mode: { value: cdktf.stringToHclTerraform(struct.parameterMode), isBlock: false, type: "simple", storageClassType: "string", }, parameter_type: { value: cdktf.stringToHclTerraform(struct.parameterType), isBlock: false, type: "simple", storageClassType: "string", }, 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 DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference 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._comment !== undefined) { hasAnyValues = true; internalValueResult.comment = this._comment; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._parameterDefault !== undefined) { hasAnyValues = true; internalValueResult.parameterDefault = this._parameterDefault; } if (this._parameterMode !== undefined) { hasAnyValues = true; internalValueResult.parameterMode = this._parameterMode; } if (this._parameterType !== undefined) { hasAnyValues = true; internalValueResult.parameterType = this._parameterType; } 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.resolvableValue = undefined; this._comment = undefined; this._name = undefined; this._parameterDefault = undefined; this._parameterMode = undefined; this._parameterType = undefined; this._position = undefined; this._typeIntervalType = undefined; this._typeJson = undefined; this._typeName = undefined; this._typePrecision = undefined; this._typeScale = undefined; this._typeText = 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._comment = value.comment; this._name = value.name; this._parameterDefault = value.parameterDefault; this._parameterMode = value.parameterMode; this._parameterType = value.parameterType; 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 name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get parameterDefault() { return this.getStringAttribute('parameter_default'); } set parameterDefault(value) { this._parameterDefault = value; } resetParameterDefault() { this._parameterDefault = undefined; } // Temporarily expose input value. Use with caution. get parameterDefaultInput() { return this._parameterDefault; } get parameterMode() { return this.getStringAttribute('parameter_mode'); } set parameterMode(value) { this._parameterMode = value; } resetParameterMode() { this._parameterMode = undefined; } // Temporarily expose input value. Use with caution. get parameterModeInput() { return this._parameterMode; } get parameterType() { return this.getStringAttribute('parameter_type'); } set parameterType(value) { this._parameterType = value; } resetParameterType() { this._parameterType = undefined; } // Temporarily expose input value. Use with caution. get parameterTypeInput() { return this._parameterType; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // 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; } // 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; } // Temporarily expose input value. Use with caution. get typeTextInput() { return this._typeText; } } exports.DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference = DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference; _e = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference", version: "13.36.0" }; class DataDatabricksFunctionsFunctionsReturnParamsParametersList 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 DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksFunctionsFunctionsReturnParamsParametersList = DataDatabricksFunctionsFunctionsReturnParamsParametersList; _f = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsReturnParamsParametersList[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsReturnParamsParametersList", version: "13.36.0" }; function dataDatabricksFunctionsFunctionsReturnParamsToTerraform(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 { parameters: cdktf.listMapper(dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform, false)(struct.parameters), }; } function dataDatabricksFunctionsFunctionsReturnParamsToHclTerraform(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 = { parameters: { value: cdktf.listMapperHcl(dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform, false)(struct.parameters), isBlock: true, type: "list", storageClassType: "DataDatabricksFunctionsFunctionsReturnParamsParametersList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksFunctionsFunctionsReturnParamsOutputReference 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; // parameters - computed: true, optional: true, required: false this._parameters = new DataDatabricksFunctionsFunctionsReturnParamsParametersList(this, "parameters", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._parameters?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.parameters = this._parameters?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._parameters.internalValue = 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._parameters.internalValue = value.parameters; } } get parameters() { return this._parameters; } putParameters(value) { this._parameters.internalValue = value; } resetParameters() { this._parameters.internalValue = undefined; } // Temporarily expose input value. Use with caution. get parametersInput() { return this._parameters.internalValue; } } exports.DataDatabricksFunctionsFunctionsReturnParamsOutputReference = DataDatabricksFunctionsFunctionsReturnParamsOutputReference; _g = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsReturnParamsOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsReturnParamsOutputReference", version: "13.36.0" }; class DataDatabricksFunctionsFunctionsReturnParamsList 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 DataDatabricksFunctionsFunctionsReturnParamsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksFunctionsFunctionsReturnParamsList = DataDatabricksFunctionsFunctionsReturnParamsList; _h = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsReturnParamsList[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsReturnParamsList", version: "13.36.0" }; function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToTerraform(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_full_name: cdktf.stringToTerraform(struct.functionFullName), }; } function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToHclTerraform(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_full_name: { value: cdktf.stringToHclTerraform(struct.functionFullName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference 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._functionFullName !== undefined) { hasAnyValues = true; internalValueResult.functionFullName = this._functionFullName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._functionFullName = 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._functionFullName = value.functionFullName; } } get functionFullName() { return this.getStringAttribute('function_full_name'); } set functionFullName(value) { this._functionFullName = value; } // Temporarily expose input value. Use with caution. get functionFullNameInput() { return this._functionFullName; } } exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference = DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference; _j = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference[_j] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference", version: "13.36.0" }; class DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionList 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 DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionList = DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionList; _k = JSII_RTTI_SYMBOL_1; DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionList[_k] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionList", version: "13.36.0" }; function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToTerraform(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 { table_full_name: cdktf.stringToTerraform(struct.tableFullName), }; } function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToHclTerraform(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 = { table_full_name: { value: cdktf.stringToHclTerraform(struct.tableFullName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableOutputReference 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.isE