UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,170 lines 218 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataDatabricksAlertsV2 = exports.DataDatabricksAlertsV2AlertsList = exports.DataDatabricksAlertsV2AlertsOutputReference = exports.DataDatabricksAlertsV2AlertsScheduleOutputReference = exports.DataDatabricksAlertsV2AlertsRunAsOutputReference = exports.DataDatabricksAlertsV2AlertsEvaluationOutputReference = exports.DataDatabricksAlertsV2AlertsEvaluationThresholdOutputReference = exports.DataDatabricksAlertsV2AlertsEvaluationThresholdValueOutputReference = exports.DataDatabricksAlertsV2AlertsEvaluationThresholdColumnOutputReference = exports.DataDatabricksAlertsV2AlertsEvaluationSourceOutputReference = exports.DataDatabricksAlertsV2AlertsEvaluationNotificationOutputReference = exports.DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList = exports.DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsOutputReference = exports.DataDatabricksAlertsV2AlertsEffectiveRunAsOutputReference = void 0; exports.dataDatabricksAlertsV2AlertsEffectiveRunAsToTerraform = dataDatabricksAlertsV2AlertsEffectiveRunAsToTerraform; exports.dataDatabricksAlertsV2AlertsEffectiveRunAsToHclTerraform = dataDatabricksAlertsV2AlertsEffectiveRunAsToHclTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToTerraform = dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToHclTerraform = dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToHclTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationNotificationToTerraform = dataDatabricksAlertsV2AlertsEvaluationNotificationToTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationNotificationToHclTerraform = dataDatabricksAlertsV2AlertsEvaluationNotificationToHclTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationSourceToTerraform = dataDatabricksAlertsV2AlertsEvaluationSourceToTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationSourceToHclTerraform = dataDatabricksAlertsV2AlertsEvaluationSourceToHclTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToTerraform = dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToHclTerraform = dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToHclTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationThresholdValueToTerraform = dataDatabricksAlertsV2AlertsEvaluationThresholdValueToTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationThresholdValueToHclTerraform = dataDatabricksAlertsV2AlertsEvaluationThresholdValueToHclTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationThresholdToTerraform = dataDatabricksAlertsV2AlertsEvaluationThresholdToTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationThresholdToHclTerraform = dataDatabricksAlertsV2AlertsEvaluationThresholdToHclTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationToTerraform = dataDatabricksAlertsV2AlertsEvaluationToTerraform; exports.dataDatabricksAlertsV2AlertsEvaluationToHclTerraform = dataDatabricksAlertsV2AlertsEvaluationToHclTerraform; exports.dataDatabricksAlertsV2AlertsRunAsToTerraform = dataDatabricksAlertsV2AlertsRunAsToTerraform; exports.dataDatabricksAlertsV2AlertsRunAsToHclTerraform = dataDatabricksAlertsV2AlertsRunAsToHclTerraform; exports.dataDatabricksAlertsV2AlertsScheduleToTerraform = dataDatabricksAlertsV2AlertsScheduleToTerraform; exports.dataDatabricksAlertsV2AlertsScheduleToHclTerraform = dataDatabricksAlertsV2AlertsScheduleToHclTerraform; exports.dataDatabricksAlertsV2AlertsToTerraform = dataDatabricksAlertsV2AlertsToTerraform; exports.dataDatabricksAlertsV2AlertsToHclTerraform = dataDatabricksAlertsV2AlertsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataDatabricksAlertsV2AlertsEffectiveRunAsToTerraform(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 { service_principal_name: cdktf.stringToTerraform(struct.servicePrincipalName), user_name: cdktf.stringToTerraform(struct.userName), }; } function dataDatabricksAlertsV2AlertsEffectiveRunAsToHclTerraform(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 = { service_principal_name: { value: cdktf.stringToHclTerraform(struct.servicePrincipalName), isBlock: false, type: "simple", storageClassType: "string", }, user_name: { value: cdktf.stringToHclTerraform(struct.userName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEffectiveRunAsOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._servicePrincipalName !== undefined) { hasAnyValues = true; internalValueResult.servicePrincipalName = this._servicePrincipalName; } if (this._userName !== undefined) { hasAnyValues = true; internalValueResult.userName = this._userName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._servicePrincipalName = undefined; this._userName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._servicePrincipalName = value.servicePrincipalName; this._userName = value.userName; } } get servicePrincipalName() { return this.getStringAttribute('service_principal_name'); } set servicePrincipalName(value) { this._servicePrincipalName = value; } resetServicePrincipalName() { this._servicePrincipalName = undefined; } // Temporarily expose input value. Use with caution. get servicePrincipalNameInput() { return this._servicePrincipalName; } get userName() { return this.getStringAttribute('user_name'); } set userName(value) { this._userName = value; } resetUserName() { this._userName = undefined; } // Temporarily expose input value. Use with caution. get userNameInput() { return this._userName; } } exports.DataDatabricksAlertsV2AlertsEffectiveRunAsOutputReference = DataDatabricksAlertsV2AlertsEffectiveRunAsOutputReference; _a = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEffectiveRunAsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEffectiveRunAsOutputReference", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToTerraform(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 { destination_id: cdktf.stringToTerraform(struct.destinationId), user_email: cdktf.stringToTerraform(struct.userEmail), }; } function dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToHclTerraform(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 = { destination_id: { value: cdktf.stringToHclTerraform(struct.destinationId), isBlock: false, type: "simple", storageClassType: "string", }, user_email: { value: cdktf.stringToHclTerraform(struct.userEmail), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsOutputReference 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._destinationId !== undefined) { hasAnyValues = true; internalValueResult.destinationId = this._destinationId; } if (this._userEmail !== undefined) { hasAnyValues = true; internalValueResult.userEmail = this._userEmail; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._destinationId = undefined; this._userEmail = 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._destinationId = value.destinationId; this._userEmail = value.userEmail; } } get destinationId() { return this.getStringAttribute('destination_id'); } set destinationId(value) { this._destinationId = value; } resetDestinationId() { this._destinationId = undefined; } // Temporarily expose input value. Use with caution. get destinationIdInput() { return this._destinationId; } get userEmail() { return this.getStringAttribute('user_email'); } set userEmail(value) { this._userEmail = value; } resetUserEmail() { this._userEmail = undefined; } // Temporarily expose input value. Use with caution. get userEmailInput() { return this._userEmail; } } exports.DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsOutputReference = DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsOutputReference; _b = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsOutputReference", version: "15.16.1" }; class DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList 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 DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList = DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList; _c = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsEvaluationNotificationToTerraform(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 { notify_on_ok: cdktf.booleanToTerraform(struct.notifyOnOk), retrigger_seconds: cdktf.numberToTerraform(struct.retriggerSeconds), subscriptions: cdktf.listMapper(dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToTerraform, false)(struct.subscriptions), }; } function dataDatabricksAlertsV2AlertsEvaluationNotificationToHclTerraform(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 = { notify_on_ok: { value: cdktf.booleanToHclTerraform(struct.notifyOnOk), isBlock: false, type: "simple", storageClassType: "boolean", }, retrigger_seconds: { value: cdktf.numberToHclTerraform(struct.retriggerSeconds), isBlock: false, type: "simple", storageClassType: "number", }, subscriptions: { value: cdktf.listMapperHcl(dataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsToHclTerraform, false)(struct.subscriptions), isBlock: true, type: "set", storageClassType: "DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEvaluationNotificationOutputReference 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; // subscriptions - computed: true, optional: true, required: false this._subscriptions = new DataDatabricksAlertsV2AlertsEvaluationNotificationSubscriptionsList(this, "subscriptions", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._notifyOnOk !== undefined) { hasAnyValues = true; internalValueResult.notifyOnOk = this._notifyOnOk; } if (this._retriggerSeconds !== undefined) { hasAnyValues = true; internalValueResult.retriggerSeconds = this._retriggerSeconds; } if (this._subscriptions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.subscriptions = this._subscriptions?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._notifyOnOk = undefined; this._retriggerSeconds = undefined; this._subscriptions.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._notifyOnOk = value.notifyOnOk; this._retriggerSeconds = value.retriggerSeconds; this._subscriptions.internalValue = value.subscriptions; } } // effective_notify_on_ok - computed: true, optional: false, required: false get effectiveNotifyOnOk() { return this.getBooleanAttribute('effective_notify_on_ok'); } // effective_retrigger_seconds - computed: true, optional: false, required: false get effectiveRetriggerSeconds() { return this.getNumberAttribute('effective_retrigger_seconds'); } get notifyOnOk() { return this.getBooleanAttribute('notify_on_ok'); } set notifyOnOk(value) { this._notifyOnOk = value; } resetNotifyOnOk() { this._notifyOnOk = undefined; } // Temporarily expose input value. Use with caution. get notifyOnOkInput() { return this._notifyOnOk; } get retriggerSeconds() { return this.getNumberAttribute('retrigger_seconds'); } set retriggerSeconds(value) { this._retriggerSeconds = value; } resetRetriggerSeconds() { this._retriggerSeconds = undefined; } // Temporarily expose input value. Use with caution. get retriggerSecondsInput() { return this._retriggerSeconds; } get subscriptions() { return this._subscriptions; } putSubscriptions(value) { this._subscriptions.internalValue = value; } resetSubscriptions() { this._subscriptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. get subscriptionsInput() { return this._subscriptions.internalValue; } } exports.DataDatabricksAlertsV2AlertsEvaluationNotificationOutputReference = DataDatabricksAlertsV2AlertsEvaluationNotificationOutputReference; _d = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationNotificationOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationNotificationOutputReference", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsEvaluationSourceToTerraform(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 { aggregation: cdktf.stringToTerraform(struct.aggregation), display: cdktf.stringToTerraform(struct.display), name: cdktf.stringToTerraform(struct.name), }; } function dataDatabricksAlertsV2AlertsEvaluationSourceToHclTerraform(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 = { aggregation: { value: cdktf.stringToHclTerraform(struct.aggregation), isBlock: false, type: "simple", storageClassType: "string", }, display: { value: cdktf.stringToHclTerraform(struct.display), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEvaluationSourceOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._aggregation !== undefined) { hasAnyValues = true; internalValueResult.aggregation = this._aggregation; } if (this._display !== undefined) { hasAnyValues = true; internalValueResult.display = this._display; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._aggregation = undefined; this._display = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._aggregation = value.aggregation; this._display = value.display; this._name = value.name; } } get aggregation() { return this.getStringAttribute('aggregation'); } set aggregation(value) { this._aggregation = value; } resetAggregation() { this._aggregation = undefined; } // Temporarily expose input value. Use with caution. get aggregationInput() { return this._aggregation; } get display() { return this.getStringAttribute('display'); } set display(value) { this._display = value; } resetDisplay() { this._display = undefined; } // Temporarily expose input value. Use with caution. get displayInput() { return this._display; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.DataDatabricksAlertsV2AlertsEvaluationSourceOutputReference = DataDatabricksAlertsV2AlertsEvaluationSourceOutputReference; _e = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationSourceOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationSourceOutputReference", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToTerraform(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 { aggregation: cdktf.stringToTerraform(struct.aggregation), display: cdktf.stringToTerraform(struct.display), name: cdktf.stringToTerraform(struct.name), }; } function dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToHclTerraform(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 = { aggregation: { value: cdktf.stringToHclTerraform(struct.aggregation), isBlock: false, type: "simple", storageClassType: "string", }, display: { value: cdktf.stringToHclTerraform(struct.display), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEvaluationThresholdColumnOutputReference 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._aggregation !== undefined) { hasAnyValues = true; internalValueResult.aggregation = this._aggregation; } if (this._display !== undefined) { hasAnyValues = true; internalValueResult.display = this._display; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._aggregation = undefined; this._display = undefined; this._name = 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._aggregation = value.aggregation; this._display = value.display; this._name = value.name; } } get aggregation() { return this.getStringAttribute('aggregation'); } set aggregation(value) { this._aggregation = value; } resetAggregation() { this._aggregation = undefined; } // Temporarily expose input value. Use with caution. get aggregationInput() { return this._aggregation; } get display() { return this.getStringAttribute('display'); } set display(value) { this._display = value; } resetDisplay() { this._display = undefined; } // Temporarily expose input value. Use with caution. get displayInput() { return this._display; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.DataDatabricksAlertsV2AlertsEvaluationThresholdColumnOutputReference = DataDatabricksAlertsV2AlertsEvaluationThresholdColumnOutputReference; _f = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationThresholdColumnOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationThresholdColumnOutputReference", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsEvaluationThresholdValueToTerraform(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 { bool_value: cdktf.booleanToTerraform(struct.boolValue), double_value: cdktf.numberToTerraform(struct.doubleValue), string_value: cdktf.stringToTerraform(struct.stringValue), }; } function dataDatabricksAlertsV2AlertsEvaluationThresholdValueToHclTerraform(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 = { bool_value: { value: cdktf.booleanToHclTerraform(struct.boolValue), isBlock: false, type: "simple", storageClassType: "boolean", }, double_value: { value: cdktf.numberToHclTerraform(struct.doubleValue), isBlock: false, type: "simple", storageClassType: "number", }, string_value: { value: cdktf.stringToHclTerraform(struct.stringValue), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEvaluationThresholdValueOutputReference 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._boolValue !== undefined) { hasAnyValues = true; internalValueResult.boolValue = this._boolValue; } if (this._doubleValue !== undefined) { hasAnyValues = true; internalValueResult.doubleValue = this._doubleValue; } if (this._stringValue !== undefined) { hasAnyValues = true; internalValueResult.stringValue = this._stringValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._boolValue = undefined; this._doubleValue = undefined; this._stringValue = 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._boolValue = value.boolValue; this._doubleValue = value.doubleValue; this._stringValue = value.stringValue; } } get boolValue() { return this.getBooleanAttribute('bool_value'); } set boolValue(value) { this._boolValue = value; } resetBoolValue() { this._boolValue = undefined; } // Temporarily expose input value. Use with caution. get boolValueInput() { return this._boolValue; } get doubleValue() { return this.getNumberAttribute('double_value'); } set doubleValue(value) { this._doubleValue = value; } resetDoubleValue() { this._doubleValue = undefined; } // Temporarily expose input value. Use with caution. get doubleValueInput() { return this._doubleValue; } get stringValue() { return this.getStringAttribute('string_value'); } set stringValue(value) { this._stringValue = value; } resetStringValue() { this._stringValue = undefined; } // Temporarily expose input value. Use with caution. get stringValueInput() { return this._stringValue; } } exports.DataDatabricksAlertsV2AlertsEvaluationThresholdValueOutputReference = DataDatabricksAlertsV2AlertsEvaluationThresholdValueOutputReference; _g = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationThresholdValueOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationThresholdValueOutputReference", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsEvaluationThresholdToTerraform(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 { column: dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToTerraform(struct.column), value: dataDatabricksAlertsV2AlertsEvaluationThresholdValueToTerraform(struct.value), }; } function dataDatabricksAlertsV2AlertsEvaluationThresholdToHclTerraform(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 = { column: { value: dataDatabricksAlertsV2AlertsEvaluationThresholdColumnToHclTerraform(struct.column), isBlock: true, type: "struct", storageClassType: "DataDatabricksAlertsV2AlertsEvaluationThresholdColumn", }, value: { value: dataDatabricksAlertsV2AlertsEvaluationThresholdValueToHclTerraform(struct.value), isBlock: true, type: "struct", storageClassType: "DataDatabricksAlertsV2AlertsEvaluationThresholdValue", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEvaluationThresholdOutputReference 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; // column - computed: true, optional: true, required: false this._column = new DataDatabricksAlertsV2AlertsEvaluationThresholdColumnOutputReference(this, "column"); // value - computed: true, optional: true, required: false this._value = new DataDatabricksAlertsV2AlertsEvaluationThresholdValueOutputReference(this, "value"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._column?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.column = this._column?.internalValue; } if (this._value?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.value = this._value?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._column.internalValue = undefined; this._value.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._column.internalValue = value.column; this._value.internalValue = value.value; } } get column() { return this._column; } putColumn(value) { this._column.internalValue = value; } resetColumn() { this._column.internalValue = undefined; } // Temporarily expose input value. Use with caution. get columnInput() { return this._column.internalValue; } get value() { return this._value; } putValue(value) { this._value.internalValue = value; } resetValue() { this._value.internalValue = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value.internalValue; } } exports.DataDatabricksAlertsV2AlertsEvaluationThresholdOutputReference = DataDatabricksAlertsV2AlertsEvaluationThresholdOutputReference; _h = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationThresholdOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationThresholdOutputReference", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsEvaluationToTerraform(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 { comparison_operator: cdktf.stringToTerraform(struct.comparisonOperator), empty_result_state: cdktf.stringToTerraform(struct.emptyResultState), notification: dataDatabricksAlertsV2AlertsEvaluationNotificationToTerraform(struct.notification), source: dataDatabricksAlertsV2AlertsEvaluationSourceToTerraform(struct.source), threshold: dataDatabricksAlertsV2AlertsEvaluationThresholdToTerraform(struct.threshold), }; } function dataDatabricksAlertsV2AlertsEvaluationToHclTerraform(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 = { comparison_operator: { value: cdktf.stringToHclTerraform(struct.comparisonOperator), isBlock: false, type: "simple", storageClassType: "string", }, empty_result_state: { value: cdktf.stringToHclTerraform(struct.emptyResultState), isBlock: false, type: "simple", storageClassType: "string", }, notification: { value: dataDatabricksAlertsV2AlertsEvaluationNotificationToHclTerraform(struct.notification), isBlock: true, type: "struct", storageClassType: "DataDatabricksAlertsV2AlertsEvaluationNotification", }, source: { value: dataDatabricksAlertsV2AlertsEvaluationSourceToHclTerraform(struct.source), isBlock: true, type: "struct", storageClassType: "DataDatabricksAlertsV2AlertsEvaluationSource", }, threshold: { value: dataDatabricksAlertsV2AlertsEvaluationThresholdToHclTerraform(struct.threshold), isBlock: true, type: "struct", storageClassType: "DataDatabricksAlertsV2AlertsEvaluationThreshold", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsEvaluationOutputReference 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; // notification - computed: true, optional: true, required: false this._notification = new DataDatabricksAlertsV2AlertsEvaluationNotificationOutputReference(this, "notification"); // source - computed: true, optional: false, required: true this._source = new DataDatabricksAlertsV2AlertsEvaluationSourceOutputReference(this, "source"); // threshold - computed: true, optional: true, required: false this._threshold = new DataDatabricksAlertsV2AlertsEvaluationThresholdOutputReference(this, "threshold"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._comparisonOperator !== undefined) { hasAnyValues = true; internalValueResult.comparisonOperator = this._comparisonOperator; } if (this._emptyResultState !== undefined) { hasAnyValues = true; internalValueResult.emptyResultState = this._emptyResultState; } if (this._notification?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.notification = this._notification?.internalValue; } if (this._source?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.source = this._source?.internalValue; } if (this._threshold?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.threshold = this._threshold?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._comparisonOperator = undefined; this._emptyResultState = undefined; this._notification.internalValue = undefined; this._source.internalValue = undefined; this._threshold.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._comparisonOperator = value.comparisonOperator; this._emptyResultState = value.emptyResultState; this._notification.internalValue = value.notification; this._source.internalValue = value.source; this._threshold.internalValue = value.threshold; } } get comparisonOperator() { return this.getStringAttribute('comparison_operator'); } set comparisonOperator(value) { this._comparisonOperator = value; } // Temporarily expose input value. Use with caution. get comparisonOperatorInput() { return this._comparisonOperator; } get emptyResultState() { return this.getStringAttribute('empty_result_state'); } set emptyResultState(value) { this._emptyResultState = value; } resetEmptyResultState() { this._emptyResultState = undefined; } // Temporarily expose input value. Use with caution. get emptyResultStateInput() { return this._emptyResultState; } // last_evaluated_at - computed: true, optional: false, required: false get lastEvaluatedAt() { return this.getStringAttribute('last_evaluated_at'); } get notification() { return this._notification; } putNotification(value) { this._notification.internalValue = value; } resetNotification() { this._notification.internalValue = undefined; } // Temporarily expose input value. Use with caution. get notificationInput() { return this._notification.internalValue; } get source() { return this._source; } putSource(value) { this._source.internalValue = value; } // Temporarily expose input value. Use with caution. get sourceInput() { return this._source.internalValue; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } get threshold() { return this._threshold; } putThreshold(value) { this._threshold.internalValue = value; } resetThreshold() { this._threshold.internalValue = undefined; } // Temporarily expose input value. Use with caution. get thresholdInput() { return this._threshold.internalValue; } } exports.DataDatabricksAlertsV2AlertsEvaluationOutputReference = DataDatabricksAlertsV2AlertsEvaluationOutputReference; _j = JSII_RTTI_SYMBOL_1; DataDatabricksAlertsV2AlertsEvaluationOutputReference[_j] = { fqn: "@cdktf/provider-databricks.dataDatabricksAlertsV2.DataDatabricksAlertsV2AlertsEvaluationOutputReference", version: "15.16.1" }; function dataDatabricksAlertsV2AlertsRunAsToTerraform(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 { service_principal_name: cdktf.stringToTerraform(struct.servicePrincipalName), user_name: cdktf.stringToTerraform(struct.userName), }; } function dataDatabricksAlertsV2AlertsRunAsToHclTerraform(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 = { service_principal_name: { value: cdktf.stringToHclTerraform(struct.servicePrincipalName), isBlock: false, type: "simple", storageClassType: "string", }, user_name: { value: cdktf.stringToHclTerraform(struct.userName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksAlertsV2AlertsRunAsOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._servicePrincipalName !== undefined) { hasAnyValues = true; internalValueResult.servicePrincipalName = this._servicePrincipalName; } if (this._userName !== undefined) { hasAnyValues = true; internalValueResult.userName = this._userName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._servicePrincipalName = undefined; this._userName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._servicePrincipalName = value.servicePrincipalName; this._userName = value.userName; } } get servicePrincipalName() { return this.getStringAttribute('service_principal_name'); } set servicePrincipalName(value) { this._servicePrincipalN