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 Compute Instances can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:machinelearning/computeInstance:ComputeInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.MachineLearningServices/workspaces/workspace1/computes/compute1
* ```
*
*/
@ResourceType(type="azure:machinelearning/computeInstance:ComputeInstance")
public class ComputeInstance extends com.pulumi.resources.CustomResource {
/**
* A `assign_to_user` block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="assignToUser", refs={ComputeInstanceAssignToUser.class}, tree="[0]")
private Output* @Nullable */ ComputeInstanceAssignToUser> assignToUser;
/**
* @return A `assign_to_user` block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output> assignToUser() {
return Codegen.optional(this.assignToUser);
}
/**
* The Compute Instance Authorization type. Possible values include: `personal`. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="authorizationType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> authorizationType;
/**
* @return The Compute Instance Authorization type. Possible values include: `personal`. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output> authorizationType() {
return Codegen.optional(this.authorizationType);
}
/**
* The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* An `identity` block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="identity", refs={ComputeInstanceIdentity.class}, tree="[0]")
private Output* @Nullable */ ComputeInstanceIdentity> identity;
/**
* @return An `identity` block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="localAuthEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> localAuthEnabled;
/**
* @return Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output> localAuthEnabled() {
return Codegen.optional(this.localAuthEnabled);
}
/**
* The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="machineLearningWorkspaceId", refs={String.class}, tree="[0]")
private Output machineLearningWorkspaceId;
/**
* @return The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output machineLearningWorkspaceId() {
return this.machineLearningWorkspaceId;
}
/**
* The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output name() {
return this.name;
}
/**
* Whether the compute instance will have a public ip. To set this to false a `subnet_resource_id` needs to be set. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
@Export(name="nodePublicIpEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> nodePublicIpEnabled;
/**
* @return Whether the compute instance will have a public ip. To set this to false a `subnet_resource_id` needs to be set. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
*
*/
public Output> nodePublicIpEnabled() {
return Codegen.optional(this.nodePublicIpEnabled);
}
/**
* A `ssh` block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="ssh", refs={ComputeInstanceSsh.class}, tree="[0]")
private Output* @Nullable */ ComputeInstanceSsh> ssh;
/**
* @return A `ssh` block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output> ssh() {
return Codegen.optional(this.ssh);
}
/**
* Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="subnetResourceId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> subnetResourceId;
/**
* @return Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output> subnetResourceId() {
return Codegen.optional(this.subnetResourceId);
}
/**
* A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
@Export(name="virtualMachineSize", refs={String.class}, tree="[0]")
private Output virtualMachineSize;
/**
* @return The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
*
*/
public Output virtualMachineSize() {
return this.virtualMachineSize;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ComputeInstance(java.lang.String name) {
this(name, ComputeInstanceArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ComputeInstance(java.lang.String name, ComputeInstanceArgs 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 ComputeInstance(java.lang.String name, ComputeInstanceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:machinelearning/computeInstance:ComputeInstance", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ComputeInstance(java.lang.String name, Output id, @Nullable ComputeInstanceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:machinelearning/computeInstance:ComputeInstance", name, state, makeResourceOptions(options, id), false);
}
private static ComputeInstanceArgs makeArgs(ComputeInstanceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ComputeInstanceArgs.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 ComputeInstance get(java.lang.String name, Output id, @Nullable ComputeInstanceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ComputeInstance(name, id, state, options);
}
}