StreamingLocator

class StreamingLocator : KotlinCustomResource

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

Properties

Link copied to clipboard

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>

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

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>

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>>?

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 id: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val name: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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>?

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard
val urn: Output<String>