LiveEvent

class LiveEvent : KotlinCustomResource

Manages a Live Event.

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.LiveEvent;
import com.pulumi.azure.media.LiveEventArgs;
import com.pulumi.azure.media.inputs.LiveEventInputArgs;
import com.pulumi.azure.media.inputs.LiveEventEncodingArgs;
import com.pulumi.azure.media.inputs.LiveEventPreviewArgs;
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 exampleLiveEvent = new LiveEvent("exampleLiveEvent", LiveEventArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.mediaServicesAccountName(exampleServiceAccount.name())
.description("My Event Description")
.input(LiveEventInputArgs.builder()
.streamingProtocol("RTMP")
.ipAccessControlAllows(LiveEventInputIpAccessControlAllowArgs.builder()
.name("AllowAll")
.address("0.0.0.0")
.subnetPrefixLength(0)
.build())
.build())
.encoding(LiveEventEncodingArgs.builder()
.type("Standard")
.presetName("Default720p")
.stretchMode("AutoFit")
.keyFrameInterval("PT2S")
.build())
.preview(LiveEventPreviewArgs.builder()
.ipAccessControlAllows(LiveEventPreviewIpAccessControlAllowArgs.builder()
.name("AllowAll")
.address("0.0.0.0")
.subnetPrefixLength(0)
.build())
.build())
.streamOptions("LowLatency")
.useStaticHostname(true)
.hostnamePrefix("special-event")
.transcriptionLanguages("en-US")
.build());
}
}

Import

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

$ pulumi import azure:media/liveEvent:LiveEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Media/mediaServices/account1/liveEvents/event1

Properties

Link copied to clipboard

The flag indicates if the resource should be automatically started on creation. Default is false. Changing this forces a new resource to be created.

Link copied to clipboard

A cross_site_access_policy block as defined below.

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

A description for the live event.

Link copied to clipboard

A encoding block as defined below.

Link copied to clipboard
val hostnamePrefix: Output<String>?

When use_static_hostname is set to true, the hostname_prefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val input: Output<LiveEventInput>

A input block as defined below.

Link copied to clipboard
val location: Output<String>

The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.

Link copied to clipboard

The Media Services account name. Changing this forces a new Live Event to be created.

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard

A preview block as defined below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.

Link copied to clipboard
val streamOptions: Output<List<String>>?

A list of options to use for the LiveEvent. Possible values are Default, LowLatency, LowLatencyV2. Please see more at this document. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags which should be assigned to the Live Event.

Link copied to clipboard

Specifies a list of languages (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: en-US). See the Microsoft Documentation for more information about the live transcription feature and the list of supported languages.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. Changing this forces a new Live Event to be created.