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. Uses Azure REST API version 2022-07-01. In version 2.x of the Azure Native provider, it used API version 2022-07-01. Other available API versions: 2018-03-30-preview, 2018-06-01-preview, 2018-07-01, 2020-05-01, 2021-06-01, 2021-11-01, 2022-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native media [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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[]
{
new AzureNative.Media.Inputs.JobOutputAssetArgs
{
AssetName = "job1-OutputAsset",
OdataType = "#Microsoft.Media.JobOutputAsset",
},
},
ResourceGroupName = "contosoresources",
TransformName = "exampleTransform",
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media/v3"
"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.JobInputAssetArgs{
AssetName: pulumi.String("job1-InputAsset"),
OdataType: pulumi.String("#Microsoft.Media.JobInputAsset"),
},
JobName: pulumi.String("job1"),
Outputs: media.JobOutputAssetArray{
&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 com.pulumi.azurenative.media.inputs.JobOutputAssetArgs;
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(JobInputAssetArgs.builder()
.assetName("job1-InputAsset")
.odataType("#Microsoft.Media.JobInputAsset")
.build())
.jobName("job1")
.outputs(JobOutputAssetArgs.builder()
.assetName("job1-OutputAsset")
.odataType("#Microsoft.Media.JobOutputAsset")
.build())
.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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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>