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

com.pulumi.azurenative.media.LiveEvent 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.LiveEventArgs;
import com.pulumi.azurenative.media.outputs.CrossSiteAccessPoliciesResponse;
import com.pulumi.azurenative.media.outputs.LiveEventEncodingResponse;
import com.pulumi.azurenative.media.outputs.LiveEventInputResponse;
import com.pulumi.azurenative.media.outputs.LiveEventPreviewResponse;
import com.pulumi.azurenative.media.outputs.LiveEventTranscriptionResponse;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The live event.
 * 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, 2019-05-01-preview.
 * 
 * ## Example Usage
 * ### Create a LiveEvent
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.media.LiveEvent;
 * import com.pulumi.azurenative.media.LiveEventArgs;
 * import com.pulumi.azurenative.media.inputs.LiveEventInputArgs;
 * import com.pulumi.azurenative.media.inputs.LiveEventInputAccessControlArgs;
 * import com.pulumi.azurenative.media.inputs.IPAccessControlArgs;
 * import com.pulumi.azurenative.media.inputs.LiveEventPreviewArgs;
 * import com.pulumi.azurenative.media.inputs.LiveEventPreviewAccessControlArgs;
 * 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 liveEvent = new LiveEvent("liveEvent", LiveEventArgs.builder()
 *             .accountName("slitestmedia10")
 *             .description("test event 1")
 *             .input(LiveEventInputArgs.builder()
 *                 .accessControl(LiveEventInputAccessControlArgs.builder()
 *                     .ip(IPAccessControlArgs.builder()
 *                         .allow(IPRangeArgs.builder()
 *                             .address("0.0.0.0")
 *                             .name("AllowAll")
 *                             .subnetPrefixLength(0)
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .keyFrameIntervalDuration("PT6S")
 *                 .streamingProtocol("RTMP")
 *                 .build())
 *             .liveEventName("myLiveEvent1")
 *             .location("West US")
 *             .preview(LiveEventPreviewArgs.builder()
 *                 .accessControl(LiveEventPreviewAccessControlArgs.builder()
 *                     .ip(IPAccessControlArgs.builder()
 *                         .allow(IPRangeArgs.builder()
 *                             .address("0.0.0.0")
 *                             .name("AllowAll")
 *                             .subnetPrefixLength(0)
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .build())
 *             .resourceGroupName("mediaresources")
 *             .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:LiveEvent myLiveEvent1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName} * ``` * */ @ResourceType(type="azure-native:media:LiveEvent") public class LiveEvent extends com.pulumi.resources.CustomResource { /** * The creation time for the live event * */ @Export(name="created", refs={String.class}, tree="[0]") private Output created; /** * @return The creation time for the live event * */ public Output created() { return this.created; } /** * Live event cross site access policies. * */ @Export(name="crossSiteAccessPolicies", refs={CrossSiteAccessPoliciesResponse.class}, tree="[0]") private Output crossSiteAccessPolicies; /** * @return Live event cross site access policies. * */ public Output> crossSiteAccessPolicies() { return Codegen.optional(this.crossSiteAccessPolicies); } /** * A description for the live event. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return A description for the live event. * */ public Output> description() { return Codegen.optional(this.description); } /** * Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used. * */ @Export(name="encoding", refs={LiveEventEncodingResponse.class}, tree="[0]") private Output encoding; /** * @return Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used. * */ public Output> encoding() { return Codegen.optional(this.encoding); } /** * When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center. * */ @Export(name="hostnamePrefix", refs={String.class}, tree="[0]") private Output hostnamePrefix; /** * @return When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center. * */ public Output> hostnamePrefix() { return Codegen.optional(this.hostnamePrefix); } /** * Live event input settings. It defines how the live event receives input from a contribution encoder. * */ @Export(name="input", refs={LiveEventInputResponse.class}, tree="[0]") private Output input; /** * @return Live event input settings. It defines how the live event receives input from a contribution encoder. * */ public Output input() { return this.input; } /** * The last modified time of the live event. * */ @Export(name="lastModified", refs={String.class}, tree="[0]") private Output lastModified; /** * @return The last modified time of the live event. * */ 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; } /** * 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; } /** * Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output. * */ @Export(name="preview", refs={LiveEventPreviewResponse.class}, tree="[0]") private Output preview; /** * @return Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output. * */ public Output> preview() { return Codegen.optional(this.preview); } /** * The provisioning state of the live event. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the live event. * */ public Output provisioningState() { return this.provisioningState; } /** * The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. * */ @Export(name="resourceState", refs={String.class}, tree="[0]") private Output resourceState; /** * @return The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. * */ public Output resourceState() { return this.resourceState; } /** * The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'. * */ @Export(name="streamOptions", refs={List.class,String.class}, tree="[0,1]") private Output> streamOptions; /** * @return The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'. * */ public Output>> streamOptions() { return Codegen.optional(this.streamOptions); } /** * 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); } /** * Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature. * */ @Export(name="transcriptions", refs={List.class,LiveEventTranscriptionResponse.class}, tree="[0,1]") private Output> transcriptions; /** * @return Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature. * */ public Output>> transcriptions() { return Codegen.optional(this.transcriptions); } /** * 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; } /** * Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state * */ @Export(name="useStaticHostname", refs={Boolean.class}, tree="[0]") private Output useStaticHostname; /** * @return Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state * */ public Output> useStaticHostname() { return Codegen.optional(this.useStaticHostname); } /** * * @param name The _unique_ name of the resulting resource. */ public LiveEvent(java.lang.String name) { this(name, LiveEventArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public LiveEvent(java.lang.String name, LiveEventArgs 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 LiveEvent(java.lang.String name, LiveEventArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:LiveEvent", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private LiveEvent(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:LiveEvent", name, null, makeResourceOptions(options, id), false); } private static LiveEventArgs makeArgs(LiveEventArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? LiveEventArgs.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:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20180601preview:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20180701:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20190501preview:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20200501:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20210601:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20211101:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20220801:LiveEvent").build()), Output.of(Alias.builder().type("azure-native:media/v20221101:LiveEvent").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 LiveEvent get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new LiveEvent(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy