Job Args
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/v2"
"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
Properties
The Media Services account name.
Customer provided key, value pairs that will be returned in Job and JobOutput state events.
Optional customer supplied description of the Job.
The outputs for the Job.
The name of the resource group within the Azure subscription.
The Transform name.