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

com.pulumi.azure.desktopvirtualization.ApplicationGroup Maven / Gradle / Ivy

// *** 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.azure.desktopvirtualization;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.desktopvirtualization.ApplicationGroupArgs;
import com.pulumi.azure.desktopvirtualization.inputs.ApplicationGroupState;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Virtual Desktop Application Group.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.desktopvirtualization.HostPool;
 * import com.pulumi.azure.desktopvirtualization.HostPoolArgs;
 * import com.pulumi.azure.desktopvirtualization.ApplicationGroup;
 * import com.pulumi.azure.desktopvirtualization.ApplicationGroupArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("rg-example-virtualdesktop")
 *             .location("West Europe")
 *             .build());
 * 
 *         var pooledbreadthfirst = new HostPool("pooledbreadthfirst", HostPoolArgs.builder()
 *             .name("pooledbreadthfirst")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .type("Pooled")
 *             .loadBalancerType("BreadthFirst")
 *             .build());
 * 
 *         var personalautomatic = new HostPool("personalautomatic", HostPoolArgs.builder()
 *             .name("personalautomatic")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .type("Personal")
 *             .personalDesktopAssignmentType("Automatic")
 *             .loadBalancerType("BreadthFirst")
 *             .build());
 * 
 *         var remoteapp = new ApplicationGroup("remoteapp", ApplicationGroupArgs.builder()
 *             .name("acctag")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .type("RemoteApp")
 *             .hostPoolId(pooledbreadthfirst.id())
 *             .friendlyName("TestAppGroup")
 *             .description("Acceptance Test: An application group")
 *             .build());
 * 
 *         var desktopapp = new ApplicationGroup("desktopapp", ApplicationGroupArgs.builder()
 *             .name("appgroupdesktop")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .type("Desktop")
 *             .hostPoolId(personalautomatic.id())
 *             .friendlyName("TestAppGroup")
 *             .description("Acceptance Test: An application group")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Virtual Desktop Application Groups can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:desktopvirtualization/applicationGroup:ApplicationGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/applicationGroups/myapplicationgroup * ``` * */ @ResourceType(type="azure:desktopvirtualization/applicationGroup:ApplicationGroup") public class ApplicationGroup extends com.pulumi.resources.CustomResource { /** * Option to set the display name for the default sessionDesktop desktop when `type` is set to `Desktop`. * */ @Export(name="defaultDesktopDisplayName", refs={String.class}, tree="[0]") private Output defaultDesktopDisplayName; /** * @return Option to set the display name for the default sessionDesktop desktop when `type` is set to `Desktop`. * */ public Output> defaultDesktopDisplayName() { return Codegen.optional(this.defaultDesktopDisplayName); } /** * Option to set a description for the Virtual Desktop Application Group. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Option to set a description for the Virtual Desktop Application Group. * */ public Output> description() { return Codegen.optional(this.description); } /** * Option to set a friendly name for the Virtual Desktop Application Group. * */ @Export(name="friendlyName", refs={String.class}, tree="[0]") private Output friendlyName; /** * @return Option to set a friendly name for the Virtual Desktop Application Group. * */ public Output> friendlyName() { return Codegen.optional(this.friendlyName); } /** * Resource ID for a Virtual Desktop Host Pool to associate with the Virtual Desktop Application Group. Changing the name forces a new resource to be created. * */ @Export(name="hostPoolId", refs={String.class}, tree="[0]") private Output hostPoolId; /** * @return Resource ID for a Virtual Desktop Host Pool to associate with the Virtual Desktop Application Group. Changing the name forces a new resource to be created. * */ public Output hostPoolId() { return this.hostPoolId; } /** * The location/region where the Virtual Desktop Application Group is located. Changing this forces a new resource to be created. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The location/region where the Virtual Desktop Application Group is located. Changing this forces a new resource to be created. * */ public Output location() { return this.location; } /** * The name of the Virtual Desktop Application Group. Changing the name forces a new resource to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the Virtual Desktop Application Group. Changing the name forces a new resource to be created. * */ public Output name() { return this.name; } /** * The name of the resource group in which to create the Virtual Desktop Application Group. Changing this forces a new resource to be created. * */ @Export(name="resourceGroupName", refs={String.class}, tree="[0]") private Output resourceGroupName; /** * @return The name of the resource group in which to create the Virtual Desktop Application Group. Changing this forces a new resource to be created. * */ public Output resourceGroupName() { return this.resourceGroupName; } /** * A mapping of tags to assign to the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A mapping of tags to assign to the resource. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ApplicationGroup(java.lang.String name) { this(name, ApplicationGroupArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ApplicationGroup(java.lang.String name, ApplicationGroupArgs 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 ApplicationGroup(java.lang.String name, ApplicationGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:desktopvirtualization/applicationGroup:ApplicationGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ApplicationGroup(java.lang.String name, Output id, @Nullable ApplicationGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:desktopvirtualization/applicationGroup:ApplicationGroup", name, state, makeResourceOptions(options, id), false); } private static ApplicationGroupArgs makeArgs(ApplicationGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ApplicationGroupArgs.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()) .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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static ApplicationGroup get(java.lang.String name, Output id, @Nullable ApplicationGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ApplicationGroup(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy