azure-native.media.LiveOutput
Explore with Pulumi AI
The Live Output. API Version: 2020-05-01.
Example Usage
Create a LiveOutput
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var liveOutput = new AzureNative.Media.LiveOutput("liveOutput", new()
{
AccountName = "slitestmedia10",
ArchiveWindowLength = "PT5M",
AssetName = "6f3264f5-a189-48b4-a29a-a40f22575212",
Description = "test live output 1",
Hls = new AzureNative.Media.Inputs.HlsArgs
{
FragmentsPerTsSegment = 5,
},
LiveEventName = "myLiveEvent1",
LiveOutputName = "myLiveOutput1",
ManifestName = "testmanifest",
ResourceGroupName = "mediaresources",
});
});
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.NewLiveOutput(ctx, "liveOutput", &media.LiveOutputArgs{
AccountName: pulumi.String("slitestmedia10"),
ArchiveWindowLength: pulumi.String("PT5M"),
AssetName: pulumi.String("6f3264f5-a189-48b4-a29a-a40f22575212"),
Description: pulumi.String("test live output 1"),
Hls: &media.HlsArgs{
FragmentsPerTsSegment: pulumi.Int(5),
},
LiveEventName: pulumi.String("myLiveEvent1"),
LiveOutputName: pulumi.String("myLiveOutput1"),
ManifestName: pulumi.String("testmanifest"),
ResourceGroupName: pulumi.String("mediaresources"),
})
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.LiveOutput;
import com.pulumi.azurenative.media.LiveOutputArgs;
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 liveOutput = new LiveOutput("liveOutput", LiveOutputArgs.builder()
.accountName("slitestmedia10")
.archiveWindowLength("PT5M")
.assetName("6f3264f5-a189-48b4-a29a-a40f22575212")
.description("test live output 1")
.hls(Map.of("fragmentsPerTsSegment", 5))
.liveEventName("myLiveEvent1")
.liveOutputName("myLiveOutput1")
.manifestName("testmanifest")
.resourceGroupName("mediaresources")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
live_output = azure_native.media.LiveOutput("liveOutput",
account_name="slitestmedia10",
archive_window_length="PT5M",
asset_name="6f3264f5-a189-48b4-a29a-a40f22575212",
description="test live output 1",
hls=azure_native.media.HlsArgs(
fragments_per_ts_segment=5,
),
live_event_name="myLiveEvent1",
live_output_name="myLiveOutput1",
manifest_name="testmanifest",
resource_group_name="mediaresources")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const liveOutput = new azure_native.media.LiveOutput("liveOutput", {
accountName: "slitestmedia10",
archiveWindowLength: "PT5M",
assetName: "6f3264f5-a189-48b4-a29a-a40f22575212",
description: "test live output 1",
hls: {
fragmentsPerTsSegment: 5,
},
liveEventName: "myLiveEvent1",
liveOutputName: "myLiveOutput1",
manifestName: "testmanifest",
resourceGroupName: "mediaresources",
});
resources:
liveOutput:
type: azure-native:media:LiveOutput
properties:
accountName: slitestmedia10
archiveWindowLength: PT5M
assetName: 6f3264f5-a189-48b4-a29a-a40f22575212
description: test live output 1
hls:
fragmentsPerTsSegment: 5
liveEventName: myLiveEvent1
liveOutputName: myLiveOutput1
manifestName: testmanifest
resourceGroupName: mediaresources
Create LiveOutput Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LiveOutput(name: string, args: LiveOutputArgs, opts?: CustomResourceOptions);
@overload
def LiveOutput(resource_name: str,
args: LiveOutputArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LiveOutput(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
archive_window_length: Optional[str] = None,
asset_name: Optional[str] = None,
live_event_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
description: Optional[str] = None,
hls: Optional[HlsArgs] = None,
live_output_name: Optional[str] = None,
manifest_name: Optional[str] = None,
output_snap_time: Optional[float] = None)
func NewLiveOutput(ctx *Context, name string, args LiveOutputArgs, opts ...ResourceOption) (*LiveOutput, error)
public LiveOutput(string name, LiveOutputArgs args, CustomResourceOptions? opts = null)
public LiveOutput(String name, LiveOutputArgs args)
public LiveOutput(String name, LiveOutputArgs args, CustomResourceOptions options)
type: azure-native:media:LiveOutput
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 LiveOutputArgs
- 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 LiveOutputArgs
- 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 LiveOutputArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LiveOutputArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LiveOutputArgs
- 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 liveOutputResource = new AzureNative.Media.LiveOutput("liveOutputResource", new()
{
AccountName = "string",
ArchiveWindowLength = "string",
AssetName = "string",
LiveEventName = "string",
ResourceGroupName = "string",
Description = "string",
Hls =
{
{ "fragmentsPerTsSegment", 0 },
},
LiveOutputName = "string",
ManifestName = "string",
OutputSnapTime = 0,
});
example, err := media.NewLiveOutput(ctx, "liveOutputResource", &media.LiveOutputArgs{
AccountName: "string",
ArchiveWindowLength: "string",
AssetName: "string",
LiveEventName: "string",
ResourceGroupName: "string",
Description: "string",
Hls: map[string]interface{}{
"fragmentsPerTsSegment": 0,
},
LiveOutputName: "string",
ManifestName: "string",
OutputSnapTime: 0,
})
var liveOutputResource = new LiveOutput("liveOutputResource", LiveOutputArgs.builder()
.accountName("string")
.archiveWindowLength("string")
.assetName("string")
.liveEventName("string")
.resourceGroupName("string")
.description("string")
.hls(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.liveOutputName("string")
.manifestName("string")
.outputSnapTime(0)
.build());
live_output_resource = azure_native.media.LiveOutput("liveOutputResource",
account_name=string,
archive_window_length=string,
asset_name=string,
live_event_name=string,
resource_group_name=string,
description=string,
hls={
fragmentsPerTsSegment: 0,
},
live_output_name=string,
manifest_name=string,
output_snap_time=0)
const liveOutputResource = new azure_native.media.LiveOutput("liveOutputResource", {
accountName: "string",
archiveWindowLength: "string",
assetName: "string",
liveEventName: "string",
resourceGroupName: "string",
description: "string",
hls: {
fragmentsPerTsSegment: 0,
},
liveOutputName: "string",
manifestName: "string",
outputSnapTime: 0,
});
type: azure-native:media:LiveOutput
properties:
accountName: string
archiveWindowLength: string
assetName: string
description: string
hls:
fragmentsPerTsSegment: 0
liveEventName: string
liveOutputName: string
manifestName: string
outputSnapTime: 0
resourceGroupName: string
LiveOutput 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 LiveOutput resource accepts the following input properties:
- Account
Name string - The Media Services account name.
- Archive
Window stringLength - ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
- Asset
Name string - The asset that the live output will write to.
- Live
Event stringName - The name of the live event, maximum length is 32.
- Resource
Group stringName - The name of the resource group within the Azure subscription.
- Description string
- The description of the live output.
- Hls
Pulumi.
Azure Native. Media. Inputs. Hls - HTTP Live Streaming (HLS) packing setting for the live output.
- Live
Output stringName - The name of the live output.
- Manifest
Name string - The manifest file name. If not provided, the service will generate one automatically.
- Output
Snap doubleTime - The initial timestamp that the live output will start at, any content before this value will not be archived.
- Account
Name string - The Media Services account name.
- Archive
Window stringLength - ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
- Asset
Name string - The asset that the live output will write to.
- Live
Event stringName - The name of the live event, maximum length is 32.
- Resource
Group stringName - The name of the resource group within the Azure subscription.
- Description string
- The description of the live output.
- Hls
Hls
Args - HTTP Live Streaming (HLS) packing setting for the live output.
- Live
Output stringName - The name of the live output.
- Manifest
Name string - The manifest file name. If not provided, the service will generate one automatically.
- Output
Snap float64Time - The initial timestamp that the live output will start at, any content before this value will not be archived.
- account
Name String - The Media Services account name.
- archive
Window StringLength - ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
- asset
Name String - The asset that the live output will write to.
- live
Event StringName - The name of the live event, maximum length is 32.
- resource
Group StringName - The name of the resource group within the Azure subscription.
- description String
- The description of the live output.
- hls Hls
- HTTP Live Streaming (HLS) packing setting for the live output.
- live
Output StringName - The name of the live output.
- manifest
Name String - The manifest file name. If not provided, the service will generate one automatically.
- output
Snap DoubleTime - The initial timestamp that the live output will start at, any content before this value will not be archived.
- account
Name string - The Media Services account name.
- archive
Window stringLength - ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
- asset
Name string - The asset that the live output will write to.
- live
Event stringName - The name of the live event, maximum length is 32.
- resource
Group stringName - The name of the resource group within the Azure subscription.
- description string
- The description of the live output.
- hls Hls
- HTTP Live Streaming (HLS) packing setting for the live output.
- live
Output stringName - The name of the live output.
- manifest
Name string - The manifest file name. If not provided, the service will generate one automatically.
- output
Snap numberTime - The initial timestamp that the live output will start at, any content before this value will not be archived.
- account_
name str - The Media Services account name.
- archive_
window_ strlength - ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
- asset_
name str - The asset that the live output will write to.
- live_
event_ strname - The name of the live event, maximum length is 32.
- resource_
group_ strname - The name of the resource group within the Azure subscription.
- description str
- The description of the live output.
- hls
Hls
Args - HTTP Live Streaming (HLS) packing setting for the live output.
- live_
output_ strname - The name of the live output.
- manifest_
name str - The manifest file name. If not provided, the service will generate one automatically.
- output_
snap_ floattime - The initial timestamp that the live output will start at, any content before this value will not be archived.
- account
Name String - The Media Services account name.
- archive
Window StringLength - ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
- asset
Name String - The asset that the live output will write to.
- live
Event StringName - The name of the live event, maximum length is 32.
- resource
Group StringName - The name of the resource group within the Azure subscription.
- description String
- The description of the live output.
- hls Property Map
- HTTP Live Streaming (HLS) packing setting for the live output.
- live
Output StringName - The name of the live output.
- manifest
Name String - The manifest file name. If not provided, the service will generate one automatically.
- output
Snap NumberTime - The initial timestamp that the live output will start at, any content before this value will not be archived.
Outputs
All input properties are implicitly available as output properties. Additionally, the LiveOutput resource produces the following output properties:
- Created string
- The creation time the live output.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - The time the live output was last modified.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the live output.
- Resource
State string - The resource state of the live output.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Created string
- The creation time the live output.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - The time the live output was last modified.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the live output.
- Resource
State string - The resource state of the live output.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created String
- The creation time the live output.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - The time the live output was last modified.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the live output.
- resource
State String - The resource state of the live output.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created string
- The creation time the live output.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified string - The time the live output was last modified.
- name string
- The name of the resource
- provisioning
State string - The provisioning state of the live output.
- resource
State string - The resource state of the live output.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created str
- The creation time the live output.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified str - The time the live output was last modified.
- name str
- The name of the resource
- provisioning_
state str - The provisioning state of the live output.
- resource_
state str - The resource state of the live output.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- created String
- The creation time the live output.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - The time the live output was last modified.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the live output.
- resource
State String - The resource state of the live output.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
Hls, HlsArgs
- Fragments
Per intTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- Fragments
Per intTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments
Per IntegerTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments
Per numberTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments_
per_ intts_ segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments
Per NumberTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
HlsResponse, HlsResponseArgs
- Fragments
Per intTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- Fragments
Per intTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments
Per IntegerTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments
Per numberTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments_
per_ intts_ segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
- fragments
Per NumberTs Segment - The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:LiveOutput myLiveOutput1 /subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1
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