UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,337 lines (1,336 loc) 193 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataDatabricksUsers = exports.DataDatabricksUsersUsersList = exports.DataDatabricksUsersUsersOutputReference = exports.DataDatabricksUsersUsersRolesList = exports.DataDatabricksUsersUsersRolesOutputReference = exports.DataDatabricksUsersUsersNameOutputReference = exports.DataDatabricksUsersUsersGroupsList = exports.DataDatabricksUsersUsersGroupsOutputReference = exports.DataDatabricksUsersUsersEntitlementsList = exports.DataDatabricksUsersUsersEntitlementsOutputReference = exports.DataDatabricksUsersUsersEmailsList = exports.DataDatabricksUsersUsersEmailsOutputReference = void 0; exports.dataDatabricksUsersUsersEmailsToTerraform = dataDatabricksUsersUsersEmailsToTerraform; exports.dataDatabricksUsersUsersEmailsToHclTerraform = dataDatabricksUsersUsersEmailsToHclTerraform; exports.dataDatabricksUsersUsersEntitlementsToTerraform = dataDatabricksUsersUsersEntitlementsToTerraform; exports.dataDatabricksUsersUsersEntitlementsToHclTerraform = dataDatabricksUsersUsersEntitlementsToHclTerraform; exports.dataDatabricksUsersUsersGroupsToTerraform = dataDatabricksUsersUsersGroupsToTerraform; exports.dataDatabricksUsersUsersGroupsToHclTerraform = dataDatabricksUsersUsersGroupsToHclTerraform; exports.dataDatabricksUsersUsersNameToTerraform = dataDatabricksUsersUsersNameToTerraform; exports.dataDatabricksUsersUsersNameToHclTerraform = dataDatabricksUsersUsersNameToHclTerraform; exports.dataDatabricksUsersUsersRolesToTerraform = dataDatabricksUsersUsersRolesToTerraform; exports.dataDatabricksUsersUsersRolesToHclTerraform = dataDatabricksUsersUsersRolesToHclTerraform; exports.dataDatabricksUsersUsersToTerraform = dataDatabricksUsersUsersToTerraform; exports.dataDatabricksUsersUsersToHclTerraform = dataDatabricksUsersUsersToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataDatabricksUsersUsersEmailsToTerraform(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 { display: cdktf.stringToTerraform(struct.display), primary: cdktf.booleanToTerraform(struct.primary), ref: cdktf.stringToTerraform(struct.ref), type: cdktf.stringToTerraform(struct.type), value: cdktf.stringToTerraform(struct.value), }; } function dataDatabricksUsersUsersEmailsToHclTerraform(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 = { display: { value: cdktf.stringToHclTerraform(struct.display), isBlock: false, type: "simple", storageClassType: "string", }, primary: { value: cdktf.booleanToHclTerraform(struct.primary), isBlock: false, type: "simple", storageClassType: "boolean", }, ref: { value: cdktf.stringToHclTerraform(struct.ref), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), 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 DataDatabricksUsersUsersEmailsOutputReference 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._display !== undefined) { hasAnyValues = true; internalValueResult.display = this._display; } if (this._primary !== undefined) { hasAnyValues = true; internalValueResult.primary = this._primary; } if (this._ref !== undefined) { hasAnyValues = true; internalValueResult.ref = this._ref; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._display = undefined; this._primary = undefined; this._ref = undefined; this._type = undefined; this._value = 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._display = value.display; this._primary = value.primary; this._ref = value.ref; this._type = value.type; this._value = value.value; } } get display() { return this.getStringAttribute('display'); } set display(value) { this._display = value; } resetDisplay() { this._display = undefined; } // Temporarily expose input value. Use with caution. get displayInput() { return this._display; } get primary() { return this.getBooleanAttribute('primary'); } set primary(value) { this._primary = value; } resetPrimary() { this._primary = undefined; } // Temporarily expose input value. Use with caution. get primaryInput() { return this._primary; } get ref() { return this.getStringAttribute('ref'); } set ref(value) { this._ref = value; } resetRef() { this._ref = undefined; } // Temporarily expose input value. Use with caution. get refInput() { return this._ref; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.DataDatabricksUsersUsersEmailsOutputReference = DataDatabricksUsersUsersEmailsOutputReference; _a = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersEmailsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersEmailsOutputReference", version: "15.16.1" }; class DataDatabricksUsersUsersEmailsList 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 DataDatabricksUsersUsersEmailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksUsersUsersEmailsList = DataDatabricksUsersUsersEmailsList; _b = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersEmailsList[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersEmailsList", version: "15.16.1" }; function dataDatabricksUsersUsersEntitlementsToTerraform(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 { display: cdktf.stringToTerraform(struct.display), primary: cdktf.booleanToTerraform(struct.primary), ref: cdktf.stringToTerraform(struct.ref), type: cdktf.stringToTerraform(struct.type), value: cdktf.stringToTerraform(struct.value), }; } function dataDatabricksUsersUsersEntitlementsToHclTerraform(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 = { display: { value: cdktf.stringToHclTerraform(struct.display), isBlock: false, type: "simple", storageClassType: "string", }, primary: { value: cdktf.booleanToHclTerraform(struct.primary), isBlock: false, type: "simple", storageClassType: "boolean", }, ref: { value: cdktf.stringToHclTerraform(struct.ref), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), 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 DataDatabricksUsersUsersEntitlementsOutputReference 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._display !== undefined) { hasAnyValues = true; internalValueResult.display = this._display; } if (this._primary !== undefined) { hasAnyValues = true; internalValueResult.primary = this._primary; } if (this._ref !== undefined) { hasAnyValues = true; internalValueResult.ref = this._ref; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._display = undefined; this._primary = undefined; this._ref = undefined; this._type = undefined; this._value = 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._display = value.display; this._primary = value.primary; this._ref = value.ref; this._type = value.type; this._value = value.value; } } get display() { return this.getStringAttribute('display'); } set display(value) { this._display = value; } resetDisplay() { this._display = undefined; } // Temporarily expose input value. Use with caution. get displayInput() { return this._display; } get primary() { return this.getBooleanAttribute('primary'); } set primary(value) { this._primary = value; } resetPrimary() { this._primary = undefined; } // Temporarily expose input value. Use with caution. get primaryInput() { return this._primary; } get ref() { return this.getStringAttribute('ref'); } set ref(value) { this._ref = value; } resetRef() { this._ref = undefined; } // Temporarily expose input value. Use with caution. get refInput() { return this._ref; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.DataDatabricksUsersUsersEntitlementsOutputReference = DataDatabricksUsersUsersEntitlementsOutputReference; _c = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersEntitlementsOutputReference[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersEntitlementsOutputReference", version: "15.16.1" }; class DataDatabricksUsersUsersEntitlementsList 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 DataDatabricksUsersUsersEntitlementsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksUsersUsersEntitlementsList = DataDatabricksUsersUsersEntitlementsList; _d = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersEntitlementsList[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersEntitlementsList", version: "15.16.1" }; function dataDatabricksUsersUsersGroupsToTerraform(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 { display: cdktf.stringToTerraform(struct.display), primary: cdktf.booleanToTerraform(struct.primary), ref: cdktf.stringToTerraform(struct.ref), type: cdktf.stringToTerraform(struct.type), value: cdktf.stringToTerraform(struct.value), }; } function dataDatabricksUsersUsersGroupsToHclTerraform(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 = { display: { value: cdktf.stringToHclTerraform(struct.display), isBlock: false, type: "simple", storageClassType: "string", }, primary: { value: cdktf.booleanToHclTerraform(struct.primary), isBlock: false, type: "simple", storageClassType: "boolean", }, ref: { value: cdktf.stringToHclTerraform(struct.ref), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), 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 DataDatabricksUsersUsersGroupsOutputReference 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._display !== undefined) { hasAnyValues = true; internalValueResult.display = this._display; } if (this._primary !== undefined) { hasAnyValues = true; internalValueResult.primary = this._primary; } if (this._ref !== undefined) { hasAnyValues = true; internalValueResult.ref = this._ref; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._display = undefined; this._primary = undefined; this._ref = undefined; this._type = undefined; this._value = 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._display = value.display; this._primary = value.primary; this._ref = value.ref; this._type = value.type; this._value = value.value; } } get display() { return this.getStringAttribute('display'); } set display(value) { this._display = value; } resetDisplay() { this._display = undefined; } // Temporarily expose input value. Use with caution. get displayInput() { return this._display; } get primary() { return this.getBooleanAttribute('primary'); } set primary(value) { this._primary = value; } resetPrimary() { this._primary = undefined; } // Temporarily expose input value. Use with caution. get primaryInput() { return this._primary; } get ref() { return this.getStringAttribute('ref'); } set ref(value) { this._ref = value; } resetRef() { this._ref = undefined; } // Temporarily expose input value. Use with caution. get refInput() { return this._ref; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.DataDatabricksUsersUsersGroupsOutputReference = DataDatabricksUsersUsersGroupsOutputReference; _e = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersGroupsOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersGroupsOutputReference", version: "15.16.1" }; class DataDatabricksUsersUsersGroupsList 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 DataDatabricksUsersUsersGroupsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksUsersUsersGroupsList = DataDatabricksUsersUsersGroupsList; _f = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersGroupsList[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersGroupsList", version: "15.16.1" }; function dataDatabricksUsersUsersNameToTerraform(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 { family_name: cdktf.stringToTerraform(struct.familyName), given_name: cdktf.stringToTerraform(struct.givenName), }; } function dataDatabricksUsersUsersNameToHclTerraform(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 = { family_name: { value: cdktf.stringToHclTerraform(struct.familyName), isBlock: false, type: "simple", storageClassType: "string", }, given_name: { value: cdktf.stringToHclTerraform(struct.givenName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksUsersUsersNameOutputReference 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._familyName !== undefined) { hasAnyValues = true; internalValueResult.familyName = this._familyName; } if (this._givenName !== undefined) { hasAnyValues = true; internalValueResult.givenName = this._givenName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._familyName = undefined; this._givenName = 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._familyName = value.familyName; this._givenName = value.givenName; } } get familyName() { return this.getStringAttribute('family_name'); } set familyName(value) { this._familyName = value; } resetFamilyName() { this._familyName = undefined; } // Temporarily expose input value. Use with caution. get familyNameInput() { return this._familyName; } get givenName() { return this.getStringAttribute('given_name'); } set givenName(value) { this._givenName = value; } resetGivenName() { this._givenName = undefined; } // Temporarily expose input value. Use with caution. get givenNameInput() { return this._givenName; } } exports.DataDatabricksUsersUsersNameOutputReference = DataDatabricksUsersUsersNameOutputReference; _g = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersNameOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersNameOutputReference", version: "15.16.1" }; function dataDatabricksUsersUsersRolesToTerraform(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 { display: cdktf.stringToTerraform(struct.display), primary: cdktf.booleanToTerraform(struct.primary), ref: cdktf.stringToTerraform(struct.ref), type: cdktf.stringToTerraform(struct.type), value: cdktf.stringToTerraform(struct.value), }; } function dataDatabricksUsersUsersRolesToHclTerraform(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 = { display: { value: cdktf.stringToHclTerraform(struct.display), isBlock: false, type: "simple", storageClassType: "string", }, primary: { value: cdktf.booleanToHclTerraform(struct.primary), isBlock: false, type: "simple", storageClassType: "boolean", }, ref: { value: cdktf.stringToHclTerraform(struct.ref), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), 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 DataDatabricksUsersUsersRolesOutputReference 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._display !== undefined) { hasAnyValues = true; internalValueResult.display = this._display; } if (this._primary !== undefined) { hasAnyValues = true; internalValueResult.primary = this._primary; } if (this._ref !== undefined) { hasAnyValues = true; internalValueResult.ref = this._ref; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._display = undefined; this._primary = undefined; this._ref = undefined; this._type = undefined; this._value = 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._display = value.display; this._primary = value.primary; this._ref = value.ref; this._type = value.type; this._value = value.value; } } get display() { return this.getStringAttribute('display'); } set display(value) { this._display = value; } resetDisplay() { this._display = undefined; } // Temporarily expose input value. Use with caution. get displayInput() { return this._display; } get primary() { return this.getBooleanAttribute('primary'); } set primary(value) { this._primary = value; } resetPrimary() { this._primary = undefined; } // Temporarily expose input value. Use with caution. get primaryInput() { return this._primary; } get ref() { return this.getStringAttribute('ref'); } set ref(value) { this._ref = value; } resetRef() { this._ref = undefined; } // Temporarily expose input value. Use with caution. get refInput() { return this._ref; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.DataDatabricksUsersUsersRolesOutputReference = DataDatabricksUsersUsersRolesOutputReference; _h = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersRolesOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersRolesOutputReference", version: "15.16.1" }; class DataDatabricksUsersUsersRolesList 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 DataDatabricksUsersUsersRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataDatabricksUsersUsersRolesList = DataDatabricksUsersUsersRolesList; _j = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersRolesList[_j] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersRolesList", version: "15.16.1" }; function dataDatabricksUsersUsersToTerraform(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 { active: cdktf.booleanToTerraform(struct.active), display_name: cdktf.stringToTerraform(struct.displayName), emails: cdktf.listMapper(dataDatabricksUsersUsersEmailsToTerraform, false)(struct.emails), entitlements: cdktf.listMapper(dataDatabricksUsersUsersEntitlementsToTerraform, false)(struct.entitlements), external_id: cdktf.stringToTerraform(struct.externalId), groups: cdktf.listMapper(dataDatabricksUsersUsersGroupsToTerraform, false)(struct.groups), id: cdktf.stringToTerraform(struct.id), name: dataDatabricksUsersUsersNameToTerraform(struct.name), roles: cdktf.listMapper(dataDatabricksUsersUsersRolesToTerraform, false)(struct.roles), schemas: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.schemas), user_name: cdktf.stringToTerraform(struct.userName), }; } function dataDatabricksUsersUsersToHclTerraform(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 = { active: { value: cdktf.booleanToHclTerraform(struct.active), isBlock: false, type: "simple", storageClassType: "boolean", }, display_name: { value: cdktf.stringToHclTerraform(struct.displayName), isBlock: false, type: "simple", storageClassType: "string", }, emails: { value: cdktf.listMapperHcl(dataDatabricksUsersUsersEmailsToHclTerraform, false)(struct.emails), isBlock: true, type: "list", storageClassType: "DataDatabricksUsersUsersEmailsList", }, entitlements: { value: cdktf.listMapperHcl(dataDatabricksUsersUsersEntitlementsToHclTerraform, false)(struct.entitlements), isBlock: true, type: "list", storageClassType: "DataDatabricksUsersUsersEntitlementsList", }, external_id: { value: cdktf.stringToHclTerraform(struct.externalId), isBlock: false, type: "simple", storageClassType: "string", }, groups: { value: cdktf.listMapperHcl(dataDatabricksUsersUsersGroupsToHclTerraform, false)(struct.groups), isBlock: true, type: "list", storageClassType: "DataDatabricksUsersUsersGroupsList", }, id: { value: cdktf.stringToHclTerraform(struct.id), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: dataDatabricksUsersUsersNameToHclTerraform(struct.name), isBlock: true, type: "struct", storageClassType: "DataDatabricksUsersUsersName", }, roles: { value: cdktf.listMapperHcl(dataDatabricksUsersUsersRolesToHclTerraform, false)(struct.roles), isBlock: true, type: "list", storageClassType: "DataDatabricksUsersUsersRolesList", }, schemas: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.schemas), isBlock: false, type: "list", storageClassType: "stringList", }, user_name: { value: cdktf.stringToHclTerraform(struct.userName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class DataDatabricksUsersUsersOutputReference 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; // emails - computed: true, optional: true, required: false this._emails = new DataDatabricksUsersUsersEmailsList(this, "emails", false); // entitlements - computed: true, optional: true, required: false this._entitlements = new DataDatabricksUsersUsersEntitlementsList(this, "entitlements", false); // groups - computed: true, optional: true, required: false this._groups = new DataDatabricksUsersUsersGroupsList(this, "groups", false); // name - computed: true, optional: true, required: false this._name = new DataDatabricksUsersUsersNameOutputReference(this, "name"); // roles - computed: true, optional: true, required: false this._roles = new DataDatabricksUsersUsersRolesList(this, "roles", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._active !== undefined) { hasAnyValues = true; internalValueResult.active = this._active; } if (this._displayName !== undefined) { hasAnyValues = true; internalValueResult.displayName = this._displayName; } if (this._emails?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.emails = this._emails?.internalValue; } if (this._entitlements?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.entitlements = this._entitlements?.internalValue; } if (this._externalId !== undefined) { hasAnyValues = true; internalValueResult.externalId = this._externalId; } if (this._groups?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.groups = this._groups?.internalValue; } if (this._id !== undefined) { hasAnyValues = true; internalValueResult.id = this._id; } if (this._name?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.name = this._name?.internalValue; } if (this._roles?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.roles = this._roles?.internalValue; } if (this._schemas !== undefined) { hasAnyValues = true; internalValueResult.schemas = this._schemas; } if (this._userName !== undefined) { hasAnyValues = true; internalValueResult.userName = this._userName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._active = undefined; this._displayName = undefined; this._emails.internalValue = undefined; this._entitlements.internalValue = undefined; this._externalId = undefined; this._groups.internalValue = undefined; this._id = undefined; this._name.internalValue = undefined; this._roles.internalValue = undefined; this._schemas = undefined; this._userName = 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._active = value.active; this._displayName = value.displayName; this._emails.internalValue = value.emails; this._entitlements.internalValue = value.entitlements; this._externalId = value.externalId; this._groups.internalValue = value.groups; this._id = value.id; this._name.internalValue = value.name; this._roles.internalValue = value.roles; this._schemas = value.schemas; this._userName = value.userName; } } get active() { return this.getBooleanAttribute('active'); } set active(value) { this._active = value; } resetActive() { this._active = undefined; } // Temporarily expose input value. Use with caution. get activeInput() { return this._active; } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } resetDisplayName() { this._displayName = undefined; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get emails() { return this._emails; } putEmails(value) { this._emails.internalValue = value; } resetEmails() { this._emails.internalValue = undefined; } // Temporarily expose input value. Use with caution. get emailsInput() { return this._emails.internalValue; } get entitlements() { return this._entitlements; } putEntitlements(value) { this._entitlements.internalValue = value; } resetEntitlements() { this._entitlements.internalValue = undefined; } // Temporarily expose input value. Use with caution. get entitlementsInput() { return this._entitlements.internalValue; } get externalId() { return this.getStringAttribute('external_id'); } set externalId(value) { this._externalId = value; } resetExternalId() { this._externalId = undefined; } // Temporarily expose input value. Use with caution. get externalIdInput() { return this._externalId; } get groups() { return this._groups; } putGroups(value) { this._groups.internalValue = value; } resetGroups() { this._groups.internalValue = undefined; } // Temporarily expose input value. Use with caution. get groupsInput() { return this._groups.internalValue; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get name() { return this._name; } putName(value) { this._name.internalValue = value; } resetName() { this._name.internalValue = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name.internalValue; } get roles() { return this._roles; } putRoles(value) { this._roles.internalValue = value; } resetRoles() { this._roles.internalValue = undefined; } // Temporarily expose input value. Use with caution. get rolesInput() { return this._roles.internalValue; } get schemas() { return this.getListAttribute('schemas'); } set schemas(value) { this._schemas = value; } resetSchemas() { this._schemas = undefined; } // Temporarily expose input value. Use with caution. get schemasInput() { return this._schemas; } get userName() { return this.getStringAttribute('user_name'); } set userName(value) { this._userName = value; } resetUserName() { this._userName = undefined; } // Temporarily expose input value. Use with caution. get userNameInput() { return this._userName; } } exports.DataDatabricksUsersUsersOutputReference = DataDatabricksUsersUsersOutputReference; _k = JSII_RTTI_SYMBOL_1; DataDatabricksUsersUsersOutputReference[_k] = { fqn: "@cdktf/provider-databricks.dataDatabricksUsers.DataDatabricksUsersUsersOutputReference", version: "15.16.1" }; class DataDatabricksUsersUsersList 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;