TrackArgs

data class TrackArgs(val accountName: Output<String>? = null, val assetName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val track: Output<Any>? = null, val trackName: Output<String>? = null) : ConvertibleToJava<TrackArgs>

An Asset Track resource. API Version: 2021-11-01.

Example Usage

Creates a Track

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var track = new AzureNative.Media.Track("track", new()
{
AccountName = "contosomedia",
AssetName = "ClimbingMountRainer",
ResourceGroupName = "contoso",
Track = new AzureNative.Media.Inputs.TextTrackArgs
{
DisplayName = "A new track",
FileName = "text3.ttml",
OdataType = "#Microsoft.Media.TextTrack",
PlayerVisibility = "Visible",
},
TrackName = "text3",
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := media.NewTrack(ctx, "track", &media.TrackArgs{
AccountName: pulumi.String("contosomedia"),
AssetName: pulumi.String("ClimbingMountRainer"),
ResourceGroupName: pulumi.String("contoso"),
Track: media.TextTrack{
DisplayName: "A new track",
FileName: "text3.ttml",
OdataType: "#Microsoft.Media.TextTrack",
PlayerVisibility: "Visible",
},
TrackName: pulumi.String("text3"),
})
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.Track;
import com.pulumi.azurenative.media.TrackArgs;
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 track = new Track("track", TrackArgs.builder()
.accountName("contosomedia")
.assetName("ClimbingMountRainer")
.resourceGroupName("contoso")
.track(Map.ofEntries(
Map.entry("displayName", "A new track"),
Map.entry("fileName", "text3.ttml"),
Map.entry("odataType", "#Microsoft.Media.TextTrack"),
Map.entry("playerVisibility", "Visible")
))
.trackName("text3")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:media:Track text3 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, assetName: Output<String>? = null, resourceGroupName: Output<String>? = null, track: Output<Any>? = null, trackName: Output<String>? = null)

Properties

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

The Media Services account name.

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

The Asset name.

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

The name of the resource group within the Azure subscription.

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

Detailed information about a track in the asset.

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

The Asset Track name.

Functions

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