UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,127 lines 242 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.QualityMonitor = exports.QualityMonitorTimeSeriesList = exports.QualityMonitorTimeSeriesOutputReference = exports.QualityMonitorSnapshotList = exports.QualityMonitorSnapshotOutputReference = exports.QualityMonitorScheduleList = exports.QualityMonitorScheduleOutputReference = exports.QualityMonitorNotificationsList = exports.QualityMonitorNotificationsOutputReference = exports.QualityMonitorNotificationsOnNewClassificationTagDetectedList = exports.QualityMonitorNotificationsOnNewClassificationTagDetectedOutputReference = exports.QualityMonitorNotificationsOnFailureList = exports.QualityMonitorNotificationsOnFailureOutputReference = exports.QualityMonitorInferenceLogList = exports.QualityMonitorInferenceLogOutputReference = exports.QualityMonitorDataClassificationConfigList = exports.QualityMonitorDataClassificationConfigOutputReference = exports.QualityMonitorCustomMetricsList = exports.QualityMonitorCustomMetricsOutputReference = void 0; exports.qualityMonitorCustomMetricsToTerraform = qualityMonitorCustomMetricsToTerraform; exports.qualityMonitorCustomMetricsToHclTerraform = qualityMonitorCustomMetricsToHclTerraform; exports.qualityMonitorDataClassificationConfigToTerraform = qualityMonitorDataClassificationConfigToTerraform; exports.qualityMonitorDataClassificationConfigToHclTerraform = qualityMonitorDataClassificationConfigToHclTerraform; exports.qualityMonitorInferenceLogToTerraform = qualityMonitorInferenceLogToTerraform; exports.qualityMonitorInferenceLogToHclTerraform = qualityMonitorInferenceLogToHclTerraform; exports.qualityMonitorNotificationsOnFailureToTerraform = qualityMonitorNotificationsOnFailureToTerraform; exports.qualityMonitorNotificationsOnFailureToHclTerraform = qualityMonitorNotificationsOnFailureToHclTerraform; exports.qualityMonitorNotificationsOnNewClassificationTagDetectedToTerraform = qualityMonitorNotificationsOnNewClassificationTagDetectedToTerraform; exports.qualityMonitorNotificationsOnNewClassificationTagDetectedToHclTerraform = qualityMonitorNotificationsOnNewClassificationTagDetectedToHclTerraform; exports.qualityMonitorNotificationsToTerraform = qualityMonitorNotificationsToTerraform; exports.qualityMonitorNotificationsToHclTerraform = qualityMonitorNotificationsToHclTerraform; exports.qualityMonitorScheduleToTerraform = qualityMonitorScheduleToTerraform; exports.qualityMonitorScheduleToHclTerraform = qualityMonitorScheduleToHclTerraform; exports.qualityMonitorSnapshotToTerraform = qualityMonitorSnapshotToTerraform; exports.qualityMonitorSnapshotToHclTerraform = qualityMonitorSnapshotToHclTerraform; exports.qualityMonitorTimeSeriesToTerraform = qualityMonitorTimeSeriesToTerraform; exports.qualityMonitorTimeSeriesToHclTerraform = qualityMonitorTimeSeriesToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function qualityMonitorCustomMetricsToTerraform(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 { definition: cdktf.stringToTerraform(struct.definition), input_columns: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.inputColumns), name: cdktf.stringToTerraform(struct.name), output_data_type: cdktf.stringToTerraform(struct.outputDataType), type: cdktf.stringToTerraform(struct.type), }; } function qualityMonitorCustomMetricsToHclTerraform(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 = { definition: { value: cdktf.stringToHclTerraform(struct.definition), isBlock: false, type: "simple", storageClassType: "string", }, input_columns: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.inputColumns), isBlock: false, type: "list", storageClassType: "stringList", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, output_data_type: { value: cdktf.stringToHclTerraform(struct.outputDataType), 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 QualityMonitorCustomMetricsOutputReference 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._definition !== undefined) { hasAnyValues = true; internalValueResult.definition = this._definition; } if (this._inputColumns !== undefined) { hasAnyValues = true; internalValueResult.inputColumns = this._inputColumns; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._outputDataType !== undefined) { hasAnyValues = true; internalValueResult.outputDataType = this._outputDataType; } 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._definition = undefined; this._inputColumns = undefined; this._name = undefined; this._outputDataType = 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._definition = value.definition; this._inputColumns = value.inputColumns; this._name = value.name; this._outputDataType = value.outputDataType; this._type = value.type; } } get definition() { return this.getStringAttribute('definition'); } set definition(value) { this._definition = value; } // Temporarily expose input value. Use with caution. get definitionInput() { return this._definition; } get inputColumns() { return this.getListAttribute('input_columns'); } set inputColumns(value) { this._inputColumns = value; } // Temporarily expose input value. Use with caution. get inputColumnsInput() { return this._inputColumns; } 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 outputDataType() { return this.getStringAttribute('output_data_type'); } set outputDataType(value) { this._outputDataType = value; } // Temporarily expose input value. Use with caution. get outputDataTypeInput() { return this._outputDataType; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.QualityMonitorCustomMetricsOutputReference = QualityMonitorCustomMetricsOutputReference; _a = JSII_RTTI_SYMBOL_1; QualityMonitorCustomMetricsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorCustomMetricsOutputReference", version: "15.7.0" }; class QualityMonitorCustomMetricsList 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 QualityMonitorCustomMetricsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.QualityMonitorCustomMetricsList = QualityMonitorCustomMetricsList; _b = JSII_RTTI_SYMBOL_1; QualityMonitorCustomMetricsList[_b] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorCustomMetricsList", version: "15.7.0" }; function qualityMonitorDataClassificationConfigToTerraform(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 { enabled: cdktf.booleanToTerraform(struct.enabled), }; } function qualityMonitorDataClassificationConfigToHclTerraform(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 = { enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class QualityMonitorDataClassificationConfigOutputReference 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._enabled = 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._enabled = value.enabled; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } } exports.QualityMonitorDataClassificationConfigOutputReference = QualityMonitorDataClassificationConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; QualityMonitorDataClassificationConfigOutputReference[_c] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorDataClassificationConfigOutputReference", version: "15.7.0" }; class QualityMonitorDataClassificationConfigList 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 QualityMonitorDataClassificationConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.QualityMonitorDataClassificationConfigList = QualityMonitorDataClassificationConfigList; _d = JSII_RTTI_SYMBOL_1; QualityMonitorDataClassificationConfigList[_d] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorDataClassificationConfigList", version: "15.7.0" }; function qualityMonitorInferenceLogToTerraform(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 { granularities: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.granularities), label_col: cdktf.stringToTerraform(struct.labelCol), model_id_col: cdktf.stringToTerraform(struct.modelIdCol), prediction_col: cdktf.stringToTerraform(struct.predictionCol), prediction_proba_col: cdktf.stringToTerraform(struct.predictionProbaCol), problem_type: cdktf.stringToTerraform(struct.problemType), timestamp_col: cdktf.stringToTerraform(struct.timestampCol), }; } function qualityMonitorInferenceLogToHclTerraform(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 = { granularities: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.granularities), isBlock: false, type: "list", storageClassType: "stringList", }, label_col: { value: cdktf.stringToHclTerraform(struct.labelCol), isBlock: false, type: "simple", storageClassType: "string", }, model_id_col: { value: cdktf.stringToHclTerraform(struct.modelIdCol), isBlock: false, type: "simple", storageClassType: "string", }, prediction_col: { value: cdktf.stringToHclTerraform(struct.predictionCol), isBlock: false, type: "simple", storageClassType: "string", }, prediction_proba_col: { value: cdktf.stringToHclTerraform(struct.predictionProbaCol), isBlock: false, type: "simple", storageClassType: "string", }, problem_type: { value: cdktf.stringToHclTerraform(struct.problemType), isBlock: false, type: "simple", storageClassType: "string", }, timestamp_col: { value: cdktf.stringToHclTerraform(struct.timestampCol), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class QualityMonitorInferenceLogOutputReference 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._granularities !== undefined) { hasAnyValues = true; internalValueResult.granularities = this._granularities; } if (this._labelCol !== undefined) { hasAnyValues = true; internalValueResult.labelCol = this._labelCol; } if (this._modelIdCol !== undefined) { hasAnyValues = true; internalValueResult.modelIdCol = this._modelIdCol; } if (this._predictionCol !== undefined) { hasAnyValues = true; internalValueResult.predictionCol = this._predictionCol; } if (this._predictionProbaCol !== undefined) { hasAnyValues = true; internalValueResult.predictionProbaCol = this._predictionProbaCol; } if (this._problemType !== undefined) { hasAnyValues = true; internalValueResult.problemType = this._problemType; } if (this._timestampCol !== undefined) { hasAnyValues = true; internalValueResult.timestampCol = this._timestampCol; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._granularities = undefined; this._labelCol = undefined; this._modelIdCol = undefined; this._predictionCol = undefined; this._predictionProbaCol = undefined; this._problemType = undefined; this._timestampCol = 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._granularities = value.granularities; this._labelCol = value.labelCol; this._modelIdCol = value.modelIdCol; this._predictionCol = value.predictionCol; this._predictionProbaCol = value.predictionProbaCol; this._problemType = value.problemType; this._timestampCol = value.timestampCol; } } get granularities() { return this.getListAttribute('granularities'); } set granularities(value) { this._granularities = value; } // Temporarily expose input value. Use with caution. get granularitiesInput() { return this._granularities; } get labelCol() { return this.getStringAttribute('label_col'); } set labelCol(value) { this._labelCol = value; } resetLabelCol() { this._labelCol = undefined; } // Temporarily expose input value. Use with caution. get labelColInput() { return this._labelCol; } get modelIdCol() { return this.getStringAttribute('model_id_col'); } set modelIdCol(value) { this._modelIdCol = value; } // Temporarily expose input value. Use with caution. get modelIdColInput() { return this._modelIdCol; } get predictionCol() { return this.getStringAttribute('prediction_col'); } set predictionCol(value) { this._predictionCol = value; } // Temporarily expose input value. Use with caution. get predictionColInput() { return this._predictionCol; } get predictionProbaCol() { return this.getStringAttribute('prediction_proba_col'); } set predictionProbaCol(value) { this._predictionProbaCol = value; } resetPredictionProbaCol() { this._predictionProbaCol = undefined; } // Temporarily expose input value. Use with caution. get predictionProbaColInput() { return this._predictionProbaCol; } get problemType() { return this.getStringAttribute('problem_type'); } set problemType(value) { this._problemType = value; } // Temporarily expose input value. Use with caution. get problemTypeInput() { return this._problemType; } get timestampCol() { return this.getStringAttribute('timestamp_col'); } set timestampCol(value) { this._timestampCol = value; } // Temporarily expose input value. Use with caution. get timestampColInput() { return this._timestampCol; } } exports.QualityMonitorInferenceLogOutputReference = QualityMonitorInferenceLogOutputReference; _e = JSII_RTTI_SYMBOL_1; QualityMonitorInferenceLogOutputReference[_e] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorInferenceLogOutputReference", version: "15.7.0" }; class QualityMonitorInferenceLogList 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 QualityMonitorInferenceLogOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.QualityMonitorInferenceLogList = QualityMonitorInferenceLogList; _f = JSII_RTTI_SYMBOL_1; QualityMonitorInferenceLogList[_f] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorInferenceLogList", version: "15.7.0" }; function qualityMonitorNotificationsOnFailureToTerraform(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 { email_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.emailAddresses), }; } function qualityMonitorNotificationsOnFailureToHclTerraform(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 = { email_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.emailAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class QualityMonitorNotificationsOnFailureOutputReference 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._emailAddresses !== undefined) { hasAnyValues = true; internalValueResult.emailAddresses = this._emailAddresses; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._emailAddresses = 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._emailAddresses = value.emailAddresses; } } get emailAddresses() { return this.getListAttribute('email_addresses'); } set emailAddresses(value) { this._emailAddresses = value; } resetEmailAddresses() { this._emailAddresses = undefined; } // Temporarily expose input value. Use with caution. get emailAddressesInput() { return this._emailAddresses; } } exports.QualityMonitorNotificationsOnFailureOutputReference = QualityMonitorNotificationsOnFailureOutputReference; _g = JSII_RTTI_SYMBOL_1; QualityMonitorNotificationsOnFailureOutputReference[_g] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorNotificationsOnFailureOutputReference", version: "15.7.0" }; class QualityMonitorNotificationsOnFailureList 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 QualityMonitorNotificationsOnFailureOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.QualityMonitorNotificationsOnFailureList = QualityMonitorNotificationsOnFailureList; _h = JSII_RTTI_SYMBOL_1; QualityMonitorNotificationsOnFailureList[_h] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorNotificationsOnFailureList", version: "15.7.0" }; function qualityMonitorNotificationsOnNewClassificationTagDetectedToTerraform(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 { email_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.emailAddresses), }; } function qualityMonitorNotificationsOnNewClassificationTagDetectedToHclTerraform(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 = { email_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.emailAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class QualityMonitorNotificationsOnNewClassificationTagDetectedOutputReference 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._emailAddresses !== undefined) { hasAnyValues = true; internalValueResult.emailAddresses = this._emailAddresses; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._emailAddresses = 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._emailAddresses = value.emailAddresses; } } get emailAddresses() { return this.getListAttribute('email_addresses'); } set emailAddresses(value) { this._emailAddresses = value; } resetEmailAddresses() { this._emailAddresses = undefined; } // Temporarily expose input value. Use with caution. get emailAddressesInput() { return this._emailAddresses; } } exports.QualityMonitorNotificationsOnNewClassificationTagDetectedOutputReference = QualityMonitorNotificationsOnNewClassificationTagDetectedOutputReference; _j = JSII_RTTI_SYMBOL_1; QualityMonitorNotificationsOnNewClassificationTagDetectedOutputReference[_j] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorNotificationsOnNewClassificationTagDetectedOutputReference", version: "15.7.0" }; class QualityMonitorNotificationsOnNewClassificationTagDetectedList 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 QualityMonitorNotificationsOnNewClassificationTagDetectedOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.QualityMonitorNotificationsOnNewClassificationTagDetectedList = QualityMonitorNotificationsOnNewClassificationTagDetectedList; _k = JSII_RTTI_SYMBOL_1; QualityMonitorNotificationsOnNewClassificationTagDetectedList[_k] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorNotificationsOnNewClassificationTagDetectedList", version: "15.7.0" }; function qualityMonitorNotificationsToTerraform(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 { on_failure: cdktf.listMapper(qualityMonitorNotificationsOnFailureToTerraform, true)(struct.onFailure), on_new_classification_tag_detected: cdktf.listMapper(qualityMonitorNotificationsOnNewClassificationTagDetectedToTerraform, true)(struct.onNewClassificationTagDetected), }; } function qualityMonitorNotificationsToHclTerraform(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 = { on_failure: { value: cdktf.listMapperHcl(qualityMonitorNotificationsOnFailureToHclTerraform, true)(struct.onFailure), isBlock: true, type: "list", storageClassType: "QualityMonitorNotificationsOnFailureList", }, on_new_classification_tag_detected: { value: cdktf.listMapperHcl(qualityMonitorNotificationsOnNewClassificationTagDetectedToHclTerraform, true)(struct.onNewClassificationTagDetected), isBlock: true, type: "list", storageClassType: "QualityMonitorNotificationsOnNewClassificationTagDetectedList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class QualityMonitorNotificationsOutputReference 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; // on_failure - computed: false, optional: true, required: false this._onFailure = new QualityMonitorNotificationsOnFailureList(this, "on_failure", false); // on_new_classification_tag_detected - computed: false, optional: true, required: false this._onNewClassificationTagDetected = new QualityMonitorNotificationsOnNewClassificationTagDetectedList(this, "on_new_classification_tag_detected", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._onFailure?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.onFailure = this._onFailure?.internalValue; } if (this._onNewClassificationTagDetected?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.onNewClassificationTagDetected = this._onNewClassificationTagDetected?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._onFailure.internalValue = undefined; this._onNewClassificationTagDetected.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._onFailure.internalValue = value.onFailure; this._onNewClassificationTagDetected.internalValue = value.onNewClassificationTagDetected; } } get onFailure() { return this._onFailure; } putOnFailure(value) { this._onFailure.internalValue = value; } resetOnFailure() { this._onFailure.internalValue = undefined; } // Temporarily expose input value. Use with caution. get onFailureInput() { return this._onFailure.internalValue; } get onNewClassificationTagDetected() { return this._onNewClassificationTagDetected; } putOnNewClassificationTagDetected(value) { this._onNewClassificationTagDetected.internalValue = value; } resetOnNewClassificationTagDetected() { this._onNewClassificationTagDetected.internalValue = undefined; } // Temporarily expose input value. Use with caution. get onNewClassificationTagDetectedInput() { return this._onNewClassificationTagDetected.internalValue; } } exports.QualityMonitorNotificationsOutputReference = QualityMonitorNotificationsOutputReference; _l = JSII_RTTI_SYMBOL_1; QualityMonitorNotificationsOutputReference[_l] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorNotificationsOutputReference", version: "15.7.0" }; class QualityMonitorNotificationsList 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 QualityMonitorNotificationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.QualityMonitorNotificationsList = QualityMonitorNotificationsList; _m = JSII_RTTI_SYMBOL_1; QualityMonitorNotificationsList[_m] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorNotificationsList", version: "15.7.0" }; function qualityMonitorScheduleToTerraform(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 { quartz_cron_expression: cdktf.stringToTerraform(struct.quartzCronExpression), timezone_id: cdktf.stringToTerraform(struct.timezoneId), }; } function qualityMonitorScheduleToHclTerraform(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 = { quartz_cron_expression: { value: cdktf.stringToHclTerraform(struct.quartzCronExpression), isBlock: false, type: "simple", storageClassType: "string", }, timezone_id: { value: cdktf.stringToHclTerraform(struct.timezoneId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class QualityMonitorScheduleOutputReference 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._quartzCronExpression !== undefined) { hasAnyValues = true; internalValueResult.quartzCronExpression = this._quartzCronExpression; } if (this._timezoneId !== undefined) { hasAnyValues = true; internalValueResult.timezoneId = this._timezoneId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._quartzCronExpression = undefined; this._timezoneId = 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._quartzCronExpression = value.quartzCronExpression; this._timezoneId = value.timezoneId; } } // pause_status - computed: true, optional: false, required: false get pauseStatus() { return this.getStringAttribute('pause_status'); } get quartzCronExpression() { return this.getStringAttribute('quartz_cron_expression'); } set quartzCronExpression(value) { this._quartzCronExpression = value; } // Temporarily expose input value. Use with caution. get quartzCronExpressionInput() { return this._quartzCronExpression; } get timezoneId() { return this.getStringAttribute('timezone_id'); } set timezoneId(value) { this._timezoneId = value; } // Temporarily expose input value. Use with caution. get timezoneIdInput() { return this._timezoneId; } } exports.QualityMonitorScheduleOutputReference = QualityMonitorScheduleOutputReference; _o = JSII_RTTI_SYMBOL_1; QualityMonitorScheduleOutputReference[_o] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorScheduleOutputReference", version: "15.7.0" }; class QualityMonitorScheduleList 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 QualityMonitorScheduleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.QualityMonitorScheduleList = QualityMonitorScheduleList; _p = JSII_RTTI_SYMBOL_1; QualityMonitorScheduleList[_p] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorScheduleList", version: "15.7.0" }; function qualityMonitorSnapshotToTerraform(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 qualityMonitorSnapshotToHclTerraform(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 QualityMonitorSnapshotOutputReference 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 = {}; 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; } } } exports.QualityMonitorSnapshotOutputReference = QualityMonitorSnapshotOutputReference; _q = JSII_RTTI_SYMBOL_1; QualityMonitorSnapshotOutputReference[_q] = { fqn: "@cdktf/provider-databricks.qualityMonitor.QualityMonitorSnapshotOutputReference", version: "15.7.0" }; class QualityMonitorSnapshotList 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; } /** *