JobDefinition

class JobDefinition : KotlinCustomResource

The Job Definition resource. Uses Azure REST API version 2024-07-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01. Other available API versions: 2023-03-01, 2023-07-01-preview, 2023-10-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storagemover [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

JobDefinitions_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var jobDefinition = new AzureNative.StorageMover.JobDefinition("jobDefinition", new()
{
AgentName = "migration-agent",
CopyMode = AzureNative.StorageMover.CopyMode.Additive,
Description = "Example Job Definition Description",
JobDefinitionName = "examples-jobDefinitionName",
ProjectName = "examples-projectName",
ResourceGroupName = "examples-rg",
SourceName = "examples-sourceEndpointName",
SourceSubpath = "/",
StorageMoverName = "examples-storageMoverName",
TargetName = "examples-targetEndpointName",
TargetSubpath = "/",
});
});
package main
import (
storagemover "github.com/pulumi/pulumi-azure-native-sdk/storagemover/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagemover.NewJobDefinition(ctx, "jobDefinition", &storagemover.JobDefinitionArgs{
AgentName: pulumi.String("migration-agent"),
CopyMode: pulumi.String(storagemover.CopyModeAdditive),
Description: pulumi.String("Example Job Definition Description"),
JobDefinitionName: pulumi.String("examples-jobDefinitionName"),
ProjectName: pulumi.String("examples-projectName"),
ResourceGroupName: pulumi.String("examples-rg"),
SourceName: pulumi.String("examples-sourceEndpointName"),
SourceSubpath: pulumi.String("/"),
StorageMoverName: pulumi.String("examples-storageMoverName"),
TargetName: pulumi.String("examples-targetEndpointName"),
TargetSubpath: pulumi.String("/"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storagemover.JobDefinition;
import com.pulumi.azurenative.storagemover.JobDefinitionArgs;
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 jobDefinition = new JobDefinition("jobDefinition", JobDefinitionArgs.builder()
.agentName("migration-agent")
.copyMode("Additive")
.description("Example Job Definition Description")
.jobDefinitionName("examples-jobDefinitionName")
.projectName("examples-projectName")
.resourceGroupName("examples-rg")
.sourceName("examples-sourceEndpointName")
.sourceSubpath("/")
.storageMoverName("examples-storageMoverName")
.targetName("examples-targetEndpointName")
.targetSubpath("/")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:storagemover:JobDefinition examples-jobDefinitionName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}

Properties

Link copied to clipboard
val agentName: Output<String>?

Name of the Agent to assign for new Job Runs of this Job Definition.

Link copied to clipboard
val agentResourceId: Output<String>

Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val copyMode: Output<String>

Strategy to use for copy.

Link copied to clipboard
val description: Output<String>?

A description for the Job Definition.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The name of the Job Run in a non-terminal state, if exists.

Link copied to clipboard

The fully qualified resource ID of the Job Run in a non-terminal state, if exists.

Link copied to clipboard

The current status of the Job Run in a non-terminal state, if exists.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The provisioning state of this resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sourceName: Output<String>

The name of the source Endpoint.

Link copied to clipboard

Fully qualified resource ID of the source Endpoint.

Link copied to clipboard
val sourceSubpath: Output<String>?

The subpath to use when reading from the source Endpoint.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val targetName: Output<String>

The name of the target Endpoint.

Link copied to clipboard

Fully qualified resource ID of the target Endpoint.

Link copied to clipboard
val targetSubpath: Output<String>?

The subpath to use when writing to the target Endpoint.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>