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

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

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.machinelearning.inputs.ComputeClusterIdentityArgs;
import com.pulumi.azure.machinelearning.inputs.ComputeClusterScaleSettingsArgs;
import com.pulumi.azure.machinelearning.inputs.ComputeClusterSshArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ComputeClusterArgs extends com.pulumi.resources.ResourceArgs {

    public static final ComputeClusterArgs Empty = new ComputeClusterArgs();

    /**
     * The description of the Machine Learning compute. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the Machine Learning compute. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * An `identity` block as defined below.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="localAuthEnabled")
    private @Nullable Output localAuthEnabled;

    /**
     * @return Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> localAuthEnabled() {
        return Optional.ofNullable(this.localAuthEnabled);
    }

    /**
     * The Azure Region where the Machine Learning Compute Cluster should exist. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region where the Machine Learning Compute Cluster should exist. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="machineLearningWorkspaceId", required=true)
    private Output machineLearningWorkspaceId;

    /**
     * @return The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Output machineLearningWorkspaceId() {
        return this.machineLearningWorkspaceId;
    }

    /**
     * The name which should be used for this Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Whether the compute cluster 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.
     * 
     */
    @Import(name="nodePublicIpEnabled")
    private @Nullable Output nodePublicIpEnabled;

    /**
     * @return Whether the compute cluster 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 Optional> nodePublicIpEnabled() {
        return Optional.ofNullable(this.nodePublicIpEnabled);
    }

    /**
     * A `scale_settings` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="scaleSettings", required=true)
    private Output scaleSettings;

    /**
     * @return A `scale_settings` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Output scaleSettings() {
        return this.scaleSettings;
    }

    /**
     * Credentials for an administrator user account that will be created on each compute node. A `ssh` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="ssh")
    private @Nullable Output ssh;

    /**
     * @return Credentials for an administrator user account that will be created on each compute node. A `ssh` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> ssh() {
        return Optional.ofNullable(this.ssh);
    }

    /**
     * A boolean value indicating whether enable the public SSH port. Defaults to `false`. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="sshPublicAccessEnabled")
    private @Nullable Output sshPublicAccessEnabled;

    /**
     * @return A boolean value indicating whether enable the public SSH port. Defaults to `false`. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> sshPublicAccessEnabled() {
        return Optional.ofNullable(this.sshPublicAccessEnabled);
    }

    /**
     * The ID of the Subnet that the Compute Cluster should reside in. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="subnetResourceId")
    private @Nullable Output subnetResourceId;

    /**
     * @return The ID of the Subnet that the Compute Cluster should reside in. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> subnetResourceId() {
        return Optional.ofNullable(this.subnetResourceId);
    }

    /**
     * A mapping of tags which should be assigned to the Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The priority of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. Accepted values are `Dedicated` and `LowPriority`.
     * 
     */
    @Import(name="vmPriority", required=true)
    private Output vmPriority;

    /**
     * @return The priority of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. Accepted values are `Dedicated` and `LowPriority`.
     * 
     */
    public Output vmPriority() {
        return this.vmPriority;
    }

    /**
     * The size of the VM. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="vmSize", required=true)
    private Output vmSize;

    /**
     * @return The size of the VM. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Output vmSize() {
        return this.vmSize;
    }

    private ComputeClusterArgs() {}

    private ComputeClusterArgs(ComputeClusterArgs $) {
        this.description = $.description;
        this.identity = $.identity;
        this.localAuthEnabled = $.localAuthEnabled;
        this.location = $.location;
        this.machineLearningWorkspaceId = $.machineLearningWorkspaceId;
        this.name = $.name;
        this.nodePublicIpEnabled = $.nodePublicIpEnabled;
        this.scaleSettings = $.scaleSettings;
        this.ssh = $.ssh;
        this.sshPublicAccessEnabled = $.sshPublicAccessEnabled;
        this.subnetResourceId = $.subnetResourceId;
        this.tags = $.tags;
        this.vmPriority = $.vmPriority;
        this.vmSize = $.vmSize;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ComputeClusterArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ComputeClusterArgs $;

        public Builder() {
            $ = new ComputeClusterArgs();
        }

        public Builder(ComputeClusterArgs defaults) {
            $ = new ComputeClusterArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param description The description of the Machine Learning compute. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the Machine Learning compute. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(ComputeClusterIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param localAuthEnabled Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder localAuthEnabled(@Nullable Output localAuthEnabled) {
            $.localAuthEnabled = localAuthEnabled;
            return this;
        }

        /**
         * @param localAuthEnabled Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder localAuthEnabled(Boolean localAuthEnabled) {
            return localAuthEnabled(Output.of(localAuthEnabled));
        }

        /**
         * @param location The Azure Region where the Machine Learning Compute Cluster should exist. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The Azure Region where the Machine Learning Compute Cluster should exist. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param machineLearningWorkspaceId The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder machineLearningWorkspaceId(Output machineLearningWorkspaceId) {
            $.machineLearningWorkspaceId = machineLearningWorkspaceId;
            return this;
        }

        /**
         * @param machineLearningWorkspaceId The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder machineLearningWorkspaceId(String machineLearningWorkspaceId) {
            return machineLearningWorkspaceId(Output.of(machineLearningWorkspaceId));
        }

        /**
         * @param name The name which should be used for this Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nodePublicIpEnabled Whether the compute cluster 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.
         * 
         * @return builder
         * 
         */
        public Builder nodePublicIpEnabled(@Nullable Output nodePublicIpEnabled) {
            $.nodePublicIpEnabled = nodePublicIpEnabled;
            return this;
        }

        /**
         * @param nodePublicIpEnabled Whether the compute cluster 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.
         * 
         * @return builder
         * 
         */
        public Builder nodePublicIpEnabled(Boolean nodePublicIpEnabled) {
            return nodePublicIpEnabled(Output.of(nodePublicIpEnabled));
        }

        /**
         * @param scaleSettings A `scale_settings` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder scaleSettings(Output scaleSettings) {
            $.scaleSettings = scaleSettings;
            return this;
        }

        /**
         * @param scaleSettings A `scale_settings` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder scaleSettings(ComputeClusterScaleSettingsArgs scaleSettings) {
            return scaleSettings(Output.of(scaleSettings));
        }

        /**
         * @param ssh Credentials for an administrator user account that will be created on each compute node. A `ssh` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder ssh(@Nullable Output ssh) {
            $.ssh = ssh;
            return this;
        }

        /**
         * @param ssh Credentials for an administrator user account that will be created on each compute node. A `ssh` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder ssh(ComputeClusterSshArgs ssh) {
            return ssh(Output.of(ssh));
        }

        /**
         * @param sshPublicAccessEnabled A boolean value indicating whether enable the public SSH port. Defaults to `false`. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder sshPublicAccessEnabled(@Nullable Output sshPublicAccessEnabled) {
            $.sshPublicAccessEnabled = sshPublicAccessEnabled;
            return this;
        }

        /**
         * @param sshPublicAccessEnabled A boolean value indicating whether enable the public SSH port. Defaults to `false`. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder sshPublicAccessEnabled(Boolean sshPublicAccessEnabled) {
            return sshPublicAccessEnabled(Output.of(sshPublicAccessEnabled));
        }

        /**
         * @param subnetResourceId The ID of the Subnet that the Compute Cluster should reside in. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder subnetResourceId(@Nullable Output subnetResourceId) {
            $.subnetResourceId = subnetResourceId;
            return this;
        }

        /**
         * @param subnetResourceId The ID of the Subnet that the Compute Cluster should reside in. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder subnetResourceId(String subnetResourceId) {
            return subnetResourceId(Output.of(subnetResourceId));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vmPriority The priority of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. Accepted values are `Dedicated` and `LowPriority`.
         * 
         * @return builder
         * 
         */
        public Builder vmPriority(Output vmPriority) {
            $.vmPriority = vmPriority;
            return this;
        }

        /**
         * @param vmPriority The priority of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. Accepted values are `Dedicated` and `LowPriority`.
         * 
         * @return builder
         * 
         */
        public Builder vmPriority(String vmPriority) {
            return vmPriority(Output.of(vmPriority));
        }

        /**
         * @param vmSize The size of the VM. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder vmSize(Output vmSize) {
            $.vmSize = vmSize;
            return this;
        }

        /**
         * @param vmSize The size of the VM. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder vmSize(String vmSize) {
            return vmSize(Output.of(vmSize));
        }

        public ComputeClusterArgs build() {
            if ($.machineLearningWorkspaceId == null) {
                throw new MissingRequiredPropertyException("ComputeClusterArgs", "machineLearningWorkspaceId");
            }
            if ($.scaleSettings == null) {
                throw new MissingRequiredPropertyException("ComputeClusterArgs", "scaleSettings");
            }
            if ($.vmPriority == null) {
                throw new MissingRequiredPropertyException("ComputeClusterArgs", "vmPriority");
            }
            if ($.vmSize == null) {
                throw new MissingRequiredPropertyException("ComputeClusterArgs", "vmSize");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy