UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,187 lines 276 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataDatabricksApps = exports.DataDatabricksAppsAppList = exports.DataDatabricksAppsAppOutputReference = exports.DataDatabricksAppsAppResourcesList = exports.DataDatabricksAppsAppResourcesOutputReference = exports.DataDatabricksAppsAppResourcesUcSecurableOutputReference = exports.DataDatabricksAppsAppResourcesSqlWarehouseOutputReference = exports.DataDatabricksAppsAppResourcesServingEndpointOutputReference = exports.DataDatabricksAppsAppResourcesSecretOutputReference = exports.DataDatabricksAppsAppResourcesJobOutputReference = exports.DataDatabricksAppsAppResourcesDatabaseOutputReference = exports.DataDatabricksAppsAppPendingDeploymentOutputReference = exports.DataDatabricksAppsAppPendingDeploymentStatusOutputReference = exports.DataDatabricksAppsAppPendingDeploymentDeploymentArtifactsOutputReference = exports.DataDatabricksAppsAppComputeStatusOutputReference = exports.DataDatabricksAppsAppAppStatusOutputReference = exports.DataDatabricksAppsAppActiveDeploymentOutputReference = exports.DataDatabricksAppsAppActiveDeploymentStatusOutputReference = exports.DataDatabricksAppsAppActiveDeploymentDeploymentArtifactsOutputReference = void 0; exports.dataDatabricksAppsAppActiveDeploymentDeploymentArtifactsToTerraform = dataDatabricksAppsAppActiveDeploymentDeploymentArtifactsToTerraform; exports.dataDatabricksAppsAppActiveDeploymentDeploymentArtifactsToHclTerraform = dataDatabricksAppsAppActiveDeploymentDeploymentArtifactsToHclTerraform; exports.dataDatabricksAppsAppActiveDeploymentStatusToTerraform = dataDatabricksAppsAppActiveDeploymentStatusToTerraform; exports.dataDatabricksAppsAppActiveDeploymentStatusToHclTerraform = dataDatabricksAppsAppActiveDeploymentStatusToHclTerraform; exports.dataDatabricksAppsAppActiveDeploymentToTerraform = dataDatabricksAppsAppActiveDeploymentToTerraform; exports.dataDatabricksAppsAppActiveDeploymentToHclTerraform = dataDatabricksAppsAppActiveDeploymentToHclTerraform; exports.dataDatabricksAppsAppAppStatusToTerraform = dataDatabricksAppsAppAppStatusToTerraform; exports.dataDatabricksAppsAppAppStatusToHclTerraform = dataDatabricksAppsAppAppStatusToHclTerraform; exports.dataDatabricksAppsAppComputeStatusToTerraform = dataDatabricksAppsAppComputeStatusToTerraform; exports.dataDatabricksAppsAppComputeStatusToHclTerraform = dataDatabricksAppsAppComputeStatusToHclTerraform; exports.dataDatabricksAppsAppPendingDeploymentDeploymentArtifactsToTerraform = dataDatabricksAppsAppPendingDeploymentDeploymentArtifactsToTerraform; exports.dataDatabricksAppsAppPendingDeploymentDeploymentArtifactsToHclTerraform = dataDatabricksAppsAppPendingDeploymentDeploymentArtifactsToHclTerraform; exports.dataDatabricksAppsAppPendingDeploymentStatusToTerraform = dataDatabricksAppsAppPendingDeploymentStatusToTerraform; exports.dataDatabricksAppsAppPendingDeploymentStatusToHclTerraform = dataDatabricksAppsAppPendingDeploymentStatusToHclTerraform; exports.dataDatabricksAppsAppPendingDeploymentToTerraform = dataDatabricksAppsAppPendingDeploymentToTerraform; exports.dataDatabricksAppsAppPendingDeploymentToHclTerraform = dataDatabricksAppsAppPendingDeploymentToHclTerraform; exports.dataDatabricksAppsAppResourcesDatabaseToTerraform = dataDatabricksAppsAppResourcesDatabaseToTerraform; exports.dataDatabricksAppsAppResourcesDatabaseToHclTerraform = dataDatabricksAppsAppResourcesDatabaseToHclTerraform; exports.dataDatabricksAppsAppResourcesJobToTerraform = dataDatabricksAppsAppResourcesJobToTerraform; exports.dataDatabricksAppsAppResourcesJobToHclTerraform = dataDatabricksAppsAppResourcesJobToHclTerraform; exports.dataDatabricksAppsAppResourcesSecretToTerraform = dataDatabricksAppsAppResourcesSecretToTerraform; exports.dataDatabricksAppsAppResourcesSecretToHclTerraform = dataDatabricksAppsAppResourcesSecretToHclTerraform; exports.dataDatabricksAppsAppResourcesServingEndpointToTerraform = dataDatabricksAppsAppResourcesServingEndpointToTerraform; exports.dataDatabricksAppsAppResourcesServingEndpointToHclTerraform = dataDatabricksAppsAppResourcesServingEndpointToHclTerraform; exports.dataDatabricksAppsAppResourcesSqlWarehouseToTerraform = dataDatabricksAppsAppResourcesSqlWarehouseToTerraform; exports.dataDatabricksAppsAppResourcesSqlWarehouseToHclTerraform = dataDatabricksAppsAppResourcesSqlWarehouseToHclTerraform; exports.dataDatabricksAppsAppResourcesUcSecurableToTerraform = dataDatabricksAppsAppResourcesUcSecurableToTerraform; exports.dataDatabricksAppsAppResourcesUcSecurableToHclTerraform = dataDatabricksAppsAppResourcesUcSecurableToHclTerraform; exports.dataDatabricksAppsAppResourcesToTerraform = dataDatabricksAppsAppResourcesToTerraform; exports.dataDatabricksAppsAppResourcesToHclTerraform = dataDatabricksAppsAppResourcesToHclTerraform; exports.dataDatabricksAppsAppToTerraform = dataDatabricksAppsAppToTerraform; exports.dataDatabricksAppsAppToHclTerraform = dataDatabricksAppsAppToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataDatabricksAppsAppActiveDeploymentDeploymentArtifactsToTerraform(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 dataDatabricksAppsAppActiveDeploymentDeploymentArtifactsToHclTerraform(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 DataDatabricksAppsAppActiveDeploymentDeploymentArtifactsOutputReference 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.DataDatabricksAppsAppActiveDeploymentDeploymentArtifactsOutputReference = DataDatabricksAppsAppActiveDeploymentDeploymentArtifactsOutputReference; _a = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppActiveDeploymentDeploymentArtifactsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppActiveDeploymentDeploymentArtifactsOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppActiveDeploymentStatusToTerraform(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 dataDatabricksAppsAppActiveDeploymentStatusToHclTerraform(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 DataDatabricksAppsAppActiveDeploymentStatusOutputReference 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.DataDatabricksAppsAppActiveDeploymentStatusOutputReference = DataDatabricksAppsAppActiveDeploymentStatusOutputReference; _b = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppActiveDeploymentStatusOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppActiveDeploymentStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppActiveDeploymentToTerraform(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 dataDatabricksAppsAppActiveDeploymentToHclTerraform(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 DataDatabricksAppsAppActiveDeploymentOutputReference 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 DataDatabricksAppsAppActiveDeploymentDeploymentArtifactsOutputReference(this, "deployment_artifacts"); // status - computed: true, optional: false, required: false this._status = new DataDatabricksAppsAppActiveDeploymentStatusOutputReference(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.DataDatabricksAppsAppActiveDeploymentOutputReference = DataDatabricksAppsAppActiveDeploymentOutputReference; _c = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppActiveDeploymentOutputReference[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppActiveDeploymentOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppAppStatusToTerraform(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 dataDatabricksAppsAppAppStatusToHclTerraform(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 DataDatabricksAppsAppAppStatusOutputReference 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.DataDatabricksAppsAppAppStatusOutputReference = DataDatabricksAppsAppAppStatusOutputReference; _d = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppAppStatusOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppAppStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppComputeStatusToTerraform(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 dataDatabricksAppsAppComputeStatusToHclTerraform(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 DataDatabricksAppsAppComputeStatusOutputReference 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.DataDatabricksAppsAppComputeStatusOutputReference = DataDatabricksAppsAppComputeStatusOutputReference; _e = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppComputeStatusOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppComputeStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppPendingDeploymentDeploymentArtifactsToTerraform(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 dataDatabricksAppsAppPendingDeploymentDeploymentArtifactsToHclTerraform(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 DataDatabricksAppsAppPendingDeploymentDeploymentArtifactsOutputReference 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.DataDatabricksAppsAppPendingDeploymentDeploymentArtifactsOutputReference = DataDatabricksAppsAppPendingDeploymentDeploymentArtifactsOutputReference; _f = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppPendingDeploymentDeploymentArtifactsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppPendingDeploymentDeploymentArtifactsOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppPendingDeploymentStatusToTerraform(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 dataDatabricksAppsAppPendingDeploymentStatusToHclTerraform(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 DataDatabricksAppsAppPendingDeploymentStatusOutputReference 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.DataDatabricksAppsAppPendingDeploymentStatusOutputReference = DataDatabricksAppsAppPendingDeploymentStatusOutputReference; _g = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppPendingDeploymentStatusOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppPendingDeploymentStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppPendingDeploymentToTerraform(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 dataDatabricksAppsAppPendingDeploymentToHclTerraform(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 DataDatabricksAppsAppPendingDeploymentOutputReference 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 DataDatabricksAppsAppPendingDeploymentDeploymentArtifactsOutputReference(this, "deployment_artifacts"); // status - computed: true, optional: false, required: false this._status = new DataDatabricksAppsAppPendingDeploymentStatusOutputReference(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.DataDatabricksAppsAppPendingDeploymentOutputReference = DataDatabricksAppsAppPendingDeploymentOutputReference; _h = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppPendingDeploymentOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppPendingDeploymentOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppResourcesDatabaseToTerraform(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 dataDatabricksAppsAppResourcesDatabaseToHclTerraform(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 DataDatabricksAppsAppResourcesDatabaseOutputReference 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.DataDatabricksAppsAppResourcesDatabaseOutputReference = DataDatabricksAppsAppResourcesDatabaseOutputReference; _j = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppResourcesDatabaseOutputReference[_j] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppResourcesDatabaseOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppResourcesJobToTerraform(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 dataDatabricksAppsAppResourcesJobToHclTerraform(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 DataDatabricksAppsAppResourcesJobOutputReference 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.DataDatabricksAppsAppResourcesJobOutputReference = DataDatabricksAppsAppResourcesJobOutputReference; _k = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppResourcesJobOutputReference[_k] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppResourcesJobOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppResourcesSecretToTerraform(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 dataDatabricksAppsAppResourcesSecretToHclTerraform(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 DataDatabricksAppsAppResourcesSecretOutputReference 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.DataDatabricksAppsAppResourcesSecretOutputReference = DataDatabricksAppsAppResourcesSecretOutputReference; _l = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppResourcesSecretOutputReference[_l] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppResourcesSecretOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppResourcesServingEndpointToTerraform(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 dataDatabricksAppsAppResourcesServingEndpointToHclTerraform(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 DataDatabricksAppsAppResourcesServingEndpointOutputReference 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.DataDatabricksAppsAppResourcesServingEndpointOutputReference = DataDatabricksAppsAppResourcesServingEndpointOutputReference; _m = JSII_RTTI_SYMBOL_1; DataDatabricksAppsAppResourcesServingEndpointOutputReference[_m] = { fqn: "@cdktf/provider-databricks.dataDatabricksApps.DataDatabricksAppsAppResourcesServingEndpointOutputReference", version: "15.7.0" }; function dataDatabricksAppsAppResourcesSqlWarehouseToTerraform(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 dataDatabricksAppsAppResourcesSqlWarehouseToHclTerraform(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 re