Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* <!--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* @Nullable */ String> 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* @Nullable */ String> 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* @Nullable */ WorkspaceEncryption> 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* @Nullable */ WorkspaceFeatureStore> 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* @Nullable */ String> 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* @Nullable */ Boolean> 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* @Nullable */ String> 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* @Nullable */ String> 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* @Nullable */ String> 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* @Nullable */ Boolean> 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* @Nullable */ WorkspaceServerlessCompute> 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* @Nullable */ String> 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* @Nullable */ Map> 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* @Nullable */ Boolean> 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);
}
}