Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.media.kotlin.LiveEventArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.media.kotlin
import com.pulumi.azure.media.LiveEventArgs.builder
import com.pulumi.azure.media.kotlin.inputs.LiveEventCrossSiteAccessPolicyArgs
import com.pulumi.azure.media.kotlin.inputs.LiveEventCrossSiteAccessPolicyArgsBuilder
import com.pulumi.azure.media.kotlin.inputs.LiveEventEncodingArgs
import com.pulumi.azure.media.kotlin.inputs.LiveEventEncodingArgsBuilder
import com.pulumi.azure.media.kotlin.inputs.LiveEventInputArgs
import com.pulumi.azure.media.kotlin.inputs.LiveEventInputArgsBuilder
import com.pulumi.azure.media.kotlin.inputs.LiveEventPreviewArgs
import com.pulumi.azure.media.kotlin.inputs.LiveEventPreviewArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a Live Event.
* ## Example Usage
*
* ```typescript
* 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"],
* });
* ```
* ```python
* 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=[{
* "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={
* "streaming_protocol": "RTMP",
* "ip_access_control_allows": [{
* "name": "AllowAll",
* "address": "0.0.0.0",
* "subnet_prefix_length": 0,
* }],
* },
* encoding={
* "type": "Standard",
* "preset_name": "Default720p",
* "stretch_mode": "AutoFit",
* "key_frame_interval": "PT2S",
* },
* preview={
* "ip_access_control_allows": [{
* "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"])
* ```
* ```csharp
* 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",
* },
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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
* ```
*
* ## Import
* Live Events can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:media/liveEvent:LiveEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Media/mediaServices/account1/liveEvents/event1
* ```
* @property autoStartEnabled The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
* @property crossSiteAccessPolicy A `cross_site_access_policy` block as defined below.
* @property description A description for the live event.
* @property encoding A `encoding` block as defined below.
* @property hostnamePrefix 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.
* @property input A `input` block as defined below.
* @property location The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
* @property mediaServicesAccountName The Media Services account name. Changing this forces a new Live Event to be created.
* @property name The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
* @property preview A `preview` block as defined below.
* @property resourceGroupName The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
* @property streamOptions A list of options to use for the LiveEvent. Possible values are `Default`, `LowLatency`, `LowLatencyV2`. Please see more at this [document](https://learn.microsoft.com/en-us/azure/media-services/latest/live-event-latency-reference#lowlatency-and-lowlatencyv2-options). Changing this forces a new resource to be created.
* @property tags A mapping of tags which should be assigned to the Live Event.
* @property transcriptionLanguages 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](https://go.microsoft.com/fwlink/?linkid=2133742 ).
* @property useStaticHostname 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.
*/
public data class LiveEventArgs(
public val autoStartEnabled: Output? = null,
public val crossSiteAccessPolicy: Output? = null,
public val description: Output? = null,
public val encoding: Output? = null,
public val hostnamePrefix: Output? = null,
public val input: Output? = null,
public val location: Output? = null,
public val mediaServicesAccountName: Output? = null,
public val name: Output? = null,
public val preview: Output? = null,
public val resourceGroupName: Output? = null,
public val streamOptions: Output>? = null,
public val tags: Output>? = null,
public val transcriptionLanguages: Output>? = null,
public val useStaticHostname: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.media.LiveEventArgs =
com.pulumi.azure.media.LiveEventArgs.builder()
.autoStartEnabled(autoStartEnabled?.applyValue({ args0 -> args0 }))
.crossSiteAccessPolicy(
crossSiteAccessPolicy?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.encoding(encoding?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.hostnamePrefix(hostnamePrefix?.applyValue({ args0 -> args0 }))
.input(input?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.mediaServicesAccountName(mediaServicesAccountName?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.preview(preview?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.streamOptions(streamOptions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.transcriptionLanguages(
transcriptionLanguages?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.useStaticHostname(useStaticHostname?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LiveEventArgs].
*/
@PulumiTagMarker
public class LiveEventArgsBuilder internal constructor() {
private var autoStartEnabled: Output? = null
private var crossSiteAccessPolicy: Output? = null
private var description: Output? = null
private var encoding: Output? = null
private var hostnamePrefix: Output? = null
private var input: Output? = null
private var location: Output? = null
private var mediaServicesAccountName: Output? = null
private var name: Output? = null
private var preview: Output? = null
private var resourceGroupName: Output? = null
private var streamOptions: Output>? = null
private var tags: Output>? = null
private var transcriptionLanguages: Output>? = null
private var useStaticHostname: Output? = null
/**
* @param value The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
*/
@JvmName("bysokaywgkgrgmlt")
public suspend fun autoStartEnabled(`value`: Output) {
this.autoStartEnabled = value
}
/**
* @param value A `cross_site_access_policy` block as defined below.
*/
@JvmName("bympuydgejnqljbw")
public suspend fun crossSiteAccessPolicy(`value`: Output) {
this.crossSiteAccessPolicy = value
}
/**
* @param value A description for the live event.
*/
@JvmName("vniqbnlhqdheiefc")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value A `encoding` block as defined below.
*/
@JvmName("wvoelrinannrnoyn")
public suspend fun encoding(`value`: Output) {
this.encoding = value
}
/**
* @param value 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.
*/
@JvmName("bigsgfwbhqmxctlb")
public suspend fun hostnamePrefix(`value`: Output) {
this.hostnamePrefix = value
}
/**
* @param value A `input` block as defined below.
*/
@JvmName("jpnxgugwiuwptivt")
public suspend fun input(`value`: Output) {
this.input = value
}
/**
* @param value The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
*/
@JvmName("qtqrajswqhmanwah")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The Media Services account name. Changing this forces a new Live Event to be created.
*/
@JvmName("keuvsplwhwlvhinn")
public suspend fun mediaServicesAccountName(`value`: Output) {
this.mediaServicesAccountName = value
}
/**
* @param value The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
*/
@JvmName("jlhlltebtwdakbyl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A `preview` block as defined below.
*/
@JvmName("npkciyyfyrlrapdo")
public suspend fun preview(`value`: Output) {
this.preview = value
}
/**
* @param value The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
*/
@JvmName("pjmowkmrlrgdhaxv")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value A list of options to use for the LiveEvent. Possible values are `Default`, `LowLatency`, `LowLatencyV2`. Please see more at this [document](https://learn.microsoft.com/en-us/azure/media-services/latest/live-event-latency-reference#lowlatency-and-lowlatencyv2-options). Changing this forces a new resource to be created.
*/
@JvmName("ekqpfxfagvrsawgg")
public suspend fun streamOptions(`value`: Output>) {
this.streamOptions = value
}
@JvmName("ubjnwairwaeiwaac")
public suspend fun streamOptions(vararg values: Output) {
this.streamOptions = Output.all(values.asList())
}
/**
* @param values A list of options to use for the LiveEvent. Possible values are `Default`, `LowLatency`, `LowLatencyV2`. Please see more at this [document](https://learn.microsoft.com/en-us/azure/media-services/latest/live-event-latency-reference#lowlatency-and-lowlatencyv2-options). Changing this forces a new resource to be created.
*/
@JvmName("ejcblhhahdupbtnq")
public suspend fun streamOptions(values: List>) {
this.streamOptions = Output.all(values)
}
/**
* @param value A mapping of tags which should be assigned to the Live Event.
*/
@JvmName("svsnbjcwkvmjmaoa")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value 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](https://go.microsoft.com/fwlink/?linkid=2133742 ).
*/
@JvmName("qwouuuiupvmefjgv")
public suspend fun transcriptionLanguages(`value`: Output>) {
this.transcriptionLanguages = value
}
@JvmName("pivaopxvsuyehfnh")
public suspend fun transcriptionLanguages(vararg values: Output) {
this.transcriptionLanguages = Output.all(values.asList())
}
/**
* @param values 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](https://go.microsoft.com/fwlink/?linkid=2133742 ).
*/
@JvmName("idgwtwysxawfqpbi")
public suspend fun transcriptionLanguages(values: List>) {
this.transcriptionLanguages = Output.all(values)
}
/**
* @param value 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.
*/
@JvmName("ildvuvfgkxumysdp")
public suspend fun useStaticHostname(`value`: Output) {
this.useStaticHostname = value
}
/**
* @param value The flag indicates if the resource should be automatically started on creation. Changing this forces a new resource to be created.
*/
@JvmName("uspcfstsixqmmwot")
public suspend fun autoStartEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoStartEnabled = mapped
}
/**
* @param value A `cross_site_access_policy` block as defined below.
*/
@JvmName("wysdjwltlwmwmtnv")
public suspend fun crossSiteAccessPolicy(`value`: LiveEventCrossSiteAccessPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.crossSiteAccessPolicy = mapped
}
/**
* @param argument A `cross_site_access_policy` block as defined below.
*/
@JvmName("grhvpnhdxnjedwpk")
public suspend fun crossSiteAccessPolicy(argument: suspend LiveEventCrossSiteAccessPolicyArgsBuilder.() -> Unit) {
val toBeMapped = LiveEventCrossSiteAccessPolicyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.crossSiteAccessPolicy = mapped
}
/**
* @param value A description for the live event.
*/
@JvmName("lramuyibthahwtkd")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value A `encoding` block as defined below.
*/
@JvmName("qsvvsjiqfctjkkje")
public suspend fun encoding(`value`: LiveEventEncodingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encoding = mapped
}
/**
* @param argument A `encoding` block as defined below.
*/
@JvmName("srvtdabqqrehixdy")
public suspend fun encoding(argument: suspend LiveEventEncodingArgsBuilder.() -> Unit) {
val toBeMapped = LiveEventEncodingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.encoding = mapped
}
/**
* @param value 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.
*/
@JvmName("pqkrbkafyxlvjkxt")
public suspend fun hostnamePrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hostnamePrefix = mapped
}
/**
* @param value A `input` block as defined below.
*/
@JvmName("lxytvepbejfucwwo")
public suspend fun input(`value`: LiveEventInputArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.input = mapped
}
/**
* @param argument A `input` block as defined below.
*/
@JvmName("murmmwrhppwgfsyq")
public suspend fun input(argument: suspend LiveEventInputArgsBuilder.() -> Unit) {
val toBeMapped = LiveEventInputArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.input = mapped
}
/**
* @param value The Azure Region where the Live Event should exist. Changing this forces a new Live Event to be created.
*/
@JvmName("blyfjaqsocookuoc")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The Media Services account name. Changing this forces a new Live Event to be created.
*/
@JvmName("xrwsdytpomktcana")
public suspend fun mediaServicesAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mediaServicesAccountName = mapped
}
/**
* @param value The name which should be used for this Live Event. Changing this forces a new Live Event to be created.
*/
@JvmName("jhjycccneygicdus")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value A `preview` block as defined below.
*/
@JvmName("vqkyoksfghqfuyle")
public suspend fun preview(`value`: LiveEventPreviewArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preview = mapped
}
/**
* @param argument A `preview` block as defined below.
*/
@JvmName("tyvebvohlodoktsl")
public suspend fun preview(argument: suspend LiveEventPreviewArgsBuilder.() -> Unit) {
val toBeMapped = LiveEventPreviewArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.preview = mapped
}
/**
* @param value The name of the Resource Group where the Live Event should exist. Changing this forces a new Live Event to be created.
*/
@JvmName("gsstnwjtmixhpasy")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value A list of options to use for the LiveEvent. Possible values are `Default`, `LowLatency`, `LowLatencyV2`. Please see more at this [document](https://learn.microsoft.com/en-us/azure/media-services/latest/live-event-latency-reference#lowlatency-and-lowlatencyv2-options). Changing this forces a new resource to be created.
*/
@JvmName("qummfeisekfujgpm")
public suspend fun streamOptions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.streamOptions = mapped
}
/**
* @param values A list of options to use for the LiveEvent. Possible values are `Default`, `LowLatency`, `LowLatencyV2`. Please see more at this [document](https://learn.microsoft.com/en-us/azure/media-services/latest/live-event-latency-reference#lowlatency-and-lowlatencyv2-options). Changing this forces a new resource to be created.
*/
@JvmName("lhmbpypfkpwtqmyt")
public suspend fun streamOptions(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.streamOptions = mapped
}
/**
* @param value A mapping of tags which should be assigned to the Live Event.
*/
@JvmName("wuaxrwohrfutlgpg")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values A mapping of tags which should be assigned to the Live Event.
*/
@JvmName("gugpwcobtccprcfg")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value 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](https://go.microsoft.com/fwlink/?linkid=2133742 ).
*/
@JvmName("ovolujvnffeofejk")
public suspend fun transcriptionLanguages(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.transcriptionLanguages = mapped
}
/**
* @param values 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](https://go.microsoft.com/fwlink/?linkid=2133742 ).
*/
@JvmName("jxlhvyayucpqurkq")
public suspend fun transcriptionLanguages(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.transcriptionLanguages = mapped
}
/**
* @param value 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.
*/
@JvmName("nbesjjeounwpdhyn")
public suspend fun useStaticHostname(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useStaticHostname = mapped
}
internal fun build(): LiveEventArgs = LiveEventArgs(
autoStartEnabled = autoStartEnabled,
crossSiteAccessPolicy = crossSiteAccessPolicy,
description = description,
encoding = encoding,
hostnamePrefix = hostnamePrefix,
input = input,
location = location,
mediaServicesAccountName = mediaServicesAccountName,
name = name,
preview = preview,
resourceGroupName = resourceGroupName,
streamOptions = streamOptions,
tags = tags,
transcriptionLanguages = transcriptionLanguages,
useStaticHostname = useStaticHostname,
)
}