@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,175 lines • 374 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataDatabricksFunctions = exports.DataDatabricksFunctionsProviderConfigOutputReference = exports.DataDatabricksFunctionsFunctionsList = exports.DataDatabricksFunctionsFunctionsOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesList = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialOutputReference = exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionOutputReference = exports.DataDatabricksFunctionsFunctionsReturnParamsOutputReference = exports.DataDatabricksFunctionsFunctionsReturnParamsParametersList = exports.DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference = exports.DataDatabricksFunctionsFunctionsInputParamsOutputReference = exports.DataDatabricksFunctionsFunctionsInputParamsParametersList = exports.DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference = void 0;
exports.dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform = dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform;
exports.dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform = dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform;
exports.dataDatabricksFunctionsFunctionsInputParamsToTerraform = dataDatabricksFunctionsFunctionsInputParamsToTerraform;
exports.dataDatabricksFunctionsFunctionsInputParamsToHclTerraform = dataDatabricksFunctionsFunctionsInputParamsToHclTerraform;
exports.dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform = dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform;
exports.dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform = dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform;
exports.dataDatabricksFunctionsFunctionsReturnParamsToTerraform = dataDatabricksFunctionsFunctionsReturnParamsToTerraform;
exports.dataDatabricksFunctionsFunctionsReturnParamsToHclTerraform = dataDatabricksFunctionsFunctionsReturnParamsToHclTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionToTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionToHclTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialToTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialToHclTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToHclTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesTableToHclTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesToHclTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesToTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesToTerraform;
exports.dataDatabricksFunctionsFunctionsRoutineDependenciesToHclTerraform = dataDatabricksFunctionsFunctionsRoutineDependenciesToHclTerraform;
exports.dataDatabricksFunctionsFunctionsToTerraform = dataDatabricksFunctionsFunctionsToTerraform;
exports.dataDatabricksFunctionsFunctionsToHclTerraform = dataDatabricksFunctionsFunctionsToHclTerraform;
exports.dataDatabricksFunctionsProviderConfigToTerraform = dataDatabricksFunctionsProviderConfigToTerraform;
exports.dataDatabricksFunctionsProviderConfigToHclTerraform = dataDatabricksFunctionsProviderConfigToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform(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),
parameter_default: cdktf.stringToTerraform(struct.parameterDefault),
parameter_mode: cdktf.stringToTerraform(struct.parameterMode),
parameter_type: cdktf.stringToTerraform(struct.parameterType),
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),
};
}
function dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform(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",
},
parameter_default: {
value: cdktf.stringToHclTerraform(struct.parameterDefault),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parameter_mode: {
value: cdktf.stringToHclTerraform(struct.parameterMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parameter_type: {
value: cdktf.stringToHclTerraform(struct.parameterType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
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",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._comment !== undefined) {
hasAnyValues = true;
internalValueResult.comment = this._comment;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._parameterDefault !== undefined) {
hasAnyValues = true;
internalValueResult.parameterDefault = this._parameterDefault;
}
if (this._parameterMode !== undefined) {
hasAnyValues = true;
internalValueResult.parameterMode = this._parameterMode;
}
if (this._parameterType !== undefined) {
hasAnyValues = true;
internalValueResult.parameterType = this._parameterType;
}
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;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._comment = undefined;
this._name = undefined;
this._parameterDefault = undefined;
this._parameterMode = undefined;
this._parameterType = undefined;
this._position = undefined;
this._typeIntervalType = undefined;
this._typeJson = undefined;
this._typeName = undefined;
this._typePrecision = undefined;
this._typeScale = undefined;
this._typeText = 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._parameterDefault = value.parameterDefault;
this._parameterMode = value.parameterMode;
this._parameterType = value.parameterType;
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;
}
}
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;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get parameterDefault() {
return this.getStringAttribute('parameter_default');
}
set parameterDefault(value) {
this._parameterDefault = value;
}
resetParameterDefault() {
this._parameterDefault = undefined;
}
// Temporarily expose input value. Use with caution.
get parameterDefaultInput() {
return this._parameterDefault;
}
get parameterMode() {
return this.getStringAttribute('parameter_mode');
}
set parameterMode(value) {
this._parameterMode = value;
}
resetParameterMode() {
this._parameterMode = undefined;
}
// Temporarily expose input value. Use with caution.
get parameterModeInput() {
return this._parameterMode;
}
get parameterType() {
return this.getStringAttribute('parameter_type');
}
set parameterType(value) {
this._parameterType = value;
}
resetParameterType() {
this._parameterType = undefined;
}
// Temporarily expose input value. Use with caution.
get parameterTypeInput() {
return this._parameterType;
}
get position() {
return this.getNumberAttribute('position');
}
set position(value) {
this._position = value;
}
// 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;
}
// 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;
}
// Temporarily expose input value. Use with caution.
get typeTextInput() {
return this._typeText;
}
}
exports.DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference = DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference", version: "15.16.1" };
class DataDatabricksFunctionsFunctionsInputParamsParametersList 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 DataDatabricksFunctionsFunctionsInputParamsParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataDatabricksFunctionsFunctionsInputParamsParametersList = DataDatabricksFunctionsFunctionsInputParamsParametersList;
_b = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsInputParamsParametersList[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsInputParamsParametersList", version: "15.16.1" };
function dataDatabricksFunctionsFunctionsInputParamsToTerraform(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 {
parameters: cdktf.listMapper(dataDatabricksFunctionsFunctionsInputParamsParametersToTerraform, false)(struct.parameters),
};
}
function dataDatabricksFunctionsFunctionsInputParamsToHclTerraform(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 = {
parameters: {
value: cdktf.listMapperHcl(dataDatabricksFunctionsFunctionsInputParamsParametersToHclTerraform, false)(struct.parameters),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksFunctionsFunctionsInputParamsParametersList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksFunctionsFunctionsInputParamsOutputReference 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;
// parameters - computed: true, optional: true, required: false
this._parameters = new DataDatabricksFunctionsFunctionsInputParamsParametersList(this, "parameters", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._parameters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.parameters = this._parameters?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._parameters.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._parameters.internalValue = value.parameters;
}
}
get parameters() {
return this._parameters;
}
putParameters(value) {
this._parameters.internalValue = value;
}
resetParameters() {
this._parameters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get parametersInput() {
return this._parameters.internalValue;
}
}
exports.DataDatabricksFunctionsFunctionsInputParamsOutputReference = DataDatabricksFunctionsFunctionsInputParamsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsInputParamsOutputReference[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsInputParamsOutputReference", version: "15.16.1" };
function dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform(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),
parameter_default: cdktf.stringToTerraform(struct.parameterDefault),
parameter_mode: cdktf.stringToTerraform(struct.parameterMode),
parameter_type: cdktf.stringToTerraform(struct.parameterType),
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),
};
}
function dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform(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",
},
parameter_default: {
value: cdktf.stringToHclTerraform(struct.parameterDefault),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parameter_mode: {
value: cdktf.stringToHclTerraform(struct.parameterMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parameter_type: {
value: cdktf.stringToHclTerraform(struct.parameterType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
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",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._comment !== undefined) {
hasAnyValues = true;
internalValueResult.comment = this._comment;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._parameterDefault !== undefined) {
hasAnyValues = true;
internalValueResult.parameterDefault = this._parameterDefault;
}
if (this._parameterMode !== undefined) {
hasAnyValues = true;
internalValueResult.parameterMode = this._parameterMode;
}
if (this._parameterType !== undefined) {
hasAnyValues = true;
internalValueResult.parameterType = this._parameterType;
}
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;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._comment = undefined;
this._name = undefined;
this._parameterDefault = undefined;
this._parameterMode = undefined;
this._parameterType = undefined;
this._position = undefined;
this._typeIntervalType = undefined;
this._typeJson = undefined;
this._typeName = undefined;
this._typePrecision = undefined;
this._typeScale = undefined;
this._typeText = 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._parameterDefault = value.parameterDefault;
this._parameterMode = value.parameterMode;
this._parameterType = value.parameterType;
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;
}
}
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;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get parameterDefault() {
return this.getStringAttribute('parameter_default');
}
set parameterDefault(value) {
this._parameterDefault = value;
}
resetParameterDefault() {
this._parameterDefault = undefined;
}
// Temporarily expose input value. Use with caution.
get parameterDefaultInput() {
return this._parameterDefault;
}
get parameterMode() {
return this.getStringAttribute('parameter_mode');
}
set parameterMode(value) {
this._parameterMode = value;
}
resetParameterMode() {
this._parameterMode = undefined;
}
// Temporarily expose input value. Use with caution.
get parameterModeInput() {
return this._parameterMode;
}
get parameterType() {
return this.getStringAttribute('parameter_type');
}
set parameterType(value) {
this._parameterType = value;
}
resetParameterType() {
this._parameterType = undefined;
}
// Temporarily expose input value. Use with caution.
get parameterTypeInput() {
return this._parameterType;
}
get position() {
return this.getNumberAttribute('position');
}
set position(value) {
this._position = value;
}
// 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;
}
// 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;
}
// Temporarily expose input value. Use with caution.
get typeTextInput() {
return this._typeText;
}
}
exports.DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference = DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference", version: "15.16.1" };
class DataDatabricksFunctionsFunctionsReturnParamsParametersList 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 DataDatabricksFunctionsFunctionsReturnParamsParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataDatabricksFunctionsFunctionsReturnParamsParametersList = DataDatabricksFunctionsFunctionsReturnParamsParametersList;
_e = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsReturnParamsParametersList[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsReturnParamsParametersList", version: "15.16.1" };
function dataDatabricksFunctionsFunctionsReturnParamsToTerraform(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 {
parameters: cdktf.listMapper(dataDatabricksFunctionsFunctionsReturnParamsParametersToTerraform, false)(struct.parameters),
};
}
function dataDatabricksFunctionsFunctionsReturnParamsToHclTerraform(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 = {
parameters: {
value: cdktf.listMapperHcl(dataDatabricksFunctionsFunctionsReturnParamsParametersToHclTerraform, false)(struct.parameters),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksFunctionsFunctionsReturnParamsParametersList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksFunctionsFunctionsReturnParamsOutputReference 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;
// parameters - computed: true, optional: true, required: false
this._parameters = new DataDatabricksFunctionsFunctionsReturnParamsParametersList(this, "parameters", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._parameters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.parameters = this._parameters?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._parameters.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._parameters.internalValue = value.parameters;
}
}
get parameters() {
return this._parameters;
}
putParameters(value) {
this._parameters.internalValue = value;
}
resetParameters() {
this._parameters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get parametersInput() {
return this._parameters.internalValue;
}
}
exports.DataDatabricksFunctionsFunctionsReturnParamsOutputReference = DataDatabricksFunctionsFunctionsReturnParamsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsReturnParamsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsReturnParamsOutputReference", version: "15.16.1" };
function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionToTerraform(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 {
connection_name: cdktf.stringToTerraform(struct.connectionName),
};
}
function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionToHclTerraform(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 = {
connection_name: {
value: cdktf.stringToHclTerraform(struct.connectionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionOutputReference 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._connectionName !== undefined) {
hasAnyValues = true;
internalValueResult.connectionName = this._connectionName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._connectionName = 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._connectionName = value.connectionName;
}
}
get connectionName() {
return this.getStringAttribute('connection_name');
}
set connectionName(value) {
this._connectionName = value;
}
resetConnectionName() {
this._connectionName = undefined;
}
// Temporarily expose input value. Use with caution.
get connectionNameInput() {
return this._connectionName;
}
}
exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionOutputReference = DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesConnectionOutputReference", version: "15.16.1" };
function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialToTerraform(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 {
credential_name: cdktf.stringToTerraform(struct.credentialName),
};
}
function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialToHclTerraform(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 = {
credential_name: {
value: cdktf.stringToHclTerraform(struct.credentialName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialOutputReference 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._credentialName !== undefined) {
hasAnyValues = true;
internalValueResult.credentialName = this._credentialName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._credentialName = 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._credentialName = value.credentialName;
}
}
get credentialName() {
return this.getStringAttribute('credential_name');
}
set credentialName(value) {
this._credentialName = value;
}
resetCredentialName() {
this._credentialName = undefined;
}
// Temporarily expose input value. Use with caution.
get credentialNameInput() {
return this._credentialName;
}
}
exports.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialOutputReference = DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksFunctions.DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesCredentialOutputReference", version: "15.16.1" };
function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToTerraform(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_full_name: cdktf.stringToTerraform(struct.functionFullName),
};
}
function dataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionToHclTerraform(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_full_name: {
value: cdktf.stringToHclTerraform(struct.functionFullName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksFunctionsFunctionsRoutineDependenciesDependenciesFunctionOutputReference 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._functionFullName !== undefined) {
hasAnyValues = true;
internalValueResult.functionFul