azure-native.media.LiveOutput
Explore with Pulumi AI
The Live Output. Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 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",
RewindWindowLength = "PT4M",
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media/v2"
"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"),
RewindWindowLength: pulumi.String("PT4M"),
})
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 com.pulumi.azurenative.media.inputs.HlsArgs;
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(HlsArgs.builder()
.fragmentsPerTsSegment(5)
.build())
.liveEventName("myLiveEvent1")
.liveOutputName("myLiveOutput1")
.manifestName("testmanifest")
.resourceGroupName("mediaresources")
.rewindWindowLength("PT4M")
.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",
rewind_window_length="PT4M")
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",
rewindWindowLength: "PT4M",
});
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
rewindWindowLength: PT4M
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,
rewind_window_length: Optional[str] = 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 = new AzureNative.Media.Inputs.HlsArgs
{
FragmentsPerTsSegment = 0,
},
LiveOutputName = "string",
ManifestName = "string",
OutputSnapTime = 0,
RewindWindowLength = "string",
});
example, err := media.NewLiveOutput(ctx, "liveOutputResource", &media.LiveOutputArgs{
AccountName: pulumi.String("string"),
ArchiveWindowLength: pulumi.String("string"),
AssetName: pulumi.String("string"),
LiveEventName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Description: pulumi.String("string"),
Hls: &media.HlsArgs{
FragmentsPerTsSegment: pulumi.Int(0),
},
LiveOutputName: pulumi.String("string"),
ManifestName: pulumi.String("string"),
OutputSnapTime: pulumi.Float64(0),
RewindWindowLength: pulumi.String("string"),
})
var liveOutputResource = new LiveOutput("liveOutputResource", LiveOutputArgs.builder()
.accountName("string")
.archiveWindowLength("string")
.assetName("string")
.liveEventName("string")
.resourceGroupName("string")
.description("string")
.hls(HlsArgs.builder()
.fragmentsPerTsSegment(0)
.build())
.liveOutputName("string")
.manifestName("string")
.outputSnapTime(0)
.rewindWindowLength("string")
.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=azure_native.media.HlsArgs(
fragments_per_ts_segment=0,
),
live_output_name="string",
manifest_name="string",
output_snap_time=0,
rewind_window_length="string")
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,
rewindWindowLength: "string",
});
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
rewindWindowLength: 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
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.
- Rewind
Window stringLength - ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
- 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.
- Rewind
Window stringLength - ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
- 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.
- rewind
Window StringLength - ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
- 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.
- rewind
Window stringLength - ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
- 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.
- rewind_
window_ strlength - ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
- 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.
- rewind
Window StringLength - ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
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.
- System
Data Pulumi.Azure Native. Media. Outputs. System Data Response - The system metadata relating to this resource.
- 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.
- System
Data SystemData Response - The system metadata relating to this resource.
- 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.
- system
Data SystemData Response - The system metadata relating to this resource.
- 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.
- system
Data SystemData Response - The system metadata relating to this resource.
- 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.
- system_
data SystemData Response - The system metadata relating to this resource.
- 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.
- system
Data Property Map - The system metadata relating to this resource.
- 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.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:LiveOutput myLiveOutput1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0