1. Packages
  2. Azure Classic
  3. API Docs
  4. media
  5. AccountFilter

We recommend using Azure Native.

Azure Classic v5.58.0 published on Saturday, Dec 2, 2023 by Pulumi

azure.media.AccountFilter

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.58.0 published on Saturday, Dec 2, 2023 by Pulumi

    Manages a Media Services Account Filter.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
        });
    
        var exampleServiceAccount = new Azure.Media.ServiceAccount("exampleServiceAccount", new()
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            StorageAccounts = new[]
            {
                new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
                {
                    Id = exampleAccount.Id,
                    IsPrimary = true,
                },
            },
        });
    
        var exampleAccountFilter = new Azure.Media.AccountFilter("exampleAccountFilter", new()
        {
            ResourceGroupName = azurerm_resource_group.Test.Name,
            MediaServicesAccountName = azurerm_media_services_account.Test.Name,
            FirstQualityBitrate = 128000,
            PresentationTimeRange = new Azure.Media.Inputs.AccountFilterPresentationTimeRangeArgs
            {
                StartInUnits = 0,
                EndInUnits = 15,
                PresentationWindowInUnits = 90,
                LiveBackoffInUnits = 0,
                UnitTimescaleInMilliseconds = 1000,
                ForceEnd = false,
            },
            TrackSelections = new[]
            {
                new Azure.Media.Inputs.AccountFilterTrackSelectionArgs
                {
                    Conditions = new[]
                    {
                        new Azure.Media.Inputs.AccountFilterTrackSelectionConditionArgs
                        {
                            Property = "Type",
                            Operation = "Equal",
                            Value = "Audio",
                        },
                        new Azure.Media.Inputs.AccountFilterTrackSelectionConditionArgs
                        {
                            Property = "Language",
                            Operation = "NotEqual",
                            Value = "en",
                        },
                        new Azure.Media.Inputs.AccountFilterTrackSelectionConditionArgs
                        {
                            Property = "FourCC",
                            Operation = "NotEqual",
                            Value = "EC-3",
                        },
                    },
                },
                new Azure.Media.Inputs.AccountFilterTrackSelectionArgs
                {
                    Conditions = new[]
                    {
                        new Azure.Media.Inputs.AccountFilterTrackSelectionConditionArgs
                        {
                            Property = "Type",
                            Operation = "Equal",
                            Value = "Video",
                        },
                        new Azure.Media.Inputs.AccountFilterTrackSelectionConditionArgs
                        {
                            Property = "Bitrate",
                            Operation = "Equal",
                            Value = "3000000-5000000",
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
    			ResourceGroupName:      exampleResourceGroup.Name,
    			Location:               exampleResourceGroup.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = media.NewServiceAccount(ctx, "exampleServiceAccount", &media.ServiceAccountArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			StorageAccounts: media.ServiceAccountStorageAccountArray{
    				&media.ServiceAccountStorageAccountArgs{
    					Id:        exampleAccount.ID(),
    					IsPrimary: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = media.NewAccountFilter(ctx, "exampleAccountFilter", &media.AccountFilterArgs{
    			ResourceGroupName:        pulumi.Any(azurerm_resource_group.Test.Name),
    			MediaServicesAccountName: pulumi.Any(azurerm_media_services_account.Test.Name),
    			FirstQualityBitrate:      pulumi.Int(128000),
    			PresentationTimeRange: &media.AccountFilterPresentationTimeRangeArgs{
    				StartInUnits:                pulumi.Int(0),
    				EndInUnits:                  pulumi.Int(15),
    				PresentationWindowInUnits:   pulumi.Int(90),
    				LiveBackoffInUnits:          pulumi.Int(0),
    				UnitTimescaleInMilliseconds: pulumi.Int(1000),
    				ForceEnd:                    pulumi.Bool(false),
    			},
    			TrackSelections: media.AccountFilterTrackSelectionArray{
    				&media.AccountFilterTrackSelectionArgs{
    					Conditions: media.AccountFilterTrackSelectionConditionArray{
    						&media.AccountFilterTrackSelectionConditionArgs{
    							Property:  pulumi.String("Type"),
    							Operation: pulumi.String("Equal"),
    							Value:     pulumi.String("Audio"),
    						},
    						&media.AccountFilterTrackSelectionConditionArgs{
    							Property:  pulumi.String("Language"),
    							Operation: pulumi.String("NotEqual"),
    							Value:     pulumi.String("en"),
    						},
    						&media.AccountFilterTrackSelectionConditionArgs{
    							Property:  pulumi.String("FourCC"),
    							Operation: pulumi.String("NotEqual"),
    							Value:     pulumi.String("EC-3"),
    						},
    					},
    				},
    				&media.AccountFilterTrackSelectionArgs{
    					Conditions: media.AccountFilterTrackSelectionConditionArray{
    						&media.AccountFilterTrackSelectionConditionArgs{
    							Property:  pulumi.String("Type"),
    							Operation: pulumi.String("Equal"),
    							Value:     pulumi.String("Video"),
    						},
    						&media.AccountFilterTrackSelectionConditionArgs{
    							Property:  pulumi.String("Bitrate"),
    							Operation: pulumi.String("Equal"),
    							Value:     pulumi.String("3000000-5000000"),
    						},
    					},
    				},
    			},
    		})
    		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.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.media.ServiceAccount;
    import com.pulumi.azure.media.ServiceAccountArgs;
    import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs;
    import com.pulumi.azure.media.AccountFilter;
    import com.pulumi.azure.media.AccountFilterArgs;
    import com.pulumi.azure.media.inputs.AccountFilterPresentationTimeRangeArgs;
    import com.pulumi.azure.media.inputs.AccountFilterTrackSelectionArgs;
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .accountTier("Standard")
                .accountReplicationType("GRS")
                .build());
    
            var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()        
                .location(exampleResourceGroup.location())
                .resourceGroupName(exampleResourceGroup.name())
                .storageAccounts(ServiceAccountStorageAccountArgs.builder()
                    .id(exampleAccount.id())
                    .isPrimary(true)
                    .build())
                .build());
    
            var exampleAccountFilter = new AccountFilter("exampleAccountFilter", AccountFilterArgs.builder()        
                .resourceGroupName(azurerm_resource_group.test().name())
                .mediaServicesAccountName(azurerm_media_services_account.test().name())
                .firstQualityBitrate(128000)
                .presentationTimeRange(AccountFilterPresentationTimeRangeArgs.builder()
                    .startInUnits(0)
                    .endInUnits(15)
                    .presentationWindowInUnits(90)
                    .liveBackoffInUnits(0)
                    .unitTimescaleInMilliseconds(1000)
                    .forceEnd(false)
                    .build())
                .trackSelections(            
                    AccountFilterTrackSelectionArgs.builder()
                        .conditions(                    
                            AccountFilterTrackSelectionConditionArgs.builder()
                                .property("Type")
                                .operation("Equal")
                                .value("Audio")
                                .build(),
                            AccountFilterTrackSelectionConditionArgs.builder()
                                .property("Language")
                                .operation("NotEqual")
                                .value("en")
                                .build(),
                            AccountFilterTrackSelectionConditionArgs.builder()
                                .property("FourCC")
                                .operation("NotEqual")
                                .value("EC-3")
                                .build())
                        .build(),
                    AccountFilterTrackSelectionArgs.builder()
                        .conditions(                    
                            AccountFilterTrackSelectionConditionArgs.builder()
                                .property("Type")
                                .operation("Equal")
                                .value("Video")
                                .build(),
                            AccountFilterTrackSelectionConditionArgs.builder()
                                .property("Bitrate")
                                .operation("Equal")
                                .value("3000000-5000000")
                                .build())
                        .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_account = azure.storage.Account("exampleAccount",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        account_tier="Standard",
        account_replication_type="GRS")
    example_service_account = azure.media.ServiceAccount("exampleServiceAccount",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
            id=example_account.id,
            is_primary=True,
        )])
    example_account_filter = azure.media.AccountFilter("exampleAccountFilter",
        resource_group_name=azurerm_resource_group["test"]["name"],
        media_services_account_name=azurerm_media_services_account["test"]["name"],
        first_quality_bitrate=128000,
        presentation_time_range=azure.media.AccountFilterPresentationTimeRangeArgs(
            start_in_units=0,
            end_in_units=15,
            presentation_window_in_units=90,
            live_backoff_in_units=0,
            unit_timescale_in_milliseconds=1000,
            force_end=False,
        ),
        track_selections=[
            azure.media.AccountFilterTrackSelectionArgs(
                conditions=[
                    azure.media.AccountFilterTrackSelectionConditionArgs(
                        property="Type",
                        operation="Equal",
                        value="Audio",
                    ),
                    azure.media.AccountFilterTrackSelectionConditionArgs(
                        property="Language",
                        operation="NotEqual",
                        value="en",
                    ),
                    azure.media.AccountFilterTrackSelectionConditionArgs(
                        property="FourCC",
                        operation="NotEqual",
                        value="EC-3",
                    ),
                ],
            ),
            azure.media.AccountFilterTrackSelectionArgs(
                conditions=[
                    azure.media.AccountFilterTrackSelectionConditionArgs(
                        property="Type",
                        operation="Equal",
                        value="Video",
                    ),
                    azure.media.AccountFilterTrackSelectionConditionArgs(
                        property="Bitrate",
                        operation="Equal",
                        value="3000000-5000000",
                    ),
                ],
            ),
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleAccount = new azure.storage.Account("exampleAccount", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
    });
    const exampleServiceAccount = new azure.media.ServiceAccount("exampleServiceAccount", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        storageAccounts: [{
            id: exampleAccount.id,
            isPrimary: true,
        }],
    });
    const exampleAccountFilter = new azure.media.AccountFilter("exampleAccountFilter", {
        resourceGroupName: azurerm_resource_group.test.name,
        mediaServicesAccountName: azurerm_media_services_account.test.name,
        firstQualityBitrate: 128000,
        presentationTimeRange: {
            startInUnits: 0,
            endInUnits: 15,
            presentationWindowInUnits: 90,
            liveBackoffInUnits: 0,
            unitTimescaleInMilliseconds: 1000,
            forceEnd: false,
        },
        trackSelections: [
            {
                conditions: [
                    {
                        property: "Type",
                        operation: "Equal",
                        value: "Audio",
                    },
                    {
                        property: "Language",
                        operation: "NotEqual",
                        value: "en",
                    },
                    {
                        property: "FourCC",
                        operation: "NotEqual",
                        value: "EC-3",
                    },
                ],
            },
            {
                conditions: [
                    {
                        property: "Type",
                        operation: "Equal",
                        value: "Video",
                    },
                    {
                        property: "Bitrate",
                        operation: "Equal",
                        value: "3000000-5000000",
                    },
                ],
            },
        ],
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          accountTier: Standard
          accountReplicationType: GRS
      exampleServiceAccount:
        type: azure:media:ServiceAccount
        properties:
          location: ${exampleResourceGroup.location}
          resourceGroupName: ${exampleResourceGroup.name}
          storageAccounts:
            - id: ${exampleAccount.id}
              isPrimary: true
      exampleAccountFilter:
        type: azure:media:AccountFilter
        properties:
          resourceGroupName: ${azurerm_resource_group.test.name}
          mediaServicesAccountName: ${azurerm_media_services_account.test.name}
          firstQualityBitrate: 128000
          presentationTimeRange:
            startInUnits: 0
            endInUnits: 15
            presentationWindowInUnits: 90
            liveBackoffInUnits: 0
            unitTimescaleInMilliseconds: 1000
            forceEnd: false
          trackSelections:
            - conditions:
                - property: Type
                  operation: Equal
                  value: Audio
                - property: Language
                  operation: NotEqual
                  value: en
                - property: FourCC
                  operation: NotEqual
                  value: EC-3
            - conditions:
                - property: Type
                  operation: Equal
                  value: Video
                - property: Bitrate
                  operation: Equal
                  value: 3000000-5000000
    

    Create AccountFilter Resource

    new AccountFilter(name: string, args: AccountFilterArgs, opts?: CustomResourceOptions);
    @overload
    def AccountFilter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      first_quality_bitrate: Optional[int] = None,
                      media_services_account_name: Optional[str] = None,
                      name: Optional[str] = None,
                      presentation_time_range: Optional[AccountFilterPresentationTimeRangeArgs] = None,
                      resource_group_name: Optional[str] = None,
                      track_selections: Optional[Sequence[AccountFilterTrackSelectionArgs]] = None)
    @overload
    def AccountFilter(resource_name: str,
                      args: AccountFilterArgs,
                      opts: Optional[ResourceOptions] = None)
    func NewAccountFilter(ctx *Context, name string, args AccountFilterArgs, opts ...ResourceOption) (*AccountFilter, error)
    public AccountFilter(string name, AccountFilterArgs args, CustomResourceOptions? opts = null)
    public AccountFilter(String name, AccountFilterArgs args)
    public AccountFilter(String name, AccountFilterArgs args, CustomResourceOptions options)
    
    type: azure:media:AccountFilter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AccountFilterArgs
    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 AccountFilterArgs
    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 AccountFilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountFilterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    MediaServicesAccountName string

    The Media Services account name. Changing this forces a new Account Filter to be created.

    ResourceGroupName string

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    FirstQualityBitrate int

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    Name string

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    PresentationTimeRange AccountFilterPresentationTimeRange

    A presentation_time_range block as defined below.

    TrackSelections List<AccountFilterTrackSelection>

    One or more track_selection blocks as defined below.

    MediaServicesAccountName string

    The Media Services account name. Changing this forces a new Account Filter to be created.

    ResourceGroupName string

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    FirstQualityBitrate int

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    Name string

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    PresentationTimeRange AccountFilterPresentationTimeRangeArgs

    A presentation_time_range block as defined below.

    TrackSelections []AccountFilterTrackSelectionArgs

    One or more track_selection blocks as defined below.

    mediaServicesAccountName String

    The Media Services account name. Changing this forces a new Account Filter to be created.

    resourceGroupName String

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    firstQualityBitrate Integer

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    name String

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentationTimeRange AccountFilterPresentationTimeRange

    A presentation_time_range block as defined below.

    trackSelections List<AccountFilterTrackSelection>

    One or more track_selection blocks as defined below.

    mediaServicesAccountName string

    The Media Services account name. Changing this forces a new Account Filter to be created.

    resourceGroupName string

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    firstQualityBitrate number

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    name string

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentationTimeRange AccountFilterPresentationTimeRange

    A presentation_time_range block as defined below.

    trackSelections AccountFilterTrackSelection[]

    One or more track_selection blocks as defined below.

    media_services_account_name str

    The Media Services account name. Changing this forces a new Account Filter to be created.

    resource_group_name str

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    first_quality_bitrate int

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    name str

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentation_time_range AccountFilterPresentationTimeRangeArgs

    A presentation_time_range block as defined below.

    track_selections Sequence[AccountFilterTrackSelectionArgs]

    One or more track_selection blocks as defined below.

    mediaServicesAccountName String

    The Media Services account name. Changing this forces a new Account Filter to be created.

    resourceGroupName String

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    firstQualityBitrate Number

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    name String

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentationTimeRange Property Map

    A presentation_time_range block as defined below.

    trackSelections List<Property Map>

    One or more track_selection blocks as defined below.

    Outputs

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

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing AccountFilter Resource

    Get an existing AccountFilter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccountFilterState, opts?: CustomResourceOptions): AccountFilter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            first_quality_bitrate: Optional[int] = None,
            media_services_account_name: Optional[str] = None,
            name: Optional[str] = None,
            presentation_time_range: Optional[AccountFilterPresentationTimeRangeArgs] = None,
            resource_group_name: Optional[str] = None,
            track_selections: Optional[Sequence[AccountFilterTrackSelectionArgs]] = None) -> AccountFilter
    func GetAccountFilter(ctx *Context, name string, id IDInput, state *AccountFilterState, opts ...ResourceOption) (*AccountFilter, error)
    public static AccountFilter Get(string name, Input<string> id, AccountFilterState? state, CustomResourceOptions? opts = null)
    public static AccountFilter get(String name, Output<String> id, AccountFilterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    FirstQualityBitrate int

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    MediaServicesAccountName string

    The Media Services account name. Changing this forces a new Account Filter to be created.

    Name string

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    PresentationTimeRange AccountFilterPresentationTimeRange

    A presentation_time_range block as defined below.

    ResourceGroupName string

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    TrackSelections List<AccountFilterTrackSelection>

    One or more track_selection blocks as defined below.

    FirstQualityBitrate int

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    MediaServicesAccountName string

    The Media Services account name. Changing this forces a new Account Filter to be created.

    Name string

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    PresentationTimeRange AccountFilterPresentationTimeRangeArgs

    A presentation_time_range block as defined below.

    ResourceGroupName string

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    TrackSelections []AccountFilterTrackSelectionArgs

    One or more track_selection blocks as defined below.

    firstQualityBitrate Integer

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    mediaServicesAccountName String

    The Media Services account name. Changing this forces a new Account Filter to be created.

    name String

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentationTimeRange AccountFilterPresentationTimeRange

    A presentation_time_range block as defined below.

    resourceGroupName String

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    trackSelections List<AccountFilterTrackSelection>

    One or more track_selection blocks as defined below.

    firstQualityBitrate number

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    mediaServicesAccountName string

    The Media Services account name. Changing this forces a new Account Filter to be created.

    name string

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentationTimeRange AccountFilterPresentationTimeRange

    A presentation_time_range block as defined below.

    resourceGroupName string

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    trackSelections AccountFilterTrackSelection[]

    One or more track_selection blocks as defined below.

    first_quality_bitrate int

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    media_services_account_name str

    The Media Services account name. Changing this forces a new Account Filter to be created.

    name str

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentation_time_range AccountFilterPresentationTimeRangeArgs

    A presentation_time_range block as defined below.

    resource_group_name str

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    track_selections Sequence[AccountFilterTrackSelectionArgs]

    One or more track_selection blocks as defined below.

    firstQualityBitrate Number

    The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

    mediaServicesAccountName String

    The Media Services account name. Changing this forces a new Account Filter to be created.

    name String

    The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

    presentationTimeRange Property Map

    A presentation_time_range block as defined below.

    resourceGroupName String

    The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

    trackSelections List<Property Map>

    One or more track_selection blocks as defined below.

    Supporting Types

    AccountFilterPresentationTimeRange, AccountFilterPresentationTimeRangeArgs

    UnitTimescaleInMilliseconds int

    Specified as the number of milliseconds in one unit timescale. For example, if you want to set a start_in_units at 30 seconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1000. Or if you want to set start_in_units in 30 milliseconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1. Applies timescale to start_in_units, start_timescale and presentation_window_in_timescale and live_backoff_in_timescale.

    EndInUnits int

    The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so an end_in_units of 180 would be for 3 minutes. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    ForceEnd bool

    Indicates whether the end_in_units property must be present. If true, end_in_units must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: false, true.

    LiveBackoffInUnits int

    The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by unit_timescale_in_milliseconds. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

    PresentationWindowInUnits int

    The relative to end sliding window. Applies to Live Streaming only. Use presentation_window_in_units to apply a sliding window of fragments to include in a playlist. The unit is defined by unit_timescale_in_milliseconds. For example, set presentation_window_in_units to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

    StartInUnits int

    The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so a start_in_units of 15 would be for 15 seconds. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    UnitTimescaleInMilliseconds int

    Specified as the number of milliseconds in one unit timescale. For example, if you want to set a start_in_units at 30 seconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1000. Or if you want to set start_in_units in 30 milliseconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1. Applies timescale to start_in_units, start_timescale and presentation_window_in_timescale and live_backoff_in_timescale.

    EndInUnits int

    The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so an end_in_units of 180 would be for 3 minutes. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    ForceEnd bool

    Indicates whether the end_in_units property must be present. If true, end_in_units must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: false, true.

    LiveBackoffInUnits int

    The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by unit_timescale_in_milliseconds. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

    PresentationWindowInUnits int

    The relative to end sliding window. Applies to Live Streaming only. Use presentation_window_in_units to apply a sliding window of fragments to include in a playlist. The unit is defined by unit_timescale_in_milliseconds. For example, set presentation_window_in_units to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

    StartInUnits int

    The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so a start_in_units of 15 would be for 15 seconds. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    unitTimescaleInMilliseconds Integer

    Specified as the number of milliseconds in one unit timescale. For example, if you want to set a start_in_units at 30 seconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1000. Or if you want to set start_in_units in 30 milliseconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1. Applies timescale to start_in_units, start_timescale and presentation_window_in_timescale and live_backoff_in_timescale.

    endInUnits Integer

    The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so an end_in_units of 180 would be for 3 minutes. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    forceEnd Boolean

    Indicates whether the end_in_units property must be present. If true, end_in_units must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: false, true.

    liveBackoffInUnits Integer

    The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by unit_timescale_in_milliseconds. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

    presentationWindowInUnits Integer

    The relative to end sliding window. Applies to Live Streaming only. Use presentation_window_in_units to apply a sliding window of fragments to include in a playlist. The unit is defined by unit_timescale_in_milliseconds. For example, set presentation_window_in_units to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

    startInUnits Integer

    The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so a start_in_units of 15 would be for 15 seconds. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    unitTimescaleInMilliseconds number

    Specified as the number of milliseconds in one unit timescale. For example, if you want to set a start_in_units at 30 seconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1000. Or if you want to set start_in_units in 30 milliseconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1. Applies timescale to start_in_units, start_timescale and presentation_window_in_timescale and live_backoff_in_timescale.

    endInUnits number

    The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so an end_in_units of 180 would be for 3 minutes. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    forceEnd boolean

    Indicates whether the end_in_units property must be present. If true, end_in_units must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: false, true.

    liveBackoffInUnits number

    The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by unit_timescale_in_milliseconds. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

    presentationWindowInUnits number

    The relative to end sliding window. Applies to Live Streaming only. Use presentation_window_in_units to apply a sliding window of fragments to include in a playlist. The unit is defined by unit_timescale_in_milliseconds. For example, set presentation_window_in_units to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

    startInUnits number

    The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so a start_in_units of 15 would be for 15 seconds. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    unit_timescale_in_milliseconds int

    Specified as the number of milliseconds in one unit timescale. For example, if you want to set a start_in_units at 30 seconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1000. Or if you want to set start_in_units in 30 milliseconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1. Applies timescale to start_in_units, start_timescale and presentation_window_in_timescale and live_backoff_in_timescale.

    end_in_units int

    The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so an end_in_units of 180 would be for 3 minutes. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    force_end bool

    Indicates whether the end_in_units property must be present. If true, end_in_units must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: false, true.

    live_backoff_in_units int

    The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by unit_timescale_in_milliseconds. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

    presentation_window_in_units int

    The relative to end sliding window. Applies to Live Streaming only. Use presentation_window_in_units to apply a sliding window of fragments to include in a playlist. The unit is defined by unit_timescale_in_milliseconds. For example, set presentation_window_in_units to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

    start_in_units int

    The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so a start_in_units of 15 would be for 15 seconds. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    unitTimescaleInMilliseconds Number

    Specified as the number of milliseconds in one unit timescale. For example, if you want to set a start_in_units at 30 seconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1000. Or if you want to set start_in_units in 30 milliseconds, you would use a value of 30 when using the unit_timescale_in_milliseconds in 1. Applies timescale to start_in_units, start_timescale and presentation_window_in_timescale and live_backoff_in_timescale.

    endInUnits Number

    The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so an end_in_units of 180 would be for 3 minutes. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    forceEnd Boolean

    Indicates whether the end_in_units property must be present. If true, end_in_units must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: false, true.

    liveBackoffInUnits Number

    The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by unit_timescale_in_milliseconds. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

    presentationWindowInUnits Number

    The relative to end sliding window. Applies to Live Streaming only. Use presentation_window_in_units to apply a sliding window of fragments to include in a playlist. The unit is defined by unit_timescale_in_milliseconds. For example, set presentation_window_in_units to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

    startInUnits Number

    The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by unit_timescale_in_milliseconds, so a start_in_units of 15 would be for 15 seconds. Use start_in_units and end_in_units to trim the fragments that will be in the playlist (manifest). For example, start_in_units set to 20 and end_in_units set to 60 using unit_timescale_in_milliseconds in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

    AccountFilterTrackSelection, AccountFilterTrackSelectionArgs

    Conditions List<AccountFilterTrackSelectionCondition>

    One or more selection blocks as defined above.

    Conditions []AccountFilterTrackSelectionCondition

    One or more selection blocks as defined above.

    conditions List<AccountFilterTrackSelectionCondition>

    One or more selection blocks as defined above.

    conditions AccountFilterTrackSelectionCondition[]

    One or more selection blocks as defined above.

    conditions Sequence[AccountFilterTrackSelectionCondition]

    One or more selection blocks as defined above.

    conditions List<Property Map>

    One or more selection blocks as defined above.

    AccountFilterTrackSelectionCondition, AccountFilterTrackSelectionConditionArgs

    Operation string

    The condition operation to test a track property against. Supported values are Equal and NotEqual.

    Property string

    The track property to compare. Supported values are Bitrate, FourCC, Language, Name and Type. Check documentation for more details.

    Value string

    The track property value to match or not match.

    Operation string

    The condition operation to test a track property against. Supported values are Equal and NotEqual.

    Property string

    The track property to compare. Supported values are Bitrate, FourCC, Language, Name and Type. Check documentation for more details.

    Value string

    The track property value to match or not match.

    operation String

    The condition operation to test a track property against. Supported values are Equal and NotEqual.

    property String

    The track property to compare. Supported values are Bitrate, FourCC, Language, Name and Type. Check documentation for more details.

    value String

    The track property value to match or not match.

    operation string

    The condition operation to test a track property against. Supported values are Equal and NotEqual.

    property string

    The track property to compare. Supported values are Bitrate, FourCC, Language, Name and Type. Check documentation for more details.

    value string

    The track property value to match or not match.

    operation str

    The condition operation to test a track property against. Supported values are Equal and NotEqual.

    property str

    The track property to compare. Supported values are Bitrate, FourCC, Language, Name and Type. Check documentation for more details.

    value str

    The track property value to match or not match.

    operation String

    The condition operation to test a track property against. Supported values are Equal and NotEqual.

    property String

    The track property to compare. Supported values are Bitrate, FourCC, Language, Name and Type. Check documentation for more details.

    value String

    The track property value to match or not match.

    Import

    Account Filters can be imported using the resource id, e.g.

     $ pulumi import azure:media/accountFilter:AccountFilter example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/accountFilters/filter1
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the azurerm Terraform Provider.

    azure logo

    We recommend using Azure Native.

    Azure Classic v5.58.0 published on Saturday, Dec 2, 2023 by Pulumi