UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,275 lines 256 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.App = exports.AppResourcesList = exports.AppResourcesOutputReference = exports.AppResourcesUcSecurableOutputReference = exports.AppResourcesSqlWarehouseOutputReference = exports.AppResourcesServingEndpointOutputReference = exports.AppResourcesSecretOutputReference = exports.AppResourcesJobOutputReference = exports.AppResourcesDatabaseOutputReference = exports.AppPendingDeploymentOutputReference = exports.AppPendingDeploymentStatusOutputReference = exports.AppPendingDeploymentDeploymentArtifactsOutputReference = exports.AppComputeStatusOutputReference = exports.AppAppStatusOutputReference = exports.AppActiveDeploymentOutputReference = exports.AppActiveDeploymentStatusOutputReference = exports.AppActiveDeploymentDeploymentArtifactsOutputReference = void 0; exports.appActiveDeploymentDeploymentArtifactsToTerraform = appActiveDeploymentDeploymentArtifactsToTerraform; exports.appActiveDeploymentDeploymentArtifactsToHclTerraform = appActiveDeploymentDeploymentArtifactsToHclTerraform; exports.appActiveDeploymentStatusToTerraform = appActiveDeploymentStatusToTerraform; exports.appActiveDeploymentStatusToHclTerraform = appActiveDeploymentStatusToHclTerraform; exports.appActiveDeploymentToTerraform = appActiveDeploymentToTerraform; exports.appActiveDeploymentToHclTerraform = appActiveDeploymentToHclTerraform; exports.appAppStatusToTerraform = appAppStatusToTerraform; exports.appAppStatusToHclTerraform = appAppStatusToHclTerraform; exports.appComputeStatusToTerraform = appComputeStatusToTerraform; exports.appComputeStatusToHclTerraform = appComputeStatusToHclTerraform; exports.appPendingDeploymentDeploymentArtifactsToTerraform = appPendingDeploymentDeploymentArtifactsToTerraform; exports.appPendingDeploymentDeploymentArtifactsToHclTerraform = appPendingDeploymentDeploymentArtifactsToHclTerraform; exports.appPendingDeploymentStatusToTerraform = appPendingDeploymentStatusToTerraform; exports.appPendingDeploymentStatusToHclTerraform = appPendingDeploymentStatusToHclTerraform; exports.appPendingDeploymentToTerraform = appPendingDeploymentToTerraform; exports.appPendingDeploymentToHclTerraform = appPendingDeploymentToHclTerraform; exports.appResourcesDatabaseToTerraform = appResourcesDatabaseToTerraform; exports.appResourcesDatabaseToHclTerraform = appResourcesDatabaseToHclTerraform; exports.appResourcesJobToTerraform = appResourcesJobToTerraform; exports.appResourcesJobToHclTerraform = appResourcesJobToHclTerraform; exports.appResourcesSecretToTerraform = appResourcesSecretToTerraform; exports.appResourcesSecretToHclTerraform = appResourcesSecretToHclTerraform; exports.appResourcesServingEndpointToTerraform = appResourcesServingEndpointToTerraform; exports.appResourcesServingEndpointToHclTerraform = appResourcesServingEndpointToHclTerraform; exports.appResourcesSqlWarehouseToTerraform = appResourcesSqlWarehouseToTerraform; exports.appResourcesSqlWarehouseToHclTerraform = appResourcesSqlWarehouseToHclTerraform; exports.appResourcesUcSecurableToTerraform = appResourcesUcSecurableToTerraform; exports.appResourcesUcSecurableToHclTerraform = appResourcesUcSecurableToHclTerraform; exports.appResourcesToTerraform = appResourcesToTerraform; exports.appResourcesToHclTerraform = appResourcesToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function appActiveDeploymentDeploymentArtifactsToTerraform(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 { source_code_path: cdktf.stringToTerraform(struct.sourceCodePath), }; } function appActiveDeploymentDeploymentArtifactsToHclTerraform(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 = { source_code_path: { value: cdktf.stringToHclTerraform(struct.sourceCodePath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppActiveDeploymentDeploymentArtifactsOutputReference 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._sourceCodePath !== undefined) { hasAnyValues = true; internalValueResult.sourceCodePath = this._sourceCodePath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._sourceCodePath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._sourceCodePath = value.sourceCodePath; } } get sourceCodePath() { return this.getStringAttribute('source_code_path'); } set sourceCodePath(value) { this._sourceCodePath = value; } resetSourceCodePath() { this._sourceCodePath = undefined; } // Temporarily expose input value. Use with caution. get sourceCodePathInput() { return this._sourceCodePath; } } exports.AppActiveDeploymentDeploymentArtifactsOutputReference = AppActiveDeploymentDeploymentArtifactsOutputReference; _a = JSII_RTTI_SYMBOL_1; AppActiveDeploymentDeploymentArtifactsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.app.AppActiveDeploymentDeploymentArtifactsOutputReference", version: "15.7.0" }; function appActiveDeploymentStatusToTerraform(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 appActiveDeploymentStatusToHclTerraform(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 AppActiveDeploymentStatusOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.AppActiveDeploymentStatusOutputReference = AppActiveDeploymentStatusOutputReference; _b = JSII_RTTI_SYMBOL_1; AppActiveDeploymentStatusOutputReference[_b] = { fqn: "@cdktf/provider-databricks.app.AppActiveDeploymentStatusOutputReference", version: "15.7.0" }; function appActiveDeploymentToTerraform(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 { deployment_id: cdktf.stringToTerraform(struct.deploymentId), mode: cdktf.stringToTerraform(struct.mode), source_code_path: cdktf.stringToTerraform(struct.sourceCodePath), }; } function appActiveDeploymentToHclTerraform(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 = { deployment_id: { value: cdktf.stringToHclTerraform(struct.deploymentId), isBlock: false, type: "simple", storageClassType: "string", }, mode: { value: cdktf.stringToHclTerraform(struct.mode), isBlock: false, type: "simple", storageClassType: "string", }, source_code_path: { value: cdktf.stringToHclTerraform(struct.sourceCodePath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppActiveDeploymentOutputReference 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; // deployment_artifacts - computed: true, optional: false, required: false this._deploymentArtifacts = new AppActiveDeploymentDeploymentArtifactsOutputReference(this, "deployment_artifacts"); // status - computed: true, optional: false, required: false this._status = new AppActiveDeploymentStatusOutputReference(this, "status"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._deploymentId !== undefined) { hasAnyValues = true; internalValueResult.deploymentId = this._deploymentId; } if (this._mode !== undefined) { hasAnyValues = true; internalValueResult.mode = this._mode; } if (this._sourceCodePath !== undefined) { hasAnyValues = true; internalValueResult.sourceCodePath = this._sourceCodePath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._deploymentId = undefined; this._mode = undefined; this._sourceCodePath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._deploymentId = value.deploymentId; this._mode = value.mode; this._sourceCodePath = value.sourceCodePath; } } // create_time - computed: true, optional: false, required: false get createTime() { return this.getStringAttribute('create_time'); } // creator - computed: true, optional: false, required: false get creator() { return this.getStringAttribute('creator'); } get deploymentArtifacts() { return this._deploymentArtifacts; } get deploymentId() { return this.getStringAttribute('deployment_id'); } set deploymentId(value) { this._deploymentId = value; } resetDeploymentId() { this._deploymentId = undefined; } // Temporarily expose input value. Use with caution. get deploymentIdInput() { return this._deploymentId; } get mode() { return this.getStringAttribute('mode'); } set mode(value) { this._mode = value; } resetMode() { this._mode = undefined; } // Temporarily expose input value. Use with caution. get modeInput() { return this._mode; } get sourceCodePath() { return this.getStringAttribute('source_code_path'); } set sourceCodePath(value) { this._sourceCodePath = value; } resetSourceCodePath() { this._sourceCodePath = undefined; } // Temporarily expose input value. Use with caution. get sourceCodePathInput() { return this._sourceCodePath; } get status() { return this._status; } // update_time - computed: true, optional: false, required: false get updateTime() { return this.getStringAttribute('update_time'); } } exports.AppActiveDeploymentOutputReference = AppActiveDeploymentOutputReference; _c = JSII_RTTI_SYMBOL_1; AppActiveDeploymentOutputReference[_c] = { fqn: "@cdktf/provider-databricks.app.AppActiveDeploymentOutputReference", version: "15.7.0" }; function appAppStatusToTerraform(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 appAppStatusToHclTerraform(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 AppAppStatusOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.AppAppStatusOutputReference = AppAppStatusOutputReference; _d = JSII_RTTI_SYMBOL_1; AppAppStatusOutputReference[_d] = { fqn: "@cdktf/provider-databricks.app.AppAppStatusOutputReference", version: "15.7.0" }; function appComputeStatusToTerraform(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 appComputeStatusToHclTerraform(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 AppComputeStatusOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.AppComputeStatusOutputReference = AppComputeStatusOutputReference; _e = JSII_RTTI_SYMBOL_1; AppComputeStatusOutputReference[_e] = { fqn: "@cdktf/provider-databricks.app.AppComputeStatusOutputReference", version: "15.7.0" }; function appPendingDeploymentDeploymentArtifactsToTerraform(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 { source_code_path: cdktf.stringToTerraform(struct.sourceCodePath), }; } function appPendingDeploymentDeploymentArtifactsToHclTerraform(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 = { source_code_path: { value: cdktf.stringToHclTerraform(struct.sourceCodePath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppPendingDeploymentDeploymentArtifactsOutputReference 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._sourceCodePath !== undefined) { hasAnyValues = true; internalValueResult.sourceCodePath = this._sourceCodePath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._sourceCodePath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._sourceCodePath = value.sourceCodePath; } } get sourceCodePath() { return this.getStringAttribute('source_code_path'); } set sourceCodePath(value) { this._sourceCodePath = value; } resetSourceCodePath() { this._sourceCodePath = undefined; } // Temporarily expose input value. Use with caution. get sourceCodePathInput() { return this._sourceCodePath; } } exports.AppPendingDeploymentDeploymentArtifactsOutputReference = AppPendingDeploymentDeploymentArtifactsOutputReference; _f = JSII_RTTI_SYMBOL_1; AppPendingDeploymentDeploymentArtifactsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.app.AppPendingDeploymentDeploymentArtifactsOutputReference", version: "15.7.0" }; function appPendingDeploymentStatusToTerraform(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 appPendingDeploymentStatusToHclTerraform(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 AppPendingDeploymentStatusOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.AppPendingDeploymentStatusOutputReference = AppPendingDeploymentStatusOutputReference; _g = JSII_RTTI_SYMBOL_1; AppPendingDeploymentStatusOutputReference[_g] = { fqn: "@cdktf/provider-databricks.app.AppPendingDeploymentStatusOutputReference", version: "15.7.0" }; function appPendingDeploymentToTerraform(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 { deployment_id: cdktf.stringToTerraform(struct.deploymentId), mode: cdktf.stringToTerraform(struct.mode), source_code_path: cdktf.stringToTerraform(struct.sourceCodePath), }; } function appPendingDeploymentToHclTerraform(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 = { deployment_id: { value: cdktf.stringToHclTerraform(struct.deploymentId), isBlock: false, type: "simple", storageClassType: "string", }, mode: { value: cdktf.stringToHclTerraform(struct.mode), isBlock: false, type: "simple", storageClassType: "string", }, source_code_path: { value: cdktf.stringToHclTerraform(struct.sourceCodePath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppPendingDeploymentOutputReference 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; // deployment_artifacts - computed: true, optional: false, required: false this._deploymentArtifacts = new AppPendingDeploymentDeploymentArtifactsOutputReference(this, "deployment_artifacts"); // status - computed: true, optional: false, required: false this._status = new AppPendingDeploymentStatusOutputReference(this, "status"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._deploymentId !== undefined) { hasAnyValues = true; internalValueResult.deploymentId = this._deploymentId; } if (this._mode !== undefined) { hasAnyValues = true; internalValueResult.mode = this._mode; } if (this._sourceCodePath !== undefined) { hasAnyValues = true; internalValueResult.sourceCodePath = this._sourceCodePath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._deploymentId = undefined; this._mode = undefined; this._sourceCodePath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._deploymentId = value.deploymentId; this._mode = value.mode; this._sourceCodePath = value.sourceCodePath; } } // create_time - computed: true, optional: false, required: false get createTime() { return this.getStringAttribute('create_time'); } // creator - computed: true, optional: false, required: false get creator() { return this.getStringAttribute('creator'); } get deploymentArtifacts() { return this._deploymentArtifacts; } get deploymentId() { return this.getStringAttribute('deployment_id'); } set deploymentId(value) { this._deploymentId = value; } resetDeploymentId() { this._deploymentId = undefined; } // Temporarily expose input value. Use with caution. get deploymentIdInput() { return this._deploymentId; } get mode() { return this.getStringAttribute('mode'); } set mode(value) { this._mode = value; } resetMode() { this._mode = undefined; } // Temporarily expose input value. Use with caution. get modeInput() { return this._mode; } get sourceCodePath() { return this.getStringAttribute('source_code_path'); } set sourceCodePath(value) { this._sourceCodePath = value; } resetSourceCodePath() { this._sourceCodePath = undefined; } // Temporarily expose input value. Use with caution. get sourceCodePathInput() { return this._sourceCodePath; } get status() { return this._status; } // update_time - computed: true, optional: false, required: false get updateTime() { return this.getStringAttribute('update_time'); } } exports.AppPendingDeploymentOutputReference = AppPendingDeploymentOutputReference; _h = JSII_RTTI_SYMBOL_1; AppPendingDeploymentOutputReference[_h] = { fqn: "@cdktf/provider-databricks.app.AppPendingDeploymentOutputReference", version: "15.7.0" }; function appResourcesDatabaseToTerraform(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 { database_name: cdktf.stringToTerraform(struct.databaseName), instance_name: cdktf.stringToTerraform(struct.instanceName), permission: cdktf.stringToTerraform(struct.permission), }; } function appResourcesDatabaseToHclTerraform(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 = { database_name: { value: cdktf.stringToHclTerraform(struct.databaseName), isBlock: false, type: "simple", storageClassType: "string", }, instance_name: { value: cdktf.stringToHclTerraform(struct.instanceName), isBlock: false, type: "simple", storageClassType: "string", }, permission: { value: cdktf.stringToHclTerraform(struct.permission), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppResourcesDatabaseOutputReference 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._databaseName !== undefined) { hasAnyValues = true; internalValueResult.databaseName = this._databaseName; } if (this._instanceName !== undefined) { hasAnyValues = true; internalValueResult.instanceName = this._instanceName; } if (this._permission !== undefined) { hasAnyValues = true; internalValueResult.permission = this._permission; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._databaseName = undefined; this._instanceName = undefined; this._permission = 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._databaseName = value.databaseName; this._instanceName = value.instanceName; this._permission = value.permission; } } get databaseName() { return this.getStringAttribute('database_name'); } set databaseName(value) { this._databaseName = value; } // Temporarily expose input value. Use with caution. get databaseNameInput() { return this._databaseName; } get instanceName() { return this.getStringAttribute('instance_name'); } set instanceName(value) { this._instanceName = value; } // Temporarily expose input value. Use with caution. get instanceNameInput() { return this._instanceName; } get permission() { return this.getStringAttribute('permission'); } set permission(value) { this._permission = value; } // Temporarily expose input value. Use with caution. get permissionInput() { return this._permission; } } exports.AppResourcesDatabaseOutputReference = AppResourcesDatabaseOutputReference; _j = JSII_RTTI_SYMBOL_1; AppResourcesDatabaseOutputReference[_j] = { fqn: "@cdktf/provider-databricks.app.AppResourcesDatabaseOutputReference", version: "15.7.0" }; function appResourcesJobToTerraform(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 { id: cdktf.stringToTerraform(struct.id), permission: cdktf.stringToTerraform(struct.permission), }; } function appResourcesJobToHclTerraform(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 = { id: { value: cdktf.stringToHclTerraform(struct.id), isBlock: false, type: "simple", storageClassType: "string", }, permission: { value: cdktf.stringToHclTerraform(struct.permission), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppResourcesJobOutputReference 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._id !== undefined) { hasAnyValues = true; internalValueResult.id = this._id; } if (this._permission !== undefined) { hasAnyValues = true; internalValueResult.permission = this._permission; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._id = undefined; this._permission = 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._id = value.id; this._permission = value.permission; } } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get permission() { return this.getStringAttribute('permission'); } set permission(value) { this._permission = value; } // Temporarily expose input value. Use with caution. get permissionInput() { return this._permission; } } exports.AppResourcesJobOutputReference = AppResourcesJobOutputReference; _k = JSII_RTTI_SYMBOL_1; AppResourcesJobOutputReference[_k] = { fqn: "@cdktf/provider-databricks.app.AppResourcesJobOutputReference", version: "15.7.0" }; function appResourcesSecretToTerraform(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 { key: cdktf.stringToTerraform(struct.key), permission: cdktf.stringToTerraform(struct.permission), scope: cdktf.stringToTerraform(struct.scope), }; } function appResourcesSecretToHclTerraform(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 = { key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, permission: { value: cdktf.stringToHclTerraform(struct.permission), isBlock: false, type: "simple", storageClassType: "string", }, scope: { value: cdktf.stringToHclTerraform(struct.scope), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppResourcesSecretOutputReference 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._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._permission !== undefined) { hasAnyValues = true; internalValueResult.permission = this._permission; } if (this._scope !== undefined) { hasAnyValues = true; internalValueResult.scope = this._scope; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._key = undefined; this._permission = undefined; this._scope = 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._key = value.key; this._permission = value.permission; this._scope = value.scope; } } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get permission() { return this.getStringAttribute('permission'); } set permission(value) { this._permission = value; } // Temporarily expose input value. Use with caution. get permissionInput() { return this._permission; } get scope() { return this.getStringAttribute('scope'); } set scope(value) { this._scope = value; } // Temporarily expose input value. Use with caution. get scopeInput() { return this._scope; } } exports.AppResourcesSecretOutputReference = AppResourcesSecretOutputReference; _l = JSII_RTTI_SYMBOL_1; AppResourcesSecretOutputReference[_l] = { fqn: "@cdktf/provider-databricks.app.AppResourcesSecretOutputReference", version: "15.7.0" }; function appResourcesServingEndpointToTerraform(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 { name: cdktf.stringToTerraform(struct.name), permission: cdktf.stringToTerraform(struct.permission), }; } function appResourcesServingEndpointToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, permission: { value: cdktf.stringToHclTerraform(struct.permission), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppResourcesServingEndpointOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._permission !== undefined) { hasAnyValues = true; internalValueResult.permission = this._permission; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._permission = 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._name = value.name; this._permission = value.permission; } } 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 permission() { return this.getStringAttribute('permission'); } set permission(value) { this._permission = value; } // Temporarily expose input value. Use with caution. get permissionInput() { return this._permission; } } exports.AppResourcesServingEndpointOutputReference = AppResourcesServingEndpointOutputReference; _m = JSII_RTTI_SYMBOL_1; AppResourcesServingEndpointOutputReference[_m] = { fqn: "@cdktf/provider-databricks.app.AppResourcesServingEndpointOutputReference", version: "15.7.0" }; function appResourcesSqlWarehouseToTerraform(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 { id: cdktf.stringToTerraform(struct.id), permission: cdktf.stringToTerraform(struct.permission), }; } function appResourcesSqlWarehouseToHclTerraform(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 = { id: { value: cdktf.stringToHclTerraform(struct.id), isBlock: false, type: "simple", storageClassType: "string", }, permission: { value: cdktf.stringToHclTerraform(struct.permission), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppResourcesSqlWarehouseOutputReference 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._id !== undefined) { hasAnyValues = true; internalValueResult.id = this._id; } if (this._permission !== undefined) { hasAnyValues = true; internalValueResult.permission = this._permission; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._id = undefined; this._permission = 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._id = value.id; this._permission = value.permission; } } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get permission() { return this.getStringAttribute('permission'); } set permission(value) { this._permission = value; } // Temporarily expose input value. Use with caution. get permissionInput() { return this._permission; } } exports.AppResourcesSqlWarehouseOutputReference = AppResourcesSqlWarehouseOutputReference; _o = JSII_RTTI_SYMBOL_1; AppResourcesSqlWarehouseOutputReference[_o] = { fqn: "@cdktf/provider-databricks.app.AppResourcesSqlWarehouseOutputReference", version: "15.7.0" }; function appResourcesUcSecurableToTerraform(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 { permission: cdktf.stringToTerraform(struct.permission), securable_full_name: cdktf.stringToTerraform(struct.securableFullName), securable_type: cdktf.stringToTerraform(struct.securableType), }; } function appResourcesUcSecurableToHclTerraform(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 = { permiss