com.pulumi.azurenative.synapse.kotlin.Workspace.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.synapse.kotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.CspWorkspaceAdminPropertiesResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.DataLakeStorageAccountDetailsResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.EncryptionDetailsResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.ManagedIdentityResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.ManagedVirtualNetworkSettingsResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.PrivateEndpointConnectionResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.PurviewConfigurationResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.VirtualNetworkProfileResponse
import com.pulumi.azurenative.synapse.kotlin.outputs.WorkspaceRepositoryConfigurationResponse
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.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.azurenative.synapse.kotlin.outputs.CspWorkspaceAdminPropertiesResponse.Companion.toKotlin as cspWorkspaceAdminPropertiesResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.DataLakeStorageAccountDetailsResponse.Companion.toKotlin as dataLakeStorageAccountDetailsResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.EncryptionDetailsResponse.Companion.toKotlin as encryptionDetailsResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.ManagedIdentityResponse.Companion.toKotlin as managedIdentityResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.ManagedVirtualNetworkSettingsResponse.Companion.toKotlin as managedVirtualNetworkSettingsResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.PrivateEndpointConnectionResponse.Companion.toKotlin as privateEndpointConnectionResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.PurviewConfigurationResponse.Companion.toKotlin as purviewConfigurationResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.VirtualNetworkProfileResponse.Companion.toKotlin as virtualNetworkProfileResponseToKotlin
import com.pulumi.azurenative.synapse.kotlin.outputs.WorkspaceRepositoryConfigurationResponse.Companion.toKotlin as workspaceRepositoryConfigurationResponseToKotlin
/**
* 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.azurenative.synapse.Workspace(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Workspace(builtJavaResource)
}
}
/**
* A workspace
* Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2021-03-01.
* Other available API versions: 2021-05-01, 2021-06-01-preview.
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:synapse:Workspace workspace1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}
* ```
*/
public class Workspace internal constructor(
override val javaResource: com.pulumi.azurenative.synapse.Workspace,
) : KotlinCustomResource(javaResource, WorkspaceMapper) {
/**
* The ADLA resource ID.
*/
public val adlaResourceId: Output
get() = javaResource.adlaResourceId().applyValue({ args0 -> args0 })
/**
* Connectivity endpoints
*/
public val connectivityEndpoints: Output