All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.media.StreamingLocator Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.media;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.media.StreamingLocatorArgs;
import com.pulumi.azurenative.media.outputs.StreamingLocatorContentKeyResponse;
import com.pulumi.azurenative.media.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * A Streaming Locator resource
 * Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 2020-05-01.
 * 
 * Other available API versions: 2018-03-30-preview.
 * 
 * ## Example Usage
 * ### Creates a Streaming Locator with clear streaming
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.media.StreamingLocator;
 * import com.pulumi.azurenative.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 streamingLocator = new StreamingLocator("streamingLocator", StreamingLocatorArgs.builder()
 *             .accountName("contosomedia")
 *             .assetName("ClimbingMountRainier")
 *             .resourceGroupName("contosorg")
 *             .streamingLocatorName("UserCreatedClearStreamingLocator")
 *             .streamingPolicyName("clearStreamingPolicy")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Creates a Streaming Locator with secure streaming * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.media.StreamingLocator;
 * import com.pulumi.azurenative.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 streamingLocator = new StreamingLocator("streamingLocator", StreamingLocatorArgs.builder()
 *             .accountName("contosomedia")
 *             .assetName("ClimbingMountRainier")
 *             .endTime("2028-12-31T23:59:59.9999999Z")
 *             .resourceGroupName("contosorg")
 *             .startTime("2018-03-01T00:00:00Z")
 *             .streamingLocatorName("UserCreatedSecureStreamingLocator")
 *             .streamingPolicyName("UserCreatedSecureStreamingPolicy")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Creates a Streaming Locator with user defined content keys * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.media.StreamingLocator;
 * import com.pulumi.azurenative.media.StreamingLocatorArgs;
 * import com.pulumi.azurenative.media.inputs.StreamingLocatorContentKeyArgs;
 * 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 streamingLocator = new StreamingLocator("streamingLocator", StreamingLocatorArgs.builder()
 *             .accountName("contosomedia")
 *             .assetName("ClimbingMountRainier")
 *             .contentKeys(            
 *                 StreamingLocatorContentKeyArgs.builder()
 *                     .id("60000000-0000-0000-0000-000000000001")
 *                     .labelReferenceInStreamingPolicy("aesDefaultKey")
 *                     .value("1UqLohAfWsEGkULYxHjYZg==")
 *                     .build(),
 *                 StreamingLocatorContentKeyArgs.builder()
 *                     .id("60000000-0000-0000-0000-000000000004")
 *                     .labelReferenceInStreamingPolicy("cencDefaultKey")
 *                     .value("4UqLohAfWsEGkULYxHjYZg==")
 *                     .build(),
 *                 StreamingLocatorContentKeyArgs.builder()
 *                     .id("60000000-0000-0000-0000-000000000007")
 *                     .labelReferenceInStreamingPolicy("cbcsDefaultKey")
 *                     .value("7UqLohAfWsEGkULYxHjYZg==")
 *                     .build())
 *             .resourceGroupName("contosorg")
 *             .streamingLocatorId("90000000-0000-0000-0000-00000000000A")
 *             .streamingLocatorName("UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys")
 *             .streamingPolicyName("secureStreamingPolicy")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:media:StreamingLocator UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName} * ``` * */ @ResourceType(type="azure-native:media:StreamingLocator") public class StreamingLocator extends com.pulumi.resources.CustomResource { /** * Alternative Media ID of this Streaming Locator * */ @Export(name="alternativeMediaId", refs={String.class}, tree="[0]") private Output alternativeMediaId; /** * @return Alternative Media ID of this Streaming Locator * */ public Output> alternativeMediaId() { return Codegen.optional(this.alternativeMediaId); } /** * Asset Name * */ @Export(name="assetName", refs={String.class}, tree="[0]") private Output assetName; /** * @return Asset Name * */ public Output assetName() { return this.assetName; } /** * The ContentKeys used by this Streaming Locator. * */ @Export(name="contentKeys", refs={List.class,StreamingLocatorContentKeyResponse.class}, tree="[0,1]") private Output> contentKeys; /** * @return The ContentKeys used by this Streaming Locator. * */ public Output>> contentKeys() { return Codegen.optional(this.contentKeys); } /** * The creation time of the Streaming Locator. * */ @Export(name="created", refs={String.class}, tree="[0]") private Output created; /** * @return The creation time of the Streaming Locator. * */ public Output created() { return this.created; } /** * Name of the default ContentKeyPolicy used by this Streaming Locator. * */ @Export(name="defaultContentKeyPolicyName", refs={String.class}, tree="[0]") private Output defaultContentKeyPolicyName; /** * @return Name of the default ContentKeyPolicy used by this Streaming Locator. * */ public Output> defaultContentKeyPolicyName() { return Codegen.optional(this.defaultContentKeyPolicyName); } /** * The end time of the Streaming Locator. * */ @Export(name="endTime", refs={String.class}, tree="[0]") private Output endTime; /** * @return The end time of the Streaming Locator. * */ public Output> endTime() { return Codegen.optional(this.endTime); } /** * A list of asset or account filters which apply to this streaming locator * */ @Export(name="filters", refs={List.class,String.class}, tree="[0,1]") private Output> filters; /** * @return A list of asset or account filters which apply to this streaming locator * */ public Output>> filters() { return Codegen.optional(this.filters); } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * The start time of the Streaming Locator. * */ @Export(name="startTime", refs={String.class}, tree="[0]") private Output startTime; /** * @return The start time of the Streaming Locator. * */ public Output> startTime() { return Codegen.optional(this.startTime); } /** * The StreamingLocatorId of the Streaming Locator. * */ @Export(name="streamingLocatorId", refs={String.class}, tree="[0]") private Output streamingLocatorId; /** * @return The StreamingLocatorId of the Streaming Locator. * */ public Output> streamingLocatorId() { return Codegen.optional(this.streamingLocatorId); } /** * 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' * */ @Export(name="streamingPolicyName", refs={String.class}, tree="[0]") private Output streamingPolicyName; /** * @return 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' * */ public Output streamingPolicyName() { return this.streamingPolicyName; } /** * The system metadata relating to this resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return The system metadata relating to this resource. * */ public Output systemData() { return this.systemData; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public StreamingLocator(java.lang.String name) { this(name, StreamingLocatorArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public StreamingLocator(java.lang.String name, StreamingLocatorArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public StreamingLocator(java.lang.String name, StreamingLocatorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:StreamingLocator", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private StreamingLocator(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:StreamingLocator", name, null, makeResourceOptions(options, id), false); } private static StreamingLocatorArgs makeArgs(StreamingLocatorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? StreamingLocatorArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:media/v20180330preview:StreamingLocator").build()), Output.of(Alias.builder().type("azure-native:media/v20180601preview:StreamingLocator").build()), Output.of(Alias.builder().type("azure-native:media/v20180701:StreamingLocator").build()), Output.of(Alias.builder().type("azure-native:media/v20200501:StreamingLocator").build()), Output.of(Alias.builder().type("azure-native:media/v20210601:StreamingLocator").build()), Output.of(Alias.builder().type("azure-native:media/v20211101:StreamingLocator").build()), Output.of(Alias.builder().type("azure-native:media/v20220801:StreamingLocator").build()), Output.of(Alias.builder().type("azure-native:media/v20230101:StreamingLocator").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static StreamingLocator get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new StreamingLocator(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy