JobArgs

data class JobArgs(val accountName: Output<String>? = null, val correlationData: Output<Map<String, String>>? = null, val description: Output<String>? = null, val input: Output<Any>? = null, val jobName: Output<String>? = null, val outputs: Output<List<JobOutputAssetArgs>>? = null, val priority: Output<Either<String, Priority>>? = null, val resourceGroupName: Output<String>? = null, val transformName: Output<String>? = null) : ConvertibleToJava<JobArgs>

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}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, correlationData: Output<Map<String, String>>? = null, description: Output<String>? = null, input: Output<Any>? = null, jobName: Output<String>? = null, outputs: Output<List<JobOutputAssetArgs>>? = null, priority: Output<Either<String, Priority>>? = null, resourceGroupName: Output<String>? = null, transformName: Output<String>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

The Media Services account name.

Link copied to clipboard
val correlationData: Output<Map<String, String>>? = null

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

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

Optional customer supplied description of the Job.

Link copied to clipboard
val input: Output<Any>? = null

The inputs for the Job.

Link copied to clipboard
val jobName: Output<String>? = null

The Job name.

Link copied to clipboard
val outputs: Output<List<JobOutputAssetArgs>>? = null

The outputs for the Job.

Link copied to clipboard
val priority: Output<Either<String, Priority>>? = null

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 resourceGroupName: Output<String>? = null

The name of the resource group within the Azure subscription.

Link copied to clipboard
val transformName: Output<String>? = null

The Transform name.

Functions

Link copied to clipboard
open override fun toJava(): JobArgs