AccountFilter

class AccountFilter : KotlinCustomResource

Manages a Media Services Account Filter.

Example Usage

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

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

Properties

Link copied to clipboard
val firstQualityBitrate: Output<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.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard

A presentation_time_range block as defined below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

One or more track_selection blocks as defined below.

Link copied to clipboard
val urn: Output<String>