com.pulumi.azurenative.media.Job Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.media;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.media.JobArgs;
import com.pulumi.azurenative.media.outputs.JobInputAssetResponse;
import com.pulumi.azurenative.media.outputs.JobInputClipResponse;
import com.pulumi.azurenative.media.outputs.JobInputHttpResponse;
import com.pulumi.azurenative.media.outputs.JobInputSequenceResponse;
import com.pulumi.azurenative.media.outputs.JobInputsResponse;
import com.pulumi.azurenative.media.outputs.JobOutputAssetResponse;
import com.pulumi.azurenative.media.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid.
* Azure REST API version: 2022-07-01. Prior API version in Azure Native 1.x: 2020-05-01.
*
* ## Example Usage
* ### Create a Job
*
*
* {@code
* 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.
*
* ```sh
* $ pulumi import azure-native:media:Job job1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}
* ```
*
*/
@ResourceType(type="azure-native:media:Job")
public class Job extends com.pulumi.resources.CustomResource {
/**
* Customer provided key, value pairs that will be returned in Job and JobOutput state events.
*
*/
@Export(name="correlationData", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> correlationData;
/**
* @return Customer provided key, value pairs that will be returned in Job and JobOutput state events.
*
*/
public Output>> correlationData() {
return Codegen.optional(this.correlationData);
}
/**
* The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
*
*/
@Export(name="created", refs={String.class}, tree="[0]")
private Output created;
/**
* @return The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
*
*/
public Output created() {
return this.created;
}
/**
* Optional customer supplied description of the Job.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Optional customer supplied description of the Job.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The UTC date and time at which this Job finished processing.
*
*/
@Export(name="endTime", refs={String.class}, tree="[0]")
private Output endTime;
/**
* @return The UTC date and time at which this Job finished processing.
*
*/
public Output endTime() {
return this.endTime;
}
/**
* The inputs for the Job.
*
*/
@Export(name="input", refs={Object.class}, tree="[0]")
private Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy