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

com.pulumi.azure.machinelearning.Workspace Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.machinelearning;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.machinelearning.WorkspaceArgs;
import com.pulumi.azure.machinelearning.inputs.WorkspaceState;
import com.pulumi.azure.machinelearning.outputs.WorkspaceEncryption;
import com.pulumi.azure.machinelearning.outputs.WorkspaceFeatureStore;
import com.pulumi.azure.machinelearning.outputs.WorkspaceIdentity;
import com.pulumi.azure.machinelearning.outputs.WorkspaceManagedNetwork;
import com.pulumi.azure.machinelearning.outputs.WorkspaceServerlessCompute;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * 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.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * import com.pulumi.azure.keyvault.KeyVault;
 * import com.pulumi.azure.keyvault.KeyVaultArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.machinelearning.Workspace;
 * import com.pulumi.azure.machinelearning.WorkspaceArgs;
 * import com.pulumi.azure.machinelearning.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) {
 *         final var current = CoreFunctions.getClientConfig();
 * 
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 * 
 *         var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("workspace-example-ai")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 * 
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("workspaceexamplekeyvault")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("premium")
 *             .build());
 * 
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("workspacestorageaccount")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .accountTier("Standard")
 *             .accountReplicationType("GRS")
 *             .build());
 * 
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example-workspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationInsightsId(exampleInsights.id())
 *             .keyVaultId(exampleKeyVault.id())
 *             .storageAccountId(exampleAccount.id())
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### With Data Encryption * * > **NOTE:** The Key Vault must enable purge protection. * * <!--Start PulumiCodeChooser --> *
 * {@code
 * 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.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * 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.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.keyvault.Key;
 * import com.pulumi.azure.keyvault.KeyArgs;
 * import com.pulumi.azure.machinelearning.Workspace;
 * import com.pulumi.azure.machinelearning.WorkspaceArgs;
 * import com.pulumi.azure.machinelearning.inputs.WorkspaceIdentityArgs;
 * import com.pulumi.azure.machinelearning.inputs.WorkspaceEncryptionArgs;
 * 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 exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("workspace-example-ai")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 * 
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("workspaceexamplekeyvault")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("premium")
 *             .purgeProtectionEnabled(true)
 *             .build());
 * 
 *         var exampleAccessPolicy = new AccessPolicy("exampleAccessPolicy", 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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("workspacestorageaccount")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .accountTier("Standard")
 *             .accountReplicationType("GRS")
 *             .build());
 * 
 *         var exampleKey = new Key("exampleKey", KeyArgs.builder()
 *             .name("workspaceexamplekeyvaultkey")
 *             .keyVaultId(exampleKeyVault.id())
 *             .keyType("RSA")
 *             .keySize(2048)
 *             .keyOpts(            
 *                 "decrypt",
 *                 "encrypt",
 *                 "sign",
 *                 "unwrapKey",
 *                 "verify",
 *                 "wrapKey")
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(                
 *                     exampleKeyVault,
 *                     exampleAccessPolicy)
 *                 .build());
 * 
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example-workspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationInsightsId(exampleInsights.id())
 *             .keyVaultId(exampleKeyVault.id())
 *             .storageAccountId(exampleAccount.id())
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .encryption(WorkspaceEncryptionArgs.builder()
 *                 .keyVaultId(exampleKeyVault.id())
 *                 .keyId(exampleKey.id())
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### With User Assigned Identity And Data Encryption * * > **NOTE:** The Key Vault must enable purge protection. * * <!--Start PulumiCodeChooser --> *
 * {@code
 * 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.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.keyvault.KeyVault;
 * import com.pulumi.azure.keyvault.KeyVaultArgs;
 * import com.pulumi.azure.authorization.UserAssignedIdentity;
 * import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
 * import com.pulumi.azure.keyvault.AccessPolicy;
 * import com.pulumi.azure.keyvault.AccessPolicyArgs;
 * import com.pulumi.azuread.AzureadFunctions;
 * import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
 * import com.pulumi.azure.keyvault.Key;
 * import com.pulumi.azure.keyvault.KeyArgs;
 * import com.pulumi.azure.authorization.Assignment;
 * import com.pulumi.azure.authorization.AssignmentArgs;
 * import com.pulumi.azure.machinelearning.Workspace;
 * import com.pulumi.azure.machinelearning.WorkspaceArgs;
 * import com.pulumi.azure.machinelearning.inputs.WorkspaceIdentityArgs;
 * import com.pulumi.azure.machinelearning.inputs.WorkspaceEncryptionArgs;
 * 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 exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("example-ai")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 * 
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplestorageaccount")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .accountTier("Standard")
 *             .accountReplicationType("GRS")
 *             .build());
 * 
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("example-keyvalut")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("premium")
 *             .purgeProtectionEnabled(true)
 *             .build());
 * 
 *         var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()
 *             .name("example-identity")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 * 
 *         var example_identity = new AccessPolicy("example-identity", AccessPolicyArgs.builder()
 *             .keyVaultId(exampleKeyVault.id())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .objectId(exampleUserAssignedIdentity.principalId())
 *             .keyPermissions(            
 *                 "WrapKey",
 *                 "UnwrapKey",
 *                 "Get",
 *                 "Recover")
 *             .secretPermissions(            
 *                 "Get",
 *                 "List",
 *                 "Set",
 *                 "Delete",
 *                 "Recover",
 *                 "Backup",
 *                 "Restore")
 *             .build());
 * 
 *         var example_sp = new AccessPolicy("example-sp", AccessPolicyArgs.builder()
 *             .keyVaultId(exampleKeyVault.id())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
 *             .keyPermissions(            
 *                 "Get",
 *                 "Create",
 *                 "Recover",
 *                 "Delete",
 *                 "Purge",
 *                 "GetRotationPolicy")
 *             .build());
 * 
 *         final var test = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
 *             .displayName("Azure Cosmos DB")
 *             .build());
 * 
 *         var example_cosmosdb = new AccessPolicy("example-cosmosdb", AccessPolicyArgs.builder()
 *             .keyVaultId(exampleKeyVault.id())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .objectId(test.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId()))
 *             .keyPermissions(            
 *                 "Get",
 *                 "Recover",
 *                 "UnwrapKey",
 *                 "WrapKey")
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(                
 *                     test.applyValue(getServicePrincipalResult -> getServicePrincipalResult),
 *                     current.applyValue(getClientConfigResult -> getClientConfigResult))
 *                 .build());
 * 
 *         var exampleKey = new Key("exampleKey", KeyArgs.builder()
 *             .name("example-keyvaultkey")
 *             .keyVaultId(exampleKeyVault.id())
 *             .keyType("RSA")
 *             .keySize(2048)
 *             .keyOpts(            
 *                 "decrypt",
 *                 "encrypt",
 *                 "sign",
 *                 "unwrapKey",
 *                 "verify",
 *                 "wrapKey")
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(                
 *                     exampleKeyVault,
 *                     example_sp)
 *                 .build());
 * 
 *         var example_role1 = new Assignment("example-role1", AssignmentArgs.builder()
 *             .scope(exampleKeyVault.id())
 *             .roleDefinitionName("Contributor")
 *             .principalId(exampleUserAssignedIdentity.principalId())
 *             .build());
 * 
 *         var example_role2 = new Assignment("example-role2", AssignmentArgs.builder()
 *             .scope(exampleAccount.id())
 *             .roleDefinitionName("Storage Blob Data Contributor")
 *             .principalId(exampleUserAssignedIdentity.principalId())
 *             .build());
 * 
 *         var example_role3 = new Assignment("example-role3", AssignmentArgs.builder()
 *             .scope(exampleAccount.id())
 *             .roleDefinitionName("Contributor")
 *             .principalId(exampleUserAssignedIdentity.principalId())
 *             .build());
 * 
 *         var example_role4 = new Assignment("example-role4", AssignmentArgs.builder()
 *             .scope(exampleInsights.id())
 *             .roleDefinitionName("Contributor")
 *             .principalId(exampleUserAssignedIdentity.principalId())
 *             .build());
 * 
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example-workspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationInsightsId(exampleInsights.id())
 *             .keyVaultId(exampleKeyVault.id())
 *             .storageAccountId(exampleAccount.id())
 *             .highBusinessImpact(true)
 *             .primaryUserAssignedIdentity(exampleUserAssignedIdentity.id())
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("UserAssigned")
 *                 .identityIds(exampleUserAssignedIdentity.id())
 *                 .build())
 *             .encryption(WorkspaceEncryptionArgs.builder()
 *                 .userAssignedIdentityId(exampleUserAssignedIdentity.id())
 *                 .keyVaultId(exampleKeyVault.id())
 *                 .keyId(exampleKey.id())
 *                 .build())
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(                
 *                     example_role1,
 *                     example_role2,
 *                     example_role3,
 *                     example_role4,
 *                     example_cosmosdb)
 *                 .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Machine Learning Workspace can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:machinelearning/workspace:Workspace example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/workspace1 * ``` * */ @ResourceType(type="azure:machinelearning/workspace:Workspace") public class Workspace extends com.pulumi.resources.CustomResource { /** * The ID of the Application Insights associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * */ @Export(name="applicationInsightsId", refs={String.class}, tree="[0]") private Output applicationInsightsId; /** * @return The ID of the Application Insights associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * */ public Output applicationInsightsId() { return this.applicationInsightsId; } /** * The ID of the container registry associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * * > **NOTE:** The `admin_enabled` should be `true` in order to associate the Container Registry to this Machine Learning Workspace. * */ @Export(name="containerRegistryId", refs={String.class}, tree="[0]") private Output containerRegistryId; /** * @return The ID of the container registry associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * * > **NOTE:** The `admin_enabled` should be `true` in order to associate the Container Registry to this Machine Learning Workspace. * */ public Output> containerRegistryId() { return Codegen.optional(this.containerRegistryId); } /** * The description of this Machine Learning Workspace. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return The description of this Machine Learning Workspace. * */ public Output> description() { return Codegen.optional(this.description); } /** * The url for the discovery service to identify regional endpoints for machine learning experimentation services. * */ @Export(name="discoveryUrl", refs={String.class}, tree="[0]") private Output discoveryUrl; /** * @return The url for the discovery service to identify regional endpoints for machine learning experimentation services. * */ public Output discoveryUrl() { return this.discoveryUrl; } /** * An `encryption` block as defined below. Changing this forces a new resource to be created. * */ @Export(name="encryption", refs={WorkspaceEncryption.class}, tree="[0]") private Output encryption; /** * @return An `encryption` block as defined below. Changing this forces a new resource to be created. * */ public Output> encryption() { return Codegen.optional(this.encryption); } /** * A `feature_store` block as defined below. * */ @Export(name="featureStore", refs={WorkspaceFeatureStore.class}, tree="[0]") private Output featureStore; /** * @return A `feature_store` block as defined below. * */ public Output> featureStore() { return Codegen.optional(this.featureStore); } /** * Display name for this Machine Learning Workspace. * */ @Export(name="friendlyName", refs={String.class}, tree="[0]") private Output friendlyName; /** * @return Display name for this Machine Learning Workspace. * */ public Output> friendlyName() { return Codegen.optional(this.friendlyName); } /** * Flag to signal High Business Impact (HBI) data in the workspace and reduce diagnostic data collected by the service. Changing this forces a new resource to be created. * */ @Export(name="highBusinessImpact", refs={Boolean.class}, tree="[0]") private Output highBusinessImpact; /** * @return Flag to signal High Business Impact (HBI) data in the workspace and reduce diagnostic data collected by the service. Changing this forces a new resource to be created. * */ public Output> highBusinessImpact() { return Codegen.optional(this.highBusinessImpact); } /** * An `identity` block as defined below. * */ @Export(name="identity", refs={WorkspaceIdentity.class}, tree="[0]") private Output identity; /** * @return An `identity` block as defined below. * */ public Output identity() { return this.identity; } /** * The compute name for image build of the Machine Learning Workspace. * */ @Export(name="imageBuildComputeName", refs={String.class}, tree="[0]") private Output imageBuildComputeName; /** * @return The compute name for image build of the Machine Learning Workspace. * */ public Output> imageBuildComputeName() { return Codegen.optional(this.imageBuildComputeName); } /** * The ID of key vault associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * */ @Export(name="keyVaultId", refs={String.class}, tree="[0]") private Output keyVaultId; /** * @return The ID of key vault associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * */ public Output keyVaultId() { return this.keyVaultId; } /** * The type of the Workspace. Possible values are `Default`, `FeatureStore`. Defaults to `Default` * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return The type of the Workspace. Possible values are `Default`, `FeatureStore`. Defaults to `Default` * */ public Output> kind() { return Codegen.optional(this.kind); } /** * Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created. * */ public Output location() { return this.location; } /** * A `managed_network` block as defined below. * */ @Export(name="managedNetwork", refs={WorkspaceManagedNetwork.class}, tree="[0]") private Output managedNetwork; /** * @return A `managed_network` block as defined below. * */ public Output managedNetwork() { return this.managedNetwork; } /** * Specifies the name of the Machine Learning Workspace. Changing this forces a new resource to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Specifies the name of the Machine Learning Workspace. Changing this forces a new resource to be created. * */ public Output name() { return this.name; } /** * The user assigned identity id that represents the workspace identity. * */ @Export(name="primaryUserAssignedIdentity", refs={String.class}, tree="[0]") private Output primaryUserAssignedIdentity; /** * @return The user assigned identity id that represents the workspace identity. * */ public Output> primaryUserAssignedIdentity() { return Codegen.optional(this.primaryUserAssignedIdentity); } /** * Enable public access when this Machine Learning Workspace is behind VNet. Defaults to `true`. * * > **NOTE:** `public_access_behind_virtual_network_enabled` is deprecated and will be removed in favour of the property `public_network_access_enabled`. * */ @Export(name="publicNetworkAccessEnabled", refs={Boolean.class}, tree="[0]") private Output publicNetworkAccessEnabled; /** * @return Enable public access when this Machine Learning Workspace is behind VNet. Defaults to `true`. * * > **NOTE:** `public_access_behind_virtual_network_enabled` is deprecated and will be removed in favour of the property `public_network_access_enabled`. * */ public Output> publicNetworkAccessEnabled() { return Codegen.optional(this.publicNetworkAccessEnabled); } /** * Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created. * */ @Export(name="resourceGroupName", refs={String.class}, tree="[0]") private Output resourceGroupName; /** * @return Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created. * */ public Output resourceGroupName() { return this.resourceGroupName; } /** * A `serverless_compute` block as defined below. * */ @Export(name="serverlessCompute", refs={WorkspaceServerlessCompute.class}, tree="[0]") private Output serverlessCompute; /** * @return A `serverless_compute` block as defined below. * */ public Output> serverlessCompute() { return Codegen.optional(this.serverlessCompute); } /** * SKU/edition of the Machine Learning Workspace, possible values are `Free`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * */ @Export(name="skuName", refs={String.class}, tree="[0]") private Output skuName; /** * @return SKU/edition of the Machine Learning Workspace, possible values are `Free`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * */ public Output> skuName() { return Codegen.optional(this.skuName); } /** * The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * * > **NOTE:** The `account_tier` cannot be `Premium` in order to associate the Storage Account to this Machine Learning Workspace. * */ @Export(name="storageAccountId", refs={String.class}, tree="[0]") private Output storageAccountId; /** * @return The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created. * * > **NOTE:** The `account_tier` cannot be `Premium` in order to associate the Storage Account to this Machine Learning Workspace. * */ public Output storageAccountId() { return this.storageAccountId; } /** * A mapping of tags to assign to the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A mapping of tags to assign to the resource. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Enable V1 API features, enabling `v1_legacy_mode` may prevent you from using features provided by the v2 API. Defaults to `false`. * */ @Export(name="v1LegacyModeEnabled", refs={Boolean.class}, tree="[0]") private Output v1LegacyModeEnabled; /** * @return Enable V1 API features, enabling `v1_legacy_mode` may prevent you from using features provided by the v2 API. Defaults to `false`. * */ public Output> v1LegacyModeEnabled() { return Codegen.optional(this.v1LegacyModeEnabled); } /** * The immutable id associated with this workspace. * */ @Export(name="workspaceId", refs={String.class}, tree="[0]") private Output workspaceId; /** * @return The immutable id associated with this workspace. * */ public Output workspaceId() { return this.workspaceId; } /** * * @param name The _unique_ name of the resulting resource. */ public Workspace(java.lang.String name) { this(name, WorkspaceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Workspace(java.lang.String name, WorkspaceArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Workspace(java.lang.String name, WorkspaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:machinelearning/workspace:Workspace", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Workspace(java.lang.String name, Output id, @Nullable WorkspaceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:machinelearning/workspace:Workspace", name, state, makeResourceOptions(options, id), false); } private static WorkspaceArgs makeArgs(WorkspaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? WorkspaceArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state * @param options Optional settings to control the behavior of the CustomResource. */ public static Workspace get(java.lang.String name, Output id, @Nullable WorkspaceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Workspace(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy