@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,019 lines • 277 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataDatabricksCleanRoomsCleanRooms = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsList = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessLogOnlyModeOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsList = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsList = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsList = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsOutputReference = exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogOutputReference = void 0;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessLogOnlyModeToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessLogOnlyModeToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessLogOnlyModeToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessLogOnlyModeToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoToHclTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsToTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsToTerraform;
exports.dataDatabricksCleanRoomsCleanRoomsCleanRoomsToHclTerraform = dataDatabricksCleanRoomsCleanRoomsCleanRoomsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogToTerraform(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 {
catalog_name: cdktf.stringToTerraform(struct.catalogName),
};
}
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogToHclTerraform(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 = {
catalog_name: {
value: cdktf.stringToHclTerraform(struct.catalogName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._catalogName !== undefined) {
hasAnyValues = true;
internalValueResult.catalogName = this._catalogName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._catalogName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._catalogName = value.catalogName;
}
}
get catalogName() {
return this.getStringAttribute('catalog_name');
}
set catalogName(value) {
this._catalogName = value;
}
resetCatalogName() {
this._catalogName = undefined;
}
// Temporarily expose input value. Use with caution.
get catalogNameInput() {
return this._catalogName;
}
// status - computed: true, optional: false, required: false
get status() {
return this.getStringAttribute('status');
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogOutputReference = DataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsOutputCatalogOutputReference", version: "15.3.1" };
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsToTerraform(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 {
collaborator_alias: cdktf.stringToTerraform(struct.collaboratorAlias),
global_metastore_id: cdktf.stringToTerraform(struct.globalMetastoreId),
invite_recipient_email: cdktf.stringToTerraform(struct.inviteRecipientEmail),
invite_recipient_workspace_id: cdktf.numberToTerraform(struct.inviteRecipientWorkspaceId),
};
}
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsToHclTerraform(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 = {
collaborator_alias: {
value: cdktf.stringToHclTerraform(struct.collaboratorAlias),
isBlock: false,
type: "simple",
storageClassType: "string",
},
global_metastore_id: {
value: cdktf.stringToHclTerraform(struct.globalMetastoreId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
invite_recipient_email: {
value: cdktf.stringToHclTerraform(struct.inviteRecipientEmail),
isBlock: false,
type: "simple",
storageClassType: "string",
},
invite_recipient_workspace_id: {
value: cdktf.numberToHclTerraform(struct.inviteRecipientWorkspaceId),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsOutputReference 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._collaboratorAlias !== undefined) {
hasAnyValues = true;
internalValueResult.collaboratorAlias = this._collaboratorAlias;
}
if (this._globalMetastoreId !== undefined) {
hasAnyValues = true;
internalValueResult.globalMetastoreId = this._globalMetastoreId;
}
if (this._inviteRecipientEmail !== undefined) {
hasAnyValues = true;
internalValueResult.inviteRecipientEmail = this._inviteRecipientEmail;
}
if (this._inviteRecipientWorkspaceId !== undefined) {
hasAnyValues = true;
internalValueResult.inviteRecipientWorkspaceId = this._inviteRecipientWorkspaceId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._collaboratorAlias = undefined;
this._globalMetastoreId = undefined;
this._inviteRecipientEmail = undefined;
this._inviteRecipientWorkspaceId = 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._collaboratorAlias = value.collaboratorAlias;
this._globalMetastoreId = value.globalMetastoreId;
this._inviteRecipientEmail = value.inviteRecipientEmail;
this._inviteRecipientWorkspaceId = value.inviteRecipientWorkspaceId;
}
}
get collaboratorAlias() {
return this.getStringAttribute('collaborator_alias');
}
set collaboratorAlias(value) {
this._collaboratorAlias = value;
}
// Temporarily expose input value. Use with caution.
get collaboratorAliasInput() {
return this._collaboratorAlias;
}
// display_name - computed: true, optional: false, required: false
get displayName() {
return this.getStringAttribute('display_name');
}
get globalMetastoreId() {
return this.getStringAttribute('global_metastore_id');
}
set globalMetastoreId(value) {
this._globalMetastoreId = value;
}
resetGlobalMetastoreId() {
this._globalMetastoreId = undefined;
}
// Temporarily expose input value. Use with caution.
get globalMetastoreIdInput() {
return this._globalMetastoreId;
}
get inviteRecipientEmail() {
return this.getStringAttribute('invite_recipient_email');
}
set inviteRecipientEmail(value) {
this._inviteRecipientEmail = value;
}
resetInviteRecipientEmail() {
this._inviteRecipientEmail = undefined;
}
// Temporarily expose input value. Use with caution.
get inviteRecipientEmailInput() {
return this._inviteRecipientEmail;
}
get inviteRecipientWorkspaceId() {
return this.getNumberAttribute('invite_recipient_workspace_id');
}
set inviteRecipientWorkspaceId(value) {
this._inviteRecipientWorkspaceId = value;
}
resetInviteRecipientWorkspaceId() {
this._inviteRecipientWorkspaceId = undefined;
}
// Temporarily expose input value. Use with caution.
get inviteRecipientWorkspaceIdInput() {
return this._inviteRecipientWorkspaceId;
}
// organization_name - computed: true, optional: false, required: false
get organizationName() {
return this.getStringAttribute('organization_name');
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsOutputReference = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsOutputReference", version: "15.3.1" };
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsList 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 DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsList = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsList;
_c = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsList[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCollaboratorsList", version: "15.3.1" };
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileToTerraform(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 {
compliance_standards: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.complianceStandards),
is_enabled: cdktf.booleanToTerraform(struct.isEnabled),
};
}
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileToHclTerraform(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 = {
compliance_standards: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.complianceStandards),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
is_enabled: {
value: cdktf.booleanToHclTerraform(struct.isEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._complianceStandards !== undefined) {
hasAnyValues = true;
internalValueResult.complianceStandards = this._complianceStandards;
}
if (this._isEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isEnabled = this._isEnabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._complianceStandards = undefined;
this._isEnabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._complianceStandards = value.complianceStandards;
this._isEnabled = value.isEnabled;
}
}
get complianceStandards() {
return this.getListAttribute('compliance_standards');
}
set complianceStandards(value) {
this._complianceStandards = value;
}
resetComplianceStandards() {
this._complianceStandards = undefined;
}
// Temporarily expose input value. Use with caution.
get complianceStandardsInput() {
return this._complianceStandards;
}
get isEnabled() {
return this.getBooleanAttribute('is_enabled');
}
set isEnabled(value) {
this._isEnabled = value;
}
resetIsEnabled() {
this._isEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isEnabledInput() {
return this._isEnabled;
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileOutputReference = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoComplianceSecurityProfileOutputReference", version: "15.3.1" };
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorToTerraform(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 {
collaborator_alias: cdktf.stringToTerraform(struct.collaboratorAlias),
global_metastore_id: cdktf.stringToTerraform(struct.globalMetastoreId),
invite_recipient_email: cdktf.stringToTerraform(struct.inviteRecipientEmail),
invite_recipient_workspace_id: cdktf.numberToTerraform(struct.inviteRecipientWorkspaceId),
};
}
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorToHclTerraform(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 = {
collaborator_alias: {
value: cdktf.stringToHclTerraform(struct.collaboratorAlias),
isBlock: false,
type: "simple",
storageClassType: "string",
},
global_metastore_id: {
value: cdktf.stringToHclTerraform(struct.globalMetastoreId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
invite_recipient_email: {
value: cdktf.stringToHclTerraform(struct.inviteRecipientEmail),
isBlock: false,
type: "simple",
storageClassType: "string",
},
invite_recipient_workspace_id: {
value: cdktf.numberToHclTerraform(struct.inviteRecipientWorkspaceId),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._collaboratorAlias !== undefined) {
hasAnyValues = true;
internalValueResult.collaboratorAlias = this._collaboratorAlias;
}
if (this._globalMetastoreId !== undefined) {
hasAnyValues = true;
internalValueResult.globalMetastoreId = this._globalMetastoreId;
}
if (this._inviteRecipientEmail !== undefined) {
hasAnyValues = true;
internalValueResult.inviteRecipientEmail = this._inviteRecipientEmail;
}
if (this._inviteRecipientWorkspaceId !== undefined) {
hasAnyValues = true;
internalValueResult.inviteRecipientWorkspaceId = this._inviteRecipientWorkspaceId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._collaboratorAlias = undefined;
this._globalMetastoreId = undefined;
this._inviteRecipientEmail = undefined;
this._inviteRecipientWorkspaceId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._collaboratorAlias = value.collaboratorAlias;
this._globalMetastoreId = value.globalMetastoreId;
this._inviteRecipientEmail = value.inviteRecipientEmail;
this._inviteRecipientWorkspaceId = value.inviteRecipientWorkspaceId;
}
}
get collaboratorAlias() {
return this.getStringAttribute('collaborator_alias');
}
set collaboratorAlias(value) {
this._collaboratorAlias = value;
}
// Temporarily expose input value. Use with caution.
get collaboratorAliasInput() {
return this._collaboratorAlias;
}
// display_name - computed: true, optional: false, required: false
get displayName() {
return this.getStringAttribute('display_name');
}
get globalMetastoreId() {
return this.getStringAttribute('global_metastore_id');
}
set globalMetastoreId(value) {
this._globalMetastoreId = value;
}
resetGlobalMetastoreId() {
this._globalMetastoreId = undefined;
}
// Temporarily expose input value. Use with caution.
get globalMetastoreIdInput() {
return this._globalMetastoreId;
}
get inviteRecipientEmail() {
return this.getStringAttribute('invite_recipient_email');
}
set inviteRecipientEmail(value) {
this._inviteRecipientEmail = value;
}
resetInviteRecipientEmail() {
this._inviteRecipientEmail = undefined;
}
// Temporarily expose input value. Use with caution.
get inviteRecipientEmailInput() {
return this._inviteRecipientEmail;
}
get inviteRecipientWorkspaceId() {
return this.getNumberAttribute('invite_recipient_workspace_id');
}
set inviteRecipientWorkspaceId(value) {
this._inviteRecipientWorkspaceId = value;
}
resetInviteRecipientWorkspaceId() {
this._inviteRecipientWorkspaceId = undefined;
}
// Temporarily expose input value. Use with caution.
get inviteRecipientWorkspaceIdInput() {
return this._inviteRecipientWorkspaceId;
}
// organization_name - computed: true, optional: false, required: false
get organizationName() {
return this.getStringAttribute('organization_name');
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorOutputReference = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoCreatorOutputReference", version: "15.3.1" };
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsToTerraform(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 {
destination: cdktf.stringToTerraform(struct.destination),
protocol: cdktf.stringToTerraform(struct.protocol),
type: cdktf.stringToTerraform(struct.type),
};
}
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsToHclTerraform(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 = {
destination: {
value: cdktf.stringToHclTerraform(struct.destination),
isBlock: false,
type: "simple",
storageClassType: "string",
},
protocol: {
value: cdktf.stringToHclTerraform(struct.protocol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsOutputReference 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._destination !== undefined) {
hasAnyValues = true;
internalValueResult.destination = this._destination;
}
if (this._protocol !== undefined) {
hasAnyValues = true;
internalValueResult.protocol = this._protocol;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._destination = undefined;
this._protocol = undefined;
this._type = 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._destination = value.destination;
this._protocol = value.protocol;
this._type = value.type;
}
}
get destination() {
return this.getStringAttribute('destination');
}
set destination(value) {
this._destination = value;
}
resetDestination() {
this._destination = undefined;
}
// Temporarily expose input value. Use with caution.
get destinationInput() {
return this._destination;
}
get protocol() {
return this.getStringAttribute('protocol');
}
set protocol(value) {
this._protocol = value;
}
resetProtocol() {
this._protocol = undefined;
}
// Temporarily expose input value. Use with caution.
get protocolInput() {
return this._protocol;
}
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;
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsOutputReference = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsOutputReference", version: "15.3.1" };
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsList 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 DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsList = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsList;
_g = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsList[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedInternetDestinationsList", version: "15.3.1" };
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsToTerraform(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_paths: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedPaths),
azure_container: cdktf.stringToTerraform(struct.azureContainer),
azure_dns_zone: cdktf.stringToTerraform(struct.azureDnsZone),
azure_storage_account: cdktf.stringToTerraform(struct.azureStorageAccount),
azure_storage_service: cdktf.stringToTerraform(struct.azureStorageService),
bucket_name: cdktf.stringToTerraform(struct.bucketName),
region: cdktf.stringToTerraform(struct.region),
type: cdktf.stringToTerraform(struct.type),
};
}
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsToHclTerraform(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_paths: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedPaths),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
azure_container: {
value: cdktf.stringToHclTerraform(struct.azureContainer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
azure_dns_zone: {
value: cdktf.stringToHclTerraform(struct.azureDnsZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
azure_storage_account: {
value: cdktf.stringToHclTerraform(struct.azureStorageAccount),
isBlock: false,
type: "simple",
storageClassType: "string",
},
azure_storage_service: {
value: cdktf.stringToHclTerraform(struct.azureStorageService),
isBlock: false,
type: "simple",
storageClassType: "string",
},
bucket_name: {
value: cdktf.stringToHclTerraform(struct.bucketName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
region: {
value: cdktf.stringToHclTerraform(struct.region),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsOutputReference 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._allowedPaths !== undefined) {
hasAnyValues = true;
internalValueResult.allowedPaths = this._allowedPaths;
}
if (this._azureContainer !== undefined) {
hasAnyValues = true;
internalValueResult.azureContainer = this._azureContainer;
}
if (this._azureDnsZone !== undefined) {
hasAnyValues = true;
internalValueResult.azureDnsZone = this._azureDnsZone;
}
if (this._azureStorageAccount !== undefined) {
hasAnyValues = true;
internalValueResult.azureStorageAccount = this._azureStorageAccount;
}
if (this._azureStorageService !== undefined) {
hasAnyValues = true;
internalValueResult.azureStorageService = this._azureStorageService;
}
if (this._bucketName !== undefined) {
hasAnyValues = true;
internalValueResult.bucketName = this._bucketName;
}
if (this._region !== undefined) {
hasAnyValues = true;
internalValueResult.region = this._region;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._allowedPaths = undefined;
this._azureContainer = undefined;
this._azureDnsZone = undefined;
this._azureStorageAccount = undefined;
this._azureStorageService = undefined;
this._bucketName = undefined;
this._region = undefined;
this._type = 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._allowedPaths = value.allowedPaths;
this._azureContainer = value.azureContainer;
this._azureDnsZone = value.azureDnsZone;
this._azureStorageAccount = value.azureStorageAccount;
this._azureStorageService = value.azureStorageService;
this._bucketName = value.bucketName;
this._region = value.region;
this._type = value.type;
}
}
get allowedPaths() {
return this.getListAttribute('allowed_paths');
}
set allowedPaths(value) {
this._allowedPaths = value;
}
resetAllowedPaths() {
this._allowedPaths = undefined;
}
// Temporarily expose input value. Use with caution.
get allowedPathsInput() {
return this._allowedPaths;
}
get azureContainer() {
return this.getStringAttribute('azure_container');
}
set azureContainer(value) {
this._azureContainer = value;
}
resetAzureContainer() {
this._azureContainer = undefined;
}
// Temporarily expose input value. Use with caution.
get azureContainerInput() {
return this._azureContainer;
}
get azureDnsZone() {
return this.getStringAttribute('azure_dns_zone');
}
set azureDnsZone(value) {
this._azureDnsZone = value;
}
resetAzureDnsZone() {
this._azureDnsZone = undefined;
}
// Temporarily expose input value. Use with caution.
get azureDnsZoneInput() {
return this._azureDnsZone;
}
get azureStorageAccount() {
return this.getStringAttribute('azure_storage_account');
}
set azureStorageAccount(value) {
this._azureStorageAccount = value;
}
resetAzureStorageAccount() {
this._azureStorageAccount = undefined;
}
// Temporarily expose input value. Use with caution.
get azureStorageAccountInput() {
return this._azureStorageAccount;
}
get azureStorageService() {
return this.getStringAttribute('azure_storage_service');
}
set azureStorageService(value) {
this._azureStorageService = value;
}
resetAzureStorageService() {
this._azureStorageService = undefined;
}
// Temporarily expose input value. Use with caution.
get azureStorageServiceInput() {
return this._azureStorageService;
}
get bucketName() {
return this.getStringAttribute('bucket_name');
}
set bucketName(value) {
this._bucketName = value;
}
resetBucketName() {
this._bucketName = undefined;
}
// Temporarily expose input value. Use with caution.
get bucketNameInput() {
return this._bucketName;
}
get region() {
return this.getStringAttribute('region');
}
set region(value) {
this._region = value;
}
resetRegion() {
this._region = undefined;
}
// Temporarily expose input value. Use with caution.
get regionInput() {
return this._region;
}
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;
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsOutputReference = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsOutputReference", version: "15.3.1" };
class DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsList 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 DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsList = DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsList;
_j = JSII_RTTI_SYMBOL_1;
DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsList[_j] = { fqn: "@cdktf/provider-databricks.dataDatabricksCleanRoomsCleanRooms.DataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessAllowedStorageDestinationsList", version: "15.3.1" };
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessLogOnlyModeToTerraform(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 {
log_only_mode_type: cdktf.stringToTerraform(struct.logOnlyModeType),
workloads: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.workloads),
};
}
function dataDatabricksCleanRoomsCleanRoomsCleanRoomsRemoteDetailedInfoEgressNetworkPolicyInternetAccessLogOnlyModeToHclTerraform(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: htt