1. Packages
  2. Azure Native v1
  3. API Docs
  4. media
  5. LiveOutput
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.media.LiveOutput

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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:

    AccountName string
    The Media Services account name.
    ArchiveWindowLength string
    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.
    AssetName string
    The asset that the live output will write to.
    LiveEventName string
    The name of the live event, maximum length is 32.
    ResourceGroupName string
    The name of the resource group within the Azure subscription.
    Description string
    The description of the live output.
    Hls Pulumi.AzureNative.Media.Inputs.Hls
    HTTP Live Streaming (HLS) packing setting for the live output.
    LiveOutputName string
    The name of the live output.
    ManifestName string
    The manifest file name. If not provided, the service will generate one automatically.
    OutputSnapTime double
    The initial timestamp that the live output will start at, any content before this value will not be archived.
    AccountName string
    The Media Services account name.
    ArchiveWindowLength string
    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.
    AssetName string
    The asset that the live output will write to.
    LiveEventName string
    The name of the live event, maximum length is 32.
    ResourceGroupName string
    The name of the resource group within the Azure subscription.
    Description string
    The description of the live output.
    Hls HlsArgs
    HTTP Live Streaming (HLS) packing setting for the live output.
    LiveOutputName string
    The name of the live output.
    ManifestName string
    The manifest file name. If not provided, the service will generate one automatically.
    OutputSnapTime float64
    The initial timestamp that the live output will start at, any content before this value will not be archived.
    accountName String
    The Media Services account name.
    archiveWindowLength String
    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.
    assetName String
    The asset that the live output will write to.
    liveEventName String
    The name of the live event, maximum length is 32.
    resourceGroupName String
    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.
    liveOutputName String
    The name of the live output.
    manifestName String
    The manifest file name. If not provided, the service will generate one automatically.
    outputSnapTime Double
    The initial timestamp that the live output will start at, any content before this value will not be archived.
    accountName string
    The Media Services account name.
    archiveWindowLength string
    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.
    assetName string
    The asset that the live output will write to.
    liveEventName string
    The name of the live event, maximum length is 32.
    resourceGroupName string
    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.
    liveOutputName string
    The name of the live output.
    manifestName string
    The manifest file name. If not provided, the service will generate one automatically.
    outputSnapTime number
    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_length str
    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_name str
    The name of the live event, maximum length is 32.
    resource_group_name str
    The name of the resource group within the Azure subscription.
    description str
    The description of the live output.
    hls HlsArgs
    HTTP Live Streaming (HLS) packing setting for the live output.
    live_output_name str
    The name of the live output.
    manifest_name str
    The manifest file name. If not provided, the service will generate one automatically.
    output_snap_time float
    The initial timestamp that the live output will start at, any content before this value will not be archived.
    accountName String
    The Media Services account name.
    archiveWindowLength String
    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.
    assetName String
    The asset that the live output will write to.
    liveEventName String
    The name of the live event, maximum length is 32.
    resourceGroupName String
    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.
    liveOutputName String
    The name of the live output.
    manifestName String
    The manifest file name. If not provided, the service will generate one automatically.
    outputSnapTime Number
    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.
    LastModified string
    The time the live output was last modified.
    Name string
    The name of the resource
    ProvisioningState string
    The provisioning state of the live output.
    ResourceState 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.
    LastModified string
    The time the live output was last modified.
    Name string
    The name of the resource
    ProvisioningState string
    The provisioning state of the live output.
    ResourceState 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.
    lastModified String
    The time the live output was last modified.
    name String
    The name of the resource
    provisioningState String
    The provisioning state of the live output.
    resourceState 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.
    lastModified string
    The time the live output was last modified.
    name string
    The name of the resource
    provisioningState string
    The provisioning state of the live output.
    resourceState 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.
    lastModified String
    The time the live output was last modified.
    name String
    The name of the resource
    provisioningState String
    The provisioning state of the live output.
    resourceState 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

    FragmentsPerTsSegment int
    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.
    FragmentsPerTsSegment int
    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.
    fragmentsPerTsSegment Integer
    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.
    fragmentsPerTsSegment number
    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_ts_segment int
    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.
    fragmentsPerTsSegment Number
    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

    FragmentsPerTsSegment int
    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.
    FragmentsPerTsSegment int
    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.
    fragmentsPerTsSegment Integer
    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.
    fragmentsPerTsSegment number
    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_ts_segment int
    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.
    fragmentsPerTsSegment Number
    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
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi