StreamingLocatorArgs

data class StreamingLocatorArgs(val alternativeMediaId: Output<String>? = null, val assetName: Output<String>? = null, val contentKeys: Output<List<StreamingLocatorContentKeyArgs>>? = null, val defaultContentKeyPolicyName: Output<String>? = null, val endTime: Output<String>? = null, val filterNames: Output<List<String>>? = null, val mediaServicesAccountName: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val startTime: Output<String>? = null, val streamingLocatorId: Output<String>? = null, val streamingPolicyName: Output<String>? = null) : ConvertibleToJava<StreamingLocatorArgs>

Manages a Media Streaming Locator.

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.Asset;
import com.pulumi.azure.media.AssetArgs;
import com.pulumi.azure.media.StreamingLocator;
import com.pulumi.azure.media.StreamingLocatorArgs;
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(exampleResourceGroup.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.build());
var exampleAsset = new Asset("exampleAsset", AssetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.description("Asset description")
.build());
var exampleStreamingLocator = new StreamingLocator("exampleStreamingLocator", StreamingLocatorArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.assetName(exampleAsset.name())
.streamingPolicyName("Predefined_ClearStreamingOnly")
.filterNames(exampleAccountFilter.name())
.build());
}
}

Import

Streaming Locators can be imported using the resource id, e.g.

$ pulumi import azure:media/streamingLocator:StreamingLocator example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/streamingLocators/locator1

Constructors

Link copied to clipboard
fun StreamingLocatorArgs(alternativeMediaId: Output<String>? = null, assetName: Output<String>? = null, contentKeys: Output<List<StreamingLocatorContentKeyArgs>>? = null, defaultContentKeyPolicyName: Output<String>? = null, endTime: Output<String>? = null, filterNames: Output<List<String>>? = null, mediaServicesAccountName: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, startTime: Output<String>? = null, streamingLocatorId: Output<String>? = null, streamingPolicyName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): StreamingLocatorArgs

Properties

Link copied to clipboard
val alternativeMediaId: Output<String>? = null

Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val assetName: Output<String>? = null

Asset Name. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard

One or more content_key blocks as defined below. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val defaultContentKeyPolicyName: Output<String>? = null

Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val endTime: Output<String>? = null

The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val filterNames: Output<List<String>>? = null

A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val mediaServicesAccountName: Output<String>? = null

The Media Services account name. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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

Link copied to clipboard
val startTime: Output<String>? = null

The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val streamingLocatorId: Output<String>? = null

The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.

Link copied to clipboard
val streamingPolicyName: Output<String>? = null

Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: Predefined_DownloadOnly, Predefined_ClearStreamingOnly, Predefined_DownloadAndClearStreaming, Predefined_ClearKey, Predefined_MultiDrmCencStreaming and Predefined_MultiDrmStreaming. Changing this forces a new Streaming Locator to be created.