LiveEventOutputArgs

data class LiveEventOutputArgs(val archiveWindowDuration: Output<String>? = null, val assetName: Output<String>? = null, val description: Output<String>? = null, val hlsFragmentsPerTsSegment: Output<Int>? = null, val liveEventId: Output<String>? = null, val manifestName: Output<String>? = null, val name: Output<String>? = null, val outputSnapTimeInSeconds: Output<Int>? = null, val rewindWindowDuration: Output<String>? = null) : ConvertibleToJava<LiveEventOutputArgs>

Manages a Azure Media Live Event Output.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.media.ServiceAccount;
import com.pulumi.azure.media.ServiceAccountArgs;
import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs;
import com.pulumi.azure.media.Asset;
import com.pulumi.azure.media.AssetArgs;
import com.pulumi.azure.media.LiveEvent;
import com.pulumi.azure.media.LiveEventArgs;
import com.pulumi.azure.media.inputs.LiveEventInputArgs;
import com.pulumi.azure.media.LiveEventOutput;
import com.pulumi.azure.media.LiveEventOutputArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.storageAccounts(ServiceAccountStorageAccountArgs.builder()
.id(exampleAccount.id())
.isPrimary(true)
.build())
.build());
var exampleAsset = new Asset("exampleAsset", AssetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.build());
var exampleLiveEvent = new LiveEvent("exampleLiveEvent", LiveEventArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.mediaServicesAccountName(exampleServiceAccount.name())
.description("My Event Description")
.input(LiveEventInputArgs.builder()
.streamingProtocol("RTMP")
.keyFrameIntervalDuration("PT6S")
.ipAccessControlAllows(LiveEventInputIpAccessControlAllowArgs.builder()
.name("AllowAll")
.address("0.0.0.0")
.subnetPrefixLength(0)
.build())
.build())
.build());
var exampleLiveEventOutput = new LiveEventOutput("exampleLiveEventOutput", LiveEventOutputArgs.builder()
.liveEventId(exampleLiveEvent.id())
.archiveWindowDuration("PT5M")
.assetName(exampleAsset.name())
.description("Test live output 1")
.manifestName("testmanifest")
.outputSnapTimeInSeconds(0)
.hlsFragmentsPerTsSegment(5)
.rewindWindowDuration("PT5M")
.build());
}
}

Import

Live Outputs can be imported using the resource id, e.g.

$ pulumi import azure:media/liveEventOutput:LiveEventOutput example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/liveEvents/event1/liveOutputs/output1

Constructors

Link copied to clipboard
fun LiveEventOutputArgs(archiveWindowDuration: Output<String>? = null, assetName: Output<String>? = null, description: Output<String>? = null, hlsFragmentsPerTsSegment: Output<Int>? = null, liveEventId: Output<String>? = null, manifestName: Output<String>? = null, name: Output<String>? = null, outputSnapTimeInSeconds: Output<Int>? = null, rewindWindowDuration: Output<String>? = null)

Functions

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

Properties

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

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. Changing this forces a new Live Output to be created.

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

The asset that the live output will write to. Changing this forces a new Live Output to be created.

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

The description of the live output. Changing this forces a new Live Output to be created.

Link copied to clipboard
val hlsFragmentsPerTsSegment: Output<Int>? = null

The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output. Changing this forces a new Live Output to be created.

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

The id of the live event. Changing this forces a new Live Output to be created.

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

The manifest file name. If not provided, the service will generate one automatically. Changing this forces a new Live Output to be created.

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

The name which should be used for this Live Event Output. Changing this forces a new Live Output to be created.

Link copied to clipboard
val outputSnapTimeInSeconds: Output<Int>? = null

The initial timestamp that the live output will start at, any content before this value will not be archived. Changing this forces a new Live Output to be created.

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