UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,191 lines (1,190 loc) 274 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataDatabricksApp = exports.DataDatabricksAppAppOutputReference = exports.DataDatabricksAppAppResourcesList = exports.DataDatabricksAppAppResourcesOutputReference = exports.DataDatabricksAppAppResourcesUcSecurableOutputReference = exports.DataDatabricksAppAppResourcesSqlWarehouseOutputReference = exports.DataDatabricksAppAppResourcesServingEndpointOutputReference = exports.DataDatabricksAppAppResourcesSecretOutputReference = exports.DataDatabricksAppAppResourcesJobOutputReference = exports.DataDatabricksAppAppResourcesDatabaseOutputReference = exports.DataDatabricksAppAppPendingDeploymentOutputReference = exports.DataDatabricksAppAppPendingDeploymentStatusOutputReference = exports.DataDatabricksAppAppPendingDeploymentDeploymentArtifactsOutputReference = exports.DataDatabricksAppAppComputeStatusOutputReference = exports.DataDatabricksAppAppAppStatusOutputReference = exports.DataDatabricksAppAppActiveDeploymentOutputReference = exports.DataDatabricksAppAppActiveDeploymentStatusOutputReference = exports.DataDatabricksAppAppActiveDeploymentDeploymentArtifactsOutputReference = void 0; exports.dataDatabricksAppAppActiveDeploymentDeploymentArtifactsToTerraform = dataDatabricksAppAppActiveDeploymentDeploymentArtifactsToTerraform; exports.dataDatabricksAppAppActiveDeploymentDeploymentArtifactsToHclTerraform = dataDatabricksAppAppActiveDeploymentDeploymentArtifactsToHclTerraform; exports.dataDatabricksAppAppActiveDeploymentStatusToTerraform = dataDatabricksAppAppActiveDeploymentStatusToTerraform; exports.dataDatabricksAppAppActiveDeploymentStatusToHclTerraform = dataDatabricksAppAppActiveDeploymentStatusToHclTerraform; exports.dataDatabricksAppAppActiveDeploymentToTerraform = dataDatabricksAppAppActiveDeploymentToTerraform; exports.dataDatabricksAppAppActiveDeploymentToHclTerraform = dataDatabricksAppAppActiveDeploymentToHclTerraform; exports.dataDatabricksAppAppAppStatusToTerraform = dataDatabricksAppAppAppStatusToTerraform; exports.dataDatabricksAppAppAppStatusToHclTerraform = dataDatabricksAppAppAppStatusToHclTerraform; exports.dataDatabricksAppAppComputeStatusToTerraform = dataDatabricksAppAppComputeStatusToTerraform; exports.dataDatabricksAppAppComputeStatusToHclTerraform = dataDatabricksAppAppComputeStatusToHclTerraform; exports.dataDatabricksAppAppPendingDeploymentDeploymentArtifactsToTerraform = dataDatabricksAppAppPendingDeploymentDeploymentArtifactsToTerraform; exports.dataDatabricksAppAppPendingDeploymentDeploymentArtifactsToHclTerraform = dataDatabricksAppAppPendingDeploymentDeploymentArtifactsToHclTerraform; exports.dataDatabricksAppAppPendingDeploymentStatusToTerraform = dataDatabricksAppAppPendingDeploymentStatusToTerraform; exports.dataDatabricksAppAppPendingDeploymentStatusToHclTerraform = dataDatabricksAppAppPendingDeploymentStatusToHclTerraform; exports.dataDatabricksAppAppPendingDeploymentToTerraform = dataDatabricksAppAppPendingDeploymentToTerraform; exports.dataDatabricksAppAppPendingDeploymentToHclTerraform = dataDatabricksAppAppPendingDeploymentToHclTerraform; exports.dataDatabricksAppAppResourcesDatabaseToTerraform = dataDatabricksAppAppResourcesDatabaseToTerraform; exports.dataDatabricksAppAppResourcesDatabaseToHclTerraform = dataDatabricksAppAppResourcesDatabaseToHclTerraform; exports.dataDatabricksAppAppResourcesJobToTerraform = dataDatabricksAppAppResourcesJobToTerraform; exports.dataDatabricksAppAppResourcesJobToHclTerraform = dataDatabricksAppAppResourcesJobToHclTerraform; exports.dataDatabricksAppAppResourcesSecretToTerraform = dataDatabricksAppAppResourcesSecretToTerraform; exports.dataDatabricksAppAppResourcesSecretToHclTerraform = dataDatabricksAppAppResourcesSecretToHclTerraform; exports.dataDatabricksAppAppResourcesServingEndpointToTerraform = dataDatabricksAppAppResourcesServingEndpointToTerraform; exports.dataDatabricksAppAppResourcesServingEndpointToHclTerraform = dataDatabricksAppAppResourcesServingEndpointToHclTerraform; exports.dataDatabricksAppAppResourcesSqlWarehouseToTerraform = dataDatabricksAppAppResourcesSqlWarehouseToTerraform; exports.dataDatabricksAppAppResourcesSqlWarehouseToHclTerraform = dataDatabricksAppAppResourcesSqlWarehouseToHclTerraform; exports.dataDatabricksAppAppResourcesUcSecurableToTerraform = dataDatabricksAppAppResourcesUcSecurableToTerraform; exports.dataDatabricksAppAppResourcesUcSecurableToHclTerraform = dataDatabricksAppAppResourcesUcSecurableToHclTerraform; exports.dataDatabricksAppAppResourcesToTerraform = dataDatabricksAppAppResourcesToTerraform; exports.dataDatabricksAppAppResourcesToHclTerraform = dataDatabricksAppAppResourcesToHclTerraform; exports.dataDatabricksAppAppToTerraform = dataDatabricksAppAppToTerraform; exports.dataDatabricksAppAppToHclTerraform = dataDatabricksAppAppToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataDatabricksAppAppActiveDeploymentDeploymentArtifactsToTerraform(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 dataDatabricksAppAppActiveDeploymentDeploymentArtifactsToHclTerraform(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 DataDatabricksAppAppActiveDeploymentDeploymentArtifactsOutputReference 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.DataDatabricksAppAppActiveDeploymentDeploymentArtifactsOutputReference = DataDatabricksAppAppActiveDeploymentDeploymentArtifactsOutputReference; _a = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppActiveDeploymentDeploymentArtifactsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppActiveDeploymentDeploymentArtifactsOutputReference", version: "15.7.0" }; function dataDatabricksAppAppActiveDeploymentStatusToTerraform(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 dataDatabricksAppAppActiveDeploymentStatusToHclTerraform(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 DataDatabricksAppAppActiveDeploymentStatusOutputReference 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.DataDatabricksAppAppActiveDeploymentStatusOutputReference = DataDatabricksAppAppActiveDeploymentStatusOutputReference; _b = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppActiveDeploymentStatusOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppActiveDeploymentStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppAppActiveDeploymentToTerraform(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 dataDatabricksAppAppActiveDeploymentToHclTerraform(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 DataDatabricksAppAppActiveDeploymentOutputReference 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 DataDatabricksAppAppActiveDeploymentDeploymentArtifactsOutputReference(this, "deployment_artifacts"); // status - computed: true, optional: false, required: false this._status = new DataDatabricksAppAppActiveDeploymentStatusOutputReference(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.DataDatabricksAppAppActiveDeploymentOutputReference = DataDatabricksAppAppActiveDeploymentOutputReference; _c = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppActiveDeploymentOutputReference[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppActiveDeploymentOutputReference", version: "15.7.0" }; function dataDatabricksAppAppAppStatusToTerraform(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 dataDatabricksAppAppAppStatusToHclTerraform(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 DataDatabricksAppAppAppStatusOutputReference 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.DataDatabricksAppAppAppStatusOutputReference = DataDatabricksAppAppAppStatusOutputReference; _d = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppAppStatusOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppAppStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppAppComputeStatusToTerraform(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 dataDatabricksAppAppComputeStatusToHclTerraform(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 DataDatabricksAppAppComputeStatusOutputReference 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.DataDatabricksAppAppComputeStatusOutputReference = DataDatabricksAppAppComputeStatusOutputReference; _e = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppComputeStatusOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppComputeStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppAppPendingDeploymentDeploymentArtifactsToTerraform(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 dataDatabricksAppAppPendingDeploymentDeploymentArtifactsToHclTerraform(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 DataDatabricksAppAppPendingDeploymentDeploymentArtifactsOutputReference 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.DataDatabricksAppAppPendingDeploymentDeploymentArtifactsOutputReference = DataDatabricksAppAppPendingDeploymentDeploymentArtifactsOutputReference; _f = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppPendingDeploymentDeploymentArtifactsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppPendingDeploymentDeploymentArtifactsOutputReference", version: "15.7.0" }; function dataDatabricksAppAppPendingDeploymentStatusToTerraform(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 dataDatabricksAppAppPendingDeploymentStatusToHclTerraform(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 DataDatabricksAppAppPendingDeploymentStatusOutputReference 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.DataDatabricksAppAppPendingDeploymentStatusOutputReference = DataDatabricksAppAppPendingDeploymentStatusOutputReference; _g = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppPendingDeploymentStatusOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppPendingDeploymentStatusOutputReference", version: "15.7.0" }; function dataDatabricksAppAppPendingDeploymentToTerraform(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 dataDatabricksAppAppPendingDeploymentToHclTerraform(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 DataDatabricksAppAppPendingDeploymentOutputReference 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 DataDatabricksAppAppPendingDeploymentDeploymentArtifactsOutputReference(this, "deployment_artifacts"); // status - computed: true, optional: false, required: false this._status = new DataDatabricksAppAppPendingDeploymentStatusOutputReference(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.DataDatabricksAppAppPendingDeploymentOutputReference = DataDatabricksAppAppPendingDeploymentOutputReference; _h = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppPendingDeploymentOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppPendingDeploymentOutputReference", version: "15.7.0" }; function dataDatabricksAppAppResourcesDatabaseToTerraform(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 dataDatabricksAppAppResourcesDatabaseToHclTerraform(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 DataDatabricksAppAppResourcesDatabaseOutputReference 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.DataDatabricksAppAppResourcesDatabaseOutputReference = DataDatabricksAppAppResourcesDatabaseOutputReference; _j = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppResourcesDatabaseOutputReference[_j] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppResourcesDatabaseOutputReference", version: "15.7.0" }; function dataDatabricksAppAppResourcesJobToTerraform(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 dataDatabricksAppAppResourcesJobToHclTerraform(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 DataDatabricksAppAppResourcesJobOutputReference 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.DataDatabricksAppAppResourcesJobOutputReference = DataDatabricksAppAppResourcesJobOutputReference; _k = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppResourcesJobOutputReference[_k] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppResourcesJobOutputReference", version: "15.7.0" }; function dataDatabricksAppAppResourcesSecretToTerraform(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 dataDatabricksAppAppResourcesSecretToHclTerraform(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 DataDatabricksAppAppResourcesSecretOutputReference 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.DataDatabricksAppAppResourcesSecretOutputReference = DataDatabricksAppAppResourcesSecretOutputReference; _l = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppResourcesSecretOutputReference[_l] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppResourcesSecretOutputReference", version: "15.7.0" }; function dataDatabricksAppAppResourcesServingEndpointToTerraform(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 dataDatabricksAppAppResourcesServingEndpointToHclTerraform(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 DataDatabricksAppAppResourcesServingEndpointOutputReference 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.DataDatabricksAppAppResourcesServingEndpointOutputReference = DataDatabricksAppAppResourcesServingEndpointOutputReference; _m = JSII_RTTI_SYMBOL_1; DataDatabricksAppAppResourcesServingEndpointOutputReference[_m] = { fqn: "@cdktf/provider-databricks.dataDatabricksApp.DataDatabricksAppAppResourcesServingEndpointOutputReference", version: "15.7.0" }; function dataDatabricksAppAppResourcesSqlWarehouseToTerraform(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 dataDatabricksAppAppResourcesSqlWarehouseToHclTerraform(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 DataDatabricksAppAppResourcesSqlWarehouseOutputReference extends cdktf.ComplexObject { /**