azure logo
Azure Classic v5.43.0, May 6 23

azure.media.AccountFilter

Explore with Pulumi AI

Manages a Media Services Account Filter.

Example Usage

Coming soon!

Coming soon!

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.AssetFilter;
import com.pulumi.azure.media.AssetFilterArgs;
import com.pulumi.azure.media.inputs.AssetFilterPresentationTimeRangeArgs;
import com.pulumi.azure.media.inputs.AssetFilterTrackSelectionArgs;
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 exampleAssetFilter = new AssetFilter("exampleAssetFilter", AssetFilterArgs.builder()        
            .resourceGroupName(azurerm_resource_group.test().name())
            .mediaServicesAccountName(azurerm_media_services_account.test().name())
            .firstQualityBitrate(128000)
            .presentationTimeRange(AssetFilterPresentationTimeRangeArgs.builder()
                .startInUnits(0)
                .endInUnits(15)
                .presentationWindowInUnits(90)
                .liveBackoffInUnits(0)
                .unitTimescaleInMilliseconds(1000)
                .forceEnd(false)
                .build())
            .trackSelections(            
                AssetFilterTrackSelectionArgs.builder()
                    .conditions(                    
                        AssetFilterTrackSelectionConditionArgs.builder()
                            .property("Type")
                            .operation("Equal")
                            .value("Audio")
                            .build(),
                        AssetFilterTrackSelectionConditionArgs.builder()
                            .property("Language")
                            .operation("NotEqual")
                            .value("en")
                            .build(),
                        AssetFilterTrackSelectionConditionArgs.builder()
                            .property("FourCC")
                            .operation("NotEqual")
                            .value("EC-3")
                            .build())
                    .build(),
                AssetFilterTrackSelectionArgs.builder()
                    .conditions(                    
                        AssetFilterTrackSelectionConditionArgs.builder()
                            .property("Type")
                            .operation("Equal")
                            .value("Video")
                            .build(),
                        AssetFilterTrackSelectionConditionArgs.builder()
                            .property("Bitrate")
                            .operation("Equal")
                            .value("3000000-5000000")
                            .build())
                    .build())
            .build());

    }
}

Coming soon!

Coming soon!

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
  exampleAssetFilter:
    type: azure:media:AssetFilter
    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 AccountFilterPresentationTimeRangeArgs

A presentation_time_range block as defined below.

TrackSelections List<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 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 AccountFilterPresentationTimeRangeArgs

A presentation_time_range block as defined below.

trackSelections List<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 AccountFilterPresentationTimeRangeArgs

A presentation_time_range block as defined below.

trackSelections AccountFilterTrackSelectionArgs[]

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 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 List<AccountFilterTrackSelectionArgs>

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 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 List<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 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.

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

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

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

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.