com.pulumi.azurenative.machinelearningservices.Job Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.machinelearningservices;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.machinelearningservices.JobArgs;
import com.pulumi.azurenative.machinelearningservices.outputs.AutoMLJobResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.CommandJobResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.PipelineJobResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.SweepJobResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
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.Object;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* Azure Resource Manager resource envelope.
* Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-03-01-preview.
*
* Other available API versions: 2021-03-01-preview, 2022-02-01-preview, 2023-04-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-10-01, 2024-01-01-preview, 2024-04-01, 2024-04-01-preview, 2024-07-01-preview.
*
* ## Example Usage
* ### CreateOrUpdate AutoML Job.
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.machinelearningservices.Job;
* import com.pulumi.azurenative.machinelearningservices.JobArgs;
* 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 job = new Job("job", JobArgs.builder()
* .id("string")
* .jobBaseProperties(AutoMLJobArgs.builder()
* .computeId("string")
* .description("string")
* .displayName("string")
* .environmentId("string")
* .environmentVariables(Map.of("string", "string"))
* .experimentName("string")
* .identity(AmlTokenArgs.builder()
* .identityType("AMLToken")
* .build())
* .isArchived(false)
* .jobType("AutoML")
* .outputs(Map.of("string", Map.ofEntries(
* Map.entry("description", "string"),
* Map.entry("jobOutputType", "uri_file"),
* Map.entry("mode", "ReadWriteMount"),
* Map.entry("uri", "string")
* )))
* .properties(Map.of("string", "string"))
* .resources(JobResourceConfigurationArgs.builder()
* .instanceCount(1)
* .instanceType("string")
* .properties(Map.of("string", Map.of("9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad", null)))
* .build())
* .services(Map.of("string", Map.ofEntries(
* Map.entry("endpoint", "string"),
* Map.entry("jobServiceType", "string"),
* Map.entry("port", 1),
* Map.entry("properties", Map.of("string", "string"))
* )))
* .tags(Map.of("string", "string"))
* .taskDetails(ImageClassificationArgs.builder()
* .limitSettings(ImageLimitSettingsArgs.builder()
* .maxTrials(2)
* .build())
* .modelSettings(ImageModelSettingsClassificationArgs.builder()
* .validationCropSize(2)
* .build())
* .searchSpace(ImageModelDistributionSettingsClassificationArgs.builder()
* .validationCropSize("choice(2, 360)")
* .build())
* .targetColumnName("string")
* .taskType("ImageClassification")
* .trainingData(MLTableJobInputArgs.builder()
* .jobInputType("mltable")
* .uri("string")
* .build())
* .build())
* .build())
* .resourceGroupName("test-rg")
* .workspaceName("my-aml-workspace")
* .build());
*
* }
* }
*
* }
*
* ### CreateOrUpdate Command Job.
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.machinelearningservices.Job;
* import com.pulumi.azurenative.machinelearningservices.JobArgs;
* 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 job = new Job("job", JobArgs.builder()
* .id("string")
* .jobBaseProperties(CommandJobArgs.builder()
* .codeId("string")
* .command("string")
* .computeId("string")
* .description("string")
* .displayName("string")
* .distribution(TensorFlowArgs.builder()
* .distributionType("TensorFlow")
* .parameterServerCount(1)
* .workerCount(1)
* .build())
* .environmentId("string")
* .environmentVariables(Map.of("string", "string"))
* .experimentName("string")
* .identity(AmlTokenArgs.builder()
* .identityType("AMLToken")
* .build())
* .inputs(Map.of("string", Map.ofEntries(
* Map.entry("description", "string"),
* Map.entry("jobInputType", "literal"),
* Map.entry("value", "string")
* )))
* .jobType("Command")
* .limits(CommandJobLimitsArgs.builder()
* .jobLimitsType("Command")
* .timeout("PT5M")
* .build())
* .outputs(Map.of("string", Map.ofEntries(
* Map.entry("description", "string"),
* Map.entry("jobOutputType", "uri_file"),
* Map.entry("mode", "ReadWriteMount"),
* Map.entry("uri", "string")
* )))
* .properties(Map.of("string", "string"))
* .resources(JobResourceConfigurationArgs.builder()
* .instanceCount(1)
* .instanceType("string")
* .properties(Map.of("string", Map.of("e6b6493e-7d5e-4db3-be1e-306ec641327e", null)))
* .build())
* .services(Map.of("string", Map.ofEntries(
* Map.entry("endpoint", "string"),
* Map.entry("jobServiceType", "string"),
* Map.entry("port", 1),
* Map.entry("properties", Map.of("string", "string"))
* )))
* .tags(Map.of("string", "string"))
* .build())
* .resourceGroupName("test-rg")
* .workspaceName("my-aml-workspace")
* .build());
*
* }
* }
*
* }
*
* ### CreateOrUpdate Pipeline Job.
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.machinelearningservices.Job;
* import com.pulumi.azurenative.machinelearningservices.JobArgs;
* 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 job = new Job("job", JobArgs.builder()
* .id("string")
* .jobBaseProperties(PipelineJobArgs.builder()
* .computeId("string")
* .description("string")
* .displayName("string")
* .experimentName("string")
* .inputs(Map.of("string", Map.ofEntries(
* Map.entry("description", "string"),
* Map.entry("jobInputType", "literal"),
* Map.entry("value", "string")
* )))
* .jobType("Pipeline")
* .outputs(Map.of("string", Map.ofEntries(
* Map.entry("description", "string"),
* Map.entry("jobOutputType", "uri_file"),
* Map.entry("mode", "Upload"),
* Map.entry("uri", "string")
* )))
* .properties(Map.of("string", "string"))
* .services(Map.of("string", Map.ofEntries(
* Map.entry("endpoint", "string"),
* Map.entry("jobServiceType", "string"),
* Map.entry("port", 1),
* Map.entry("properties", Map.of("string", "string"))
* )))
* .settings()
* .tags(Map.of("string", "string"))
* .build())
* .resourceGroupName("test-rg")
* .workspaceName("my-aml-workspace")
* .build());
*
* }
* }
*
* }
*
* ### CreateOrUpdate Sweep Job.
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.machinelearningservices.Job;
* import com.pulumi.azurenative.machinelearningservices.JobArgs;
* 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 job = new Job("job", JobArgs.builder()
* .id("string")
* .jobBaseProperties(SweepJobArgs.builder()
* .computeId("string")
* .description("string")
* .displayName("string")
* .earlyTermination(MedianStoppingPolicyArgs.builder()
* .delayEvaluation(1)
* .evaluationInterval(1)
* .policyType("MedianStopping")
* .build())
* .experimentName("string")
* .jobType("Sweep")
* .limits(SweepJobLimitsArgs.builder()
* .jobLimitsType("Sweep")
* .maxConcurrentTrials(1)
* .maxTotalTrials(1)
* .trialTimeout("PT1S")
* .build())
* .objective(ObjectiveArgs.builder()
* .goal("Minimize")
* .primaryMetric("string")
* .build())
* .properties(Map.of("string", "string"))
* .samplingAlgorithm(GridSamplingAlgorithmArgs.builder()
* .samplingAlgorithmType("Grid")
* .build())
* .searchSpace(Map.of("string", ))
* .services(Map.of("string", Map.ofEntries(
* Map.entry("endpoint", "string"),
* Map.entry("jobServiceType", "string"),
* Map.entry("port", 1),
* Map.entry("properties", Map.of("string", "string"))
* )))
* .tags(Map.of("string", "string"))
* .trial(TrialComponentArgs.builder()
* .codeId("string")
* .command("string")
* .distribution(MpiArgs.builder()
* .distributionType("Mpi")
* .processCountPerInstance(1)
* .build())
* .environmentId("string")
* .environmentVariables(Map.of("string", "string"))
* .resources(JobResourceConfigurationArgs.builder()
* .instanceCount(1)
* .instanceType("string")
* .properties(Map.of("string", Map.of("e6b6493e-7d5e-4db3-be1e-306ec641327e", null)))
* .build())
* .build())
* .build())
* .resourceGroupName("test-rg")
* .workspaceName("my-aml-workspace")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:machinelearningservices:Job string /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}
* ```
*
*/
@ResourceType(type="azure-native:machinelearningservices:Job")
public class Job extends com.pulumi.resources.CustomResource {
/**
* [Required] Additional attributes of the entity.
*
*/
@Export(name="jobBaseProperties", refs={Object.class}, tree="[0]")
private Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy