All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.synapse.kotlin.WorkspaceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.synapse.kotlin

import com.pulumi.azure.synapse.WorkspaceArgs.builder
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceAadAdminArgs
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceAadAdminArgsBuilder
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceAzureDevopsRepoArgs
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceAzureDevopsRepoArgsBuilder
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceCustomerManagedKeyArgs
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceCustomerManagedKeyArgsBuilder
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceGithubRepoArgs
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceGithubRepoArgsBuilder
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceIdentityArgs
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceIdentityArgsBuilder
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceSqlAadAdminArgs
import com.pulumi.azure.synapse.kotlin.inputs.WorkspaceSqlAadAdminArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Synapse Workspace.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "examplestorageacc",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 *     accountKind: "StorageV2",
 *     isHnsEnabled: true,
 * });
 * const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", {
 *     name: "example",
 *     storageAccountId: exampleAccount.id,
 * });
 * const exampleWorkspace = new azure.synapse.Workspace("example", {
 *     name: "example",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     storageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.id,
 *     sqlAdministratorLogin: "sqladminuser",
 *     sqlAdministratorLoginPassword: "H@Sh1CoR3!",
 *     identity: {
 *         type: "SystemAssigned",
 *     },
 *     tags: {
 *         Env: "production",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="examplestorageacc",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS",
 *     account_kind="StorageV2",
 *     is_hns_enabled=True)
 * example_data_lake_gen2_filesystem = azure.storage.DataLakeGen2Filesystem("example",
 *     name="example",
 *     storage_account_id=example_account.id)
 * example_workspace = azure.synapse.Workspace("example",
 *     name="example",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     storage_data_lake_gen2_filesystem_id=example_data_lake_gen2_filesystem.id,
 *     sql_administrator_login="sqladminuser",
 *     sql_administrator_login_password="H@Sh1CoR3!",
 *     identity={
 *         "type": "SystemAssigned",
 *     },
 *     tags={
 *         "Env": "production",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "examplestorageacc",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *         AccountKind = "StorageV2",
 *         IsHnsEnabled = true,
 *     });
 *     var exampleDataLakeGen2Filesystem = new Azure.Storage.DataLakeGen2Filesystem("example", new()
 *     {
 *         Name = "example",
 *         StorageAccountId = exampleAccount.Id,
 *     });
 *     var exampleWorkspace = new Azure.Synapse.Workspace("example", new()
 *     {
 *         Name = "example",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         StorageDataLakeGen2FilesystemId = exampleDataLakeGen2Filesystem.Id,
 *         SqlAdministratorLogin = "sqladminuser",
 *         SqlAdministratorLoginPassword = "H@Sh1CoR3!",
 *         Identity = new Azure.Synapse.Inputs.WorkspaceIdentityArgs
 *         {
 *             Type = "SystemAssigned",
 *         },
 *         Tags =
 *         {
 *             { "Env", "production" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/synapse"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("examplestorageacc"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 			AccountKind:            pulumi.String("StorageV2"),
 * 			IsHnsEnabled:           pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleDataLakeGen2Filesystem, err := storage.NewDataLakeGen2Filesystem(ctx, "example", &storage.DataLakeGen2FilesystemArgs{
 * 			Name:             pulumi.String("example"),
 * 			StorageAccountId: exampleAccount.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = synapse.NewWorkspace(ctx, "example", &synapse.WorkspaceArgs{
 * 			Name:                            pulumi.String("example"),
 * 			ResourceGroupName:               example.Name,
 * 			Location:                        example.Location,
 * 			StorageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.ID(),
 * 			SqlAdministratorLogin:           pulumi.String("sqladminuser"),
 * 			SqlAdministratorLoginPassword:   pulumi.String("H@Sh1CoR3!"),
 * 			Identity: &synapse.WorkspaceIdentityArgs{
 * 				Type: pulumi.String("SystemAssigned"),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"Env": pulumi.String("production"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.DataLakeGen2Filesystem;
 * import com.pulumi.azure.storage.DataLakeGen2FilesystemArgs;
 * import com.pulumi.azure.synapse.Workspace;
 * import com.pulumi.azure.synapse.WorkspaceArgs;
 * import com.pulumi.azure.synapse.inputs.WorkspaceIdentityArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplestorageacc")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .accountKind("StorageV2")
 *             .isHnsEnabled("true")
 *             .build());
 *         var exampleDataLakeGen2Filesystem = new DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", DataLakeGen2FilesystemArgs.builder()
 *             .name("example")
 *             .storageAccountId(exampleAccount.id())
 *             .build());
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .storageDataLakeGen2FilesystemId(exampleDataLakeGen2Filesystem.id())
 *             .sqlAdministratorLogin("sqladminuser")
 *             .sqlAdministratorLoginPassword("H@Sh1CoR3!")
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .tags(Map.of("Env", "production"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: examplestorageacc
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *       accountKind: StorageV2
 *       isHnsEnabled: 'true'
 *   exampleDataLakeGen2Filesystem:
 *     type: azure:storage:DataLakeGen2Filesystem
 *     name: example
 *     properties:
 *       name: example
 *       storageAccountId: ${exampleAccount.id}
 *   exampleWorkspace:
 *     type: azure:synapse:Workspace
 *     name: example
 *     properties:
 *       name: example
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       storageDataLakeGen2FilesystemId: ${exampleDataLakeGen2Filesystem.id}
 *       sqlAdministratorLogin: sqladminuser
 *       sqlAdministratorLoginPassword: H@Sh1CoR3!
 *       identity:
 *         type: SystemAssigned
 *       tags:
 *         Env: production
 * ```
 * 
 * ### Creating A Workspace With Customer Managed Key And Azure AD Admin
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const current = azure.core.getClientConfig({});
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "examplestorageacc",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 *     accountKind: "StorageV2",
 *     isHnsEnabled: true,
 * });
 * const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", {
 *     name: "example",
 *     storageAccountId: exampleAccount.id,
 * });
 * const exampleKeyVault = new azure.keyvault.KeyVault("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     tenantId: current.then(current => current.tenantId),
 *     skuName: "standard",
 *     purgeProtectionEnabled: true,
 * });
 * const deployer = new azure.keyvault.AccessPolicy("deployer", {
 *     keyVaultId: exampleKeyVault.id,
 *     tenantId: current.then(current => current.tenantId),
 *     objectId: current.then(current => current.objectId),
 *     keyPermissions: [
 *         "Create",
 *         "Get",
 *         "Delete",
 *         "Purge",
 *         "GetRotationPolicy",
 *     ],
 * });
 * const exampleKey = new azure.keyvault.Key("example", {
 *     name: "workspaceencryptionkey",
 *     keyVaultId: exampleKeyVault.id,
 *     keyType: "RSA",
 *     keySize: 2048,
 *     keyOpts: [
 *         "unwrapKey",
 *         "wrapKey",
 *     ],
 * }, {
 *     dependsOn: [deployer],
 * });
 * const exampleWorkspace = new azure.synapse.Workspace("example", {
 *     name: "example",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     storageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.id,
 *     sqlAdministratorLogin: "sqladminuser",
 *     sqlAdministratorLoginPassword: "H@Sh1CoR3!",
 *     customerManagedKey: {
 *         keyVersionlessId: exampleKey.versionlessId,
 *         keyName: "enckey",
 *     },
 *     identity: {
 *         type: "SystemAssigned",
 *     },
 *     tags: {
 *         Env: "production",
 *     },
 * });
 * const workspacePolicy = new azure.keyvault.AccessPolicy("workspace_policy", {
 *     keyVaultId: exampleKeyVault.id,
 *     tenantId: exampleWorkspace.identity.apply(identity => identity?.tenantId),
 *     objectId: exampleWorkspace.identity.apply(identity => identity?.principalId),
 *     keyPermissions: [
 *         "Get",
 *         "WrapKey",
 *         "UnwrapKey",
 *     ],
 * });
 * const exampleWorkspaceKey = new azure.synapse.WorkspaceKey("example", {
 *     customerManagedKeyVersionlessId: exampleKey.versionlessId,
 *     synapseWorkspaceId: exampleWorkspace.id,
 *     active: true,
 *     customerManagedKeyName: "enckey",
 * }, {
 *     dependsOn: [workspacePolicy],
 * });
 * const exampleWorkspaceAadAdmin = new azure.synapse.WorkspaceAadAdmin("example", {
 *     synapseWorkspaceId: exampleWorkspace.id,
 *     login: "AzureAD Admin",
 *     objectId: "00000000-0000-0000-0000-000000000000",
 *     tenantId: "00000000-0000-0000-0000-000000000000",
 * }, {
 *     dependsOn: [exampleWorkspaceKey],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * current = azure.core.get_client_config()
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="examplestorageacc",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS",
 *     account_kind="StorageV2",
 *     is_hns_enabled=True)
 * example_data_lake_gen2_filesystem = azure.storage.DataLakeGen2Filesystem("example",
 *     name="example",
 *     storage_account_id=example_account.id)
 * example_key_vault = azure.keyvault.KeyVault("example",
 *     name="example",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     tenant_id=current.tenant_id,
 *     sku_name="standard",
 *     purge_protection_enabled=True)
 * deployer = azure.keyvault.AccessPolicy("deployer",
 *     key_vault_id=example_key_vault.id,
 *     tenant_id=current.tenant_id,
 *     object_id=current.object_id,
 *     key_permissions=[
 *         "Create",
 *         "Get",
 *         "Delete",
 *         "Purge",
 *         "GetRotationPolicy",
 *     ])
 * example_key = azure.keyvault.Key("example",
 *     name="workspaceencryptionkey",
 *     key_vault_id=example_key_vault.id,
 *     key_type="RSA",
 *     key_size=2048,
 *     key_opts=[
 *         "unwrapKey",
 *         "wrapKey",
 *     ],
 *     opts = pulumi.ResourceOptions(depends_on=[deployer]))
 * example_workspace = azure.synapse.Workspace("example",
 *     name="example",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     storage_data_lake_gen2_filesystem_id=example_data_lake_gen2_filesystem.id,
 *     sql_administrator_login="sqladminuser",
 *     sql_administrator_login_password="H@Sh1CoR3!",
 *     customer_managed_key={
 *         "key_versionless_id": example_key.versionless_id,
 *         "key_name": "enckey",
 *     },
 *     identity={
 *         "type": "SystemAssigned",
 *     },
 *     tags={
 *         "Env": "production",
 *     })
 * workspace_policy = azure.keyvault.AccessPolicy("workspace_policy",
 *     key_vault_id=example_key_vault.id,
 *     tenant_id=example_workspace.identity.tenant_id,
 *     object_id=example_workspace.identity.principal_id,
 *     key_permissions=[
 *         "Get",
 *         "WrapKey",
 *         "UnwrapKey",
 *     ])
 * example_workspace_key = azure.synapse.WorkspaceKey("example",
 *     customer_managed_key_versionless_id=example_key.versionless_id,
 *     synapse_workspace_id=example_workspace.id,
 *     active=True,
 *     customer_managed_key_name="enckey",
 *     opts = pulumi.ResourceOptions(depends_on=[workspace_policy]))
 * example_workspace_aad_admin = azure.synapse.WorkspaceAadAdmin("example",
 *     synapse_workspace_id=example_workspace.id,
 *     login="AzureAD Admin",
 *     object_id="00000000-0000-0000-0000-000000000000",
 *     tenant_id="00000000-0000-0000-0000-000000000000",
 *     opts = pulumi.ResourceOptions(depends_on=[example_workspace_key]))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var current = Azure.Core.GetClientConfig.Invoke();
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "examplestorageacc",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *         AccountKind = "StorageV2",
 *         IsHnsEnabled = true,
 *     });
 *     var exampleDataLakeGen2Filesystem = new Azure.Storage.DataLakeGen2Filesystem("example", new()
 *     {
 *         Name = "example",
 *         StorageAccountId = exampleAccount.Id,
 *     });
 *     var exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
 *     {
 *         Name = "example",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
 *         SkuName = "standard",
 *         PurgeProtectionEnabled = true,
 *     });
 *     var deployer = new Azure.KeyVault.AccessPolicy("deployer", new()
 *     {
 *         KeyVaultId = exampleKeyVault.Id,
 *         TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
 *         ObjectId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
 *         KeyPermissions = new[]
 *         {
 *             "Create",
 *             "Get",
 *             "Delete",
 *             "Purge",
 *             "GetRotationPolicy",
 *         },
 *     });
 *     var exampleKey = new Azure.KeyVault.Key("example", new()
 *     {
 *         Name = "workspaceencryptionkey",
 *         KeyVaultId = exampleKeyVault.Id,
 *         KeyType = "RSA",
 *         KeySize = 2048,
 *         KeyOpts = new[]
 *         {
 *             "unwrapKey",
 *             "wrapKey",
 *         },
 *     }, new CustomResourceOptions
 *     {
 *         DependsOn =
 *         {
 *             deployer,
 *         },
 *     });
 *     var exampleWorkspace = new Azure.Synapse.Workspace("example", new()
 *     {
 *         Name = "example",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         StorageDataLakeGen2FilesystemId = exampleDataLakeGen2Filesystem.Id,
 *         SqlAdministratorLogin = "sqladminuser",
 *         SqlAdministratorLoginPassword = "H@Sh1CoR3!",
 *         CustomerManagedKey = new Azure.Synapse.Inputs.WorkspaceCustomerManagedKeyArgs
 *         {
 *             KeyVersionlessId = exampleKey.VersionlessId,
 *             KeyName = "enckey",
 *         },
 *         Identity = new Azure.Synapse.Inputs.WorkspaceIdentityArgs
 *         {
 *             Type = "SystemAssigned",
 *         },
 *         Tags =
 *         {
 *             { "Env", "production" },
 *         },
 *     });
 *     var workspacePolicy = new Azure.KeyVault.AccessPolicy("workspace_policy", new()
 *     {
 *         KeyVaultId = exampleKeyVault.Id,
 *         TenantId = exampleWorkspace.Identity.Apply(identity => identity?.TenantId),
 *         ObjectId = exampleWorkspace.Identity.Apply(identity => identity?.PrincipalId),
 *         KeyPermissions = new[]
 *         {
 *             "Get",
 *             "WrapKey",
 *             "UnwrapKey",
 *         },
 *     });
 *     var exampleWorkspaceKey = new Azure.Synapse.WorkspaceKey("example", new()
 *     {
 *         CustomerManagedKeyVersionlessId = exampleKey.VersionlessId,
 *         SynapseWorkspaceId = exampleWorkspace.Id,
 *         Active = true,
 *         CustomerManagedKeyName = "enckey",
 *     }, new CustomResourceOptions
 *     {
 *         DependsOn =
 *         {
 *             workspacePolicy,
 *         },
 *     });
 *     var exampleWorkspaceAadAdmin = new Azure.Synapse.WorkspaceAadAdmin("example", new()
 *     {
 *         SynapseWorkspaceId = exampleWorkspace.Id,
 *         Login = "AzureAD Admin",
 *         ObjectId = "00000000-0000-0000-0000-000000000000",
 *         TenantId = "00000000-0000-0000-0000-000000000000",
 *     }, new CustomResourceOptions
 *     {
 *         DependsOn =
 *         {
 *             exampleWorkspaceKey,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/synapse"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		current, err := core.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("examplestorageacc"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 			AccountKind:            pulumi.String("StorageV2"),
 * 			IsHnsEnabled:           pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleDataLakeGen2Filesystem, err := storage.NewDataLakeGen2Filesystem(ctx, "example", &storage.DataLakeGen2FilesystemArgs{
 * 			Name:             pulumi.String("example"),
 * 			StorageAccountId: exampleAccount.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
 * 			Name:                   pulumi.String("example"),
 * 			Location:               example.Location,
 * 			ResourceGroupName:      example.Name,
 * 			TenantId:               pulumi.String(current.TenantId),
 * 			SkuName:                pulumi.String("standard"),
 * 			PurgeProtectionEnabled: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		deployer, err := keyvault.NewAccessPolicy(ctx, "deployer", &keyvault.AccessPolicyArgs{
 * 			KeyVaultId: exampleKeyVault.ID(),
 * 			TenantId:   pulumi.String(current.TenantId),
 * 			ObjectId:   pulumi.String(current.ObjectId),
 * 			KeyPermissions: pulumi.StringArray{
 * 				pulumi.String("Create"),
 * 				pulumi.String("Get"),
 * 				pulumi.String("Delete"),
 * 				pulumi.String("Purge"),
 * 				pulumi.String("GetRotationPolicy"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleKey, err := keyvault.NewKey(ctx, "example", &keyvault.KeyArgs{
 * 			Name:       pulumi.String("workspaceencryptionkey"),
 * 			KeyVaultId: exampleKeyVault.ID(),
 * 			KeyType:    pulumi.String("RSA"),
 * 			KeySize:    pulumi.Int(2048),
 * 			KeyOpts: pulumi.StringArray{
 * 				pulumi.String("unwrapKey"),
 * 				pulumi.String("wrapKey"),
 * 			},
 * 		}, pulumi.DependsOn([]pulumi.Resource{
 * 			deployer,
 * 		}))
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleWorkspace, err := synapse.NewWorkspace(ctx, "example", &synapse.WorkspaceArgs{
 * 			Name:                            pulumi.String("example"),
 * 			ResourceGroupName:               example.Name,
 * 			Location:                        example.Location,
 * 			StorageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.ID(),
 * 			SqlAdministratorLogin:           pulumi.String("sqladminuser"),
 * 			SqlAdministratorLoginPassword:   pulumi.String("H@Sh1CoR3!"),
 * 			CustomerManagedKey: &synapse.WorkspaceCustomerManagedKeyArgs{
 * 				KeyVersionlessId: exampleKey.VersionlessId,
 * 				KeyName:          pulumi.String("enckey"),
 * 			},
 * 			Identity: &synapse.WorkspaceIdentityArgs{
 * 				Type: pulumi.String("SystemAssigned"),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"Env": pulumi.String("production"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		workspacePolicy, err := keyvault.NewAccessPolicy(ctx, "workspace_policy", &keyvault.AccessPolicyArgs{
 * 			KeyVaultId: exampleKeyVault.ID(),
 * 			TenantId: pulumi.String(exampleWorkspace.Identity.ApplyT(func(identity synapse.WorkspaceIdentity) (*string, error) {
 * 				return &identity.TenantId, nil
 * 			}).(pulumi.StringPtrOutput)),
 * 			ObjectId: pulumi.String(exampleWorkspace.Identity.ApplyT(func(identity synapse.WorkspaceIdentity) (*string, error) {
 * 				return &identity.PrincipalId, nil
 * 			}).(pulumi.StringPtrOutput)),
 * 			KeyPermissions: pulumi.StringArray{
 * 				pulumi.String("Get"),
 * 				pulumi.String("WrapKey"),
 * 				pulumi.String("UnwrapKey"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleWorkspaceKey, err := synapse.NewWorkspaceKey(ctx, "example", &synapse.WorkspaceKeyArgs{
 * 			CustomerManagedKeyVersionlessId: exampleKey.VersionlessId,
 * 			SynapseWorkspaceId:              exampleWorkspace.ID(),
 * 			Active:                          pulumi.Bool(true),
 * 			CustomerManagedKeyName:          pulumi.String("enckey"),
 * 		}, pulumi.DependsOn([]pulumi.Resource{
 * 			workspacePolicy,
 * 		}))
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = synapse.NewWorkspaceAadAdmin(ctx, "example", &synapse.WorkspaceAadAdminArgs{
 * 			SynapseWorkspaceId: exampleWorkspace.ID(),
 * 			Login:              pulumi.String("AzureAD Admin"),
 * 			ObjectId:           pulumi.String("00000000-0000-0000-0000-000000000000"),
 * 			TenantId:           pulumi.String("00000000-0000-0000-0000-000000000000"),
 * 		}, pulumi.DependsOn([]pulumi.Resource{
 * 			exampleWorkspaceKey,
 * 		}))
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.DataLakeGen2Filesystem;
 * import com.pulumi.azure.storage.DataLakeGen2FilesystemArgs;
 * import com.pulumi.azure.keyvault.KeyVault;
 * import com.pulumi.azure.keyvault.KeyVaultArgs;
 * import com.pulumi.azure.keyvault.AccessPolicy;
 * import com.pulumi.azure.keyvault.AccessPolicyArgs;
 * import com.pulumi.azure.keyvault.Key;
 * import com.pulumi.azure.keyvault.KeyArgs;
 * import com.pulumi.azure.synapse.Workspace;
 * import com.pulumi.azure.synapse.WorkspaceArgs;
 * import com.pulumi.azure.synapse.inputs.WorkspaceCustomerManagedKeyArgs;
 * import com.pulumi.azure.synapse.inputs.WorkspaceIdentityArgs;
 * import com.pulumi.azure.synapse.WorkspaceKey;
 * import com.pulumi.azure.synapse.WorkspaceKeyArgs;
 * import com.pulumi.azure.synapse.WorkspaceAadAdmin;
 * import com.pulumi.azure.synapse.WorkspaceAadAdminArgs;
 * import com.pulumi.resources.CustomResourceOptions;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         final var current = CoreFunctions.getClientConfig();
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplestorageacc")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .accountKind("StorageV2")
 *             .isHnsEnabled("true")
 *             .build());
 *         var exampleDataLakeGen2Filesystem = new DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", DataLakeGen2FilesystemArgs.builder()
 *             .name("example")
 *             .storageAccountId(exampleAccount.id())
 *             .build());
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("example")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("standard")
 *             .purgeProtectionEnabled(true)
 *             .build());
 *         var deployer = new AccessPolicy("deployer", AccessPolicyArgs.builder()
 *             .keyVaultId(exampleKeyVault.id())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
 *             .keyPermissions(
 *                 "Create",
 *                 "Get",
 *                 "Delete",
 *                 "Purge",
 *                 "GetRotationPolicy")
 *             .build());
 *         var exampleKey = new Key("exampleKey", KeyArgs.builder()
 *             .name("workspaceencryptionkey")
 *             .keyVaultId(exampleKeyVault.id())
 *             .keyType("RSA")
 *             .keySize(2048)
 *             .keyOpts(
 *                 "unwrapKey",
 *                 "wrapKey")
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(deployer)
 *                 .build());
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .storageDataLakeGen2FilesystemId(exampleDataLakeGen2Filesystem.id())
 *             .sqlAdministratorLogin("sqladminuser")
 *             .sqlAdministratorLoginPassword("H@Sh1CoR3!")
 *             .customerManagedKey(WorkspaceCustomerManagedKeyArgs.builder()
 *                 .keyVersionlessId(exampleKey.versionlessId())
 *                 .keyName("enckey")
 *                 .build())
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .tags(Map.of("Env", "production"))
 *             .build());
 *         var workspacePolicy = new AccessPolicy("workspacePolicy", AccessPolicyArgs.builder()
 *             .keyVaultId(exampleKeyVault.id())
 *             .tenantId(exampleWorkspace.identity().applyValue(identity -> identity.tenantId()))
 *             .objectId(exampleWorkspace.identity().applyValue(identity -> identity.principalId()))
 *             .keyPermissions(
 *                 "Get",
 *                 "WrapKey",
 *                 "UnwrapKey")
 *             .build());
 *         var exampleWorkspaceKey = new WorkspaceKey("exampleWorkspaceKey", WorkspaceKeyArgs.builder()
 *             .customerManagedKeyVersionlessId(exampleKey.versionlessId())
 *             .synapseWorkspaceId(exampleWorkspace.id())
 *             .active(true)
 *             .customerManagedKeyName("enckey")
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(workspacePolicy)
 *                 .build());
 *         var exampleWorkspaceAadAdmin = new WorkspaceAadAdmin("exampleWorkspaceAadAdmin", WorkspaceAadAdminArgs.builder()
 *             .synapseWorkspaceId(exampleWorkspace.id())
 *             .login("AzureAD Admin")
 *             .objectId("00000000-0000-0000-0000-000000000000")
 *             .tenantId("00000000-0000-0000-0000-000000000000")
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(exampleWorkspaceKey)
 *                 .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: examplestorageacc
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *       accountKind: StorageV2
 *       isHnsEnabled: 'true'
 *   exampleDataLakeGen2Filesystem:
 *     type: azure:storage:DataLakeGen2Filesystem
 *     name: example
 *     properties:
 *       name: example
 *       storageAccountId: ${exampleAccount.id}
 *   exampleKeyVault:
 *     type: azure:keyvault:KeyVault
 *     name: example
 *     properties:
 *       name: example
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       tenantId: ${current.tenantId}
 *       skuName: standard
 *       purgeProtectionEnabled: true
 *   deployer:
 *     type: azure:keyvault:AccessPolicy
 *     properties:
 *       keyVaultId: ${exampleKeyVault.id}
 *       tenantId: ${current.tenantId}
 *       objectId: ${current.objectId}
 *       keyPermissions:
 *         - Create
 *         - Get
 *         - Delete
 *         - Purge
 *         - GetRotationPolicy
 *   exampleKey:
 *     type: azure:keyvault:Key
 *     name: example
 *     properties:
 *       name: workspaceencryptionkey
 *       keyVaultId: ${exampleKeyVault.id}
 *       keyType: RSA
 *       keySize: 2048
 *       keyOpts:
 *         - unwrapKey
 *         - wrapKey
 *     options:
 *       dependson:
 *         - ${deployer}
 *   exampleWorkspace:
 *     type: azure:synapse:Workspace
 *     name: example
 *     properties:
 *       name: example
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       storageDataLakeGen2FilesystemId: ${exampleDataLakeGen2Filesystem.id}
 *       sqlAdministratorLogin: sqladminuser
 *       sqlAdministratorLoginPassword: H@Sh1CoR3!
 *       customerManagedKey:
 *         keyVersionlessId: ${exampleKey.versionlessId}
 *         keyName: enckey
 *       identity:
 *         type: SystemAssigned
 *       tags:
 *         Env: production
 *   workspacePolicy:
 *     type: azure:keyvault:AccessPolicy
 *     name: workspace_policy
 *     properties:
 *       keyVaultId: ${exampleKeyVault.id}
 *       tenantId: ${exampleWorkspace.identity.tenantId}
 *       objectId: ${exampleWorkspace.identity.principalId}
 *       keyPermissions:
 *         - Get
 *         - WrapKey
 *         - UnwrapKey
 *   exampleWorkspaceKey:
 *     type: azure:synapse:WorkspaceKey
 *     name: example
 *     properties:
 *       customerManagedKeyVersionlessId: ${exampleKey.versionlessId}
 *       synapseWorkspaceId: ${exampleWorkspace.id}
 *       active: true
 *       customerManagedKeyName: enckey
 *     options:
 *       dependson:
 *         - ${workspacePolicy}
 *   exampleWorkspaceAadAdmin:
 *     type: azure:synapse:WorkspaceAadAdmin
 *     name: example
 *     properties:
 *       synapseWorkspaceId: ${exampleWorkspace.id}
 *       login: AzureAD Admin
 *       objectId: 00000000-0000-0000-0000-000000000000
 *       tenantId: 00000000-0000-0000-0000-000000000000
 *     options:
 *       dependson:
 *         - ${exampleWorkspaceKey}
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * Synapse Workspace can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:synapse/workspace:Workspace example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Synapse/workspaces/workspace1
 * ```
 * @property aadAdmin
 * @property azureDevopsRepo An `azure_devops_repo` block as defined below.
 * @property azureadAuthenticationOnly Is Azure Active Directory Authentication the only way to authenticate with resources inside this synapse Workspace. Defaults to `false`.
 * @property computeSubnetId Subnet ID used for computes in workspace Changing this forces a new resource to be created.
 * @property customerManagedKey A `customer_managed_key` block as defined below.
 * @property dataExfiltrationProtectionEnabled Is data exfiltration protection enabled in this workspace? If set to `true`, `managed_virtual_network_enabled` must also be set to `true`. Changing this forces a new resource to be created.
 * @property githubRepo A `github_repo` block as defined below.
 * @property identity An `identity` block as defined below.
 * @property linkingAllowedForAadTenantIds Allowed AAD Tenant Ids For Linking.
 * @property location Specifies the Azure Region where the synapse Workspace should exist. Changing this forces a new resource to be created.
 * @property managedResourceGroupName Workspace managed resource group. Changing this forces a new resource to be created.
 * @property managedVirtualNetworkEnabled Is Virtual Network enabled for all computes in this workspace? Changing this forces a new resource to be created.
 * @property name Specifies the name which should be used for this synapse Workspace. Changing this forces a new resource to be created.
 * @property publicNetworkAccessEnabled Whether public network access is allowed for the Cognitive Account. Defaults to `true`.
 * @property purviewId The ID of purview account.
 * @property resourceGroupName Specifies the name of the Resource Group where the synapse Workspace should exist. Changing this forces a new resource to be created.
 * @property sqlAadAdmin
 * @property sqlAdministratorLogin Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is not provided `aad_admin` or `customer_managed_key` must be provided.
 * @property sqlAdministratorLoginPassword The Password associated with the `sql_administrator_login` for the SQL administrator. If this is not provided `aad_admin` or `customer_managed_key` must be provided.
 * @property sqlIdentityControlEnabled Are pipelines (running as workspace's system assigned identity) allowed to access SQL pools?
 * @property storageDataLakeGen2FilesystemId Specifies the ID of storage data lake gen2 filesystem resource. Changing this forces a new resource to be created.
 * @property tags A mapping of tags which should be assigned to the Synapse Workspace.
 */
public data class WorkspaceArgs(
    @Deprecated(
        message = """
  The `aad_admin` block has been superseded by the `azure.synapse.WorkspaceAadAdmin` resource and
      will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    public val aadAdmin: Output? = null,
    public val azureDevopsRepo: Output? = null,
    public val azureadAuthenticationOnly: Output? = null,
    public val computeSubnetId: Output? = null,
    public val customerManagedKey: Output? = null,
    public val dataExfiltrationProtectionEnabled: Output? = null,
    public val githubRepo: Output? = null,
    public val identity: Output? = null,
    public val linkingAllowedForAadTenantIds: Output>? = null,
    public val location: Output? = null,
    public val managedResourceGroupName: Output? = null,
    public val managedVirtualNetworkEnabled: Output? = null,
    public val name: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val purviewId: Output? = null,
    public val resourceGroupName: Output? = null,
    @Deprecated(
        message = """
  The `sql_aad_admin` block has been superseded by the `azure.synapse.WorkspaceSqlAadAdmin` resource
      and will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    public val sqlAadAdmin: Output? = null,
    public val sqlAdministratorLogin: Output? = null,
    public val sqlAdministratorLoginPassword: Output? = null,
    public val sqlIdentityControlEnabled: Output? = null,
    public val storageDataLakeGen2FilesystemId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.synapse.WorkspaceArgs =
        com.pulumi.azure.synapse.WorkspaceArgs.builder()
            .aadAdmin(aadAdmin?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .azureDevopsRepo(azureDevopsRepo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .azureadAuthenticationOnly(azureadAuthenticationOnly?.applyValue({ args0 -> args0 }))
            .computeSubnetId(computeSubnetId?.applyValue({ args0 -> args0 }))
            .customerManagedKey(
                customerManagedKey?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .dataExfiltrationProtectionEnabled(
                dataExfiltrationProtectionEnabled?.applyValue({ args0 ->
                    args0
                }),
            )
            .githubRepo(githubRepo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .linkingAllowedForAadTenantIds(
                linkingAllowedForAadTenantIds?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .managedResourceGroupName(managedResourceGroupName?.applyValue({ args0 -> args0 }))
            .managedVirtualNetworkEnabled(managedVirtualNetworkEnabled?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .purviewId(purviewId?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sqlAadAdmin(sqlAadAdmin?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sqlAdministratorLogin(sqlAdministratorLogin?.applyValue({ args0 -> args0 }))
            .sqlAdministratorLoginPassword(sqlAdministratorLoginPassword?.applyValue({ args0 -> args0 }))
            .sqlIdentityControlEnabled(sqlIdentityControlEnabled?.applyValue({ args0 -> args0 }))
            .storageDataLakeGen2FilesystemId(storageDataLakeGen2FilesystemId?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [WorkspaceArgs].
 */
@PulumiTagMarker
public class WorkspaceArgsBuilder internal constructor() {
    private var aadAdmin: Output? = null

    private var azureDevopsRepo: Output? = null

    private var azureadAuthenticationOnly: Output? = null

    private var computeSubnetId: Output? = null

    private var customerManagedKey: Output? = null

    private var dataExfiltrationProtectionEnabled: Output? = null

    private var githubRepo: Output? = null

    private var identity: Output? = null

    private var linkingAllowedForAadTenantIds: Output>? = null

    private var location: Output? = null

    private var managedResourceGroupName: Output? = null

    private var managedVirtualNetworkEnabled: Output? = null

    private var name: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var purviewId: Output? = null

    private var resourceGroupName: Output? = null

    private var sqlAadAdmin: Output? = null

    private var sqlAdministratorLogin: Output? = null

    private var sqlAdministratorLoginPassword: Output? = null

    private var sqlIdentityControlEnabled: Output? = null

    private var storageDataLakeGen2FilesystemId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `aad_admin` block has been superseded by the `azure.synapse.WorkspaceAadAdmin` resource and
      will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("tvpvhavjumfywxgx")
    public suspend fun aadAdmin(`value`: Output) {
        this.aadAdmin = value
    }

    /**
     * @param value An `azure_devops_repo` block as defined below.
     */
    @JvmName("oagvckslyswylvtq")
    public suspend fun azureDevopsRepo(`value`: Output) {
        this.azureDevopsRepo = value
    }

    /**
     * @param value Is Azure Active Directory Authentication the only way to authenticate with resources inside this synapse Workspace. Defaults to `false`.
     */
    @JvmName("rechjoacrjgloupf")
    public suspend fun azureadAuthenticationOnly(`value`: Output) {
        this.azureadAuthenticationOnly = value
    }

    /**
     * @param value Subnet ID used for computes in workspace Changing this forces a new resource to be created.
     */
    @JvmName("rnoyctpeaibhosrm")
    public suspend fun computeSubnetId(`value`: Output) {
        this.computeSubnetId = value
    }

    /**
     * @param value A `customer_managed_key` block as defined below.
     */
    @JvmName("dcudxgvmoycofpws")
    public suspend fun customerManagedKey(`value`: Output) {
        this.customerManagedKey = value
    }

    /**
     * @param value Is data exfiltration protection enabled in this workspace? If set to `true`, `managed_virtual_network_enabled` must also be set to `true`. Changing this forces a new resource to be created.
     */
    @JvmName("qhsrbrgxyuwwjqqn")
    public suspend fun dataExfiltrationProtectionEnabled(`value`: Output) {
        this.dataExfiltrationProtectionEnabled = value
    }

    /**
     * @param value A `github_repo` block as defined below.
     */
    @JvmName("rcpqafddxcgfdthf")
    public suspend fun githubRepo(`value`: Output) {
        this.githubRepo = value
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("qxwgotgewhssopyv")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Allowed AAD Tenant Ids For Linking.
     */
    @JvmName("xgtcfcojfwlcgpck")
    public suspend fun linkingAllowedForAadTenantIds(`value`: Output>) {
        this.linkingAllowedForAadTenantIds = value
    }

    @JvmName("ycdptmfqefydothu")
    public suspend fun linkingAllowedForAadTenantIds(vararg values: Output) {
        this.linkingAllowedForAadTenantIds = Output.all(values.asList())
    }

    /**
     * @param values Allowed AAD Tenant Ids For Linking.
     */
    @JvmName("eimpyiytcyxnuifb")
    public suspend fun linkingAllowedForAadTenantIds(values: List>) {
        this.linkingAllowedForAadTenantIds = Output.all(values)
    }

    /**
     * @param value Specifies the Azure Region where the synapse Workspace should exist. Changing this forces a new resource to be created.
     */
    @JvmName("abbbbgyslpowdnlu")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Workspace managed resource group. Changing this forces a new resource to be created.
     */
    @JvmName("vlwdhksofiqvhlcp")
    public suspend fun managedResourceGroupName(`value`: Output) {
        this.managedResourceGroupName = value
    }

    /**
     * @param value Is Virtual Network enabled for all computes in this workspace? Changing this forces a new resource to be created.
     */
    @JvmName("ptpuwmlqjjxsnebw")
    public suspend fun managedVirtualNetworkEnabled(`value`: Output) {
        this.managedVirtualNetworkEnabled = value
    }

    /**
     * @param value Specifies the name which should be used for this synapse Workspace. Changing this forces a new resource to be created.
     */
    @JvmName("snpovcjfsfrulvyd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether public network access is allowed for the Cognitive Account. Defaults to `true`.
     */
    @JvmName("vaxysomsjebocamd")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value The ID of purview account.
     */
    @JvmName("tlguhgvouwkgqfxa")
    public suspend fun purviewId(`value`: Output) {
        this.purviewId = value
    }

    /**
     * @param value Specifies the name of the Resource Group where the synapse Workspace should exist. Changing this forces a new resource to be created.
     */
    @JvmName("tficgssclphldkpf")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `sql_aad_admin` block has been superseded by the `azure.synapse.WorkspaceSqlAadAdmin` resource
      and will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("dowyblcpttbyaieh")
    public suspend fun sqlAadAdmin(`value`: Output) {
        this.sqlAadAdmin = value
    }

    /**
     * @param value Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is not provided `aad_admin` or `customer_managed_key` must be provided.
     */
    @JvmName("nuvjywffobldqttt")
    public suspend fun sqlAdministratorLogin(`value`: Output) {
        this.sqlAdministratorLogin = value
    }

    /**
     * @param value The Password associated with the `sql_administrator_login` for the SQL administrator. If this is not provided `aad_admin` or `customer_managed_key` must be provided.
     */
    @JvmName("lhoouenwpdongola")
    public suspend fun sqlAdministratorLoginPassword(`value`: Output) {
        this.sqlAdministratorLoginPassword = value
    }

    /**
     * @param value Are pipelines (running as workspace's system assigned identity) allowed to access SQL pools?
     */
    @JvmName("clegywoiwytgjihr")
    public suspend fun sqlIdentityControlEnabled(`value`: Output) {
        this.sqlIdentityControlEnabled = value
    }

    /**
     * @param value Specifies the ID of storage data lake gen2 filesystem resource. Changing this forces a new resource to be created.
     */
    @JvmName("wikwgaylcwqjsxyf")
    public suspend fun storageDataLakeGen2FilesystemId(`value`: Output) {
        this.storageDataLakeGen2FilesystemId = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Synapse Workspace.
     */
    @JvmName("fdnhntkbnltuqyxg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `aad_admin` block has been superseded by the `azure.synapse.WorkspaceAadAdmin` resource and
      will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("mhenpdjlcanvctsj")
    public suspend fun aadAdmin(`value`: WorkspaceAadAdminArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aadAdmin = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  The `aad_admin` block has been superseded by the `azure.synapse.WorkspaceAadAdmin` resource and
      will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("tnlbdhkacpbtpcgw")
    public suspend fun aadAdmin(argument: suspend WorkspaceAadAdminArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspaceAadAdminArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.aadAdmin = mapped
    }

    /**
     * @param value An `azure_devops_repo` block as defined below.
     */
    @JvmName("xbsslbvokhxhpfcl")
    public suspend fun azureDevopsRepo(`value`: WorkspaceAzureDevopsRepoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureDevopsRepo = mapped
    }

    /**
     * @param argument An `azure_devops_repo` block as defined below.
     */
    @JvmName("huhulhefwffysall")
    public suspend fun azureDevopsRepo(argument: suspend WorkspaceAzureDevopsRepoArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspaceAzureDevopsRepoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.azureDevopsRepo = mapped
    }

    /**
     * @param value Is Azure Active Directory Authentication the only way to authenticate with resources inside this synapse Workspace. Defaults to `false`.
     */
    @JvmName("ylwjiclftkbndjep")
    public suspend fun azureadAuthenticationOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureadAuthenticationOnly = mapped
    }

    /**
     * @param value Subnet ID used for computes in workspace Changing this forces a new resource to be created.
     */
    @JvmName("eyhaoanfmwecofkk")
    public suspend fun computeSubnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeSubnetId = mapped
    }

    /**
     * @param value A `customer_managed_key` block as defined below.
     */
    @JvmName("wuldvetlbmgatvcc")
    public suspend fun customerManagedKey(`value`: WorkspaceCustomerManagedKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customerManagedKey = mapped
    }

    /**
     * @param argument A `customer_managed_key` block as defined below.
     */
    @JvmName("wjoxqbphkwnjsuxp")
    public suspend fun customerManagedKey(argument: suspend WorkspaceCustomerManagedKeyArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspaceCustomerManagedKeyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customerManagedKey = mapped
    }

    /**
     * @param value Is data exfiltration protection enabled in this workspace? If set to `true`, `managed_virtual_network_enabled` must also be set to `true`. Changing this forces a new resource to be created.
     */
    @JvmName("aryoyvmveebaygwb")
    public suspend fun dataExfiltrationProtectionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataExfiltrationProtectionEnabled = mapped
    }

    /**
     * @param value A `github_repo` block as defined below.
     */
    @JvmName("jnervgxpitwvuvoi")
    public suspend fun githubRepo(`value`: WorkspaceGithubRepoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.githubRepo = mapped
    }

    /**
     * @param argument A `github_repo` block as defined below.
     */
    @JvmName("bsnhmnybsosudbut")
    public suspend fun githubRepo(argument: suspend WorkspaceGithubRepoArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspaceGithubRepoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.githubRepo = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("dkvhjbvjpmccntyb")
    public suspend fun identity(`value`: WorkspaceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("bsvujptsjvalgsuy")
    public suspend fun identity(argument: suspend WorkspaceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspaceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value Allowed AAD Tenant Ids For Linking.
     */
    @JvmName("jqpjympxopeoyssd")
    public suspend fun linkingAllowedForAadTenantIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linkingAllowedForAadTenantIds = mapped
    }

    /**
     * @param values Allowed AAD Tenant Ids For Linking.
     */
    @JvmName("ewleunogtflaubkb")
    public suspend fun linkingAllowedForAadTenantIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.linkingAllowedForAadTenantIds = mapped
    }

    /**
     * @param value Specifies the Azure Region where the synapse Workspace should exist. Changing this forces a new resource to be created.
     */
    @JvmName("jdauxbntbjrvcelx")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Workspace managed resource group. Changing this forces a new resource to be created.
     */
    @JvmName("vemmijiweohftmru")
    public suspend fun managedResourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedResourceGroupName = mapped
    }

    /**
     * @param value Is Virtual Network enabled for all computes in this workspace? Changing this forces a new resource to be created.
     */
    @JvmName("igahmlkxoiueqwkm")
    public suspend fun managedVirtualNetworkEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedVirtualNetworkEnabled = mapped
    }

    /**
     * @param value Specifies the name which should be used for this synapse Workspace. Changing this forces a new resource to be created.
     */
    @JvmName("sovaojlkdfhrrbue")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether public network access is allowed for the Cognitive Account. Defaults to `true`.
     */
    @JvmName("mjacwxvfsmnelitf")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value The ID of purview account.
     */
    @JvmName("upoylymnuutwtbac")
    public suspend fun purviewId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.purviewId = mapped
    }

    /**
     * @param value Specifies the name of the Resource Group where the synapse Workspace should exist. Changing this forces a new resource to be created.
     */
    @JvmName("rnhfqpnjceixxiqs")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The `sql_aad_admin` block has been superseded by the `azure.synapse.WorkspaceSqlAadAdmin` resource
      and will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("bdnhkpsbfjeylmvw")
    public suspend fun sqlAadAdmin(`value`: WorkspaceSqlAadAdminArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlAadAdmin = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  The `sql_aad_admin` block has been superseded by the `azure.synapse.WorkspaceSqlAadAdmin` resource
      and will be removed in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("xstswwagnmicvamm")
    public suspend fun sqlAadAdmin(argument: suspend WorkspaceSqlAadAdminArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspaceSqlAadAdminArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sqlAadAdmin = mapped
    }

    /**
     * @param value Specifies The login name of the SQL administrator. Changing this forces a new resource to be created. If this is not provided `aad_admin` or `customer_managed_key` must be provided.
     */
    @JvmName("vdbyqdlqdhfyccor")
    public suspend fun sqlAdministratorLogin(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlAdministratorLogin = mapped
    }

    /**
     * @param value The Password associated with the `sql_administrator_login` for the SQL administrator. If this is not provided `aad_admin` or `customer_managed_key` must be provided.
     */
    @JvmName("crbjqmiphhvsyhxq")
    public suspend fun sqlAdministratorLoginPassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlAdministratorLoginPassword = mapped
    }

    /**
     * @param value Are pipelines (running as workspace's system assigned identity) allowed to access SQL pools?
     */
    @JvmName("kpixwnfasqvpsife")
    public suspend fun sqlIdentityControlEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlIdentityControlEnabled = mapped
    }

    /**
     * @param value Specifies the ID of storage data lake gen2 filesystem resource. Changing this forces a new resource to be created.
     */
    @JvmName("dcvadgvkjsqgdcnt")
    public suspend fun storageDataLakeGen2FilesystemId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageDataLakeGen2FilesystemId = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Synapse Workspace.
     */
    @JvmName("dnjwfctoxyrpitdu")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Synapse Workspace.
     */
    @JvmName("smdkejakpjqtgcyk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): WorkspaceArgs = WorkspaceArgs(
        aadAdmin = aadAdmin,
        azureDevopsRepo = azureDevopsRepo,
        azureadAuthenticationOnly = azureadAuthenticationOnly,
        computeSubnetId = computeSubnetId,
        customerManagedKey = customerManagedKey,
        dataExfiltrationProtectionEnabled = dataExfiltrationProtectionEnabled,
        githubRepo = githubRepo,
        identity = identity,
        linkingAllowedForAadTenantIds = linkingAllowedForAadTenantIds,
        location = location,
        managedResourceGroupName = managedResourceGroupName,
        managedVirtualNetworkEnabled = managedVirtualNetworkEnabled,
        name = name,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        purviewId = purviewId,
        resourceGroupName = resourceGroupName,
        sqlAadAdmin = sqlAadAdmin,
        sqlAdministratorLogin = sqlAdministratorLogin,
        sqlAdministratorLoginPassword = sqlAdministratorLoginPassword,
        sqlIdentityControlEnabled = sqlIdentityControlEnabled,
        storageDataLakeGen2FilesystemId = storageDataLakeGen2FilesystemId,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy