azure-native.media.Track

An Asset Track resource. API Version: 2021-11-01.

Example Usage

Creates a Track

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var track = new AzureNative.Media.Track("track", new()
    {
        AccountName = "contosomedia",
        AssetName = "ClimbingMountRainer",
        ResourceGroupName = "contoso",
        Track = new AzureNative.Media.Inputs.TextTrackArgs
        {
            DisplayName = "A new track",
            FileName = "text3.ttml",
            OdataType = "#Microsoft.Media.TextTrack",
            PlayerVisibility = "Visible",
        },
        TrackName = "text3",
    });

});
package main

import (
	media "github.com/pulumi/pulumi-azure-native/sdk/go/azure/media"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := media.NewTrack(ctx, "track", &media.TrackArgs{
			AccountName:       pulumi.String("contosomedia"),
			AssetName:         pulumi.String("ClimbingMountRainer"),
			ResourceGroupName: pulumi.String("contoso"),
			Track: media.TextTrack{
				DisplayName:      "A new track",
				FileName:         "text3.ttml",
				OdataType:        "#Microsoft.Media.TextTrack",
				PlayerVisibility: "Visible",
			},
			TrackName: pulumi.String("text3"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.media.Track;
import com.pulumi.azurenative.media.TrackArgs;
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 track = new Track("track", TrackArgs.builder()        
            .accountName("contosomedia")
            .assetName("ClimbingMountRainer")
            .resourceGroupName("contoso")
            .track(Map.ofEntries(
                Map.entry("displayName", "A new track"),
                Map.entry("fileName", "text3.ttml"),
                Map.entry("odataType", "#Microsoft.Media.TextTrack"),
                Map.entry("playerVisibility", "Visible")
            ))
            .trackName("text3")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

track = azure_native.media.Track("track",
    account_name="contosomedia",
    asset_name="ClimbingMountRainer",
    resource_group_name="contoso",
    track=azure_native.media.TextTrackArgs(
        display_name="A new track",
        file_name="text3.ttml",
        odata_type="#Microsoft.Media.TextTrack",
        player_visibility="Visible",
    ),
    track_name="text3")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const track = new azure_native.media.Track("track", {
    accountName: "contosomedia",
    assetName: "ClimbingMountRainer",
    resourceGroupName: "contoso",
    track: {
        displayName: "A new track",
        fileName: "text3.ttml",
        odataType: "#Microsoft.Media.TextTrack",
        playerVisibility: "Visible",
    },
    trackName: "text3",
});
resources:
  track:
    type: azure-native:media:Track
    properties:
      accountName: contosomedia
      assetName: ClimbingMountRainer
      resourceGroupName: contoso
      track:
        displayName: A new track
        fileName: text3.ttml
        odataType: '#Microsoft.Media.TextTrack'
        playerVisibility: Visible
      trackName: text3

Create Track Resource

new Track(name: string, args: TrackArgs, opts?: CustomResourceOptions);
@overload
def Track(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          account_name: Optional[str] = None,
          asset_name: Optional[str] = None,
          resource_group_name: Optional[str] = None,
          track: Optional[Union[AudioTrackArgs, TextTrackArgs, VideoTrackArgs]] = None,
          track_name: Optional[str] = None)
@overload
def Track(resource_name: str,
          args: TrackArgs,
          opts: Optional[ResourceOptions] = None)
func NewTrack(ctx *Context, name string, args TrackArgs, opts ...ResourceOption) (*Track, error)
public Track(string name, TrackArgs args, CustomResourceOptions? opts = null)
public Track(String name, TrackArgs args)
public Track(String name, TrackArgs args, CustomResourceOptions options)
type: azure-native:media:Track
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TrackArgs
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 TrackArgs
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 TrackArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TrackArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TrackArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Track 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 Track resource accepts the following input properties:

AccountName string

The Media Services account name.

AssetName string

The Asset name.

ResourceGroupName string

The name of the resource group within the Azure subscription.

Track Pulumi.AzureNative.Media.Inputs.AudioTrackArgs | Pulumi.AzureNative.Media.Inputs.TextTrackArgs | Pulumi.AzureNative.Media.Inputs.VideoTrackArgs

Detailed information about a track in the asset.

TrackName string

The Asset Track name.

AccountName string

The Media Services account name.

AssetName string

The Asset name.

ResourceGroupName string

The name of the resource group within the Azure subscription.

Track AudioTrackArgs | TextTrackArgs | VideoTrackArgs

Detailed information about a track in the asset.

TrackName string

The Asset Track name.

accountName String

The Media Services account name.

assetName String

The Asset name.

resourceGroupName String

The name of the resource group within the Azure subscription.

track AudioTrackArgs | TextTrackArgs | VideoTrackArgs

Detailed information about a track in the asset.

trackName String

The Asset Track name.

accountName string

The Media Services account name.

assetName string

The Asset name.

resourceGroupName string

The name of the resource group within the Azure subscription.

track AudioTrackArgs | TextTrackArgs | VideoTrackArgs

Detailed information about a track in the asset.

trackName string

The Asset Track name.

account_name str

The Media Services account name.

asset_name str

The Asset name.

resource_group_name str

The name of the resource group within the Azure subscription.

track AudioTrackArgs | TextTrackArgs | VideoTrackArgs

Detailed information about a track in the asset.

track_name str

The Asset Track name.

accountName String

The Media Services account name.

assetName String

The Asset name.

resourceGroupName String

The name of the resource group within the Azure subscription.

track Property Map | Property Map | Property Map

Detailed information about a track in the asset.

trackName String

The Asset Track name.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

Provisioning state of the asset track.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

Provisioning state of the asset track.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

Provisioning state of the asset track.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

provisioningState string

Provisioning state of the asset track.

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

provisioning_state str

Provisioning state of the asset track.

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

Provisioning state of the asset track.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

AudioTrack

AudioTrackResponse

HlsSettings

Characteristics string

The characteristics for the HLS setting.

Default bool

The default for the HLS setting.

Forced bool

The forced for the HLS setting.

Characteristics string

The characteristics for the HLS setting.

Default bool

The default for the HLS setting.

Forced bool

The forced for the HLS setting.

characteristics String

The characteristics for the HLS setting.

default_ Boolean

The default for the HLS setting.

forced Boolean

The forced for the HLS setting.

characteristics string

The characteristics for the HLS setting.

default boolean

The default for the HLS setting.

forced boolean

The forced for the HLS setting.

characteristics str

The characteristics for the HLS setting.

default bool

The default for the HLS setting.

forced bool

The forced for the HLS setting.

characteristics String

The characteristics for the HLS setting.

default Boolean

The default for the HLS setting.

forced Boolean

The forced for the HLS setting.

HlsSettingsResponse

Characteristics string

The characteristics for the HLS setting.

Default bool

The default for the HLS setting.

Forced bool

The forced for the HLS setting.

Characteristics string

The characteristics for the HLS setting.

Default bool

The default for the HLS setting.

Forced bool

The forced for the HLS setting.

characteristics String

The characteristics for the HLS setting.

default_ Boolean

The default for the HLS setting.

forced Boolean

The forced for the HLS setting.

characteristics string

The characteristics for the HLS setting.

default boolean

The default for the HLS setting.

forced boolean

The forced for the HLS setting.

characteristics str

The characteristics for the HLS setting.

default bool

The default for the HLS setting.

forced bool

The forced for the HLS setting.

characteristics String

The characteristics for the HLS setting.

default Boolean

The default for the HLS setting.

forced Boolean

The forced for the HLS setting.

TextTrack

DisplayName string

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

FileName string

The file name to the source file. This file is located in the storage container of the asset.

HlsSettings Pulumi.AzureNative.Media.Inputs.HlsSettings

The HLS specific setting for the text track.

PlayerVisibility string | Pulumi.AzureNative.Media.Visibility

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

DisplayName string

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

FileName string

The file name to the source file. This file is located in the storage container of the asset.

HlsSettings HlsSettings

The HLS specific setting for the text track.

PlayerVisibility string | Visibility

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

displayName String

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

fileName String

The file name to the source file. This file is located in the storage container of the asset.

hlsSettings HlsSettings

The HLS specific setting for the text track.

playerVisibility String | Visibility

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

displayName string

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

fileName string

The file name to the source file. This file is located in the storage container of the asset.

hlsSettings HlsSettings

The HLS specific setting for the text track.

playerVisibility string | Visibility

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

display_name str

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

file_name str

The file name to the source file. This file is located in the storage container of the asset.

hls_settings HlsSettings

The HLS specific setting for the text track.

player_visibility str | Visibility

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

displayName String

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

fileName String

The file name to the source file. This file is located in the storage container of the asset.

hlsSettings Property Map

The HLS specific setting for the text track.

playerVisibility String | "Hidden" | "Visible"

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

TextTrackResponse

LanguageCode string

The RFC5646 language code for the text track.

DisplayName string

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

FileName string

The file name to the source file. This file is located in the storage container of the asset.

HlsSettings Pulumi.AzureNative.Media.Inputs.HlsSettingsResponse

The HLS specific setting for the text track.

PlayerVisibility string

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

LanguageCode string

The RFC5646 language code for the text track.

DisplayName string

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

FileName string

The file name to the source file. This file is located in the storage container of the asset.

HlsSettings HlsSettingsResponse

The HLS specific setting for the text track.

PlayerVisibility string

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

languageCode String

The RFC5646 language code for the text track.

displayName String

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

fileName String

The file name to the source file. This file is located in the storage container of the asset.

hlsSettings HlsSettingsResponse

The HLS specific setting for the text track.

playerVisibility String

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

languageCode string

The RFC5646 language code for the text track.

displayName string

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

fileName string

The file name to the source file. This file is located in the storage container of the asset.

hlsSettings HlsSettingsResponse

The HLS specific setting for the text track.

playerVisibility string

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

language_code str

The RFC5646 language code for the text track.

display_name str

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

file_name str

The file name to the source file. This file is located in the storage container of the asset.

hls_settings HlsSettingsResponse

The HLS specific setting for the text track.

player_visibility str

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

languageCode String

The RFC5646 language code for the text track.

displayName String

The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.

fileName String

The file name to the source file. This file is located in the storage container of the asset.

hlsSettings Property Map

The HLS specific setting for the text track.

playerVisibility String

When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible".

VideoTrack

VideoTrackResponse

Visibility

Hidden
Hidden

The track is hidden to video player.

Visible
Visible

The track is visible to video player.

VisibilityHidden
Hidden

The track is hidden to video player.

VisibilityVisible
Visible

The track is visible to video player.

Hidden
Hidden

The track is hidden to video player.

Visible
Visible

The track is visible to video player.

Hidden
Hidden

The track is hidden to video player.

Visible
Visible

The track is visible to video player.

HIDDEN
Hidden

The track is hidden to video player.

VISIBLE
Visible

The track is visible to video player.

"Hidden"
Hidden

The track is hidden to video player.

"Visible"
Visible

The track is visible to video player.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:media:Track text3 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0