@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,114 lines • 539 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataDatabricksTable = exports.DataDatabricksTableTableInfoOutputReference = exports.DataDatabricksTableTableInfoViewDependenciesOutputReference = exports.DataDatabricksTableTableInfoViewDependenciesDependenciesList = exports.DataDatabricksTableTableInfoViewDependenciesDependenciesOutputReference = exports.DataDatabricksTableTableInfoViewDependenciesDependenciesTableOutputReference = exports.DataDatabricksTableTableInfoViewDependenciesDependenciesFunctionOutputReference = exports.DataDatabricksTableTableInfoViewDependenciesDependenciesCredentialOutputReference = exports.DataDatabricksTableTableInfoViewDependenciesDependenciesConnectionOutputReference = exports.DataDatabricksTableTableInfoTableConstraintsList = exports.DataDatabricksTableTableInfoTableConstraintsOutputReference = exports.DataDatabricksTableTableInfoTableConstraintsPrimaryKeyConstraintOutputReference = exports.DataDatabricksTableTableInfoTableConstraintsNamedTableConstraintOutputReference = exports.DataDatabricksTableTableInfoTableConstraintsForeignKeyConstraintOutputReference = exports.DataDatabricksTableTableInfoSecurableKindManifestOutputReference = exports.DataDatabricksTableTableInfoSecurableKindManifestOptionsList = exports.DataDatabricksTableTableInfoSecurableKindManifestOptionsOutputReference = exports.DataDatabricksTableTableInfoRowFilterOutputReference = exports.DataDatabricksTableTableInfoEncryptionDetailsOutputReference = exports.DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsOutputReference = exports.DataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagOutputReference = exports.DataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsOutputReference = exports.DataDatabricksTableTableInfoColumnsList = exports.DataDatabricksTableTableInfoColumnsOutputReference = exports.DataDatabricksTableTableInfoColumnsMaskOutputReference = void 0;
exports.dataDatabricksTableTableInfoColumnsMaskToTerraform = dataDatabricksTableTableInfoColumnsMaskToTerraform;
exports.dataDatabricksTableTableInfoColumnsMaskToHclTerraform = dataDatabricksTableTableInfoColumnsMaskToHclTerraform;
exports.dataDatabricksTableTableInfoColumnsToTerraform = dataDatabricksTableTableInfoColumnsToTerraform;
exports.dataDatabricksTableTableInfoColumnsToHclTerraform = dataDatabricksTableTableInfoColumnsToHclTerraform;
exports.dataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsToTerraform = dataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsToTerraform;
exports.dataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsToHclTerraform = dataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsToHclTerraform;
exports.dataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagToTerraform = dataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagToTerraform;
exports.dataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagToHclTerraform = dataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagToHclTerraform;
exports.dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToTerraform = dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToTerraform;
exports.dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform = dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform;
exports.dataDatabricksTableTableInfoEncryptionDetailsToTerraform = dataDatabricksTableTableInfoEncryptionDetailsToTerraform;
exports.dataDatabricksTableTableInfoEncryptionDetailsToHclTerraform = dataDatabricksTableTableInfoEncryptionDetailsToHclTerraform;
exports.dataDatabricksTableTableInfoRowFilterToTerraform = dataDatabricksTableTableInfoRowFilterToTerraform;
exports.dataDatabricksTableTableInfoRowFilterToHclTerraform = dataDatabricksTableTableInfoRowFilterToHclTerraform;
exports.dataDatabricksTableTableInfoSecurableKindManifestOptionsToTerraform = dataDatabricksTableTableInfoSecurableKindManifestOptionsToTerraform;
exports.dataDatabricksTableTableInfoSecurableKindManifestOptionsToHclTerraform = dataDatabricksTableTableInfoSecurableKindManifestOptionsToHclTerraform;
exports.dataDatabricksTableTableInfoSecurableKindManifestToTerraform = dataDatabricksTableTableInfoSecurableKindManifestToTerraform;
exports.dataDatabricksTableTableInfoSecurableKindManifestToHclTerraform = dataDatabricksTableTableInfoSecurableKindManifestToHclTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsForeignKeyConstraintToTerraform = dataDatabricksTableTableInfoTableConstraintsForeignKeyConstraintToTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsForeignKeyConstraintToHclTerraform = dataDatabricksTableTableInfoTableConstraintsForeignKeyConstraintToHclTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsNamedTableConstraintToTerraform = dataDatabricksTableTableInfoTableConstraintsNamedTableConstraintToTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsNamedTableConstraintToHclTerraform = dataDatabricksTableTableInfoTableConstraintsNamedTableConstraintToHclTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsPrimaryKeyConstraintToTerraform = dataDatabricksTableTableInfoTableConstraintsPrimaryKeyConstraintToTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsPrimaryKeyConstraintToHclTerraform = dataDatabricksTableTableInfoTableConstraintsPrimaryKeyConstraintToHclTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsToTerraform = dataDatabricksTableTableInfoTableConstraintsToTerraform;
exports.dataDatabricksTableTableInfoTableConstraintsToHclTerraform = dataDatabricksTableTableInfoTableConstraintsToHclTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesConnectionToTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesConnectionToTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesConnectionToHclTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesConnectionToHclTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesCredentialToTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesCredentialToTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesCredentialToHclTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesCredentialToHclTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesFunctionToTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesFunctionToTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesFunctionToHclTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesFunctionToHclTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesTableToTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesTableToTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesTableToHclTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesTableToHclTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesToTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesToTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesDependenciesToHclTerraform = dataDatabricksTableTableInfoViewDependenciesDependenciesToHclTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesToTerraform = dataDatabricksTableTableInfoViewDependenciesToTerraform;
exports.dataDatabricksTableTableInfoViewDependenciesToHclTerraform = dataDatabricksTableTableInfoViewDependenciesToHclTerraform;
exports.dataDatabricksTableTableInfoToTerraform = dataDatabricksTableTableInfoToTerraform;
exports.dataDatabricksTableTableInfoToHclTerraform = dataDatabricksTableTableInfoToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataDatabricksTableTableInfoColumnsMaskToTerraform(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_name: cdktf.stringToTerraform(struct.functionName),
using_column_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.usingColumnNames),
};
}
function dataDatabricksTableTableInfoColumnsMaskToHclTerraform(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 = {
function_name: {
value: cdktf.stringToHclTerraform(struct.functionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
using_column_names: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.usingColumnNames),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksTableTableInfoColumnsMaskOutputReference 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, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._functionName !== undefined) {
hasAnyValues = true;
internalValueResult.functionName = this._functionName;
}
if (this._usingColumnNames !== undefined) {
hasAnyValues = true;
internalValueResult.usingColumnNames = this._usingColumnNames;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._functionName = undefined;
this._usingColumnNames = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._functionName = value.functionName;
this._usingColumnNames = value.usingColumnNames;
}
}
get functionName() {
return this.getStringAttribute('function_name');
}
set functionName(value) {
this._functionName = value;
}
resetFunctionName() {
this._functionName = undefined;
}
// Temporarily expose input value. Use with caution.
get functionNameInput() {
return this._functionName;
}
get usingColumnNames() {
return this.getListAttribute('using_column_names');
}
set usingColumnNames(value) {
this._usingColumnNames = value;
}
resetUsingColumnNames() {
this._usingColumnNames = undefined;
}
// Temporarily expose input value. Use with caution.
get usingColumnNamesInput() {
return this._usingColumnNames;
}
}
exports.DataDatabricksTableTableInfoColumnsMaskOutputReference = DataDatabricksTableTableInfoColumnsMaskOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoColumnsMaskOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoColumnsMaskOutputReference", version: "15.7.0" };
function dataDatabricksTableTableInfoColumnsToTerraform(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 {
comment: cdktf.stringToTerraform(struct.comment),
name: cdktf.stringToTerraform(struct.name),
nullable: cdktf.booleanToTerraform(struct.nullable),
partition_index: cdktf.numberToTerraform(struct.partitionIndex),
position: cdktf.numberToTerraform(struct.position),
type_interval_type: cdktf.stringToTerraform(struct.typeIntervalType),
type_json: cdktf.stringToTerraform(struct.typeJson),
type_name: cdktf.stringToTerraform(struct.typeName),
type_precision: cdktf.numberToTerraform(struct.typePrecision),
type_scale: cdktf.numberToTerraform(struct.typeScale),
type_text: cdktf.stringToTerraform(struct.typeText),
mask: dataDatabricksTableTableInfoColumnsMaskToTerraform(struct.mask),
};
}
function dataDatabricksTableTableInfoColumnsToHclTerraform(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 = {
comment: {
value: cdktf.stringToHclTerraform(struct.comment),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
nullable: {
value: cdktf.booleanToHclTerraform(struct.nullable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
partition_index: {
value: cdktf.numberToHclTerraform(struct.partitionIndex),
isBlock: false,
type: "simple",
storageClassType: "number",
},
position: {
value: cdktf.numberToHclTerraform(struct.position),
isBlock: false,
type: "simple",
storageClassType: "number",
},
type_interval_type: {
value: cdktf.stringToHclTerraform(struct.typeIntervalType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type_json: {
value: cdktf.stringToHclTerraform(struct.typeJson),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type_name: {
value: cdktf.stringToHclTerraform(struct.typeName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type_precision: {
value: cdktf.numberToHclTerraform(struct.typePrecision),
isBlock: false,
type: "simple",
storageClassType: "number",
},
type_scale: {
value: cdktf.numberToHclTerraform(struct.typeScale),
isBlock: false,
type: "simple",
storageClassType: "number",
},
type_text: {
value: cdktf.stringToHclTerraform(struct.typeText),
isBlock: false,
type: "simple",
storageClassType: "string",
},
mask: {
value: dataDatabricksTableTableInfoColumnsMaskToHclTerraform(struct.mask),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksTableTableInfoColumnsMaskList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksTableTableInfoColumnsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// mask - computed: false, optional: true, required: false
this._mask = new DataDatabricksTableTableInfoColumnsMaskOutputReference(this, "mask");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._comment !== undefined) {
hasAnyValues = true;
internalValueResult.comment = this._comment;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._nullable !== undefined) {
hasAnyValues = true;
internalValueResult.nullable = this._nullable;
}
if (this._partitionIndex !== undefined) {
hasAnyValues = true;
internalValueResult.partitionIndex = this._partitionIndex;
}
if (this._position !== undefined) {
hasAnyValues = true;
internalValueResult.position = this._position;
}
if (this._typeIntervalType !== undefined) {
hasAnyValues = true;
internalValueResult.typeIntervalType = this._typeIntervalType;
}
if (this._typeJson !== undefined) {
hasAnyValues = true;
internalValueResult.typeJson = this._typeJson;
}
if (this._typeName !== undefined) {
hasAnyValues = true;
internalValueResult.typeName = this._typeName;
}
if (this._typePrecision !== undefined) {
hasAnyValues = true;
internalValueResult.typePrecision = this._typePrecision;
}
if (this._typeScale !== undefined) {
hasAnyValues = true;
internalValueResult.typeScale = this._typeScale;
}
if (this._typeText !== undefined) {
hasAnyValues = true;
internalValueResult.typeText = this._typeText;
}
if (this._mask?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.mask = this._mask?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._comment = undefined;
this._name = undefined;
this._nullable = undefined;
this._partitionIndex = undefined;
this._position = undefined;
this._typeIntervalType = undefined;
this._typeJson = undefined;
this._typeName = undefined;
this._typePrecision = undefined;
this._typeScale = undefined;
this._typeText = undefined;
this._mask.internalValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._comment = value.comment;
this._name = value.name;
this._nullable = value.nullable;
this._partitionIndex = value.partitionIndex;
this._position = value.position;
this._typeIntervalType = value.typeIntervalType;
this._typeJson = value.typeJson;
this._typeName = value.typeName;
this._typePrecision = value.typePrecision;
this._typeScale = value.typeScale;
this._typeText = value.typeText;
this._mask.internalValue = value.mask;
}
}
get comment() {
return this.getStringAttribute('comment');
}
set comment(value) {
this._comment = value;
}
resetComment() {
this._comment = undefined;
}
// Temporarily expose input value. Use with caution.
get commentInput() {
return this._comment;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get nullable() {
return this.getBooleanAttribute('nullable');
}
set nullable(value) {
this._nullable = value;
}
resetNullable() {
this._nullable = undefined;
}
// Temporarily expose input value. Use with caution.
get nullableInput() {
return this._nullable;
}
get partitionIndex() {
return this.getNumberAttribute('partition_index');
}
set partitionIndex(value) {
this._partitionIndex = value;
}
resetPartitionIndex() {
this._partitionIndex = undefined;
}
// Temporarily expose input value. Use with caution.
get partitionIndexInput() {
return this._partitionIndex;
}
get position() {
return this.getNumberAttribute('position');
}
set position(value) {
this._position = value;
}
resetPosition() {
this._position = undefined;
}
// Temporarily expose input value. Use with caution.
get positionInput() {
return this._position;
}
get typeIntervalType() {
return this.getStringAttribute('type_interval_type');
}
set typeIntervalType(value) {
this._typeIntervalType = value;
}
resetTypeIntervalType() {
this._typeIntervalType = undefined;
}
// Temporarily expose input value. Use with caution.
get typeIntervalTypeInput() {
return this._typeIntervalType;
}
get typeJson() {
return this.getStringAttribute('type_json');
}
set typeJson(value) {
this._typeJson = value;
}
resetTypeJson() {
this._typeJson = undefined;
}
// Temporarily expose input value. Use with caution.
get typeJsonInput() {
return this._typeJson;
}
get typeName() {
return this.getStringAttribute('type_name');
}
set typeName(value) {
this._typeName = value;
}
resetTypeName() {
this._typeName = undefined;
}
// Temporarily expose input value. Use with caution.
get typeNameInput() {
return this._typeName;
}
get typePrecision() {
return this.getNumberAttribute('type_precision');
}
set typePrecision(value) {
this._typePrecision = value;
}
resetTypePrecision() {
this._typePrecision = undefined;
}
// Temporarily expose input value. Use with caution.
get typePrecisionInput() {
return this._typePrecision;
}
get typeScale() {
return this.getNumberAttribute('type_scale');
}
set typeScale(value) {
this._typeScale = value;
}
resetTypeScale() {
this._typeScale = undefined;
}
// Temporarily expose input value. Use with caution.
get typeScaleInput() {
return this._typeScale;
}
get typeText() {
return this.getStringAttribute('type_text');
}
set typeText(value) {
this._typeText = value;
}
resetTypeText() {
this._typeText = undefined;
}
// Temporarily expose input value. Use with caution.
get typeTextInput() {
return this._typeText;
}
get mask() {
return this._mask;
}
putMask(value) {
this._mask.internalValue = value;
}
resetMask() {
this._mask.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get maskInput() {
return this._mask.internalValue;
}
}
exports.DataDatabricksTableTableInfoColumnsOutputReference = DataDatabricksTableTableInfoColumnsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoColumnsOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoColumnsOutputReference", version: "15.7.0" };
class DataDatabricksTableTableInfoColumnsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new DataDatabricksTableTableInfoColumnsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataDatabricksTableTableInfoColumnsList = DataDatabricksTableTableInfoColumnsList;
_c = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoColumnsList[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoColumnsList", version: "15.7.0" };
function dataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsToTerraform(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 {
delta_runtime_properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.deltaRuntimeProperties),
};
}
function dataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsToHclTerraform(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 = {
delta_runtime_properties: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.deltaRuntimeProperties),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsOutputReference 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, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._deltaRuntimeProperties !== undefined) {
hasAnyValues = true;
internalValueResult.deltaRuntimeProperties = this._deltaRuntimeProperties;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._deltaRuntimeProperties = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._deltaRuntimeProperties = value.deltaRuntimeProperties;
}
}
get deltaRuntimeProperties() {
return this.getStringMapAttribute('delta_runtime_properties');
}
set deltaRuntimeProperties(value) {
this._deltaRuntimeProperties = value;
}
// Temporarily expose input value. Use with caution.
get deltaRuntimePropertiesInput() {
return this._deltaRuntimeProperties;
}
}
exports.DataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsOutputReference = DataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoDeltaRuntimePropertiesKvpairsOutputReference", version: "15.7.0" };
function dataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagToTerraform(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 {
inherited_from_name: cdktf.stringToTerraform(struct.inheritedFromName),
inherited_from_type: cdktf.stringToTerraform(struct.inheritedFromType),
value: cdktf.stringToTerraform(struct.value),
};
}
function dataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagToHclTerraform(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 = {
inherited_from_name: {
value: cdktf.stringToHclTerraform(struct.inheritedFromName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
inherited_from_type: {
value: cdktf.stringToHclTerraform(struct.inheritedFromType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagOutputReference 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, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._inheritedFromName !== undefined) {
hasAnyValues = true;
internalValueResult.inheritedFromName = this._inheritedFromName;
}
if (this._inheritedFromType !== undefined) {
hasAnyValues = true;
internalValueResult.inheritedFromType = this._inheritedFromType;
}
if (this._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._inheritedFromName = undefined;
this._inheritedFromType = undefined;
this._value = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._inheritedFromName = value.inheritedFromName;
this._inheritedFromType = value.inheritedFromType;
this._value = value.value;
}
}
get inheritedFromName() {
return this.getStringAttribute('inherited_from_name');
}
set inheritedFromName(value) {
this._inheritedFromName = value;
}
resetInheritedFromName() {
this._inheritedFromName = undefined;
}
// Temporarily expose input value. Use with caution.
get inheritedFromNameInput() {
return this._inheritedFromName;
}
get inheritedFromType() {
return this.getStringAttribute('inherited_from_type');
}
set inheritedFromType(value) {
this._inheritedFromType = value;
}
resetInheritedFromType() {
this._inheritedFromType = undefined;
}
// Temporarily expose input value. Use with caution.
get inheritedFromTypeInput() {
return this._inheritedFromType;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.DataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagOutputReference = DataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoEffectivePredictiveOptimizationFlagOutputReference", version: "15.7.0" };
function dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToTerraform(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 {
algorithm: cdktf.stringToTerraform(struct.algorithm),
aws_kms_key_arn: cdktf.stringToTerraform(struct.awsKmsKeyArn),
};
}
function dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform(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 = {
algorithm: {
value: cdktf.stringToHclTerraform(struct.algorithm),
isBlock: false,
type: "simple",
storageClassType: "string",
},
aws_kms_key_arn: {
value: cdktf.stringToHclTerraform(struct.awsKmsKeyArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsOutputReference 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, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._algorithm !== undefined) {
hasAnyValues = true;
internalValueResult.algorithm = this._algorithm;
}
if (this._awsKmsKeyArn !== undefined) {
hasAnyValues = true;
internalValueResult.awsKmsKeyArn = this._awsKmsKeyArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._algorithm = undefined;
this._awsKmsKeyArn = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._algorithm = value.algorithm;
this._awsKmsKeyArn = value.awsKmsKeyArn;
}
}
get algorithm() {
return this.getStringAttribute('algorithm');
}
set algorithm(value) {
this._algorithm = value;
}
resetAlgorithm() {
this._algorithm = undefined;
}
// Temporarily expose input value. Use with caution.
get algorithmInput() {
return this._algorithm;
}
get awsKmsKeyArn() {
return this.getStringAttribute('aws_kms_key_arn');
}
set awsKmsKeyArn(value) {
this._awsKmsKeyArn = value;
}
resetAwsKmsKeyArn() {
this._awsKmsKeyArn = undefined;
}
// Temporarily expose input value. Use with caution.
get awsKmsKeyArnInput() {
return this._awsKmsKeyArn;
}
}
exports.DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsOutputReference = DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsOutputReference", version: "15.7.0" };
function dataDatabricksTableTableInfoEncryptionDetailsToTerraform(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 {
sse_encryption_details: dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToTerraform(struct.sseEncryptionDetails),
};
}
function dataDatabricksTableTableInfoEncryptionDetailsToHclTerraform(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 = {
sse_encryption_details: {
value: dataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform(struct.sseEncryptionDetails),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksTableTableInfoEncryptionDetailsOutputReference 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, 0);
this.isEmptyObject = false;
// sse_encryption_details - computed: false, optional: true, required: false
this._sseEncryptionDetails = new DataDatabricksTableTableInfoEncryptionDetailsSseEncryptionDetailsOutputReference(this, "sse_encryption_details");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._sseEncryptionDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.sseEncryptionDetails = this._sseEncryptionDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._sseEncryptionDetails.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._sseEncryptionDetails.internalValue = value.sseEncryptionDetails;
}
}
get sseEncryptionDetails() {
return this._sseEncryptionDetails;
}
putSseEncryptionDetails(value) {
this._sseEncryptionDetails.internalValue = value;
}
resetSseEncryptionDetails() {
this._sseEncryptionDetails.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get sseEncryptionDetailsInput() {
return this._sseEncryptionDetails.internalValue;
}
}
exports.DataDatabricksTableTableInfoEncryptionDetailsOutputReference = DataDatabricksTableTableInfoEncryptionDetailsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoEncryptionDetailsOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoEncryptionDetailsOutputReference", version: "15.7.0" };
function dataDatabricksTableTableInfoRowFilterToTerraform(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_name: cdktf.stringToTerraform(struct.functionName),
input_column_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.inputColumnNames),
};
}
function dataDatabricksTableTableInfoRowFilterToHclTerraform(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 = {
function_name: {
value: cdktf.stringToHclTerraform(struct.functionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
input_column_names: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.inputColumnNames),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksTableTableInfoRowFilterOutputReference 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, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._functionName !== undefined) {
hasAnyValues = true;
internalValueResult.functionName = this._functionName;
}
if (this._inputColumnNames !== undefined) {
hasAnyValues = true;
internalValueResult.inputColumnNames = this._inputColumnNames;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._functionName = undefined;
this._inputColumnNames = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._functionName = value.functionName;
this._inputColumnNames = value.inputColumnNames;
}
}
get functionName() {
return this.getStringAttribute('function_name');
}
set functionName(value) {
this._functionName = value;
}
// Temporarily expose input value. Use with caution.
get functionNameInput() {
return this._functionName;
}
get inputColumnNames() {
return this.getListAttribute('input_column_names');
}
set inputColumnNames(value) {
this._inputColumnNames = value;
}
// Temporarily expose input value. Use with caution.
get inputColumnNamesInput() {
return this._inputColumnNames;
}
}
exports.DataDatabricksTableTableInfoRowFilterOutputReference = DataDatabricksTableTableInfoRowFilterOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DataDatabricksTableTableInfoRowFilterOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksTable.DataDatabricksTableTableInfoRowFilterOutputReference", version: "15.7.0" };
function dataDatabricksTableTableInfoSecurableKindManifestOptionsToTerraform(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 {
allowed_values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedValues),
default_value: cdktf.stringToTerraform(struct.defaultValue),
description: cdktf.stringToTerraform(struct.description),
hint: cdktf.stringToTerraform(struct.hint),
is_copiable: cdktf.booleanToTerraform(struct.isCopiable),
is_creatable: cdktf.booleanToTerraform(struct.isCreatable),
is_hidden: cdktf.booleanToTerraform(struct.isHidden),
is_loggable: cdktf.booleanToTerraform(struct.isLoggable),
is_required: cdktf.booleanToTerraform(struct.isRequired),
is_secret: cdktf.booleanToTerraform(struct.isSecret),
is_updatable: cdktf.booleanToTerraform(struct.isUpdatable),
name: cdktf.stringToTerraform(struct.name),
oauth_stage: cdktf.stringToTerraform(struct.oauthStage),
type: cdktf.stringToTerraform(struct.type),
};
}
function dataDatabricksTableTableInfoSecurableKindManifestOptionsToHclTerraform(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 = {
allowed_values: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedValues),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
default_value: {
value: cdktf.stringToHclTerraform(struct.defaultValue),
isBlock: false,
type: "simple",
storageClassType: "string",
},
description: {
value: cdktf.stringToHclTerraform(struct.description),
isBlock: false,
type: "simple",
storageClassType: "string",
},
hint: {
value: cdktf.stringToHclTerraform(struct.hint),
isBlock: false,
type: "simple",
storageClassType: "string",
},
is_copiable: {
value: cdktf.booleanToHclTerraform(struct.isCopiable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_creatable: {
value: cdktf.booleanToHclTerraform(struct.isCreatable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_hidden: {
value: cdktf.booleanToHclTerraform(struct.isHidden),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_loggable: {
value: cdktf.booleanToHclTerraform(struct.isLoggable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_required: {
value: cdktf.booleanToHclTerraform(struct.isRequired),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_secret: {
value: cdktf.booleanToHclTerraform(struct.isSecret),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_updatable: {
value: cdktf.booleanToHclTerraform(struct.isUpdatable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
oauth_stage: {
value: cdktf.stringToHclTerraform(struct.oauthStage),
isBlock: false,
type: "simple",
storageClassType: "strin