
com.pulumi.azure.databricks.kotlin.Workspace.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.databricks.kotlin
import com.pulumi.azure.databricks.kotlin.outputs.WorkspaceCustomParameters
import com.pulumi.azure.databricks.kotlin.outputs.WorkspaceManagedDiskIdentity
import com.pulumi.azure.databricks.kotlin.outputs.WorkspaceStorageAccountIdentity
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.azure.databricks.kotlin.outputs.WorkspaceCustomParameters.Companion.toKotlin as workspaceCustomParametersToKotlin
import com.pulumi.azure.databricks.kotlin.outputs.WorkspaceManagedDiskIdentity.Companion.toKotlin as workspaceManagedDiskIdentityToKotlin
import com.pulumi.azure.databricks.kotlin.outputs.WorkspaceStorageAccountIdentity.Companion.toKotlin as workspaceStorageAccountIdentityToKotlin
/**
* Builder for [Workspace].
*/
@PulumiTagMarker
public class WorkspaceResourceBuilder internal constructor() {
public var name: String? = null
public var args: WorkspaceArgs = WorkspaceArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend WorkspaceArgsBuilder.() -> Unit) {
val builder = WorkspaceArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Workspace {
val builtJavaResource = com.pulumi.azure.databricks.Workspace(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Workspace(builtJavaResource)
}
}
/**
*
* ## Import
* Databrick Workspaces can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:databricks/workspace:Workspace workspace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Databricks/workspaces/workspace1
* ```
*/
public class Workspace internal constructor(
override val javaResource: com.pulumi.azure.databricks.Workspace,
) : KotlinCustomResource(javaResource, WorkspaceMapper) {
/**
* Access Connector ID to use when default storage account firewall is enabled.
* > **Note:** The `access_connector_id` field is only required if `default_storage_firewall_enabled` is set to `true`.
*/
public val accessConnectorId: Output?
get() = javaResource.accessConnectorId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A `custom_parameters` block as documented below.
*/
public val customParameters: Output
get() = javaResource.customParameters().applyValue({ args0 ->
args0.let({ args0 ->
workspaceCustomParametersToKotlin(args0)
})
})
/**
* Is the workspace enabled for customer managed key encryption? If `true` this enables the Managed Identity for the managed storage account. Possible values are `true` or `false`. Defaults to `false`. This field is only valid if the Databricks Workspace `sku` is set to `premium`.
*/
public val customerManagedKeyEnabled: Output?
get() = javaResource.customerManagedKeyEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Disallow public access to default storage account. Defaults to `false`.
*/
public val defaultStorageFirewallEnabled: Output?
get() = javaResource.defaultStorageFirewallEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The ID of Managed Disk Encryption Set created by the Databricks Workspace.
*/
public val diskEncryptionSetId: Output
get() = javaResource.diskEncryptionSetId().applyValue({ args0 -> args0 })
/**
* Is the Databricks File System root file system enabled with a secondary layer of encryption with platform managed keys? Possible values are `true` or `false`. Defaults to `false`. This field is only valid if the Databricks Workspace `sku` is set to `premium`. Changing this forces a new resource to be created.
*/
public val infrastructureEncryptionEnabled: Output?
get() = javaResource.infrastructureEncryptionEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Resource ID of the Outbound Load balancer Backend Address Pool for Secure Cluster Connectivity (No Public IP) workspace. Changing this forces a new resource to be created.
*/
public val loadBalancerBackendAddressPoolId: Output?
get() = javaResource.loadBalancerBackendAddressPoolId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
*/
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
public val managedDiskCmkKeyVaultId: Output?
get() = javaResource.managedDiskCmkKeyVaultId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Customer managed encryption properties for the Databricks Workspace managed disks.
*/
public val managedDiskCmkKeyVaultKeyId: Output?
get() = javaResource.managedDiskCmkKeyVaultKeyId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Whether customer managed keys for disk encryption will automatically be rotated to the latest version.
*/
public val managedDiskCmkRotationToLatestVersionEnabled: Output?
get() = javaResource.managedDiskCmkRotationToLatestVersionEnabled().applyValue({ args0 ->
args0.map({ args0 -> args0 }).orElse(null)
})
/**
* A `managed_disk_identity` block as documented below.
*/
public val managedDiskIdentities: Output>
get() = javaResource.managedDiskIdentities().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> workspaceManagedDiskIdentityToKotlin(args0) })
})
})
/**
* The ID of the Managed Resource Group created by the Databricks Workspace.
*/
public val managedResourceGroupId: Output
get() = javaResource.managedResourceGroupId().applyValue({ args0 -> args0 })
/**
* The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
* > **Note:** Make sure that this field is unique if you have multiple Databrick Workspaces deployed in your subscription and choose to not have the `managed_resource_group_name` auto generated by the Azure Resource Provider. Having multiple Databrick Workspaces deployed in the same subscription with the same `manage_resource_group_name` may result in some resources that cannot be deleted.
*/
public val managedResourceGroupName: Output
get() = javaResource.managedResourceGroupName().applyValue({ args0 -> args0 })
public val managedServicesCmkKeyVaultId: Output?
get() = javaResource.managedServicesCmkKeyVaultId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Customer managed encryption properties for the Databricks Workspace managed resources(e.g. Notebooks and Artifacts).
*/
public val managedServicesCmkKeyVaultKeyId: Output?
get() = javaResource.managedServicesCmkKeyVaultKeyId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Does the data plane (clusters) to control plane communication happen over private link endpoint only or publicly? Possible values `AllRules`, `NoAzureDatabricksRules` or `NoAzureServiceRules`. Required when `public_network_access_enabled` is set to `false`.
*/
public val networkSecurityGroupRulesRequired: Output
get() = javaResource.networkSecurityGroupRulesRequired().applyValue({ args0 -> args0 })
/**
* Allow public access for accessing workspace. Set value to `false` to access workspace only via private link endpoint. Possible values include `true` or `false`. Defaults to `true`.
*/
public val publicNetworkAccessEnabled: Output?
get() = javaResource.publicNetworkAccessEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
*/
public val resourceGroupName: Output
get() = javaResource.resourceGroupName().applyValue({ args0 -> args0 })
/**
* The `sku` to use for the Databricks Workspace. Possible values are `standard`, `premium`, or `trial`.
* > **Note:** Downgrading to a `trial sku` from a `standard` or `premium sku` will force a new resource to be created.
*/
public val sku: Output
get() = javaResource.sku().applyValue({ args0 -> args0 })
/**
* A `storage_account_identity` block as documented below.
*/
public val storageAccountIdentities: Output>
get() = javaResource.storageAccountIdentities().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> workspaceStorageAccountIdentityToKotlin(args0) })
})
})
/**
* A mapping of tags to assign to the resource.
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy