Live Output Args
The Live Output. Uses Azure REST API version 2022-11-01. In version 2.x of the Azure Native provider, it used API version 2022-11-01. Other available API versions: 2018-03-30-preview, 2018-06-01-preview, 2018-07-01, 2019-05-01-preview, 2020-05-01, 2021-06-01, 2021-11-01, 2022-08-01. 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 LiveOutput
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var liveOutput = new AzureNative.Media.LiveOutput("liveOutput", new()
{
AccountName = "slitestmedia10",
ArchiveWindowLength = "PT5M",
AssetName = "6f3264f5-a189-48b4-a29a-a40f22575212",
Description = "test live output 1",
Hls = new AzureNative.Media.Inputs.HlsArgs
{
FragmentsPerTsSegment = 5,
},
LiveEventName = "myLiveEvent1",
LiveOutputName = "myLiveOutput1",
ManifestName = "testmanifest",
ResourceGroupName = "mediaresources",
RewindWindowLength = "PT4M",
});
});
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.NewLiveOutput(ctx, "liveOutput", &media.LiveOutputArgs{
AccountName: pulumi.String("slitestmedia10"),
ArchiveWindowLength: pulumi.String("PT5M"),
AssetName: pulumi.String("6f3264f5-a189-48b4-a29a-a40f22575212"),
Description: pulumi.String("test live output 1"),
Hls: &media.HlsArgs{
FragmentsPerTsSegment: pulumi.Int(5),
},
LiveEventName: pulumi.String("myLiveEvent1"),
LiveOutputName: pulumi.String("myLiveOutput1"),
ManifestName: pulumi.String("testmanifest"),
ResourceGroupName: pulumi.String("mediaresources"),
RewindWindowLength: pulumi.String("PT4M"),
})
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.LiveOutput;
import com.pulumi.azurenative.media.LiveOutputArgs;
import com.pulumi.azurenative.media.inputs.HlsArgs;
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 liveOutput = new LiveOutput("liveOutput", LiveOutputArgs.builder()
.accountName("slitestmedia10")
.archiveWindowLength("PT5M")
.assetName("6f3264f5-a189-48b4-a29a-a40f22575212")
.description("test live output 1")
.hls(HlsArgs.builder()
.fragmentsPerTsSegment(5)
.build())
.liveEventName("myLiveEvent1")
.liveOutputName("myLiveOutput1")
.manifestName("testmanifest")
.resourceGroupName("mediaresources")
.rewindWindowLength("PT4M")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:LiveOutput myLiveOutput1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}
Constructors
Properties
The Media Services account name.
ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
The description of the live output.
The name of the live event, maximum length is 32.
The name of the live output.
The manifest file name. If not provided, the service will generate one automatically.
The initial timestamp that the live output will start at, any content before this value will not be archived.
The name of the resource group within the Azure subscription.
ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.