azure-native.media.Track
Explore with Pulumi AI
An Asset Track resource. API Version: 2021-11-01.
Example Usage
Creates a Track
using System.Collections.Generic;
using System.Linq;
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/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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Track(name: string, args: TrackArgs, opts?: CustomResourceOptions);
@overload
def Track(resource_name: str,
args: TrackArgs,
opts: Optional[ResourceOptions] = None)
@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)
func NewTrack(ctx *Context, name string, args TrackArgs, opts ...ResourceOption) (*Track, error)
public Track(string name, TrackArgs args, CustomResourceOptions? opts = null)
type: azure-native:media:Track
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var trackResource = new AzureNative.Media.Track("trackResource", new()
{
AccountName = "string",
AssetName = "string",
ResourceGroupName = "string",
Track =
{
{ "odataType", "#Microsoft.Media.AudioTrack" },
},
TrackName = "string",
});
example, err := media.NewTrack(ctx, "trackResource", &media.TrackArgs{
AccountName: "string",
AssetName: "string",
ResourceGroupName: "string",
Track: map[string]interface{}{
"odataType": "#Microsoft.Media.AudioTrack",
},
TrackName: "string",
})
var trackResource = new Track("trackResource", TrackArgs.builder()
.accountName("string")
.assetName("string")
.resourceGroupName("string")
.track(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.trackName("string")
.build());
track_resource = azure_native.media.Track("trackResource",
account_name=string,
asset_name=string,
resource_group_name=string,
track={
odataType: #Microsoft.Media.AudioTrack,
},
track_name=string)
const trackResource = new azure_native.media.Track("trackResource", {
accountName: "string",
assetName: "string",
resourceGroupName: "string",
track: {
odataType: "#Microsoft.Media.AudioTrack",
},
trackName: "string",
});
type: azure-native:media:Track
properties:
accountName: string
assetName: string
resourceGroupName: string
track:
odataType: '#Microsoft.Media.AudioTrack'
trackName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Track resource accepts the following input properties:
- Account
Name string - The Media Services account name.
- Asset
Name string - The Asset name.
- Resource
Group stringName - The name of the resource group within the Azure subscription.
- Track
Pulumi.
Azure | Pulumi.Native. Media. Inputs. Audio Track Azure | Pulumi.Native. Media. Inputs. Text Track Azure Native. Media. Inputs. Video Track - Detailed information about a track in the asset.
- Track
Name string - The Asset Track name.
- Account
Name string - The Media Services account name.
- Asset
Name string - The Asset name.
- Resource
Group stringName - The name of the resource group within the Azure subscription.
- Track
Audio
Track | TextArgs Track | VideoArgs Track Args - Detailed information about a track in the asset.
- Track
Name string - The Asset Track name.
- account
Name String - The Media Services account name.
- asset
Name String - The Asset name.
- resource
Group StringName - The name of the resource group within the Azure subscription.
- track
Audio
Track | TextTrack | VideoTrack - Detailed information about a track in the asset.
- track
Name String - The Asset Track name.
- account
Name string - The Media Services account name.
- asset
Name string - The Asset name.
- resource
Group stringName - The name of the resource group within the Azure subscription.
- track
Audio
Track | TextTrack | VideoTrack - Detailed information about a track in the asset.
- track
Name string - The Asset Track name.
- account_
name str - The Media Services account name.
- asset_
name str - The Asset name.
- resource_
group_ strname - The name of the resource group within the Azure subscription.
- track
Audio
Track | TextArgs Track | VideoArgs Track Args - Detailed information about a track in the asset.
- track_
name str - The Asset Track name.
- account
Name String - The Media Services account name.
- asset
Name String - The Asset name.
- resource
Group StringName - 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.
- track
Name 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
- Provisioning
State 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
- Provisioning
State 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
- provisioning
State 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
- provisioning
State 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
- provisioning
State 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, AudioTrackArgs
AudioTrackResponse, AudioTrackResponseArgs
HlsSettings, HlsSettingsArgs
- 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, HlsSettingsResponseArgs
- 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, TextTrackArgs
- Display
Name string - 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 string - The file name to the source file. This file is located in the storage container of the asset.
- Hls
Settings Pulumi.Azure Native. Media. Inputs. Hls Settings - The HLS specific setting for the text track.
- Player
Visibility string | Pulumi.Azure Native. 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".
- Display
Name string - 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 string - 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 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 String - 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 String - 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 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 string - 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 string - 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 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".
- display
Name String - 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 String - The file name to the source file. This file is located in the storage container of the asset.
- hls
Settings Property Map - The HLS specific setting for the text track.
- player
Visibility 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, TextTrackResponseArgs
- Language
Code string - The RFC5646 language code for the text track.
- Display
Name string - 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 string - The file name to the source file. This file is located in the storage container of the asset.
- Hls
Settings Pulumi.Azure Native. Media. Inputs. Hls Settings Response - The HLS specific setting for the text track.
- Player
Visibility 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 string - The RFC5646 language code for the text track.
- Display
Name string - 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 string - The file name to the source file. This file is located in the storage container of the asset.
- Hls
Settings HlsSettings Response - The HLS specific setting for the text track.
- Player
Visibility 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 String - The RFC5646 language code for the text track.
- display
Name String - 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 String - The file name to the source file. This file is located in the storage container of the asset.
- hls
Settings HlsSettings Response - The HLS specific setting for the text track.
- player
Visibility 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 string - The RFC5646 language code for the text track.
- display
Name string - 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 string - The file name to the source file. This file is located in the storage container of the asset.
- hls
Settings HlsSettings Response - The HLS specific setting for the text track.
- player
Visibility 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 HlsSettings Response - 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".
- language
Code String - The RFC5646 language code for the text track.
- display
Name String - 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 String - The file name to the source file. This file is located in the storage container of the asset.
- hls
Settings Property Map - The HLS specific setting for the text track.
- player
Visibility 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, VideoTrackArgs
VideoTrackResponse, VideoTrackResponseArgs
Visibility, VisibilityArgs
- Hidden
- HiddenThe track is hidden to video player.
- Visible
- VisibleThe track is visible to video player.
- Visibility
Hidden - HiddenThe track is hidden to video player.
- Visibility
Visible - VisibleThe track is visible to video player.
- Hidden
- HiddenThe track is hidden to video player.
- Visible
- VisibleThe track is visible to video player.
- Hidden
- HiddenThe track is hidden to video player.
- Visible
- VisibleThe track is visible to video player.
- HIDDEN
- HiddenThe track is hidden to video player.
- VISIBLE
- VisibleThe track is visible to video player.
- "Hidden"
- HiddenThe track is hidden to video player.
- "Visible"
- VisibleThe 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0