Transform
A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs. 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 or update a Transform
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var transform = new AzureNative.Media.Transform("transform", new()
{
AccountName = "contosomedia",
Description = "Example Transform to illustrate create and update.",
Outputs = new[]
{
new AzureNative.Media.Inputs.TransformOutputArgs
{
Preset = new AzureNative.Media.Inputs.BuiltInStandardEncoderPresetArgs
{
OdataType = "#Microsoft.Media.BuiltInStandardEncoderPreset",
PresetName = AzureNative.Media.EncoderNamedPreset.AdaptiveStreaming,
},
},
},
ResourceGroupName = "contosoresources",
TransformName = "createdTransform",
});
});
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.NewTransform(ctx, "transform", &media.TransformArgs{
AccountName: pulumi.String("contosomedia"),
Description: pulumi.String("Example Transform to illustrate create and update."),
Outputs: media.TransformOutputTypeArray{
&media.TransformOutputTypeArgs{
Preset: media.BuiltInStandardEncoderPreset{
OdataType: "#Microsoft.Media.BuiltInStandardEncoderPreset",
PresetName: media.EncoderNamedPresetAdaptiveStreaming,
},
},
},
ResourceGroupName: pulumi.String("contosoresources"),
TransformName: pulumi.String("createdTransform"),
})
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.Transform;
import com.pulumi.azurenative.media.TransformArgs;
import com.pulumi.azurenative.media.inputs.TransformOutputArgs;
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 transform = new Transform("transform", TransformArgs.builder()
.accountName("contosomedia")
.description("Example Transform to illustrate create and update.")
.outputs(TransformOutputArgs.builder()
.preset(BuiltInStandardEncoderPresetArgs.builder()
.odataType("#Microsoft.Media.BuiltInStandardEncoderPreset")
.presetName("AdaptiveStreaming")
.build())
.build())
.resourceGroupName("contosoresources")
.transformName("createdTransform")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:Transform createdTransform /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}
Properties
The Azure API version of the resource.
An optional verbose description of the Transform.
The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.
An array of one or more TransformOutputs that the Transform should generate.
The system metadata relating to this resource.