Live Event Output Args
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("media-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("examplestoracc")
.resourceGroupName(example.name())
.location(example.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()
.name("examplemediaacc")
.location(example.location())
.resourceGroupName(example.name())
.storageAccounts(ServiceAccountStorageAccountArgs.builder()
.id(exampleAccount.id())
.isPrimary(true)
.build())
.build());
var exampleAsset = new Asset("exampleAsset", AssetArgs.builder()
.name("inputAsset")
.resourceGroupName(example.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.build());
var exampleLiveEvent = new LiveEvent("exampleLiveEvent", LiveEventArgs.builder()
.name("exampleevent")
.resourceGroupName(example.name())
.location(example.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()
.name("exampleoutput")
.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
Functions
Properties
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.
ISO 8601
time between 1 minute to the duration of archive_window_duration
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. Changing this forces a new Live Output to be created.