We recommend using Azure Native.
azure.media.LiveEvent
Explore with Pulumi AI
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
Live
Event Input - A
input
block as defined below. - Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Live Event to be created.
- Resource
Group stringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- Auto
Start boolEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- Cross
Site LiveAccess Policy Event Cross Site Access Policy - A
cross_site_access_policy
block as defined below. - Description string
- A description for the live event.
- Encoding
Live
Event Encoding - A
encoding
block as defined below. - Hostname
Prefix string - When
use_static_hostname
is set to true, thehostname_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
Live
Event Preview - A
preview
block as defined below. - Stream
Options 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. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Live Event.
- Transcription
Languages 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. - Use
Static boolHostname - 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
Live
Event Input Type Args - A
input
block as defined below. - Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Live Event to be created.
- Resource
Group stringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- Auto
Start boolEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- Cross
Site LiveAccess Policy Event Cross Site Access Policy Args - A
cross_site_access_policy
block as defined below. - Description string
- A description for the live event.
- Encoding
Live
Event Encoding Args - A
encoding
block as defined below. - Hostname
Prefix string - When
use_static_hostname
is set to true, thehostname_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
Live
Event Preview Args - A
preview
block as defined below. - Stream
Options []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. - map[string]string
- A mapping of tags which should be assigned to the Live Event.
- Transcription
Languages []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. - Use
Static boolHostname - 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
Live
Event Input - A
input
block as defined below. - media
Services StringAccount Name - The Media Services account name. Changing this forces a new Live Event to be created.
- resource
Group StringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- auto
Start BooleanEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross
Site LiveAccess Policy Event Cross Site Access Policy - A
cross_site_access_policy
block as defined below. - description String
- A description for the live event.
- encoding
Live
Event Encoding - A
encoding
block as defined below. - hostname
Prefix String - When
use_static_hostname
is set to true, thehostname_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
Live
Event Preview - A
preview
block as defined below. - stream
Options 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. - Map<String,String>
- A mapping of tags which should be assigned to the Live Event.
- transcription
Languages 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. - use
Static BooleanHostname - 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
Live
Event Input - A
input
block as defined below. - media
Services stringAccount Name - The Media Services account name. Changing this forces a new Live Event to be created.
- resource
Group stringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- auto
Start booleanEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross
Site LiveAccess Policy Event Cross Site Access Policy - A
cross_site_access_policy
block as defined below. - description string
- A description for the live event.
- encoding
Live
Event Encoding - A
encoding
block as defined below. - hostname
Prefix string - When
use_static_hostname
is set to true, thehostname_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
Live
Event Preview - A
preview
block as defined below. - stream
Options 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. - {[key: string]: string}
- A mapping of tags which should be assigned to the Live Event.
- transcription
Languages 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. - use
Static booleanHostname - 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
Live
Event Input Args - A
input
block as defined below. - media_
services_ straccount_ name - The Media Services account name. Changing this forces a new Live Event to be created.
- resource_
group_ strname - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- auto_
start_ boolenabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross_
site_ Liveaccess_ policy Event Cross Site Access Policy Args - A
cross_site_access_policy
block as defined below. - description str
- A description for the live event.
- encoding
Live
Event Encoding Args - A
encoding
block as defined below. - hostname_
prefix str - When
use_static_hostname
is set to true, thehostname_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
Live
Event Preview Args - 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. - 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_ boolhostname - 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. - media
Services StringAccount Name - The Media Services account name. Changing this forces a new Live Event to be created.
- resource
Group StringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- auto
Start BooleanEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross
Site Property MapAccess Policy - 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. - hostname
Prefix String - When
use_static_hostname
is set to true, thehostname_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. - stream
Options 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. - Map<String>
- A mapping of tags which should be assigned to the Live Event.
- transcription
Languages 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. - use
Static BooleanHostname - 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.
- Auto
Start boolEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- Cross
Site LiveAccess Policy Event Cross Site Access Policy - A
cross_site_access_policy
block as defined below. - Description string
- A description for the live event.
- Encoding
Live
Event Encoding - A
encoding
block as defined below. - Hostname
Prefix string - When
use_static_hostname
is set to true, thehostname_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
Live
Event Input - 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.
- Media
Services stringAccount Name - 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
Live
Event Preview - A
preview
block as defined below. - Resource
Group stringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- Stream
Options 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. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Live Event.
- Transcription
Languages 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. - Use
Static boolHostname - 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 boolEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- Cross
Site LiveAccess Policy Event Cross Site Access Policy Args - A
cross_site_access_policy
block as defined below. - Description string
- A description for the live event.
- Encoding
Live
Event Encoding Args - A
encoding
block as defined below. - Hostname
Prefix string - When
use_static_hostname
is set to true, thehostname_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
Live
Event Input Type Args - 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.
- Media
Services stringAccount Name - 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
Live
Event Preview Args - A
preview
block as defined below. - Resource
Group stringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- Stream
Options []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. - map[string]string
- A mapping of tags which should be assigned to the Live Event.
- Transcription
Languages []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. - Use
Static boolHostname - 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 BooleanEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross
Site LiveAccess Policy Event Cross Site Access Policy - A
cross_site_access_policy
block as defined below. - description String
- A description for the live event.
- encoding
Live
Event Encoding - A
encoding
block as defined below. - hostname
Prefix String - When
use_static_hostname
is set to true, thehostname_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
Live
Event Input - 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.
- media
Services StringAccount Name - 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
Live
Event Preview - A
preview
block as defined below. - resource
Group StringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- stream
Options 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. - Map<String,String>
- A mapping of tags which should be assigned to the Live Event.
- transcription
Languages 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. - use
Static BooleanHostname - 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 booleanEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross
Site LiveAccess Policy Event Cross Site Access Policy - A
cross_site_access_policy
block as defined below. - description string
- A description for the live event.
- encoding
Live
Event Encoding - A
encoding
block as defined below. - hostname
Prefix string - When
use_static_hostname
is set to true, thehostname_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
Live
Event Input - 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.
- media
Services stringAccount Name - 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
Live
Event Preview - A
preview
block as defined below. - resource
Group stringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- stream
Options 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. - {[key: string]: string}
- A mapping of tags which should be assigned to the Live Event.
- transcription
Languages 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. - use
Static booleanHostname - 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_ boolenabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross_
site_ Liveaccess_ policy Event Cross Site Access Policy Args - A
cross_site_access_policy
block as defined below. - description str
- A description for the live event.
- encoding
Live
Event Encoding Args - A
encoding
block as defined below. - hostname_
prefix str - When
use_static_hostname
is set to true, thehostname_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
Live
Event Input Args - 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_ straccount_ name - 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
Live
Event Preview Args - A
preview
block as defined below. - resource_
group_ strname - 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. - 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_ boolhostname - 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 BooleanEnabled - The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
- cross
Site Property MapAccess Policy - 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. - hostname
Prefix String - When
use_static_hostname
is set to true, thehostname_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.
- media
Services StringAccount Name - 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. - resource
Group StringName - The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
- stream
Options 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. - Map<String>
- A mapping of tags which should be assigned to the Live Event.
- transcription
Languages 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. - use
Static BooleanHostname - 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
- Client
Access stringPolicy - The content of clientaccesspolicy.xml used by Silverlight.
- Cross
Domain stringPolicy - The content of the Cross Domain Policy (
crossdomain.xml
).
- Client
Access stringPolicy - The content of clientaccesspolicy.xml used by Silverlight.
- Cross
Domain stringPolicy - The content of the Cross Domain Policy (
crossdomain.xml
).
- client
Access StringPolicy - The content of clientaccesspolicy.xml used by Silverlight.
- cross
Domain StringPolicy - The content of the Cross Domain Policy (
crossdomain.xml
).
- client
Access stringPolicy - The content of clientaccesspolicy.xml used by Silverlight.
- cross
Domain stringPolicy - The content of the Cross Domain Policy (
crossdomain.xml
).
- client_
access_ strpolicy - The content of clientaccesspolicy.xml used by Silverlight.
- cross_
domain_ strpolicy - The content of the Cross Domain Policy (
crossdomain.xml
).
- client
Access StringPolicy - The content of clientaccesspolicy.xml used by Silverlight.
- cross
Domain StringPolicy - The content of the Cross Domain Policy (
crossdomain.xml
).
LiveEventEncoding, LiveEventEncodingArgs
- Key
Frame stringInterval - 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, usePT2S
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 toPT2S
. - Preset
Name string - The optional encoding preset name, used when
type
is notNone
. If thetype
is set toStandard
, then the default preset name isDefault720p
. Else if thetype
is set toPremium1080p
, Changing this forces a new resource to be created. - Stretch
Mode string - Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are
None
,AutoFit
orAutoSize
. Default isNone
. - Type string
Live event type. Possible values are
None
,Premium1080p
,PassthroughBasic
,PassthroughStandard
andStandard
. When set toNone
, the service simply passes through the incoming video and audio layer(s) to the output. Whentype
is set toStandard
orPremium1080p
, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults toNone
. Changing this forces a new resource to be created.More information can be found in the Microsoft Documentation.
- Key
Frame stringInterval - 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, usePT2S
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 toPT2S
. - Preset
Name string - The optional encoding preset name, used when
type
is notNone
. If thetype
is set toStandard
, then the default preset name isDefault720p
. Else if thetype
is set toPremium1080p
, Changing this forces a new resource to be created. - Stretch
Mode string - Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are
None
,AutoFit
orAutoSize
. Default isNone
. - Type string
Live event type. Possible values are
None
,Premium1080p
,PassthroughBasic
,PassthroughStandard
andStandard
. When set toNone
, the service simply passes through the incoming video and audio layer(s) to the output. Whentype
is set toStandard
orPremium1080p
, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults toNone
. Changing this forces a new resource to be created.More information can be found in the Microsoft Documentation.
- key
Frame StringInterval - 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, usePT2S
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 toPT2S
. - preset
Name String - The optional encoding preset name, used when
type
is notNone
. If thetype
is set toStandard
, then the default preset name isDefault720p
. Else if thetype
is set toPremium1080p
, Changing this forces a new resource to be created. - stretch
Mode String - Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are
None
,AutoFit
orAutoSize
. Default isNone
. - type String
Live event type. Possible values are
None
,Premium1080p
,PassthroughBasic
,PassthroughStandard
andStandard
. When set toNone
, the service simply passes through the incoming video and audio layer(s) to the output. Whentype
is set toStandard
orPremium1080p
, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults toNone
. Changing this forces a new resource to be created.More information can be found in the Microsoft Documentation.
- key
Frame stringInterval - 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, usePT2S
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 toPT2S
. - preset
Name string - The optional encoding preset name, used when
type
is notNone
. If thetype
is set toStandard
, then the default preset name isDefault720p
. Else if thetype
is set toPremium1080p
, Changing this forces a new resource to be created. - stretch
Mode string - Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are
None
,AutoFit
orAutoSize
. Default isNone
. - type string
Live event type. Possible values are
None
,Premium1080p
,PassthroughBasic
,PassthroughStandard
andStandard
. When set toNone
, the service simply passes through the incoming video and audio layer(s) to the output. Whentype
is set toStandard
orPremium1080p
, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults toNone
. Changing this forces a new resource to be created.More information can be found in the Microsoft Documentation.
- key_
frame_ strinterval - 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, usePT2S
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 toPT2S
. - preset_
name str - The optional encoding preset name, used when
type
is notNone
. If thetype
is set toStandard
, then the default preset name isDefault720p
. Else if thetype
is set toPremium1080p
, 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
orAutoSize
. Default isNone
. - type str
Live event type. Possible values are
None
,Premium1080p
,PassthroughBasic
,PassthroughStandard
andStandard
. When set toNone
, the service simply passes through the incoming video and audio layer(s) to the output. Whentype
is set toStandard
orPremium1080p
, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults toNone
. Changing this forces a new resource to be created.More information can be found in the Microsoft Documentation.
- key
Frame StringInterval - 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, usePT2S
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 toPT2S
. - preset
Name String - The optional encoding preset name, used when
type
is notNone
. If thetype
is set toStandard
, then the default preset name isDefault720p
. Else if thetype
is set toPremium1080p
, Changing this forces a new resource to be created. - stretch
Mode String - Specifies how the input video will be resized to fit the desired output resolution(s). Allowed values are
None
,AutoFit
orAutoSize
. Default isNone
. - type String
Live event type. Possible values are
None
,Premium1080p
,PassthroughBasic
,PassthroughStandard
andStandard
. When set toNone
, the service simply passes through the incoming video and audio layer(s) to the output. Whentype
is set toStandard
orPremium1080p
, a live encoder transcodes the incoming stream into multiple bitrates or layers. Defaults toNone
. Changing this forces a new resource to be created.More information can be found in the Microsoft Documentation.
LiveEventInput, LiveEventInputArgs
- Access
Token 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<Live
Event Input Endpoint> - Ip
Access List<LiveControl Allows Event Input Ip Access Control Allow> - One or more
ip_access_control_allow
blocks as defined below. - Key
Frame stringInterval Duration - 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 whentype
is set toEncoding
. - Streaming
Protocol string - The input protocol for the live event. Allowed values are
FragmentedMP4
andRTMP
. Changing this forces a new resource to be created.
- Access
Token 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
[]Live
Event Input Endpoint - Ip
Access []LiveControl Allows Event Input Ip Access Control Allow - One or more
ip_access_control_allow
blocks as defined below. - Key
Frame stringInterval Duration - 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 whentype
is set toEncoding
. - Streaming
Protocol string - The input protocol for the live event. Allowed values are
FragmentedMP4
andRTMP
. Changing this forces a new resource to be created.
- access
Token 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<Live
Event Input Endpoint> - ip
Access List<LiveControl Allows Event Input Ip Access Control Allow> - One or more
ip_access_control_allow
blocks as defined below. - key
Frame StringInterval Duration - 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 whentype
is set toEncoding
. - streaming
Protocol String - The input protocol for the live event. Allowed values are
FragmentedMP4
andRTMP
. Changing this forces a new resource to be created.
- access
Token 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
Live
Event Input Endpoint[] - ip
Access LiveControl Allows Event Input Ip Access Control Allow[] - One or more
ip_access_control_allow
blocks as defined below. - key
Frame stringInterval Duration - 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 whentype
is set toEncoding
. - streaming
Protocol string - The input protocol for the live event. Allowed values are
FragmentedMP4
andRTMP
. 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[Live
Event Input Endpoint] - ip_
access_ Sequence[Livecontrol_ allows Event Input Ip Access Control Allow] - One or more
ip_access_control_allow
blocks as defined below. - key_
frame_ strinterval_ duration - 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 whentype
is set toEncoding
. - streaming_
protocol str - The input protocol for the live event. Allowed values are
FragmentedMP4
andRTMP
. Changing this forces a new resource to be created.
- access
Token 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>
- ip
Access List<Property Map>Control Allows - One or more
ip_access_control_allow
blocks as defined below. - key
Frame StringInterval Duration - 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 whentype
is set toEncoding
. - streaming
Protocol String - The input protocol for the live event. Allowed values are
FragmentedMP4
andRTMP
. Changing this forces a new resource to be created.
LiveEventInputEndpoint, LiveEventInputEndpointArgs
LiveEventInputIpAccessControlAllow, LiveEventInputIpAccessControlAllowArgs
- Address string
- The IP address or CIDR range.
- Name string
- The friendly name for the IP address range.
- Subnet
Prefix intLength - 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.
- Subnet
Prefix intLength - 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.
- subnet
Prefix IntegerLength - 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.
- subnet
Prefix numberLength - 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_ intlength - 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.
- subnet
Prefix NumberLength - The subnet mask prefix length (see CIDR notation).
LiveEventPreview, LiveEventPreviewArgs
- Alternative
Media stringId - An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the
CustomLicenseAcquisitionUrlTemplate
or theCustomKeyAcquisitionUrlTemplate
of the Streaming Policy specified in thestreaming_policy_name
field. - Endpoints
List<Live
Event Preview Endpoint> - Ip
Access List<LiveControl Allows Event Preview Ip Access Control Allow> - One or more
ip_access_control_allow
blocks as defined above. - Preview
Locator 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.
- Streaming
Policy stringName - The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
- Alternative
Media stringId - An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the
CustomLicenseAcquisitionUrlTemplate
or theCustomKeyAcquisitionUrlTemplate
of the Streaming Policy specified in thestreaming_policy_name
field. - Endpoints
[]Live
Event Preview Endpoint - Ip
Access []LiveControl Allows Event Preview Ip Access Control Allow - One or more
ip_access_control_allow
blocks as defined above. - Preview
Locator 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.
- Streaming
Policy stringName - The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
- alternative
Media StringId - An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the
CustomLicenseAcquisitionUrlTemplate
or theCustomKeyAcquisitionUrlTemplate
of the Streaming Policy specified in thestreaming_policy_name
field. - endpoints
List<Live
Event Preview Endpoint> - ip
Access List<LiveControl Allows Event Preview Ip Access Control Allow> - One or more
ip_access_control_allow
blocks as defined above. - preview
Locator 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.
- streaming
Policy StringName - The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
- alternative
Media stringId - An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the
CustomLicenseAcquisitionUrlTemplate
or theCustomKeyAcquisitionUrlTemplate
of the Streaming Policy specified in thestreaming_policy_name
field. - endpoints
Live
Event Preview Endpoint[] - ip
Access LiveControl Allows Event Preview Ip Access Control Allow[] - One or more
ip_access_control_allow
blocks as defined above. - preview
Locator 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.
- streaming
Policy stringName - The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
- alternative_
media_ strid - An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the
CustomLicenseAcquisitionUrlTemplate
or theCustomKeyAcquisitionUrlTemplate
of the Streaming Policy specified in thestreaming_policy_name
field. - endpoints
Sequence[Live
Event Preview Endpoint] - ip_
access_ Sequence[Livecontrol_ allows Event Preview Ip Access Control Allow] - 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_ strname - The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
- alternative
Media StringId - An alternative media identifier associated with the streaming locator created for the preview. The identifier can be used in the
CustomLicenseAcquisitionUrlTemplate
or theCustomKeyAcquisitionUrlTemplate
of the Streaming Policy specified in thestreaming_policy_name
field. - endpoints List<Property Map>
- ip
Access List<Property Map>Control Allows - One or more
ip_access_control_allow
blocks as defined above. - preview
Locator 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.
- streaming
Policy StringName - The name of streaming policy used for the live event preview. Changing this forces a new resource to be created.
LiveEventPreviewEndpoint, LiveEventPreviewEndpointArgs
LiveEventPreviewIpAccessControlAllow, LiveEventPreviewIpAccessControlAllowArgs
- Address string
- The IP address or CIDR range.
- Name string
- The friendly name for the IP address range.
- Subnet
Prefix intLength - 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.
- Subnet
Prefix intLength - 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.
- subnet
Prefix IntegerLength - 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.
- subnet
Prefix numberLength - 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_ intlength - 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.
- subnet
Prefix NumberLength - 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.