Streaming Locator Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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
Properties
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.