@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,118 lines • 211 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataQualityMonitor = exports.DataQualityMonitorDataProfilingConfigOutputReference = exports.DataQualityMonitorDataProfilingConfigTimeSeriesOutputReference = exports.DataQualityMonitorDataProfilingConfigSnapshotOutputReference = exports.DataQualityMonitorDataProfilingConfigScheduleOutputReference = exports.DataQualityMonitorDataProfilingConfigNotificationSettingsOutputReference = exports.DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureOutputReference = exports.DataQualityMonitorDataProfilingConfigInferenceLogOutputReference = exports.DataQualityMonitorDataProfilingConfigCustomMetricsList = exports.DataQualityMonitorDataProfilingConfigCustomMetricsOutputReference = exports.DataQualityMonitorAnomalyDetectionConfigOutputReference = void 0;
exports.dataQualityMonitorAnomalyDetectionConfigToTerraform = dataQualityMonitorAnomalyDetectionConfigToTerraform;
exports.dataQualityMonitorAnomalyDetectionConfigToHclTerraform = dataQualityMonitorAnomalyDetectionConfigToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigCustomMetricsToTerraform = dataQualityMonitorDataProfilingConfigCustomMetricsToTerraform;
exports.dataQualityMonitorDataProfilingConfigCustomMetricsToHclTerraform = dataQualityMonitorDataProfilingConfigCustomMetricsToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigInferenceLogToTerraform = dataQualityMonitorDataProfilingConfigInferenceLogToTerraform;
exports.dataQualityMonitorDataProfilingConfigInferenceLogToHclTerraform = dataQualityMonitorDataProfilingConfigInferenceLogToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToTerraform = dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToTerraform;
exports.dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToHclTerraform = dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigNotificationSettingsToTerraform = dataQualityMonitorDataProfilingConfigNotificationSettingsToTerraform;
exports.dataQualityMonitorDataProfilingConfigNotificationSettingsToHclTerraform = dataQualityMonitorDataProfilingConfigNotificationSettingsToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigScheduleToTerraform = dataQualityMonitorDataProfilingConfigScheduleToTerraform;
exports.dataQualityMonitorDataProfilingConfigScheduleToHclTerraform = dataQualityMonitorDataProfilingConfigScheduleToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigSnapshotToTerraform = dataQualityMonitorDataProfilingConfigSnapshotToTerraform;
exports.dataQualityMonitorDataProfilingConfigSnapshotToHclTerraform = dataQualityMonitorDataProfilingConfigSnapshotToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigTimeSeriesToTerraform = dataQualityMonitorDataProfilingConfigTimeSeriesToTerraform;
exports.dataQualityMonitorDataProfilingConfigTimeSeriesToHclTerraform = dataQualityMonitorDataProfilingConfigTimeSeriesToHclTerraform;
exports.dataQualityMonitorDataProfilingConfigToTerraform = dataQualityMonitorDataProfilingConfigToTerraform;
exports.dataQualityMonitorDataProfilingConfigToHclTerraform = dataQualityMonitorDataProfilingConfigToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataQualityMonitorAnomalyDetectionConfigToTerraform(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 dataQualityMonitorAnomalyDetectionConfigToHclTerraform(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 DataQualityMonitorAnomalyDetectionConfigOutputReference 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 = {};
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.DataQualityMonitorAnomalyDetectionConfigOutputReference = DataQualityMonitorAnomalyDetectionConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataQualityMonitorAnomalyDetectionConfigOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorAnomalyDetectionConfigOutputReference", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigCustomMetricsToTerraform(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 dataQualityMonitorDataProfilingConfigCustomMetricsToHclTerraform(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 DataQualityMonitorDataProfilingConfigCustomMetricsOutputReference 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.DataQualityMonitorDataProfilingConfigCustomMetricsOutputReference = DataQualityMonitorDataProfilingConfigCustomMetricsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigCustomMetricsOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigCustomMetricsOutputReference", version: "15.16.1" };
class DataQualityMonitorDataProfilingConfigCustomMetricsList 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 DataQualityMonitorDataProfilingConfigCustomMetricsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataQualityMonitorDataProfilingConfigCustomMetricsList = DataQualityMonitorDataProfilingConfigCustomMetricsList;
_c = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigCustomMetricsList[_c] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigCustomMetricsList", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigInferenceLogToTerraform(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_column: cdktf.stringToTerraform(struct.labelColumn),
model_id_column: cdktf.stringToTerraform(struct.modelIdColumn),
prediction_column: cdktf.stringToTerraform(struct.predictionColumn),
problem_type: cdktf.stringToTerraform(struct.problemType),
timestamp_column: cdktf.stringToTerraform(struct.timestampColumn),
};
}
function dataQualityMonitorDataProfilingConfigInferenceLogToHclTerraform(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_column: {
value: cdktf.stringToHclTerraform(struct.labelColumn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
model_id_column: {
value: cdktf.stringToHclTerraform(struct.modelIdColumn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
prediction_column: {
value: cdktf.stringToHclTerraform(struct.predictionColumn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
problem_type: {
value: cdktf.stringToHclTerraform(struct.problemType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
timestamp_column: {
value: cdktf.stringToHclTerraform(struct.timestampColumn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataQualityMonitorDataProfilingConfigInferenceLogOutputReference 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._granularities !== undefined) {
hasAnyValues = true;
internalValueResult.granularities = this._granularities;
}
if (this._labelColumn !== undefined) {
hasAnyValues = true;
internalValueResult.labelColumn = this._labelColumn;
}
if (this._modelIdColumn !== undefined) {
hasAnyValues = true;
internalValueResult.modelIdColumn = this._modelIdColumn;
}
if (this._predictionColumn !== undefined) {
hasAnyValues = true;
internalValueResult.predictionColumn = this._predictionColumn;
}
if (this._problemType !== undefined) {
hasAnyValues = true;
internalValueResult.problemType = this._problemType;
}
if (this._timestampColumn !== undefined) {
hasAnyValues = true;
internalValueResult.timestampColumn = this._timestampColumn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._granularities = undefined;
this._labelColumn = undefined;
this._modelIdColumn = undefined;
this._predictionColumn = undefined;
this._problemType = undefined;
this._timestampColumn = 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._labelColumn = value.labelColumn;
this._modelIdColumn = value.modelIdColumn;
this._predictionColumn = value.predictionColumn;
this._problemType = value.problemType;
this._timestampColumn = value.timestampColumn;
}
}
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 labelColumn() {
return this.getStringAttribute('label_column');
}
set labelColumn(value) {
this._labelColumn = value;
}
resetLabelColumn() {
this._labelColumn = undefined;
}
// Temporarily expose input value. Use with caution.
get labelColumnInput() {
return this._labelColumn;
}
get modelIdColumn() {
return this.getStringAttribute('model_id_column');
}
set modelIdColumn(value) {
this._modelIdColumn = value;
}
// Temporarily expose input value. Use with caution.
get modelIdColumnInput() {
return this._modelIdColumn;
}
get predictionColumn() {
return this.getStringAttribute('prediction_column');
}
set predictionColumn(value) {
this._predictionColumn = value;
}
// Temporarily expose input value. Use with caution.
get predictionColumnInput() {
return this._predictionColumn;
}
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 timestampColumn() {
return this.getStringAttribute('timestamp_column');
}
set timestampColumn(value) {
this._timestampColumn = value;
}
// Temporarily expose input value. Use with caution.
get timestampColumnInput() {
return this._timestampColumn;
}
}
exports.DataQualityMonitorDataProfilingConfigInferenceLogOutputReference = DataQualityMonitorDataProfilingConfigInferenceLogOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigInferenceLogOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigInferenceLogOutputReference", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToTerraform(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 dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToHclTerraform(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 DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureOutputReference 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._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.DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureOutputReference = DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureOutputReference", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigNotificationSettingsToTerraform(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: dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToTerraform(struct.onFailure),
};
}
function dataQualityMonitorDataProfilingConfigNotificationSettingsToHclTerraform(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: dataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureToHclTerraform(struct.onFailure),
isBlock: true,
type: "struct",
storageClassType: "DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailure",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataQualityMonitorDataProfilingConfigNotificationSettingsOutputReference 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;
// on_failure - computed: false, optional: true, required: false
this._onFailure = new DataQualityMonitorDataProfilingConfigNotificationSettingsOnFailureOutputReference(this, "on_failure");
}
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;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._onFailure.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;
}
}
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;
}
}
exports.DataQualityMonitorDataProfilingConfigNotificationSettingsOutputReference = DataQualityMonitorDataProfilingConfigNotificationSettingsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigNotificationSettingsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigNotificationSettingsOutputReference", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigScheduleToTerraform(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 dataQualityMonitorDataProfilingConfigScheduleToHclTerraform(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 DataQualityMonitorDataProfilingConfigScheduleOutputReference 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._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.DataQualityMonitorDataProfilingConfigScheduleOutputReference = DataQualityMonitorDataProfilingConfigScheduleOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigScheduleOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigScheduleOutputReference", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigSnapshotToTerraform(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 dataQualityMonitorDataProfilingConfigSnapshotToHclTerraform(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 DataQualityMonitorDataProfilingConfigSnapshotOutputReference 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 = {};
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.DataQualityMonitorDataProfilingConfigSnapshotOutputReference = DataQualityMonitorDataProfilingConfigSnapshotOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigSnapshotOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigSnapshotOutputReference", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigTimeSeriesToTerraform(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),
timestamp_column: cdktf.stringToTerraform(struct.timestampColumn),
};
}
function dataQualityMonitorDataProfilingConfigTimeSeriesToHclTerraform(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",
},
timestamp_column: {
value: cdktf.stringToHclTerraform(struct.timestampColumn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataQualityMonitorDataProfilingConfigTimeSeriesOutputReference 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._granularities !== undefined) {
hasAnyValues = true;
internalValueResult.granularities = this._granularities;
}
if (this._timestampColumn !== undefined) {
hasAnyValues = true;
internalValueResult.timestampColumn = this._timestampColumn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._granularities = undefined;
this._timestampColumn = 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._timestampColumn = value.timestampColumn;
}
}
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 timestampColumn() {
return this.getStringAttribute('timestamp_column');
}
set timestampColumn(value) {
this._timestampColumn = value;
}
// Temporarily expose input value. Use with caution.
get timestampColumnInput() {
return this._timestampColumn;
}
}
exports.DataQualityMonitorDataProfilingConfigTimeSeriesOutputReference = DataQualityMonitorDataProfilingConfigTimeSeriesOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataQualityMonitorDataProfilingConfigTimeSeriesOutputReference[_j] = { fqn: "@cdktf/provider-databricks.dataQualityMonitor.DataQualityMonitorDataProfilingConfigTimeSeriesOutputReference", version: "15.16.1" };
function dataQualityMonitorDataProfilingConfigToTerraform(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 {
assets_dir: cdktf.stringToTerraform(struct.assetsDir),
baseline_table_name: cdktf.stringToTerraform(struct.baselineTableName),
custom_metrics: cdktf.listMapper(dataQualityMonitorDataProfilingConfigCustomMetricsToTerraform, false)(struct.customMetrics),
inference_log: dataQualityMonitorDataProfilingConfigInferenceLogToTerraform(struct.inferenceLog),
notification_settings: dataQualityMonitorDataProfilingConfigNotificationSettingsToTerraform(struct.notificationSettings),
output_schema_id: cdktf.stringToTerraform(struct.outputSchemaId),
schedule: dataQualityMonitorDataProfilingConfigScheduleToTerraform(struct.schedule),
skip_builtin_dashboard: cdktf.booleanToTerraform(struct.skipBuiltinDashboard),
slicing_exprs: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.slicingExprs),
snapshot: dataQualityMonitorDataProfilingConfigSnapshotToTerraform(struct.snapshot),
time_series: dataQualityMonitorDataProfilingConfigTimeSeriesToTerraform(struct.timeSeries),
warehouse_id: cdktf.stringToTerraform(struct.warehouseId),
};
}
function dataQualityMonitorDataProfilingConfigToHclTerraform(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 = {
assets_dir: {
value: cdktf.stringToHclTerraform(struct.assetsDir),
isBlock: false,
type: "simple",
storageClassType: "string",
},
baseline_table_name: {
value: cdktf.stringToHclTerraform(struct.baselineTableName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
custom_metrics: {
value: cdktf.listMapperHcl(dataQualityMonitorDataProfilingConfigCustomMetricsToHclTerraform, false)(struct.customMetrics),
isBlock: true,
type: "list",
storageClassType: "DataQualityMonitorDataProfilingConfigCustomMetricsList",
},
inference_log: {
value: dataQualityMonitorDataProfilingConfigInferenceLogToHclTerraform(struct.inferenceLog),
isBlock: true,
type: "struct",
storageClassType: "DataQualityMonitorDataProfilingConfigInferenceLog",
},
notification_settings: {
value: dataQualityMonitorDataProfilingConfigNotificationSettingsToHclTerraform(struct.notificationSettings),
isBlock: true,
type: "struct",
storageClassType: "DataQualityMonitorDataProfilingConfigNotificationSettings",
},
output_schema_id: {
value: cdktf.stringToHclTerraform(struct.outputSchemaId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schedule: {
value: dataQualityMonitorDataProfilingConfigScheduleToHclTerraform(struct.schedule),
isBlock: true,
type: "struct",
storageClassType: "DataQualityMonitorDataProfilingConfigSchedule",
},
skip_builtin_dashboard: {
value: cdktf.booleanToHclTerraform(struct.skipBuiltinDashboard),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
slicing_exprs: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.slicingExprs),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
snapshot: {
value: dataQualityMonitorDataProfilingConfigSnapshotToHclTerraform(struct.snapshot),
isBlock: true,
type: "struct",
storageClassType: "DataQualityMonitorDataProfilingConfigSnapshot",
},
time_series: {
value: dataQualityMonitorDataProfilingConfigTimeSeriesToHclTerraform(struct.timeSeries),
isBlock: true,
type: "struct",
storageClassType: "DataQualityMonitorDataProfilingConfigTimeSeries",
},
warehouse_id: {
value: cdktf.stringToHclTerraform(struct.warehouseId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataQualityMonitorDataProfilingConfigOutputReference 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;
// custom_metrics - computed: false, optional: true, required: false
this._customMetrics = new DataQualityMonitorDataProfilingConfigCustomMetricsList(this, "custom_metrics", false);
// inference_log - computed: false, optional: true, required: false
this._inferenceLog = new DataQualityMonitorDataProfilingConfigInferenceLogOutputReference(this, "inference_log");
// notification_settings - computed: false, optional: true, required: false
this._notificationSettings = new DataQualityMonitorDataProfilingConfigNotificationSettingsOutputReference(this, "notification_settings");
// schedule - computed: false, optional: true, required: false
this._schedule = new DataQualityMonitorDataProfilingConfigScheduleOutputReference(this, "schedule");
// snapshot - computed: false, optional: true, required: false
this._snapshot = new DataQualityMonitorDataProfilingConfigSnapshotOutputReference(this, "snapshot");
// time_series - computed: false, optional: true, required: false
this._timeSeries = new DataQualityMonitorDataProfilingConfigTimeSeriesOutputReference(this, "time_series");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._assetsDir !== undefined) {
hasAnyValues = true;
internalValueResult.assetsDir = this._assetsDir;
}
if (this._baselineTableName !== undefined) {
hasAnyValues = true;
internalValueResult.baselineTableName = this._baselineTableName;
}
if (this._customMetrics?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.customMetrics = this._customMetrics?.internalValue;
}
if (this._inferenceLog?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.inferenceLog = this._inferenceLog?.internalValue;
}
if (this._notificationSettings?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.notificationSettings = this._notificationSettings?.internalValue;
}
if (this._outputSchemaId !== undefined) {
hasAnyValues = true;
internalValueResult.outputSchemaId = this._outputSchemaId;
}
if (this._schedule?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.schedule = this._schedule?.internalValue;
}
if (this._skipBuiltinDashboard !== undefined) {
hasAnyValues = true;
internalValueResult.skipBuiltinDashboard = this._skipBuiltinDashboard;
}
if (this._slicingExprs !== undefined) {
hasAnyValues = true;
internalValueResult.slicingExprs = this._slicingExprs;
}
if (this._snapshot?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.snapshot = this._snapshot?.internalValue;
}
if (this._timeSeries?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.timeSeries = this._timeSeries?.internalValue;
}
if (this._warehouseId !== undefined) {
hasAnyValues = true;
internalValueResult.warehouseId = this._warehouseId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._assetsDir = undefined;
this._baselineTableName = undefined;
this._customMetrics.internalValue = undefined;
this._inferenceLog.internalValue = undefined;
this._notificationSettings.internalValue = undefined;
this._outputSchemaId = undefined;
this._schedule.internalValue = undefined;
this._skipBuiltinDashboard = undefined;
this._slicingExprs = undefined;
this._snapshot.internalValue = undefined;
this._timeSeries.internalValue = undefined;
this._warehouseId = 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._assetsDir = value.assetsDir;
this._baselineTableName = value.baselineTableName;
this._customMetrics.internalValue = value.customMetrics;
this._inferenceLog.internalValue = value.inferenceLog;
this._notificationSettings.internalValue = value.notificationSettings;
this._outputSchemaId = value.outputSchemaId;
this._schedule.in