1. Packages
  2. Azure Classic
  3. API Docs
  4. media
  5. LiveEvent

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.media.LiveEvent

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Live Event.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "media-resources",
        location: "West Europe",
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "examplestoracc",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
    });
    const exampleServiceAccount = new azure.media.ServiceAccount("example", {
        name: "examplemediaacc",
        location: example.location,
        resourceGroupName: example.name,
        storageAccounts: [{
            id: exampleAccount.id,
            isPrimary: true,
        }],
    });
    const exampleLiveEvent = new azure.media.LiveEvent("example", {
        name: "example",
        resourceGroupName: example.name,
        location: example.location,
        mediaServicesAccountName: exampleServiceAccount.name,
        description: "My Event Description",
        input: {
            streamingProtocol: "RTMP",
            ipAccessControlAllows: [{
                name: "AllowAll",
                address: "0.0.0.0",
                subnetPrefixLength: 0,
            }],
        },
        encoding: {
            type: "Standard",
            presetName: "Default720p",
            stretchMode: "AutoFit",
            keyFrameInterval: "PT2S",
        },
        preview: {
            ipAccessControlAllows: [{
                name: "AllowAll",
                address: "0.0.0.0",
                subnetPrefixLength: 0,
            }],
        },
        streamOptions: ["LowLatency"],
        useStaticHostname: true,
        hostnamePrefix: "special-event",
        transcriptionLanguages: ["en-US"],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="media-resources",
        location="West Europe")
    example_account = azure.storage.Account("example",
        name="examplestoracc",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="GRS")
    example_service_account = azure.media.ServiceAccount("example",
        name="examplemediaacc",
        location=example.location,
        resource_group_name=example.name,
        storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
            id=example_account.id,
            is_primary=True,
        )])
    example_live_event = azure.media.LiveEvent("example",
        name="example",
        resource_group_name=example.name,
        location=example.location,
        media_services_account_name=example_service_account.name,
        description="My Event Description",
        input=azure.media.LiveEventInputArgs(
            streaming_protocol="RTMP",
            ip_access_control_allows=[azure.media.LiveEventInputIpAccessControlAllowArgs(
                name="AllowAll",
                address="0.0.0.0",
                subnet_prefix_length=0,
            )],
        ),
        encoding=azure.media.LiveEventEncodingArgs(
            type="Standard",
            preset_name="Default720p",
            stretch_mode="AutoFit",
            key_frame_interval="PT2S",
        ),
        preview=azure.media.LiveEventPreviewArgs(
            ip_access_control_allows=[azure.media.LiveEventPreviewIpAccessControlAllowArgs(
                name="AllowAll",
                address="0.0.0.0",
                subnet_prefix_length=0,
            )],
        ),
        stream_options=["LowLatency"],
        use_static_hostname=True,
        hostname_prefix="special-event",
        transcription_languages=["en-US"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("media-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("examplestoracc"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleServiceAccount, err := media.NewServiceAccount(ctx, "example", &media.ServiceAccountArgs{
    			Name:              pulumi.String("examplemediaacc"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			StorageAccounts: media.ServiceAccountStorageAccountArray{
    				&media.ServiceAccountStorageAccountArgs{
    					Id:        exampleAccount.ID(),
    					IsPrimary: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = media.NewLiveEvent(ctx, "example", &media.LiveEventArgs{
    			Name:                     pulumi.String("example"),
    			ResourceGroupName:        example.Name,
    			Location:                 example.Location,
    			MediaServicesAccountName: exampleServiceAccount.Name,
    			Description:              pulumi.String("My Event Description"),
    			Input: &media.LiveEventInputTypeArgs{
    				StreamingProtocol: pulumi.String("RTMP"),
    				IpAccessControlAllows: media.LiveEventInputIpAccessControlAllowArray{
    					&media.LiveEventInputIpAccessControlAllowArgs{
    						Name:               pulumi.String("AllowAll"),
    						Address:            pulumi.String("0.0.0.0"),
    						SubnetPrefixLength: pulumi.Int(0),
    					},
    				},
    			},
    			Encoding: &media.LiveEventEncodingArgs{
    				Type:             pulumi.String("Standard"),
    				PresetName:       pulumi.String("Default720p"),
    				StretchMode:      pulumi.String("AutoFit"),
    				KeyFrameInterval: pulumi.String("PT2S"),
    			},
    			Preview: &media.LiveEventPreviewArgs{
    				IpAccessControlAllows: media.LiveEventPreviewIpAccessControlAllowArray{
    					&media.LiveEventPreviewIpAccessControlAllowArgs{
    						Name:               pulumi.String("AllowAll"),
    						Address:            pulumi.String("0.0.0.0"),
    						SubnetPrefixLength: pulumi.Int(0),
    					},
    				},
    			},
    			StreamOptions: pulumi.StringArray{
    				pulumi.String("LowLatency"),
    			},
    			UseStaticHostname: pulumi.Bool(true),
    			HostnamePrefix:    pulumi.String("special-event"),
    			TranscriptionLanguages: pulumi.StringArray{
    				pulumi.String("en-US"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "media-resources",
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplestoracc",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
        });
    
        var exampleServiceAccount = new Azure.Media.ServiceAccount("example", new()
        {
            Name = "examplemediaacc",
            Location = example.Location,
            ResourceGroupName = example.Name,
            StorageAccounts = new[]
            {
                new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
                {
                    Id = exampleAccount.Id,
                    IsPrimary = true,
                },
            },
        });
    
        var exampleLiveEvent = new Azure.Media.LiveEvent("example", new()
        {
            Name = "example",
            ResourceGroupName = example.Name,
            Location = example.Location,
            MediaServicesAccountName = exampleServiceAccount.Name,
            Description = "My Event Description",
            Input = new Azure.Media.Inputs.LiveEventInputArgs
            {
                StreamingProtocol = "RTMP",
                IpAccessControlAllows = new[]
                {
                    new Azure.Media.Inputs.LiveEventInputIpAccessControlAllowArgs
                    {
                        Name = "AllowAll",
                        Address = "0.0.0.0",
                        SubnetPrefixLength = 0,
                    },
                },
            },
            Encoding = new Azure.Media.Inputs.LiveEventEncodingArgs
            {
                Type = "Standard",
                PresetName = "Default720p",
                StretchMode = "AutoFit",
                KeyFrameInterval = "PT2S",
            },
            Preview = new Azure.Media.Inputs.LiveEventPreviewArgs
            {
                IpAccessControlAllows = new[]
                {
                    new Azure.Media.Inputs.LiveEventPreviewIpAccessControlAllowArgs
                    {
                        Name = "AllowAll",
                        Address = "0.0.0.0",
                        SubnetPrefixLength = 0,
                    },
                },
            },
            StreamOptions = new[]
            {
                "LowLatency",
            },
            UseStaticHostname = true,
            HostnamePrefix = "special-event",
            TranscriptionLanguages = new[]
            {
                "en-US",
            },
        });
    
    });
    
    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 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 exampleLiveEvent = new LiveEvent("exampleLiveEvent", LiveEventArgs.builder()
                .name("example")
                .resourceGroupName(example.name())
                .location(example.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());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: media-resources
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplestoracc
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: GRS
      exampleServiceAccount:
        type: azure:media:ServiceAccount
        name: example
        properties:
          name: examplemediaacc
          location: ${example.location}
          resourceGroupName: ${example.name}
          storageAccounts:
            - id: ${exampleAccount.id}
              isPrimary: true
      exampleLiveEvent:
        type: azure:media:LiveEvent
        name: example
        properties:
          name: example
          resourceGroupName: ${example.name}
          location: ${example.location}
          mediaServicesAccountName: ${exampleServiceAccount.name}
          description: My Event Description
          input:
            streamingProtocol: RTMP
            ipAccessControlAllows:
              - name: AllowAll
                address: 0.0.0.0
                subnetPrefixLength: 0
          encoding:
            type: Standard
            presetName: Default720p
            stretchMode: AutoFit
            keyFrameInterval: PT2S
          preview:
            ipAccessControlAllows:
              - name: AllowAll
                address: 0.0.0.0
                subnetPrefixLength: 0
          streamOptions:
            - LowLatency
          useStaticHostname: true
          hostnamePrefix: special-event
          transcriptionLanguages:
            - en-US
    

    Create LiveEvent Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LiveEvent(name: string, args: LiveEventArgs, opts?: CustomResourceOptions);
    @overload
    def LiveEvent(resource_name: str,
                  args: LiveEventArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def LiveEvent(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  input: Optional[LiveEventInputArgs] = None,
                  resource_group_name: Optional[str] = None,
                  media_services_account_name: Optional[str] = None,
                  location: Optional[str] = None,
                  hostname_prefix: Optional[str] = None,
                  encoding: Optional[LiveEventEncodingArgs] = None,
                  auto_start_enabled: Optional[bool] = None,
                  description: Optional[str] = None,
                  name: Optional[str] = None,
                  preview: Optional[LiveEventPreviewArgs] = None,
                  cross_site_access_policy: Optional[LiveEventCrossSiteAccessPolicyArgs] = None,
                  stream_options: Optional[Sequence[str]] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  transcription_languages: Optional[Sequence[str]] = None,
                  use_static_hostname: Optional[bool] = None)
    func NewLiveEvent(ctx *Context, name string, args LiveEventArgs, opts ...ResourceOption) (*LiveEvent, error)
    public LiveEvent(string name, LiveEventArgs args, CustomResourceOptions? opts = null)
    public LiveEvent(String name, LiveEventArgs args)
    public LiveEvent(String name, LiveEventArgs args, CustomResourceOptions options)
    
    type: azure:media:LiveEvent
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LiveEventArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LiveEventArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LiveEventArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LiveEventArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LiveEventArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var liveEventResource = new Azure.Media.LiveEvent("liveEventResource", new()
    {
        Input = new Azure.Media.Inputs.LiveEventInputArgs
        {
            AccessToken = "string",
            Endpoints = new[]
            {
                new Azure.Media.Inputs.LiveEventInputEndpointArgs
                {
                    Protocol = "string",
                    Url = "string",
                },
            },
            IpAccessControlAllows = new[]
            {
                new Azure.Media.Inputs.LiveEventInputIpAccessControlAllowArgs
                {
                    Address = "string",
                    Name = "string",
                    SubnetPrefixLength = 0,
                },
            },
            KeyFrameIntervalDuration = "string",
            StreamingProtocol = "string",
        },
        ResourceGroupName = "string",
        MediaServicesAccountName = "string",
        Location = "string",
        HostnamePrefix = "string",
        Encoding = new Azure.Media.Inputs.LiveEventEncodingArgs
        {
            KeyFrameInterval = "string",
            PresetName = "string",
            StretchMode = "string",
            Type = "string",
        },
        AutoStartEnabled = false,
        Description = "string",
        Name = "string",
        Preview = new Azure.Media.Inputs.LiveEventPreviewArgs
        {
            AlternativeMediaId = "string",
            Endpoints = new[]
            {
                new Azure.Media.Inputs.LiveEventPreviewEndpointArgs
                {
                    Protocol = "string",
                    Url = "string",
                },
            },
            IpAccessControlAllows = new[]
            {
                new Azure.Media.Inputs.LiveEventPreviewIpAccessControlAllowArgs
                {
                    Address = "string",
                    Name = "string",
                    SubnetPrefixLength = 0,
                },
            },
            PreviewLocator = "string",
            StreamingPolicyName = "string",
        },
        CrossSiteAccessPolicy = new Azure.Media.Inputs.LiveEventCrossSiteAccessPolicyArgs
        {
            ClientAccessPolicy = "string",
            CrossDomainPolicy = "string",
        },
        StreamOptions = new[]
        {
            "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
        TranscriptionLanguages = new[]
        {
            "string",
        },
        UseStaticHostname = false,
    });
    
    example, err := media.NewLiveEvent(ctx, "liveEventResource", &media.LiveEventArgs{
    	Input: &media.LiveEventInputTypeArgs{
    		AccessToken: pulumi.String("string"),
    		Endpoints: media.LiveEventInputEndpointArray{
    			&media.LiveEventInputEndpointArgs{
    				Protocol: pulumi.String("string"),
    				Url:      pulumi.String("string"),
    			},
    		},
    		IpAccessControlAllows: media.LiveEventInputIpAccessControlAllowArray{
    			&media.LiveEventInputIpAccessControlAllowArgs{
    				Address:            pulumi.String("string"),
    				Name:               pulumi.String("string"),
    				SubnetPrefixLength: pulumi.Int(0),
    			},
    		},
    		KeyFrameIntervalDuration: pulumi.String("string"),
    		StreamingProtocol:        pulumi.String("string"),
    	},
    	ResourceGroupName:        pulumi.String("string"),
    	MediaServicesAccountName: pulumi.String("string"),
    	Location:                 pulumi.String("string"),
    	HostnamePrefix:           pulumi.String("string"),
    	Encoding: &media.LiveEventEncodingArgs{
    		KeyFrameInterval: pulumi.String("string"),
    		PresetName:       pulumi.String("string"),
    		StretchMode:      pulumi.String("string"),
    		Type:             pulumi.String("string"),
    	},
    	AutoStartEnabled: pulumi.Bool(false),
    	Description:      pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Preview: &media.LiveEventPreviewArgs{
    		AlternativeMediaId: pulumi.String("string"),
    		Endpoints: media.LiveEventPreviewEndpointArray{
    			&media.LiveEventPreviewEndpointArgs{
    				Protocol: pulumi.String("string"),
    				Url:      pulumi.String("string"),
    			},
    		},
    		IpAccessControlAllows: media.LiveEventPreviewIpAccessControlAllowArray{
    			&media.LiveEventPreviewIpAccessControlAllowArgs{
    				Address:            pulumi.String("string"),
    				Name:               pulumi.String("string"),
    				SubnetPrefixLength: pulumi.Int(0),
    			},
    		},
    		PreviewLocator:      pulumi.String("string"),
    		StreamingPolicyName: pulumi.String("string"),
    	},
    	CrossSiteAccessPolicy: &media.LiveEventCrossSiteAccessPolicyArgs{
    		ClientAccessPolicy: pulumi.String("string"),
    		CrossDomainPolicy:  pulumi.String("string"),
    	},
    	StreamOptions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TranscriptionLanguages: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UseStaticHostname: pulumi.Bool(false),
    })
    
    var liveEventResource = new LiveEvent("liveEventResource", LiveEventArgs.builder()
        .input(LiveEventInputArgs.builder()
            .accessToken("string")
            .endpoints(LiveEventInputEndpointArgs.builder()
                .protocol("string")
                .url("string")
                .build())
            .ipAccessControlAllows(LiveEventInputIpAccessControlAllowArgs.builder()
                .address("string")
                .name("string")
                .subnetPrefixLength(0)
                .build())
            .keyFrameIntervalDuration("string")
            .streamingProtocol("string")
            .build())
        .resourceGroupName("string")
        .mediaServicesAccountName("string")
        .location("string")
        .hostnamePrefix("string")
        .encoding(LiveEventEncodingArgs.builder()
            .keyFrameInterval("string")
            .presetName("string")
            .stretchMode("string")
            .type("string")
            .build())
        .autoStartEnabled(false)
        .description("string")
        .name("string")
        .preview(LiveEventPreviewArgs.builder()
            .alternativeMediaId("string")
            .endpoints(LiveEventPreviewEndpointArgs.builder()
                .protocol("string")
                .url("string")
                .build())
            .ipAccessControlAllows(LiveEventPreviewIpAccessControlAllowArgs.builder()
                .address("string")
                .name("string")
                .subnetPrefixLength(0)
                .build())
            .previewLocator("string")
            .streamingPolicyName("string")
            .build())
        .crossSiteAccessPolicy(LiveEventCrossSiteAccessPolicyArgs.builder()
            .clientAccessPolicy("string")
            .crossDomainPolicy("string")
            .build())
        .streamOptions("string")
        .tags(Map.of("string", "string"))
        .transcriptionLanguages("string")
        .useStaticHostname(false)
        .build());
    
    live_event_resource = azure.media.LiveEvent("liveEventResource",
        input=azure.media.LiveEventInputArgs(
            access_token="string",
            endpoints=[azure.media.LiveEventInputEndpointArgs(
                protocol="string",
                url="string",
            )],
            ip_access_control_allows=[azure.media.LiveEventInputIpAccessControlAllowArgs(
                address="string",
                name="string",
                subnet_prefix_length=0,
            )],
            key_frame_interval_duration="string",
            streaming_protocol="string",
        ),
        resource_group_name="string",
        media_services_account_name="string",
        location="string",
        hostname_prefix="string",
        encoding=azure.media.LiveEventEncodingArgs(
            key_frame_interval="string",
            preset_name="string",
            stretch_mode="string",
            type="string",
        ),
        auto_start_enabled=False,
        description="string",
        name="string",
        preview=azure.media.LiveEventPreviewArgs(
            alternative_media_id="string",
            endpoints=[azure.media.LiveEventPreviewEndpointArgs(
                protocol="string",
                url="string",
            )],
            ip_access_control_allows=[azure.media.LiveEventPreviewIpAccessControlAllowArgs(
                address="string",
                name="string",
                subnet_prefix_length=0,
            )],
            preview_locator="string",
            streaming_policy_name="string",
        ),
        cross_site_access_policy=azure.media.LiveEventCrossSiteAccessPolicyArgs(
            client_access_policy="string",
            cross_domain_policy="string",
        ),
        stream_options=["string"],
        tags={
            "string": "string",
        },
        transcription_languages=["string"],
        use_static_hostname=False)
    
    const liveEventResource = new azure.media.LiveEvent("liveEventResource", {
        input: {
            accessToken: "string",
            endpoints: [{
                protocol: "string",
                url: "string",
            }],
            ipAccessControlAllows: [{
                address: "string",
                name: "string",
                subnetPrefixLength: 0,
            }],
            keyFrameIntervalDuration: "string",
            streamingProtocol: "string",
        },
        resourceGroupName: "string",
        mediaServicesAccountName: "string",
        location: "string",
        hostnamePrefix: "string",
        encoding: {
            keyFrameInterval: "string",
            presetName: "string",
            stretchMode: "string",
            type: "string",
        },
        autoStartEnabled: false,
        description: "string",
        name: "string",
        preview: {
            alternativeMediaId: "string",
            endpoints: [{
                protocol: "string",
                url: "string",
            }],
            ipAccessControlAllows: [{
                address: "string",
                name: "string",
                subnetPrefixLength: 0,
            }],
            previewLocator: "string",
            streamingPolicyName: "string",
        },
        crossSiteAccessPolicy: {
            clientAccessPolicy: "string",
            crossDomainPolicy: "string",
        },
        streamOptions: ["string"],
        tags: {
            string: "string",
        },
        transcriptionLanguages: ["string"],
        useStaticHostname: false,
    });
    
    type: azure:media:LiveEvent
    properties:
        autoStartEnabled: false
        crossSiteAccessPolicy:
            clientAccessPolicy: string
            crossDomainPolicy: string
        description: string
        encoding:
            keyFrameInterval: string
            presetName: string
            stretchMode: string
            type: string
        hostnamePrefix: string
        input:
            accessToken: string
            endpoints:
                - protocol: string
                  url: string
            ipAccessControlAllows:
                - address: string
                  name: string
                  subnetPrefixLength: 0
            keyFrameIntervalDuration: string
            streamingProtocol: string
        location: string
        mediaServicesAccountName: string
        name: string
        preview:
            alternativeMediaId: string
            endpoints:
                - protocol: string
                  url: string
            ipAccessControlAllows:
                - address: string
                  name: string
                  subnetPrefixLength: 0
            previewLocator: string
            streamingPolicyName: string
        resourceGroupName: string
        streamOptions:
            - string
        tags:
            string: string
        transcriptionLanguages:
            - string
        useStaticHostname: false
    

    LiveEvent Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LiveEvent resource accepts the following input properties:

    Input LiveEventInput
    A input block as defined below.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Live Event to be created.
    ResourceGroupName string
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    AutoStartEnabled bool
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    CrossSiteAccessPolicy LiveEventCrossSiteAccessPolicy
    A cross_site_access_policy block as defined below.
    Description string
    A description for the live event.
    Encoding LiveEventEncoding
    A encoding block as defined below.
    HostnamePrefix 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.
    Location string
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    Name string
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    Preview LiveEventPreview
    A preview block as defined below.
    StreamOptions 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.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Live Event.
    TranscriptionLanguages List<string>
    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.
    UseStaticHostname bool
    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.
    Input LiveEventInputTypeArgs
    A input block as defined below.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Live Event to be created.
    ResourceGroupName string
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    AutoStartEnabled bool
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    CrossSiteAccessPolicy LiveEventCrossSiteAccessPolicyArgs
    A cross_site_access_policy block as defined below.
    Description string
    A description for the live event.
    Encoding LiveEventEncodingArgs
    A encoding block as defined below.
    HostnamePrefix 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.
    Location string
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    Name string
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    Preview LiveEventPreviewArgs
    A preview block as defined below.
    StreamOptions []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.
    Tags map[string]string
    A mapping of tags which should be assigned to the Live Event.
    TranscriptionLanguages []string
    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.
    UseStaticHostname bool
    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.
    input LiveEventInput
    A input block as defined below.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Live Event to be created.
    resourceGroupName String
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    autoStartEnabled Boolean
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    crossSiteAccessPolicy LiveEventCrossSiteAccessPolicy
    A cross_site_access_policy block as defined below.
    description String
    A description for the live event.
    encoding LiveEventEncoding
    A encoding block as defined below.
    hostnamePrefix 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.
    location String
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    name String
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview LiveEventPreview
    A preview block as defined below.
    streamOptions 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.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Live Event.
    transcriptionLanguages List<String>
    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.
    useStaticHostname Boolean
    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.
    input LiveEventInput
    A input block as defined below.
    mediaServicesAccountName string
    The Media Services account name. Changing this forces a new Live Event to be created.
    resourceGroupName string
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    autoStartEnabled boolean
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    crossSiteAccessPolicy LiveEventCrossSiteAccessPolicy
    A cross_site_access_policy block as defined below.
    description string
    A description for the live event.
    encoding LiveEventEncoding
    A encoding block as defined below.
    hostnamePrefix 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.
    location string
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    name string
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview LiveEventPreview
    A preview block as defined below.
    streamOptions 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.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Live Event.
    transcriptionLanguages string[]
    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.
    useStaticHostname boolean
    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.
    input LiveEventInputArgs
    A input block as defined below.
    media_services_account_name str
    The Media Services account name. Changing this forces a new Live Event to be created.
    resource_group_name str
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    auto_start_enabled bool
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    cross_site_access_policy LiveEventCrossSiteAccessPolicyArgs
    A cross_site_access_policy block as defined below.
    description str
    A description for the live event.
    encoding LiveEventEncodingArgs
    A encoding block as defined below.
    hostname_prefix str
    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.
    location str
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    name str
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview LiveEventPreviewArgs
    A preview block as defined below.
    stream_options Sequence[str]
    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.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Live Event.
    transcription_languages Sequence[str]
    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.
    use_static_hostname bool
    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.
    input Property Map
    A input block as defined below.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Live Event to be created.
    resourceGroupName String
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    autoStartEnabled Boolean
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    crossSiteAccessPolicy Property Map
    A cross_site_access_policy block as defined below.
    description String
    A description for the live event.
    encoding Property Map
    A encoding block as defined below.
    hostnamePrefix 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.
    location String
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    name String
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview Property Map
    A preview block as defined below.
    streamOptions 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.
    tags Map<String>
    A mapping of tags which should be assigned to the Live Event.
    transcriptionLanguages List<String>
    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.
    useStaticHostname Boolean
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LiveEvent resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LiveEvent Resource

    Get an existing LiveEvent resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LiveEventState, opts?: CustomResourceOptions): LiveEvent
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_start_enabled: Optional[bool] = None,
            cross_site_access_policy: Optional[LiveEventCrossSiteAccessPolicyArgs] = None,
            description: Optional[str] = None,
            encoding: Optional[LiveEventEncodingArgs] = None,
            hostname_prefix: Optional[str] = None,
            input: Optional[LiveEventInputArgs] = None,
            location: Optional[str] = None,
            media_services_account_name: Optional[str] = None,
            name: Optional[str] = None,
            preview: Optional[LiveEventPreviewArgs] = None,
            resource_group_name: Optional[str] = None,
            stream_options: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            transcription_languages: Optional[Sequence[str]] = None,
            use_static_hostname: Optional[bool] = None) -> LiveEvent
    func GetLiveEvent(ctx *Context, name string, id IDInput, state *LiveEventState, opts ...ResourceOption) (*LiveEvent, error)
    public static LiveEvent Get(string name, Input<string> id, LiveEventState? state, CustomResourceOptions? opts = null)
    public static LiveEvent get(String name, Output<String> id, LiveEventState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoStartEnabled bool
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    CrossSiteAccessPolicy LiveEventCrossSiteAccessPolicy
    A cross_site_access_policy block as defined below.
    Description string
    A description for the live event.
    Encoding LiveEventEncoding
    A encoding block as defined below.
    HostnamePrefix 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.
    Input LiveEventInput
    A input block as defined below.
    Location string
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Live Event to be created.
    Name string
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    Preview LiveEventPreview
    A preview block as defined below.
    ResourceGroupName string
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    StreamOptions 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.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Live Event.
    TranscriptionLanguages List<string>
    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.
    UseStaticHostname bool
    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.
    AutoStartEnabled bool
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    CrossSiteAccessPolicy LiveEventCrossSiteAccessPolicyArgs
    A cross_site_access_policy block as defined below.
    Description string
    A description for the live event.
    Encoding LiveEventEncodingArgs
    A encoding block as defined below.
    HostnamePrefix 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.
    Input LiveEventInputTypeArgs
    A input block as defined below.
    Location string
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Live Event to be created.
    Name string
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    Preview LiveEventPreviewArgs
    A preview block as defined below.
    ResourceGroupName string
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    StreamOptions []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.
    Tags map[string]string
    A mapping of tags which should be assigned to the Live Event.
    TranscriptionLanguages []string
    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.
    UseStaticHostname bool
    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.
    autoStartEnabled Boolean
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    crossSiteAccessPolicy LiveEventCrossSiteAccessPolicy
    A cross_site_access_policy block as defined below.
    description String
    A description for the live event.
    encoding LiveEventEncoding
    A encoding block as defined below.
    hostnamePrefix 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.
    input LiveEventInput
    A input block as defined below.
    location String
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Live Event to be created.
    name String
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview LiveEventPreview
    A preview block as defined below.
    resourceGroupName String
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    streamOptions 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.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Live Event.
    transcriptionLanguages List<String>
    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.
    useStaticHostname Boolean
    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.
    autoStartEnabled boolean
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    crossSiteAccessPolicy LiveEventCrossSiteAccessPolicy
    A cross_site_access_policy block as defined below.
    description string
    A description for the live event.
    encoding LiveEventEncoding
    A encoding block as defined below.
    hostnamePrefix 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.
    input LiveEventInput
    A input block as defined below.
    location string
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    mediaServicesAccountName string
    The Media Services account name. Changing this forces a new Live Event to be created.
    name string
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview LiveEventPreview
    A preview block as defined below.
    resourceGroupName string
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    streamOptions 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.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Live Event.
    transcriptionLanguages string[]
    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.
    useStaticHostname boolean
    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.
    auto_start_enabled bool
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    cross_site_access_policy LiveEventCrossSiteAccessPolicyArgs
    A cross_site_access_policy block as defined below.
    description str
    A description for the live event.
    encoding LiveEventEncodingArgs
    A encoding block as defined below.
    hostname_prefix str
    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.
    input LiveEventInputArgs
    A input block as defined below.
    location str
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    media_services_account_name str
    The Media Services account name. Changing this forces a new Live Event to be created.
    name str
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview LiveEventPreviewArgs
    A preview block as defined below.
    resource_group_name str
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    stream_options Sequence[str]
    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.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Live Event.
    transcription_languages Sequence[str]
    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.
    use_static_hostname bool
    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.
    autoStartEnabled Boolean
    The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
    crossSiteAccessPolicy Property Map
    A cross_site_access_policy block as defined below.
    description String
    A description for the live event.
    encoding Property Map
    A encoding block as defined below.
    hostnamePrefix 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.
    input Property Map
    A input block as defined below.
    location String
    The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Live Event to be created.
    name String
    The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
    preview Property Map
    A preview block as defined below.
    resourceGroupName String
    The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
    streamOptions 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.
    tags Map<String>
    A mapping of tags which should be assigned to the Live Event.
    transcriptionLanguages List<String>
    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.
    useStaticHostname Boolean
    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.

    Supporting Types

    LiveEventCrossSiteAccessPolicy, LiveEventCrossSiteAccessPolicyArgs

    ClientAccessPolicy string
    The content of clientaccesspolicy.xml used by Silverlight.
    CrossDomainPolicy string
    The content of the Cross Domain Policy (crossdomain.xml).
    ClientAccessPolicy string
    The content of clientaccesspolicy.xml used by Silverlight.
    CrossDomainPolicy string
    The content of the Cross Domain Policy (crossdomain.xml).
    clientAccessPolicy String
    The content of clientaccesspolicy.xml used by Silverlight.
    crossDomainPolicy String
    The content of the Cross Domain Policy (crossdomain.xml).
    clientAccessPolicy string
    The content of clientaccesspolicy.xml used by Silverlight.
    crossDomainPolicy string
    The content of the Cross Domain Policy (crossdomain.xml).
    client_access_policy str
    The content of clientaccesspolicy.xml used by Silverlight.
    cross_domain_policy str
    The content of the Cross Domain Policy (crossdomain.xml).
    clientAccessPolicy String
    The content of clientaccesspolicy.xml used by Silverlight.
    crossDomainPolicy String
    The content of the Cross Domain Policy (crossdomain.xml).

    LiveEventEncoding, LiveEventEncodingArgs

    KeyFrameInterval string
    Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). The value cannot be set for pass-through live events. Defaults to PT2S.
    PresetName string
    The optional encoding preset name, used when type is not None. If the type is set to Standard, then the default preset name is Default720p. Else if the type is set to Premium1080p, Changing this forces a new resource to be created.
    StretchMode string
    Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are None, AutoFit or AutoSize. Default is None.
    Type string

    Live event type. Possible values are None, Premium1080p, PassthroughBasic, PassthroughStandard and Standard. When set to None, the service simply passes through the incoming video and audio layer(s) to the output. When type is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults to None. Changing this forces a new resource to be created.

    More information can be found in the Microsoft Documentation.

    KeyFrameInterval string
    Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). The value cannot be set for pass-through live events. Defaults to PT2S.
    PresetName string
    The optional encoding preset name, used when type is not None. If the type is set to Standard, then the default preset name is Default720p. Else if the type is set to Premium1080p, Changing this forces a new resource to be created.
    StretchMode string
    Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are None, AutoFit or AutoSize. Default is None.
    Type string

    Live event type. Possible values are None, Premium1080p, PassthroughBasic, PassthroughStandard and Standard. When set to None, the service simply passes through the incoming video and audio layer(s) to the output. When type is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults to None. Changing this forces a new resource to be created.

    More information can be found in the Microsoft Documentation.

    keyFrameInterval String
    Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). The value cannot be set for pass-through live events. Defaults to PT2S.
    presetName String
    The optional encoding preset name, used when type is not None. If the type is set to Standard, then the default preset name is Default720p. Else if the type is set to Premium1080p, Changing this forces a new resource to be created.
    stretchMode String
    Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are None, AutoFit or AutoSize. Default is None.
    type String

    Live event type. Possible values are None, Premium1080p, PassthroughBasic, PassthroughStandard and Standard. When set to None, the service simply passes through the incoming video and audio layer(s) to the output. When type is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults to None. Changing this forces a new resource to be created.

    More information can be found in the Microsoft Documentation.

    keyFrameInterval string
    Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). The value cannot be set for pass-through live events. Defaults to PT2S.
    presetName string
    The optional encoding preset name, used when type is not None. If the type is set to Standard, then the default preset name is Default720p. Else if the type is set to Premium1080p, Changing this forces a new resource to be created.
    stretchMode string
    Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are None, AutoFit or AutoSize. Default is None.
    type string

    Live event type. Possible values are None, Premium1080p, PassthroughBasic, PassthroughStandard and Standard. When set to None, the service simply passes through the incoming video and audio layer(s) to the output. When type is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults to None. Changing this forces a new resource to be created.

    More information can be found in the Microsoft Documentation.

    key_frame_interval str
    Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). The value cannot be set for pass-through live events. Defaults to PT2S.
    preset_name str
    The optional encoding preset name, used when type is not None. If the type is set to Standard, then the default preset name is Default720p. Else if the type is set to Premium1080p, Changing this forces a new resource to be created.
    stretch_mode str
    Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are None, AutoFit or AutoSize. Default is None.
    type str

    Live event type. Possible values are None, Premium1080p, PassthroughBasic, PassthroughStandard and Standard. When set to None, the service simply passes through the incoming video and audio layer(s) to the output. When type is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults to None. Changing this forces a new resource to be created.

    More information can be found in the Microsoft Documentation.

    keyFrameInterval String
    Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). The value cannot be set for pass-through live events. Defaults to PT2S.
    presetName String
    The optional encoding preset name, used when type is not None. If the type is set to Standard, then the default preset name is Default720p. Else if the type is set to Premium1080p, Changing this forces a new resource to be created.
    stretchMode String
    Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are None, AutoFit or AutoSize. Default is None.
    type String

    Live event type. Possible values are None, Premium1080p, PassthroughBasic, PassthroughStandard and Standard. When set to None, the service simply passes through the incoming video and audio layer(s) to the output. When type is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults to None. Changing this forces a new resource to be created.

    More information can be found in the Microsoft Documentation.

    LiveEventInput, LiveEventInputArgs

    AccessToken string
    A UUID in string form to uniquely identify the stream. If omitted, the service will generate a unique value. Changing this forces a new value to be created.
    Endpoints List<LiveEventInputEndpoint>
    IpAccessControlAllows List<LiveEventInputIpAccessControlAllow>
    One or more ip_access_control_allow blocks as defined below.
    KeyFrameIntervalDuration string
    ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. This field cannot be set when type is set to Encoding.
    StreamingProtocol string
    The input protocol for the live event. Allowed values are FragmentedMP4 and RTMP. Changing this forces a new resource to be created.
    AccessToken string
    A UUID in string form to uniquely identify the stream. If omitted, the service will generate a unique value. Changing this forces a new value to be created.
    Endpoints []LiveEventInputEndpoint
    IpAccessControlAllows []LiveEventInputIpAccessControlAllow
    One or more ip_access_control_allow blocks as defined below.
    KeyFrameIntervalDuration string
    ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. This field cannot be set when type is set to Encoding.
    StreamingProtocol string
    The input protocol for the live event. Allowed values are FragmentedMP4 and RTMP. Changing this forces a new resource to be created.
    accessToken String
    A UUID in string form to uniquely identify the stream. If omitted, the service will generate a unique value. Changing this forces a new value to be created.
    endpoints List<LiveEventInputEndpoint>
    ipAccessControlAllows List<LiveEventInputIpAccessControlAllow>
    One or more ip_access_control_allow blocks as defined below.
    keyFrameIntervalDuration String
    ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. This field cannot be set when type is set to Encoding.
    streamingProtocol String
    The input protocol for the live event. Allowed values are FragmentedMP4 and RTMP. Changing this forces a new resource to be created.
    accessToken string
    A UUID in string form to uniquely identify the stream. If omitted, the service will generate a unique value. Changing this forces a new value to be created.
    endpoints LiveEventInputEndpoint[]
    ipAccessControlAllows LiveEventInputIpAccessControlAllow[]
    One or more ip_access_control_allow blocks as defined below.
    keyFrameIntervalDuration string
    ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. This field cannot be set when type is set to Encoding.
    streamingProtocol string
    The input protocol for the live event. Allowed values are FragmentedMP4 and RTMP. Changing this forces a new resource to be created.
    access_token str
    A UUID in string form to uniquely identify the stream. If omitted, the service will generate a unique value. Changing this forces a new value to be created.
    endpoints Sequence[LiveEventInputEndpoint]
    ip_access_control_allows Sequence[LiveEventInputIpAccessControlAllow]
    One or more ip_access_control_allow blocks as defined below.
    key_frame_interval_duration str
    ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. This field cannot be set when type is set to Encoding.
    streaming_protocol str
    The input protocol for the live event. Allowed values are FragmentedMP4 and RTMP. Changing this forces a new resource to be created.
    accessToken String
    A UUID in string form to uniquely identify the stream. If omitted, the service will generate a unique value. Changing this forces a new value to be created.
    endpoints List<Property Map>
    ipAccessControlAllows List<Property Map>
    One or more ip_access_control_allow blocks as defined below.
    keyFrameIntervalDuration String
    ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. This field cannot be set when type is set to Encoding.
    streamingProtocol String
    The input protocol for the live event. Allowed values are FragmentedMP4 and RTMP. Changing this forces a new resource to be created.

    LiveEventInputEndpoint, LiveEventInputEndpointArgs

    Protocol string
    Url string
    Protocol string
    Url string
    protocol String
    url String
    protocol string
    url string
    protocol str
    url str
    protocol String
    url String

    LiveEventInputIpAccessControlAllow, LiveEventInputIpAccessControlAllowArgs

    Address string
    The IP address or CIDR range.
    Name string
    The friendly name for the IP address range.
    SubnetPrefixLength int
    The subnet mask prefix length (see CIDR notation).
    Address string
    The IP address or CIDR range.
    Name string
    The friendly name for the IP address range.
    SubnetPrefixLength int
    The subnet mask prefix length (see CIDR notation).
    address String
    The IP address or CIDR range.
    name String
    The friendly name for the IP address range.
    subnetPrefixLength Integer
    The subnet mask prefix length (see CIDR notation).
    address string
    The IP address or CIDR range.
    name string
    The friendly name for the IP address range.
    subnetPrefixLength number
    The subnet mask prefix length (see CIDR notation).
    address str
    The IP address or CIDR range.
    name str
    The friendly name for the IP address range.
    subnet_prefix_length int
    The subnet mask prefix length (see CIDR notation).
    address String
    The IP address or CIDR range.
    name String
    The friendly name for the IP address range.
    subnetPrefixLength Number
    The subnet mask prefix length (see CIDR notation).

    LiveEventPreview, LiveEventPreviewArgs

    AlternativeMediaId string
    An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the Streaming Policy specified in the streaming_policy_name field.
    Endpoints List<LiveEventPreviewEndpoint>
    IpAccessControlAllows List<LiveEventPreviewIpAccessControlAllow>
    One or more ip_access_control_allow blocks as defined above.
    PreviewLocator string
    The identifier of the preview locator in GUID format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. Changing this forces a new resource to be created.
    StreamingPolicyName string
    The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
    AlternativeMediaId string
    An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the Streaming Policy specified in the streaming_policy_name field.
    Endpoints []LiveEventPreviewEndpoint
    IpAccessControlAllows []LiveEventPreviewIpAccessControlAllow
    One or more ip_access_control_allow blocks as defined above.
    PreviewLocator string
    The identifier of the preview locator in GUID format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. Changing this forces a new resource to be created.
    StreamingPolicyName string
    The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
    alternativeMediaId String
    An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the Streaming Policy specified in the streaming_policy_name field.
    endpoints List<LiveEventPreviewEndpoint>
    ipAccessControlAllows List<LiveEventPreviewIpAccessControlAllow>
    One or more ip_access_control_allow blocks as defined above.
    previewLocator String
    The identifier of the preview locator in GUID format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. Changing this forces a new resource to be created.
    streamingPolicyName String
    The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
    alternativeMediaId string
    An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the Streaming Policy specified in the streaming_policy_name field.
    endpoints LiveEventPreviewEndpoint[]
    ipAccessControlAllows LiveEventPreviewIpAccessControlAllow[]
    One or more ip_access_control_allow blocks as defined above.
    previewLocator string
    The identifier of the preview locator in GUID format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. Changing this forces a new resource to be created.
    streamingPolicyName string
    The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
    alternative_media_id str
    An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the Streaming Policy specified in the streaming_policy_name field.
    endpoints Sequence[LiveEventPreviewEndpoint]
    ip_access_control_allows Sequence[LiveEventPreviewIpAccessControlAllow]
    One or more ip_access_control_allow blocks as defined above.
    preview_locator str
    The identifier of the preview locator in GUID format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. Changing this forces a new resource to be created.
    streaming_policy_name str
    The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
    alternativeMediaId String
    An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the Streaming Policy specified in the streaming_policy_name field.
    endpoints List<Property Map>
    ipAccessControlAllows List<Property Map>
    One or more ip_access_control_allow blocks as defined above.
    previewLocator String
    The identifier of the preview locator in GUID format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. Changing this forces a new resource to be created.
    streamingPolicyName String
    The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.

    LiveEventPreviewEndpoint, LiveEventPreviewEndpointArgs

    Protocol string
    Url string
    Protocol string
    Url string
    protocol String
    url String
    protocol string
    url string
    protocol str
    url str
    protocol String
    url String

    LiveEventPreviewIpAccessControlAllow, LiveEventPreviewIpAccessControlAllowArgs

    Address string
    The IP address or CIDR range.
    Name string
    The friendly name for the IP address range.
    SubnetPrefixLength int
    The subnet mask prefix length (see CIDR notation).
    Address string
    The IP address or CIDR range.
    Name string
    The friendly name for the IP address range.
    SubnetPrefixLength int
    The subnet mask prefix length (see CIDR notation).
    address String
    The IP address or CIDR range.
    name String
    The friendly name for the IP address range.
    subnetPrefixLength Integer
    The subnet mask prefix length (see CIDR notation).
    address string
    The IP address or CIDR range.
    name string
    The friendly name for the IP address range.
    subnetPrefixLength number
    The subnet mask prefix length (see CIDR notation).
    address str
    The IP address or CIDR range.
    name str
    The friendly name for the IP address range.
    subnet_prefix_length int
    The subnet mask prefix length (see CIDR notation).
    address String
    The IP address or CIDR range.
    name String
    The friendly name for the IP address range.
    subnetPrefixLength Number
    The subnet mask prefix length (see CIDR notation).

    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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi