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

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

There is a newer version: 2.78.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.MediaServiceArgs;
import com.pulumi.azurenative.media.outputs.AccountEncryptionResponse;
import com.pulumi.azurenative.media.outputs.KeyDeliveryResponse;
import com.pulumi.azurenative.media.outputs.MediaServiceIdentityResponse;
import com.pulumi.azurenative.media.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.media.outputs.StorageAccountResponse;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * A Media Services account.
 * Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 2020-05-01.
 * 
 * Other available API versions: 2015-10-01.
 * 
 * ## Example Usage
 * ### Create a Media Services account
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.media.MediaService;
 * import com.pulumi.azurenative.media.MediaServiceArgs;
 * import com.pulumi.azurenative.media.inputs.StorageAccountArgs;
 * 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 mediaService = new MediaService("mediaService", MediaServiceArgs.builder()
 *             .accountName("contososports")
 *             .location("South Central US")
 *             .resourceGroupName("contosorg")
 *             .storageAccounts(StorageAccountArgs.builder()
 *                 .id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount")
 *                 .type("Primary")
 *                 .build())
 *             .tags(Map.ofEntries(
 *                 Map.entry("key1", "value1"),
 *                 Map.entry("key2", "value2")
 *             ))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:media:MediaService contososports /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName} * ``` * */ @ResourceType(type="azure-native:media:MediaService") public class MediaService extends com.pulumi.resources.CustomResource { /** * The account encryption properties. * */ @Export(name="encryption", refs={AccountEncryptionResponse.class}, tree="[0]") private Output encryption; /** * @return The account encryption properties. * */ public Output> encryption() { return Codegen.optional(this.encryption); } /** * The Managed Identity for the Media Services account. * */ @Export(name="identity", refs={MediaServiceIdentityResponse.class}, tree="[0]") private Output identity; /** * @return The Managed Identity for the Media Services account. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The Key Delivery properties for Media Services account. * */ @Export(name="keyDelivery", refs={KeyDeliveryResponse.class}, tree="[0]") private Output keyDelivery; /** * @return The Key Delivery properties for Media Services account. * */ public Output> keyDelivery() { return Codegen.optional(this.keyDelivery); } /** * 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 Media Services account ID. * */ @Export(name="mediaServiceId", refs={String.class}, tree="[0]") private Output mediaServiceId; /** * @return The Media Services account ID. * */ public Output mediaServiceId() { return this.mediaServiceId; } /** * The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used. * */ @Export(name="minimumTlsVersion", refs={String.class}, tree="[0]") private Output minimumTlsVersion; /** * @return The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used. * */ public Output> minimumTlsVersion() { return Codegen.optional(this.minimumTlsVersion); } /** * 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 Private Endpoint Connections created for the Media Service account. * */ @Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]") private Output> privateEndpointConnections; /** * @return The Private Endpoint Connections created for the Media Service account. * */ public Output> privateEndpointConnections() { return this.privateEndpointConnections; } /** * Provisioning state of the Media Services account. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the Media Services account. * */ public Output provisioningState() { return this.provisioningState; } /** * Whether or not public network access is allowed for resources under the Media Services account. * */ @Export(name="publicNetworkAccess", refs={String.class}, tree="[0]") private Output publicNetworkAccess; /** * @return Whether or not public network access is allowed for resources under the Media Services account. * */ public Output> publicNetworkAccess() { return Codegen.optional(this.publicNetworkAccess); } /** * The storage accounts for this resource. * */ @Export(name="storageAccounts", refs={List.class,StorageAccountResponse.class}, tree="[0,1]") private Output> storageAccounts; /** * @return The storage accounts for this resource. * */ public Output>> storageAccounts() { return Codegen.optional(this.storageAccounts); } @Export(name="storageAuthentication", refs={String.class}, tree="[0]") private Output storageAuthentication; public Output> storageAuthentication() { return Codegen.optional(this.storageAuthentication); } /** * 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 MediaService(java.lang.String name) { this(name, MediaServiceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public MediaService(java.lang.String name, MediaServiceArgs 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 MediaService(java.lang.String name, MediaServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:MediaService", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private MediaService(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:MediaService", name, null, makeResourceOptions(options, id), false); } private static MediaServiceArgs makeArgs(MediaServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? MediaServiceArgs.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/v20151001:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20180330preview:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20180601preview:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20180701:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20200501:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20210501:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20210601:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20211101:MediaService").build()), Output.of(Alias.builder().type("azure-native:media/v20230101:MediaService").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 MediaService get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MediaService(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy