Job

class Job : KotlinCustomResource

A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid. API Version: 2020-05-01.

Example Usage

Create a Job

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var job = new AzureNative.Media.Job("job", new()
{
AccountName = "contosomedia",
CorrelationData =
{
{ "Key 2", "Value 2" },
{ "key1", "value1" },
},
Input = new AzureNative.Media.Inputs.JobInputAssetArgs
{
AssetName = "job1-InputAsset",
OdataType = "#Microsoft.Media.JobInputAsset",
},
JobName = "job1",
Outputs = new[]
{
{
{ "assetName", "job1-OutputAsset" },
{ "odataType", "#Microsoft.Media.JobOutputAsset" },
},
},
ResourceGroupName = "contosoresources",
TransformName = "exampleTransform",
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := media.NewJob(ctx, "job", &media.JobArgs{
AccountName: pulumi.String("contosomedia"),
CorrelationData: pulumi.StringMap{
"Key 2": pulumi.String("Value 2"),
"key1": pulumi.String("value1"),
},
Input: media.JobInputAsset{
AssetName: "job1-InputAsset",
OdataType: "#Microsoft.Media.JobInputAsset",
},
JobName: pulumi.String("job1"),
Outputs: []media.JobOutputAssetArgs{
{
AssetName: pulumi.String("job1-OutputAsset"),
OdataType: pulumi.String("#Microsoft.Media.JobOutputAsset"),
},
},
ResourceGroupName: pulumi.String("contosoresources"),
TransformName: pulumi.String("exampleTransform"),
})
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.media.Job;
import com.pulumi.azurenative.media.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()
.accountName("contosomedia")
.correlationData(Map.ofEntries(
Map.entry("Key 2", "Value 2"),
Map.entry("key1", "value1")
))
.input(Map.ofEntries(
Map.entry("assetName", "job1-InputAsset"),
Map.entry("odataType", "#Microsoft.Media.JobInputAsset")
))
.jobName("job1")
.outputs(Map.ofEntries(
Map.entry("assetName", "job1-OutputAsset"),
Map.entry("odataType", "#Microsoft.Media.JobOutputAsset")
))
.resourceGroupName("contosoresources")
.transformName("exampleTransform")
.build());
}
}

Import

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

$ pulumi import azure-native:media:Job job1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1

Properties

Link copied to clipboard

Customer provided key, value pairs that will be returned in Job and JobOutput state events.

Link copied to clipboard
val created: Output<String>

The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.

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

Optional customer supplied description of the Job.

Link copied to clipboard
val endTime: Output<String>

The UTC date and time at which this Job finished processing.

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

The inputs for the Job.

Link copied to clipboard
val lastModified: Output<String>

The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The outputs for the Job.

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

Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.

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

The UTC date and time at which this Job began processing.

Link copied to clipboard
val state: Output<String>

The current state of the job.

Link copied to clipboard

The system metadata relating to this resource.

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>