Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.media.kotlin
import com.pulumi.azurenative.media.LiveEventArgs.builder
import com.pulumi.azurenative.media.kotlin.enums.StreamOptionsFlag
import com.pulumi.azurenative.media.kotlin.inputs.CrossSiteAccessPoliciesArgs
import com.pulumi.azurenative.media.kotlin.inputs.CrossSiteAccessPoliciesArgsBuilder
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventEncodingArgs
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventEncodingArgsBuilder
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventInputArgs
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventInputArgsBuilder
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventPreviewArgs
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventPreviewArgsBuilder
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventTranscriptionArgs
import com.pulumi.azurenative.media.kotlin.inputs.LiveEventTranscriptionArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The live event.
* Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 2020-05-01.
* Other available API versions: 2018-06-01-preview, 2019-05-01-preview.
* ## Example Usage
* ### Create a LiveEvent
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var liveEvent = new AzureNative.Media.LiveEvent("liveEvent", new()
* {
* AccountName = "slitestmedia10",
* Description = "test event 1",
* Input = new AzureNative.Media.Inputs.LiveEventInputArgs
* {
* AccessControl = new AzureNative.Media.Inputs.LiveEventInputAccessControlArgs
* {
* Ip = new AzureNative.Media.Inputs.IPAccessControlArgs
* {
* Allow = new[]
* {
* new AzureNative.Media.Inputs.IPRangeArgs
* {
* Address = "0.0.0.0",
* Name = "AllowAll",
* SubnetPrefixLength = 0,
* },
* },
* },
* },
* KeyFrameIntervalDuration = "PT6S",
* StreamingProtocol = AzureNative.Media.LiveEventInputProtocol.RTMP,
* },
* LiveEventName = "myLiveEvent1",
* Location = "West US",
* Preview = new AzureNative.Media.Inputs.LiveEventPreviewArgs
* {
* AccessControl = new AzureNative.Media.Inputs.LiveEventPreviewAccessControlArgs
* {
* Ip = new AzureNative.Media.Inputs.IPAccessControlArgs
* {
* Allow = new[]
* {
* new AzureNative.Media.Inputs.IPRangeArgs
* {
* Address = "0.0.0.0",
* Name = "AllowAll",
* SubnetPrefixLength = 0,
* },
* },
* },
* },
* },
* ResourceGroupName = "mediaresources",
* Tags =
* {
* { "tag1", "value1" },
* { "tag2", "value2" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* media "github.com/pulumi/pulumi-azure-native-sdk/media/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := media.NewLiveEvent(ctx, "liveEvent", &media.LiveEventArgs{
* AccountName: pulumi.String("slitestmedia10"),
* Description: pulumi.String("test event 1"),
* Input: &media.LiveEventInputTypeArgs{
* AccessControl: &media.LiveEventInputAccessControlArgs{
* Ip: &media.IPAccessControlArgs{
* Allow: media.IPRangeArray{
* &media.IPRangeArgs{
* Address: pulumi.String("0.0.0.0"),
* Name: pulumi.String("AllowAll"),
* SubnetPrefixLength: pulumi.Int(0),
* },
* },
* },
* },
* KeyFrameIntervalDuration: pulumi.String("PT6S"),
* StreamingProtocol: pulumi.String(media.LiveEventInputProtocolRTMP),
* },
* LiveEventName: pulumi.String("myLiveEvent1"),
* Location: pulumi.String("West US"),
* Preview: &media.LiveEventPreviewArgs{
* AccessControl: &media.LiveEventPreviewAccessControlArgs{
* Ip: &media.IPAccessControlArgs{
* Allow: media.IPRangeArray{
* &media.IPRangeArgs{
* Address: pulumi.String("0.0.0.0"),
* Name: pulumi.String("AllowAll"),
* SubnetPrefixLength: pulumi.Int(0),
* },
* },
* },
* },
* },
* ResourceGroupName: pulumi.String("mediaresources"),
* Tags: pulumi.StringMap{
* "tag1": pulumi.String("value1"),
* "tag2": pulumi.String("value2"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.media.LiveEvent;
* import com.pulumi.azurenative.media.LiveEventArgs;
* import com.pulumi.azurenative.media.inputs.LiveEventInputArgs;
* import com.pulumi.azurenative.media.inputs.LiveEventInputAccessControlArgs;
* import com.pulumi.azurenative.media.inputs.IPAccessControlArgs;
* import com.pulumi.azurenative.media.inputs.LiveEventPreviewArgs;
* import com.pulumi.azurenative.media.inputs.LiveEventPreviewAccessControlArgs;
* 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 liveEvent = new LiveEvent("liveEvent", LiveEventArgs.builder()
* .accountName("slitestmedia10")
* .description("test event 1")
* .input(LiveEventInputArgs.builder()
* .accessControl(LiveEventInputAccessControlArgs.builder()
* .ip(IPAccessControlArgs.builder()
* .allow(IPRangeArgs.builder()
* .address("0.0.0.0")
* .name("AllowAll")
* .subnetPrefixLength(0)
* .build())
* .build())
* .build())
* .keyFrameIntervalDuration("PT6S")
* .streamingProtocol("RTMP")
* .build())
* .liveEventName("myLiveEvent1")
* .location("West US")
* .preview(LiveEventPreviewArgs.builder()
* .accessControl(LiveEventPreviewAccessControlArgs.builder()
* .ip(IPAccessControlArgs.builder()
* .allow(IPRangeArgs.builder()
* .address("0.0.0.0")
* .name("AllowAll")
* .subnetPrefixLength(0)
* .build())
* .build())
* .build())
* .build())
* .resourceGroupName("mediaresources")
* .tags(Map.ofEntries(
* Map.entry("tag1", "value1"),
* Map.entry("tag2", "value2")
* ))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:media:LiveEvent myLiveEvent1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
* ```
* @property accountName The Media Services account name.
* @property autoStart The flag indicates if the resource should be automatically started on creation.
* @property crossSiteAccessPolicies Live event cross site access policies.
* @property description A description for the live event.
* @property encoding Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used.
* @property hostnamePrefix When useStaticHostname is set to true, the hostnamePrefix 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.
* @property input Live event input settings. It defines how the live event receives input from a contribution encoder.
* @property liveEventName The name of the live event, maximum length is 32.
* @property location The geo-location where the resource lives
* @property preview Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output.
* @property resourceGroupName The name of the resource group within the Azure subscription.
* @property streamOptions The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'.
* @property tags Resource tags.
* @property transcriptions Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature.
* @property useStaticHostname Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state
*/
public data class LiveEventArgs(
public val accountName: Output? = null,
public val autoStart: Output? = null,
public val crossSiteAccessPolicies: Output? = null,
public val description: Output? = null,
public val encoding: Output? = null,
public val hostnamePrefix: Output? = null,
public val input: Output? = null,
public val liveEventName: Output? = null,
public val location: Output? = null,
public val preview: Output? = null,
public val resourceGroupName: Output? = null,
public val streamOptions: Output>>? = null,
public val tags: Output