@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,175 lines (1,174 loc) • 179 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatabricksWorkspace = exports.DatabricksWorkspaceTimeoutsOutputReference = exports.databricksWorkspaceTimeoutsToHclTerraform = exports.databricksWorkspaceTimeoutsToTerraform = exports.DatabricksWorkspaceCustomParametersOutputReference = exports.databricksWorkspaceCustomParametersToHclTerraform = exports.databricksWorkspaceCustomParametersToTerraform = exports.DatabricksWorkspaceStorageAccountIdentityList = exports.DatabricksWorkspaceStorageAccountIdentityOutputReference = exports.databricksWorkspaceStorageAccountIdentityToHclTerraform = exports.databricksWorkspaceStorageAccountIdentityToTerraform = exports.DatabricksWorkspaceManagedDiskIdentityList = exports.DatabricksWorkspaceManagedDiskIdentityOutputReference = exports.databricksWorkspaceManagedDiskIdentityToHclTerraform = exports.databricksWorkspaceManagedDiskIdentityToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function databricksWorkspaceManagedDiskIdentityToTerraform(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 {};
}
exports.databricksWorkspaceManagedDiskIdentityToTerraform = databricksWorkspaceManagedDiskIdentityToTerraform;
function databricksWorkspaceManagedDiskIdentityToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.databricksWorkspaceManagedDiskIdentityToHclTerraform = databricksWorkspaceManagedDiskIdentityToHclTerraform;
class DatabricksWorkspaceManagedDiskIdentityOutputReference 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() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// principal_id - computed: true, optional: false, required: false
get principalId() {
return this.getStringAttribute('principal_id');
}
// tenant_id - computed: true, optional: false, required: false
get tenantId() {
return this.getStringAttribute('tenant_id');
}
// type - computed: true, optional: false, required: false
get type() {
return this.getStringAttribute('type');
}
}
exports.DatabricksWorkspaceManagedDiskIdentityOutputReference = DatabricksWorkspaceManagedDiskIdentityOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DatabricksWorkspaceManagedDiskIdentityOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.databricksWorkspace.DatabricksWorkspaceManagedDiskIdentityOutputReference", version: "12.27.0" };
class DatabricksWorkspaceManagedDiskIdentityList 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 DatabricksWorkspaceManagedDiskIdentityOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabricksWorkspaceManagedDiskIdentityList = DatabricksWorkspaceManagedDiskIdentityList;
_b = JSII_RTTI_SYMBOL_1;
DatabricksWorkspaceManagedDiskIdentityList[_b] = { fqn: "@cdktf/provider-azurerm.databricksWorkspace.DatabricksWorkspaceManagedDiskIdentityList", version: "12.27.0" };
function databricksWorkspaceStorageAccountIdentityToTerraform(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 {};
}
exports.databricksWorkspaceStorageAccountIdentityToTerraform = databricksWorkspaceStorageAccountIdentityToTerraform;
function databricksWorkspaceStorageAccountIdentityToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.databricksWorkspaceStorageAccountIdentityToHclTerraform = databricksWorkspaceStorageAccountIdentityToHclTerraform;
class DatabricksWorkspaceStorageAccountIdentityOutputReference 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() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// principal_id - computed: true, optional: false, required: false
get principalId() {
return this.getStringAttribute('principal_id');
}
// tenant_id - computed: true, optional: false, required: false
get tenantId() {
return this.getStringAttribute('tenant_id');
}
// type - computed: true, optional: false, required: false
get type() {
return this.getStringAttribute('type');
}
}
exports.DatabricksWorkspaceStorageAccountIdentityOutputReference = DatabricksWorkspaceStorageAccountIdentityOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DatabricksWorkspaceStorageAccountIdentityOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.databricksWorkspace.DatabricksWorkspaceStorageAccountIdentityOutputReference", version: "12.27.0" };
class DatabricksWorkspaceStorageAccountIdentityList 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 DatabricksWorkspaceStorageAccountIdentityOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatabricksWorkspaceStorageAccountIdentityList = DatabricksWorkspaceStorageAccountIdentityList;
_d = JSII_RTTI_SYMBOL_1;
DatabricksWorkspaceStorageAccountIdentityList[_d] = { fqn: "@cdktf/provider-azurerm.databricksWorkspace.DatabricksWorkspaceStorageAccountIdentityList", version: "12.27.0" };
function databricksWorkspaceCustomParametersToTerraform(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 {
machine_learning_workspace_id: cdktf.stringToTerraform(struct.machineLearningWorkspaceId),
nat_gateway_name: cdktf.stringToTerraform(struct.natGatewayName),
no_public_ip: cdktf.booleanToTerraform(struct.noPublicIp),
private_subnet_name: cdktf.stringToTerraform(struct.privateSubnetName),
private_subnet_network_security_group_association_id: cdktf.stringToTerraform(struct.privateSubnetNetworkSecurityGroupAssociationId),
public_ip_name: cdktf.stringToTerraform(struct.publicIpName),
public_subnet_name: cdktf.stringToTerraform(struct.publicSubnetName),
public_subnet_network_security_group_association_id: cdktf.stringToTerraform(struct.publicSubnetNetworkSecurityGroupAssociationId),
storage_account_name: cdktf.stringToTerraform(struct.storageAccountName),
storage_account_sku_name: cdktf.stringToTerraform(struct.storageAccountSkuName),
virtual_network_id: cdktf.stringToTerraform(struct.virtualNetworkId),
vnet_address_prefix: cdktf.stringToTerraform(struct.vnetAddressPrefix),
};
}
exports.databricksWorkspaceCustomParametersToTerraform = databricksWorkspaceCustomParametersToTerraform;
function databricksWorkspaceCustomParametersToHclTerraform(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 = {
machine_learning_workspace_id: {
value: cdktf.stringToHclTerraform(struct.machineLearningWorkspaceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
nat_gateway_name: {
value: cdktf.stringToHclTerraform(struct.natGatewayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
no_public_ip: {
value: cdktf.booleanToHclTerraform(struct.noPublicIp),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
private_subnet_name: {
value: cdktf.stringToHclTerraform(struct.privateSubnetName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
private_subnet_network_security_group_association_id: {
value: cdktf.stringToHclTerraform(struct.privateSubnetNetworkSecurityGroupAssociationId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
public_ip_name: {
value: cdktf.stringToHclTerraform(struct.publicIpName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
public_subnet_name: {
value: cdktf.stringToHclTerraform(struct.publicSubnetName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
public_subnet_network_security_group_association_id: {
value: cdktf.stringToHclTerraform(struct.publicSubnetNetworkSecurityGroupAssociationId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
storage_account_name: {
value: cdktf.stringToHclTerraform(struct.storageAccountName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
storage_account_sku_name: {
value: cdktf.stringToHclTerraform(struct.storageAccountSkuName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
virtual_network_id: {
value: cdktf.stringToHclTerraform(struct.virtualNetworkId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vnet_address_prefix: {
value: cdktf.stringToHclTerraform(struct.vnetAddressPrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databricksWorkspaceCustomParametersToHclTerraform = databricksWorkspaceCustomParametersToHclTerraform;
class DatabricksWorkspaceCustomParametersOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._machineLearningWorkspaceId !== undefined) {
hasAnyValues = true;
internalValueResult.machineLearningWorkspaceId = this._machineLearningWorkspaceId;
}
if (this._natGatewayName !== undefined) {
hasAnyValues = true;
internalValueResult.natGatewayName = this._natGatewayName;
}
if (this._noPublicIp !== undefined) {
hasAnyValues = true;
internalValueResult.noPublicIp = this._noPublicIp;
}
if (this._privateSubnetName !== undefined) {
hasAnyValues = true;
internalValueResult.privateSubnetName = this._privateSubnetName;
}
if (this._privateSubnetNetworkSecurityGroupAssociationId !== undefined) {
hasAnyValues = true;
internalValueResult.privateSubnetNetworkSecurityGroupAssociationId = this._privateSubnetNetworkSecurityGroupAssociationId;
}
if (this._publicIpName !== undefined) {
hasAnyValues = true;
internalValueResult.publicIpName = this._publicIpName;
}
if (this._publicSubnetName !== undefined) {
hasAnyValues = true;
internalValueResult.publicSubnetName = this._publicSubnetName;
}
if (this._publicSubnetNetworkSecurityGroupAssociationId !== undefined) {
hasAnyValues = true;
internalValueResult.publicSubnetNetworkSecurityGroupAssociationId = this._publicSubnetNetworkSecurityGroupAssociationId;
}
if (this._storageAccountName !== undefined) {
hasAnyValues = true;
internalValueResult.storageAccountName = this._storageAccountName;
}
if (this._storageAccountSkuName !== undefined) {
hasAnyValues = true;
internalValueResult.storageAccountSkuName = this._storageAccountSkuName;
}
if (this._virtualNetworkId !== undefined) {
hasAnyValues = true;
internalValueResult.virtualNetworkId = this._virtualNetworkId;
}
if (this._vnetAddressPrefix !== undefined) {
hasAnyValues = true;
internalValueResult.vnetAddressPrefix = this._vnetAddressPrefix;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._machineLearningWorkspaceId = undefined;
this._natGatewayName = undefined;
this._noPublicIp = undefined;
this._privateSubnetName = undefined;
this._privateSubnetNetworkSecurityGroupAssociationId = undefined;
this._publicIpName = undefined;
this._publicSubnetName = undefined;
this._publicSubnetNetworkSecurityGroupAssociationId = undefined;
this._storageAccountName = undefined;
this._storageAccountSkuName = undefined;
this._virtualNetworkId = undefined;
this._vnetAddressPrefix = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._machineLearningWorkspaceId = value.machineLearningWorkspaceId;
this._natGatewayName = value.natGatewayName;
this._noPublicIp = value.noPublicIp;
this._privateSubnetName = value.privateSubnetName;
this._privateSubnetNetworkSecurityGroupAssociationId = value.privateSubnetNetworkSecurityGroupAssociationId;
this._publicIpName = value.publicIpName;
this._publicSubnetName = value.publicSubnetName;
this._publicSubnetNetworkSecurityGroupAssociationId = value.publicSubnetNetworkSecurityGroupAssociationId;
this._storageAccountName = value.storageAccountName;
this._storageAccountSkuName = value.storageAccountSkuName;
this._virtualNetworkId = value.virtualNetworkId;
this._vnetAddressPrefix = value.vnetAddressPrefix;
}
}
get machineLearningWorkspaceId() {
return this.getStringAttribute('machine_learning_workspace_id');
}
set machineLearningWorkspaceId(value) {
this._machineLearningWorkspaceId = value;
}
resetMachineLearningWorkspaceId() {
this._machineLearningWorkspaceId = undefined;
}
// Temporarily expose input value. Use with caution.
get machineLearningWorkspaceIdInput() {
return this._machineLearningWorkspaceId;
}
get natGatewayName() {
return this.getStringAttribute('nat_gateway_name');
}
set natGatewayName(value) {
this._natGatewayName = value;
}
resetNatGatewayName() {
this._natGatewayName = undefined;
}
// Temporarily expose input value. Use with caution.
get natGatewayNameInput() {
return this._natGatewayName;
}
get noPublicIp() {
return this.getBooleanAttribute('no_public_ip');
}
set noPublicIp(value) {
this._noPublicIp = value;
}
resetNoPublicIp() {
this._noPublicIp = undefined;
}
// Temporarily expose input value. Use with caution.
get noPublicIpInput() {
return this._noPublicIp;
}
get privateSubnetName() {
return this.getStringAttribute('private_subnet_name');
}
set privateSubnetName(value) {
this._privateSubnetName = value;
}
resetPrivateSubnetName() {
this._privateSubnetName = undefined;
}
// Temporarily expose input value. Use with caution.
get privateSubnetNameInput() {
return this._privateSubnetName;
}
get privateSubnetNetworkSecurityGroupAssociationId() {
return this.getStringAttribute('private_subnet_network_security_group_association_id');
}
set privateSubnetNetworkSecurityGroupAssociationId(value) {
this._privateSubnetNetworkSecurityGroupAssociationId = value;
}
resetPrivateSubnetNetworkSecurityGroupAssociationId() {
this._privateSubnetNetworkSecurityGroupAssociationId = undefined;
}
// Temporarily expose input value. Use with caution.
get privateSubnetNetworkSecurityGroupAssociationIdInput() {
return this._privateSubnetNetworkSecurityGroupAssociationId;
}
get publicIpName() {
return this.getStringAttribute('public_ip_name');
}
set publicIpName(value) {
this._publicIpName = value;
}
resetPublicIpName() {
this._publicIpName = undefined;
}
// Temporarily expose input value. Use with caution.
get publicIpNameInput() {
return this._publicIpName;
}
get publicSubnetName() {
return this.getStringAttribute('public_subnet_name');
}
set publicSubnetName(value) {
this._publicSubnetName = value;
}
resetPublicSubnetName() {
this._publicSubnetName = undefined;
}
// Temporarily expose input value. Use with caution.
get publicSubnetNameInput() {
return this._publicSubnetName;
}
get publicSubnetNetworkSecurityGroupAssociationId() {
return this.getStringAttribute('public_subnet_network_security_group_association_id');
}
set publicSubnetNetworkSecurityGroupAssociationId(value) {
this._publicSubnetNetworkSecurityGroupAssociationId = value;
}
resetPublicSubnetNetworkSecurityGroupAssociationId() {
this._publicSubnetNetworkSecurityGroupAssociationId = undefined;
}
// Temporarily expose input value. Use with caution.
get publicSubnetNetworkSecurityGroupAssociationIdInput() {
return this._publicSubnetNetworkSecurityGroupAssociationId;
}
get storageAccountName() {
return this.getStringAttribute('storage_account_name');
}
set storageAccountName(value) {
this._storageAccountName = value;
}
resetStorageAccountName() {
this._storageAccountName = undefined;
}
// Temporarily expose input value. Use with caution.
get storageAccountNameInput() {
return this._storageAccountName;
}
get storageAccountSkuName() {
return this.getStringAttribute('storage_account_sku_name');
}
set storageAccountSkuName(value) {
this._storageAccountSkuName = value;
}
resetStorageAccountSkuName() {
this._storageAccountSkuName = undefined;
}
// Temporarily expose input value. Use with caution.
get storageAccountSkuNameInput() {
return this._storageAccountSkuName;
}
get virtualNetworkId() {
return this.getStringAttribute('virtual_network_id');
}
set virtualNetworkId(value) {
this._virtualNetworkId = value;
}
resetVirtualNetworkId() {
this._virtualNetworkId = undefined;
}
// Temporarily expose input value. Use with caution.
get virtualNetworkIdInput() {
return this._virtualNetworkId;
}
get vnetAddressPrefix() {
return this.getStringAttribute('vnet_address_prefix');
}
set vnetAddressPrefix(value) {
this._vnetAddressPrefix = value;
}
resetVnetAddressPrefix() {
this._vnetAddressPrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get vnetAddressPrefixInput() {
return this._vnetAddressPrefix;
}
}
exports.DatabricksWorkspaceCustomParametersOutputReference = DatabricksWorkspaceCustomParametersOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DatabricksWorkspaceCustomParametersOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.databricksWorkspace.DatabricksWorkspaceCustomParametersOutputReference", version: "12.27.0" };
function databricksWorkspaceTimeoutsToTerraform(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 {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
read: cdktf.stringToTerraform(struct.read),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.databricksWorkspaceTimeoutsToTerraform = databricksWorkspaceTimeoutsToTerraform;
function databricksWorkspaceTimeoutsToHclTerraform(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 = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
read: {
value: cdktf.stringToHclTerraform(struct.read),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.databricksWorkspaceTimeoutsToHclTerraform = databricksWorkspaceTimeoutsToHclTerraform;
class DatabricksWorkspaceTimeoutsOutputReference 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._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._read !== undefined) {
hasAnyValues = true;
internalValueResult.read = this._read;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._read = undefined;
this._update = 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._create = value.create;
this._delete = value.delete;
this._read = value.read;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get read() {
return this.getStringAttribute('read');
}
set read(value) {
this._read = value;
}
resetRead() {
this._read = undefined;
}
// Temporarily expose input value. Use with caution.
get readInput() {
return this._read;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.DatabricksWorkspaceTimeoutsOutputReference = DatabricksWorkspaceTimeoutsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DatabricksWorkspaceTimeoutsOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.databricksWorkspace.DatabricksWorkspaceTimeoutsOutputReference", version: "12.27.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/databricks_workspace azurerm_databricks_workspace}
*/
class DatabricksWorkspace extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DatabricksWorkspace resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the DatabricksWorkspace to import
* @param importFromId The id of the existing DatabricksWorkspace that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/databricks_workspace#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DatabricksWorkspace to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_databricks_workspace", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/databricks_workspace azurerm_databricks_workspace} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options DatabricksWorkspaceConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'azurerm_databricks_workspace',
terraformGeneratorMetadata: {
providerName: 'azurerm',
providerVersion: '3.116.0',
providerVersionConstraint: '~> 3.10'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// managed_disk_identity - computed: true, optional: false, required: false
this._managedDiskIdentity = new DatabricksWorkspaceManagedDiskIdentityList(this, "managed_disk_identity", false);
// storage_account_identity - computed: true, optional: false, required: false
this._storageAccountIdentity = new DatabricksWorkspaceStorageAccountIdentityList(this, "storage_account_identity", false);
// custom_parameters - computed: false, optional: true, required: false
this._customParameters = new DatabricksWorkspaceCustomParametersOutputReference(this, "custom_parameters");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new DatabricksWorkspaceTimeoutsOutputReference(this, "timeouts");
this._accessConnectorId = config.accessConnectorId;
this._customerManagedKeyEnabled = config.customerManagedKeyEnabled;
this._defaultStorageFirewallEnabled = config.defaultStorageFirewallEnabled;
this._id = config.id;
this._infrastructureEncryptionEnabled = config.infrastructureEncryptionEnabled;
this._loadBalancerBackendAddressPoolId = config.loadBalancerBackendAddressPoolId;
this._location = config.location;
this._managedDiskCmkKeyVaultId = config.managedDiskCmkKeyVaultId;
this._managedDiskCmkKeyVaultKeyId = config.managedDiskCmkKeyVaultKeyId;
this._managedDiskCmkRotationToLatestVersionEnabled = config.managedDiskCmkRotationToLatestVersionEnabled;
this._managedResourceGroupName = config.managedResourceGroupName;
this._managedServicesCmkKeyVaultId = config.managedServicesCmkKeyVaultId;
this._managedServicesCmkKeyVaultKeyId = config.managedServicesCmkKeyVaultKeyId;
this._name = config.name;
this._networkSecurityGroupRulesRequired = config.networkSecurityGroupRulesRequired;
this._publicNetworkAccessEnabled = config.publicNetworkAccessEnabled;
this._resourceGroupName = config.resourceGroupName;
this._sku = config.sku;
this._tags = config.tags;
this._customParameters.internalValue = config.customParameters;
this._timeouts.internalValue = config.timeouts;
}
get accessConnectorId() {
return this.getStringAttribute('access_connector_id');
}
set accessConnectorId(value) {
this._accessConnectorId = value;
}
resetAccessConnectorId() {
this._accessConnectorId = undefined;
}
// Temporarily expose input value. Use with caution.
get accessConnectorIdInput() {
return this._accessConnectorId;
}
get customerManagedKeyEnabled() {
return this.getBooleanAttribute('customer_managed_key_enabled');
}
set customerManagedKeyEnabled(value) {
this._customerManagedKeyEnabled = value;
}
resetCustomerManagedKeyEnabled() {
this._customerManagedKeyEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get customerManagedKeyEnabledInput() {
return this._customerManagedKeyEnabled;
}
get defaultStorageFirewallEnabled() {
return this.getBooleanAttribute('default_storage_firewall_enabled');
}
set defaultStorageFirewallEnabled(value) {
this._defaultStorageFirewallEnabled = value;
}
resetDefaultStorageFirewallEnabled() {
this._defaultStorageFirewallEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get defaultStorageFirewallEnabledInput() {
return this._defaultStorageFirewallEnabled;
}
// disk_encryption_set_id - computed: true, optional: false, required: false
get diskEncryptionSetId() {
return this.getStringAttribute('disk_encryption_set_id');
}
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 infrastructureEncryptionEnabled() {
return this.getBooleanAttribute('infrastructure_encryption_enabled');
}
set infrastructureEncryptionEnabled(value) {
this._infrastructureEncryptionEnabled = value;
}
resetInfrastructureEncryptionEnabled() {
this._infrastructureEncryptionEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get infrastructureEncryptionEnabledInput() {
return this._infrastructureEncryptionEnabled;
}
get loadBalancerBackendAddressPoolId() {
return this.getStringAttribute('load_balancer_backend_address_pool_id');
}
set loadBalancerBackendAddressPoolId(value) {
this._loadBalancerBackendAddressPoolId = value;
}
resetLoadBalancerBackendAddressPoolId() {
this._loadBalancerBackendAddressPoolId = undefined;
}
// Temporarily expose input value. Use with caution.
get loadBalancerBackendAddressPoolIdInput() {
return this._loadBalancerBackendAddressPoolId;
}
get location() {
return this.getStringAttribute('location');
}
set location(value) {
this._location = value;
}
// Temporarily expose input value. Use with caution.
get locationInput() {
return this._location;
}
get managedDiskCmkKeyVaultId() {
return this.getStringAttribute('managed_disk_cmk_key_vault_id');
}
set managedDiskCmkKeyVaultId(value) {
this._managedDiskCmkKeyVaultId = value;
}
resetManagedDiskCmkKeyVaultId() {
this._managedDiskCmkKeyVaultId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedDiskCmkKeyVaultIdInput() {
return this._managedDiskCmkKeyVaultId;
}
get managedDiskCmkKeyVaultKeyId() {
return this.getStringAttribute('managed_disk_cmk_key_vault_key_id');
}
set managedDiskCmkKeyVaultKeyId(value) {
this._managedDiskCmkKeyVaultKeyId = value;
}
resetManagedDiskCmkKeyVaultKeyId() {
this._managedDiskCmkKeyVaultKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedDiskCmkKeyVaultKeyIdInput() {
return this._managedDiskCmkKeyVaultKeyId;
}
get managedDiskCmkRotationToLatestVersionEnabled() {
return this.getBooleanAttribute('managed_disk_cmk_rotation_to_latest_version_enabled');
}
set managedDiskCmkRotationToLatestVersionEnabled(value) {
this._managedDiskCmkRotationToLatestVersionEnabled = value;
}
resetManagedDiskCmkRotationToLatestVersionEnabled() {
this._managedDiskCmkRotationToLatestVersionEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get managedDiskCmkRotationToLatestVersionEnabledInput() {
return this._managedDiskCmkRotationToLatestVersionEnabled;
}
get managedDiskIdentity() {
return this._managedDiskIdentity;
}
// managed_resource_group_id - computed: true, optional: false, required: false
get managedResourceGroupId() {
return this.getStringAttribute('managed_resource_group_id');
}
get managedResourceGroupName() {
return this.getStringAttribute('managed_resource_group_name');
}
set managedResourceGroupName(value) {
this._managedResourceGroupName = value;
}
resetManagedResourceGroupName() {
this._managedResourceGroupName = undefined;
}
// Temporarily expose input value. Use with caution.
get managedResourceGroupNameInput() {
return this._managedResourceGroupName;
}
get managedServicesCmkKeyVaultId() {
return this.getStringAttribute('managed_services_cmk_key_vault_id');
}
set managedServicesCmkKeyVaultId(value) {
this._managedServicesCmkKeyVaultId = value;
}
resetManagedServicesCmkKeyVaultId() {
this._managedServicesCmkKeyVaultId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedServicesCmkKeyVaultIdInput() {
return this._managedServicesCmkKeyVaultId;
}
get managedServicesCmkKeyVaultKeyId() {
return this.getStringAttribute('managed_services_cmk_key_vault_key_id');
}
set managedServicesCmkKeyVaultKeyId(value) {
this._managedServicesCmkKeyVaultKeyId = value;
}
resetManagedServicesCmkKeyVaultKeyId() {
this._managedServicesCmkKeyVaultKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedServicesCmkKeyVaultKeyIdInput() {
return this._managedServicesCmkKeyVaultKeyId;
}
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 networkSecurityGroupRulesRequired() {
return this.getStringAttribute('network_security_group_rules_required');
}
set networkSecurityGroupRulesRequired(value) {
this._networkSecurityGroupRulesRequired = value;
}
resetNetworkSecurityGroupRulesRequired() {
this._networkSecurityGroupRulesRequired = undefined;
}
// Temporarily expose input value. Use with caution.
get networkSecurityGroupRulesRequiredInput() {
return this._networkSecurityGroupRulesRequired;
}
get publicNetworkAccessEnabled() {
return this.getBooleanAttribute('public_network_access_enabled');
}
set publicNetworkAccessEnabled(value) {
this._publicNetworkAccessEnabled = value;
}
resetPublicNetworkAccessEnabled() {
this._publicNetworkAccessEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get publicNetworkAccessEnabledInput() {
return this._publicNetworkAccessEnabled;
}
get resourceGroupName() {
return this.getStringAttribute('resource_group_name');
}
set resourceGroupName(value) {
this._resourceGroupName = value;
}
// Temporarily expose input value. Use with caution.
get resourceGroupNameInput() {
return this._resourceGroupName;
}
get sku() {
return this.getStringAttribute('sku');
}
set sku(value) {
this._sku = value;
}
// Temporarily expose input value. Use with caution.
get skuInput() {
return this._sku;
}
get storageAccountIdentity() {
return this._storageAccountIdentity;
}
get tags() {
return this.getStringMapAttribute('tags');
}
set tags(value) {
this._tags = value;
}
resetTags() {
this._tags = undefined;
}
// Temporarily expose input value. Use with caution.
get tagsInput() {
return this._tags;
}
// workspace_id - computed: true, optional: false, required: false
get workspaceId() {
return this.getStringAttribute('workspace_id');
}
// workspace_url - computed: true, optional: false, required: false
get workspaceUrl() {
return this.getStringAttribute('workspace_url');
}
get customParameters() {
return this._customParameters;
}
putCustomParameters(value) {
this._customParameters.internalValue = value;
}
resetCustomParameters() {
this._customParameters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get customParametersInput() {
return this._customParameters.internalValue;
}
get timeouts() {
return this._timeouts;
}
putTimeouts(value) {
this._timeouts.internalValue = value;
}
resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutsInput() {
return this._timeouts.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
access_connector_id: cdktf.stringToTerraform(this._accessConnectorId),
customer_managed_key_enabled: cdktf.booleanToTerraform(this._customerManagedKeyEnabled),
default_storage_firewall_enabled: cdktf.booleanToTerraform(this._defaultStorageFirewallEnabled),
id: cdktf.stringToTerraform(this._id),
infrastructure_encryption_enabled: cdktf.booleanToTerraform(this._infrastructureEncryptionEnabled),
load_balancer_backend_address_pool_id: cdktf.stringToTerraform(this._loadBalancerBackendAddressPoolId),
location: cdktf.stringToTerraform(this._location),
managed_disk_cmk_key_vault_id: cdktf.stringToTerraform(this._managedDiskCmkKeyVaultId),
managed_disk_cmk_key_vault_key_id: cdktf.stringToTerraform(this._managedDiskCmkKeyVaultKeyId),
managed_disk_cmk_rotation_to_latest_version_enabled: cdktf.booleanToTerraform(this._managedDiskCmkRotationToLatestVersionEnabled),
managed_resource_group_name: cdktf.stringToTerraform(this._managedResourceGroupName),
managed_services_cmk_key_vault_id: cdktf.stringToTerraform(this._managedServicesCmkKeyVaultId),
managed_services_cmk_key_vault_key_id: cdktf.stringToTerraform(this._managedServicesCmkKeyVaultKeyId),
name: cdktf.stringToTerraform(this._name),
network_security_group_rules_required: cdktf.stringToTerraform(this._networkSecurityGroupRulesRequired),
public_network_access_enabled: cdktf.booleanToTerraform(this._publicNetworkAccessEnabled),
resource_group_name: cdktf.stringToTerraform(this._resourceGroupName),
sku: cdktf.stringToTerraform(this._sku),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
custom_parameters: databricksWorkspaceCustomParametersToTerraform(this._customParameters.internalValue),
timeouts: databricksWorkspaceTimeoutsToTerraform(this._timeouts.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
access_connector_id: {
value: cdktf.stringToHclTerraform(this._accessConnectorId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
customer_managed_key_enabled: {
value: cdktf.booleanToHclTerraform(this._customerManagedKeyEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
default_storage_firewall_enabled: {
value: cdktf.booleanToHclTerraform(this._defaultStorageFirewallEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
infrastructure_encryption_enabled: {
value: cdktf.booleanToHclTerraform(this._infrastructureEncryptionEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
load_balancer_backend_address_pool_id: {
value: cdktf.stringToHclTerraform(this._loadBalancerBackendAddressPoolId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
location: {
value: cdktf.stringToHclTerraform(this._location),
isBlock: false,
type: "simple",
storageClassType: "string",
},
managed_disk_cmk_key_vault_id: {
value: cdktf.stringToHclTerraform(this._managedDiskCmkKeyVaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
managed_disk_cmk_key_vault_key_id: {
value: cdktf.stringToHclTerraform(this._managedDiskCmkKeyVaultKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
managed_disk_cmk_rotation_to_latest_version_enabled: {
value: cdktf.booleanToHclTerraform(this._managedDiskCmkRotationToLatestVersionEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
managed_resource_group_name: {
value: cdktf.stringToHclTerraform(this._managedResourceGroupName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
managed_services_cmk_key_vault_id: {
value: cdktf.stringToHclTerraform(this._managedServicesCmkKeyVaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
managed_services_cmk_key_vault_key_id: {
value: cdktf.stringToHclTerraform(this._managedServicesCmkKeyVaultKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(this._name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
network_security_group_rules_required: {
value: cdktf.stringToHclTerraform(this._networkSecurityGroupRulesRequired),
isBlock: false,
type: "simple",
storageClassType: "string",
},
public_network_access_enabled: {