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

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

There is a newer version: 2.82.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.StreamingEndpointArgs;
import com.pulumi.azurenative.media.outputs.ArmStreamingEndpointCurrentSkuResponse;
import com.pulumi.azurenative.media.outputs.CrossSiteAccessPoliciesResponse;
import com.pulumi.azurenative.media.outputs.StreamingEndpointAccessControlResponse;
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.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The streaming endpoint.
 * Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 2020-05-01.
 * 
 * Other available API versions: 2018-06-01-preview.
 * 
 * ## Example Usage
 * ### Create a streaming endpoint
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.media.StreamingEndpoint;
 * import com.pulumi.azurenative.media.StreamingEndpointArgs;
 * import com.pulumi.azurenative.media.inputs.StreamingEndpointAccessControlArgs;
 * import com.pulumi.azurenative.media.inputs.AkamaiAccessControlArgs;
 * import com.pulumi.azurenative.media.inputs.IPAccessControlArgs;
 * 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 streamingEndpoint = new StreamingEndpoint("streamingEndpoint", StreamingEndpointArgs.builder()
 *             .accessControl(StreamingEndpointAccessControlArgs.builder()
 *                 .akamai(AkamaiAccessControlArgs.builder()
 *                     .akamaiSignatureHeaderAuthenticationKeyList(                    
 *                         AkamaiSignatureHeaderAuthenticationKeyArgs.builder()
 *                             .base64Key("dGVzdGlkMQ==")
 *                             .expiration("2029-12-31T16:00:00-08:00")
 *                             .identifier("id1")
 *                             .build(),
 *                         AkamaiSignatureHeaderAuthenticationKeyArgs.builder()
 *                             .base64Key("dGVzdGlkMQ==")
 *                             .expiration("2030-12-31T16:00:00-08:00")
 *                             .identifier("id2")
 *                             .build())
 *                     .build())
 *                 .ip(IPAccessControlArgs.builder()
 *                     .allow(IPRangeArgs.builder()
 *                         .address("192.168.1.1")
 *                         .name("AllowedIp")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .accountName("slitestmedia10")
 *             .availabilitySetName("availableset")
 *             .cdnEnabled(false)
 *             .description("test event 1")
 *             .location("West US")
 *             .resourceGroupName("mediaresources")
 *             .scaleUnits(1)
 *             .streamingEndpointName("myStreamingEndpoint1")
 *             .tags(Map.ofEntries(
 *                 Map.entry("tag1", "value1"),
 *                 Map.entry("tag2", "value2")
 *             ))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:media:StreamingEndpoint myStreamingEndpoint1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName} * ``` * */ @ResourceType(type="azure-native:media:StreamingEndpoint") public class StreamingEndpoint extends com.pulumi.resources.CustomResource { /** * The access control definition of the streaming endpoint. * */ @Export(name="accessControl", refs={StreamingEndpointAccessControlResponse.class}, tree="[0]") private Output accessControl; /** * @return The access control definition of the streaming endpoint. * */ public Output> accessControl() { return Codegen.optional(this.accessControl); } /** * This feature is deprecated, do not set a value for this property. * */ @Export(name="availabilitySetName", refs={String.class}, tree="[0]") private Output availabilitySetName; /** * @return This feature is deprecated, do not set a value for this property. * */ public Output> availabilitySetName() { return Codegen.optional(this.availabilitySetName); } /** * The CDN enabled flag. * */ @Export(name="cdnEnabled", refs={Boolean.class}, tree="[0]") private Output cdnEnabled; /** * @return The CDN enabled flag. * */ public Output> cdnEnabled() { return Codegen.optional(this.cdnEnabled); } /** * The CDN profile name. * */ @Export(name="cdnProfile", refs={String.class}, tree="[0]") private Output cdnProfile; /** * @return The CDN profile name. * */ public Output> cdnProfile() { return Codegen.optional(this.cdnProfile); } /** * The CDN provider name. * */ @Export(name="cdnProvider", refs={String.class}, tree="[0]") private Output cdnProvider; /** * @return The CDN provider name. * */ public Output> cdnProvider() { return Codegen.optional(this.cdnProvider); } /** * The exact time the streaming endpoint was created. * */ @Export(name="created", refs={String.class}, tree="[0]") private Output created; /** * @return The exact time the streaming endpoint was created. * */ public Output created() { return this.created; } /** * The streaming endpoint access policies. * */ @Export(name="crossSiteAccessPolicies", refs={CrossSiteAccessPoliciesResponse.class}, tree="[0]") private Output crossSiteAccessPolicies; /** * @return The streaming endpoint access policies. * */ public Output> crossSiteAccessPolicies() { return Codegen.optional(this.crossSiteAccessPolicies); } /** * The custom host names of the streaming endpoint * */ @Export(name="customHostNames", refs={List.class,String.class}, tree="[0,1]") private Output> customHostNames; /** * @return The custom host names of the streaming endpoint * */ public Output>> customHostNames() { return Codegen.optional(this.customHostNames); } /** * The streaming endpoint description. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return The streaming endpoint description. * */ public Output> description() { return Codegen.optional(this.description); } /** * The free trial expiration time. * */ @Export(name="freeTrialEndTime", refs={String.class}, tree="[0]") private Output freeTrialEndTime; /** * @return The free trial expiration time. * */ public Output freeTrialEndTime() { return this.freeTrialEndTime; } /** * The streaming endpoint host name. * */ @Export(name="hostName", refs={String.class}, tree="[0]") private Output hostName; /** * @return The streaming endpoint host name. * */ public Output hostName() { return this.hostName; } /** * The exact time the streaming endpoint was last modified. * */ @Export(name="lastModified", refs={String.class}, tree="[0]") private Output lastModified; /** * @return The exact time the streaming endpoint was last modified. * */ public Output lastModified() { return this.lastModified; } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * Max cache age * */ @Export(name="maxCacheAge", refs={Double.class}, tree="[0]") private Output maxCacheAge; /** * @return Max cache age * */ public Output> maxCacheAge() { return Codegen.optional(this.maxCacheAge); } /** * 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 provisioning state of the streaming endpoint. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the streaming endpoint. * */ public Output provisioningState() { return this.provisioningState; } /** * The resource state of the streaming endpoint. * */ @Export(name="resourceState", refs={String.class}, tree="[0]") private Output resourceState; /** * @return The resource state of the streaming endpoint. * */ public Output resourceState() { return this.resourceState; } /** * The number of scale units. Use the Scale operation to adjust this value. * */ @Export(name="scaleUnits", refs={Integer.class}, tree="[0]") private Output scaleUnits; /** * @return The number of scale units. Use the Scale operation to adjust this value. * */ public Output scaleUnits() { return this.scaleUnits; } /** * The streaming endpoint sku. * */ @Export(name="sku", refs={ArmStreamingEndpointCurrentSkuResponse.class}, tree="[0]") private Output sku; /** * @return The streaming endpoint sku. * */ public Output> sku() { return Codegen.optional(this.sku); } /** * 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; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * 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 StreamingEndpoint(java.lang.String name) { this(name, StreamingEndpointArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public StreamingEndpoint(java.lang.String name, StreamingEndpointArgs 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 StreamingEndpoint(java.lang.String name, StreamingEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:StreamingEndpoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private StreamingEndpoint(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:StreamingEndpoint", name, null, makeResourceOptions(options, id), false); } private static StreamingEndpointArgs makeArgs(StreamingEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? StreamingEndpointArgs.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:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20180601preview:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20180701:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20190501preview:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20200501:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20210601:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20211101:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20220801:StreamingEndpoint").build()), Output.of(Alias.builder().type("azure-native:media/v20221101:StreamingEndpoint").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 StreamingEndpoint get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new StreamingEndpoint(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy