com.pulumi.azurenative.media.StreamingPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.StreamingPolicyArgs;
import com.pulumi.azurenative.media.outputs.CommonEncryptionCbcsResponse;
import com.pulumi.azurenative.media.outputs.CommonEncryptionCencResponse;
import com.pulumi.azurenative.media.outputs.EnvelopeEncryptionResponse;
import com.pulumi.azurenative.media.outputs.NoEncryptionResponse;
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 Policy resource
* Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 2020-05-01.
*
* ## Example Usage
* ### Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs.
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.media.StreamingPolicy;
* import com.pulumi.azurenative.media.StreamingPolicyArgs;
* import com.pulumi.azurenative.media.inputs.CommonEncryptionCbcsArgs;
* import com.pulumi.azurenative.media.inputs.ClearKeyEncryptionConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyContentKeysArgs;
* import com.pulumi.azurenative.media.inputs.DefaultKeyArgs;
* import com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs;
* 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 streamingPolicy = new StreamingPolicy("streamingPolicy", StreamingPolicyArgs.builder()
* .accountName("contosomedia")
* .commonEncryptionCbcs(CommonEncryptionCbcsArgs.builder()
* .clearKeyEncryptionConfiguration(ClearKeyEncryptionConfigurationArgs.builder()
* .customKeysAcquisitionUrlTemplate("https://contoso.com/{AlternativeMediaId}/clearkey/")
* .build())
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("cbcsDefaultKey")
* .build())
* .build())
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(false)
* .download(false)
* .hls(true)
* .smoothStreaming(false)
* .build())
* .build())
* .defaultContentKeyPolicyName("PolicyWithMultipleOptions")
* .resourceGroupName("contosorg")
* .streamingPolicyName("UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly")
* .build());
*
* }
* }
*
* }
*
* ### Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc.
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.media.StreamingPolicy;
* import com.pulumi.azurenative.media.StreamingPolicyArgs;
* import com.pulumi.azurenative.media.inputs.CommonEncryptionCencArgs;
* import com.pulumi.azurenative.media.inputs.ClearKeyEncryptionConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyContentKeysArgs;
* import com.pulumi.azurenative.media.inputs.DefaultKeyArgs;
* import com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs;
* 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 streamingPolicy = new StreamingPolicy("streamingPolicy", StreamingPolicyArgs.builder()
* .accountName("contosomedia")
* .commonEncryptionCenc(CommonEncryptionCencArgs.builder()
* .clearKeyEncryptionConfiguration(ClearKeyEncryptionConfigurationArgs.builder()
* .customKeysAcquisitionUrlTemplate("https://contoso.com/{AlternativeMediaId}/clearkey/")
* .build())
* .clearTracks(TrackSelectionArgs.builder()
* .trackSelections(TrackPropertyConditionArgs.builder()
* .operation("Equal")
* .property("FourCC")
* .value("hev1")
* .build())
* .build())
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("cencDefaultKey")
* .build())
* .build())
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(true)
* .download(false)
* .hls(false)
* .smoothStreaming(true)
* .build())
* .build())
* .defaultContentKeyPolicyName("PolicyWithPlayReadyOptionAndOpenRestriction")
* .resourceGroupName("contosorg")
* .streamingPolicyName("UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly")
* .build());
*
* }
* }
*
* }
*
* ### Creates a Streaming Policy 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.StreamingPolicy;
* import com.pulumi.azurenative.media.StreamingPolicyArgs;
* import com.pulumi.azurenative.media.inputs.NoEncryptionArgs;
* import com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs;
* 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 streamingPolicy = new StreamingPolicy("streamingPolicy", StreamingPolicyArgs.builder()
* .accountName("contosomedia")
* .noEncryption(NoEncryptionArgs.builder()
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(true)
* .download(true)
* .hls(true)
* .smoothStreaming(true)
* .build())
* .build())
* .resourceGroupName("contosorg")
* .streamingPolicyName("clearStreamingPolicy")
* .build());
*
* }
* }
*
* }
*
* ### Creates a Streaming Policy with commonEncryptionCbcs only
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.media.StreamingPolicy;
* import com.pulumi.azurenative.media.StreamingPolicyArgs;
* import com.pulumi.azurenative.media.inputs.CommonEncryptionCbcsArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyContentKeysArgs;
* import com.pulumi.azurenative.media.inputs.DefaultKeyArgs;
* import com.pulumi.azurenative.media.inputs.CbcsDrmConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyFairPlayConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs;
* 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 streamingPolicy = new StreamingPolicy("streamingPolicy", StreamingPolicyArgs.builder()
* .accountName("contosomedia")
* .commonEncryptionCbcs(CommonEncryptionCbcsArgs.builder()
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("cbcsDefaultKey")
* .build())
* .build())
* .drm(CbcsDrmConfigurationArgs.builder()
* .fairPlay(StreamingPolicyFairPlayConfigurationArgs.builder()
* .allowPersistentLicense(true)
* .customLicenseAcquisitionUrlTemplate("https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}")
* .build())
* .build())
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(false)
* .download(false)
* .hls(true)
* .smoothStreaming(false)
* .build())
* .build())
* .defaultContentKeyPolicyName("PolicyWithMultipleOptions")
* .resourceGroupName("contosorg")
* .streamingPolicyName("UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly")
* .build());
*
* }
* }
*
* }
*
* ### Creates a Streaming Policy with commonEncryptionCenc only
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.media.StreamingPolicy;
* import com.pulumi.azurenative.media.StreamingPolicyArgs;
* import com.pulumi.azurenative.media.inputs.CommonEncryptionCencArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyContentKeysArgs;
* import com.pulumi.azurenative.media.inputs.DefaultKeyArgs;
* import com.pulumi.azurenative.media.inputs.CencDrmConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyPlayReadyConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyWidevineConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs;
* 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 }{{@code
* public static void main(String[] args) }{{@code
* Pulumi.run(App::stack);
* }}{@code
*
* public static void stack(Context ctx) }{{@code
* var streamingPolicy = new StreamingPolicy("streamingPolicy", StreamingPolicyArgs.builder()
* .accountName("contosomedia")
* .commonEncryptionCenc(CommonEncryptionCencArgs.builder()
* .clearTracks(TrackSelectionArgs.builder()
* .trackSelections(TrackPropertyConditionArgs.builder()
* .operation("Equal")
* .property("FourCC")
* .value("hev1")
* .build())
* .build())
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("cencDefaultKey")
* .build())
* .build())
* .drm(CencDrmConfigurationArgs.builder()
* .playReady(StreamingPolicyPlayReadyConfigurationArgs.builder()
* .customLicenseAcquisitionUrlTemplate("https://contoso.com/}{{@code AssetAlternativeId}}{@code /playready/}{{@code ContentKeyId}}{@code ")
* .playReadyCustomAttributes("PlayReady CustomAttributes")
* .build())
* .widevine(StreamingPolicyWidevineConfigurationArgs.builder()
* .customLicenseAcquisitionUrlTemplate("https://contoso.com/}{{@code AssetAlternativeId}}{@code /widevine/}{{@code ContentKeyId")
* .build())
* .build())
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(true)
* .download(false)
* .hls(false)
* .smoothStreaming(true)
* .build())
* .build())
* .defaultContentKeyPolicyName("PolicyWithPlayReadyOptionAndOpenRestriction")
* .resourceGroupName("contosorg")
* .streamingPolicyName("UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly")
* .build());
*
* }}{@code
* }}{@code
*
* }
*
* ### Creates a Streaming Policy with envelopeEncryption only
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.media.StreamingPolicy;
* import com.pulumi.azurenative.media.StreamingPolicyArgs;
* import com.pulumi.azurenative.media.inputs.EnvelopeEncryptionArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyContentKeysArgs;
* import com.pulumi.azurenative.media.inputs.DefaultKeyArgs;
* import com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs;
* 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 streamingPolicy = new StreamingPolicy("streamingPolicy", StreamingPolicyArgs.builder()
* .accountName("contosomedia")
* .defaultContentKeyPolicyName("PolicyWithClearKeyOptionAndTokenRestriction")
* .envelopeEncryption(EnvelopeEncryptionArgs.builder()
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("aesDefaultKey")
* .build())
* .build())
* .customKeyAcquisitionUrlTemplate("https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(true)
* .download(false)
* .hls(true)
* .smoothStreaming(true)
* .build())
* .build())
* .resourceGroupName("contosorg")
* .streamingPolicyName("UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly")
* .build());
*
* }
* }
*
* }
*
* ### Creates a Streaming Policy 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.StreamingPolicy;
* import com.pulumi.azurenative.media.StreamingPolicyArgs;
* import com.pulumi.azurenative.media.inputs.CommonEncryptionCbcsArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyContentKeysArgs;
* import com.pulumi.azurenative.media.inputs.DefaultKeyArgs;
* import com.pulumi.azurenative.media.inputs.CbcsDrmConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyFairPlayConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.EnabledProtocolsArgs;
* import com.pulumi.azurenative.media.inputs.CommonEncryptionCencArgs;
* import com.pulumi.azurenative.media.inputs.CencDrmConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyPlayReadyConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.StreamingPolicyWidevineConfigurationArgs;
* import com.pulumi.azurenative.media.inputs.EnvelopeEncryptionArgs;
* 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 }{{@code
* public static void main(String[] args) }{{@code
* Pulumi.run(App::stack);
* }}{@code
*
* public static void stack(Context ctx) }{{@code
* var streamingPolicy = new StreamingPolicy("streamingPolicy", StreamingPolicyArgs.builder()
* .accountName("contosomedia")
* .commonEncryptionCbcs(CommonEncryptionCbcsArgs.builder()
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("cbcsDefaultKey")
* .build())
* .build())
* .drm(CbcsDrmConfigurationArgs.builder()
* .fairPlay(StreamingPolicyFairPlayConfigurationArgs.builder()
* .allowPersistentLicense(true)
* .customLicenseAcquisitionUrlTemplate("https://contoso.com/}{{@code AssetAlternativeId}}{@code /fairplay/}{{@code ContentKeyId}}{@code ")
* .build())
* .build())
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(false)
* .download(false)
* .hls(true)
* .smoothStreaming(false)
* .build())
* .build())
* .commonEncryptionCenc(CommonEncryptionCencArgs.builder()
* .clearTracks(TrackSelectionArgs.builder()
* .trackSelections(TrackPropertyConditionArgs.builder()
* .operation("Equal")
* .property("FourCC")
* .value("hev1")
* .build())
* .build())
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("cencDefaultKey")
* .build())
* .build())
* .drm(CencDrmConfigurationArgs.builder()
* .playReady(StreamingPolicyPlayReadyConfigurationArgs.builder()
* .customLicenseAcquisitionUrlTemplate("https://contoso.com/}{{@code AssetAlternativeId}}{@code /playready/}{{@code ContentKeyId}}{@code ")
* .playReadyCustomAttributes("PlayReady CustomAttributes")
* .build())
* .widevine(StreamingPolicyWidevineConfigurationArgs.builder()
* .customLicenseAcquisitionUrlTemplate("https://contoso.com/}{{@code AssetAlternativeId}}{@code /widevine/}{{@code ContentKeyId")
* .build())
* .build())
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(true)
* .download(false)
* .hls(false)
* .smoothStreaming(true)
* .build())
* .build())
* .defaultContentKeyPolicyName("PolicyWithMultipleOptions")
* .envelopeEncryption(EnvelopeEncryptionArgs.builder()
* .contentKeys(StreamingPolicyContentKeysArgs.builder()
* .defaultKey(DefaultKeyArgs.builder()
* .label("aesDefaultKey")
* .build())
* .build())
* .customKeyAcquisitionUrlTemplate("https://contoso.com/}{{@code AssetAlternativeId}}{@code /envelope/}{{@code ContentKeyId}}{@code ")
* .enabledProtocols(EnabledProtocolsArgs.builder()
* .dash(true)
* .download(false)
* .hls(true)
* .smoothStreaming(true)
* .build())
* .build())
* .resourceGroupName("contosorg")
* .streamingPolicyName("UserCreatedSecureStreamingPolicy")
* .build());
*
* }}{@code
* }}{@code
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:media:StreamingPolicy UserCreatedSecureStreamingPolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}
* ```
*
*/
@ResourceType(type="azure-native:media:StreamingPolicy")
public class StreamingPolicy extends com.pulumi.resources.CustomResource {
/**
* Configuration of CommonEncryptionCbcs
*
*/
@Export(name="commonEncryptionCbcs", refs={CommonEncryptionCbcsResponse.class}, tree="[0]")
private Output* @Nullable */ CommonEncryptionCbcsResponse> commonEncryptionCbcs;
/**
* @return Configuration of CommonEncryptionCbcs
*
*/
public Output> commonEncryptionCbcs() {
return Codegen.optional(this.commonEncryptionCbcs);
}
/**
* Configuration of CommonEncryptionCenc
*
*/
@Export(name="commonEncryptionCenc", refs={CommonEncryptionCencResponse.class}, tree="[0]")
private Output* @Nullable */ CommonEncryptionCencResponse> commonEncryptionCenc;
/**
* @return Configuration of CommonEncryptionCenc
*
*/
public Output> commonEncryptionCenc() {
return Codegen.optional(this.commonEncryptionCenc);
}
/**
* Creation time of Streaming Policy
*
*/
@Export(name="created", refs={String.class}, tree="[0]")
private Output created;
/**
* @return Creation time of Streaming Policy
*
*/
public Output created() {
return this.created;
}
/**
* Default ContentKey used by current Streaming Policy
*
*/
@Export(name="defaultContentKeyPolicyName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> defaultContentKeyPolicyName;
/**
* @return Default ContentKey used by current Streaming Policy
*
*/
public Output> defaultContentKeyPolicyName() {
return Codegen.optional(this.defaultContentKeyPolicyName);
}
/**
* Configuration of EnvelopeEncryption
*
*/
@Export(name="envelopeEncryption", refs={EnvelopeEncryptionResponse.class}, tree="[0]")
private Output* @Nullable */ EnvelopeEncryptionResponse> envelopeEncryption;
/**
* @return Configuration of EnvelopeEncryption
*
*/
public Output> envelopeEncryption() {
return Codegen.optional(this.envelopeEncryption);
}
/**
* 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;
}
/**
* Configurations of NoEncryption
*
*/
@Export(name="noEncryption", refs={NoEncryptionResponse.class}, tree="[0]")
private Output* @Nullable */ NoEncryptionResponse> noEncryption;
/**
* @return Configurations of NoEncryption
*
*/
public Output> noEncryption() {
return Codegen.optional(this.noEncryption);
}
/**
* 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 StreamingPolicy(java.lang.String name) {
this(name, StreamingPolicyArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public StreamingPolicy(java.lang.String name, StreamingPolicyArgs 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 StreamingPolicy(java.lang.String name, StreamingPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:media:StreamingPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private StreamingPolicy(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:media:StreamingPolicy", name, null, makeResourceOptions(options, id), false);
}
private static StreamingPolicyArgs makeArgs(StreamingPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? StreamingPolicyArgs.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:StreamingPolicy").build()),
Output.of(Alias.builder().type("azure-native:media/v20180601preview:StreamingPolicy").build()),
Output.of(Alias.builder().type("azure-native:media/v20180701:StreamingPolicy").build()),
Output.of(Alias.builder().type("azure-native:media/v20200501:StreamingPolicy").build()),
Output.of(Alias.builder().type("azure-native:media/v20210601:StreamingPolicy").build()),
Output.of(Alias.builder().type("azure-native:media/v20211101:StreamingPolicy").build()),
Output.of(Alias.builder().type("azure-native:media/v20220801:StreamingPolicy").build()),
Output.of(Alias.builder().type("azure-native:media/v20230101:StreamingPolicy").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 StreamingPolicy get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new StreamingPolicy(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy