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

com.pulumi.azure.desktopvirtualization.kotlin.ApplicationGroupArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.desktopvirtualization.kotlin

import com.pulumi.azure.desktopvirtualization.ApplicationGroupArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Virtual Desktop Application Group.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "rg-example-virtualdesktop",
 *     location: "West Europe",
 * });
 * const pooledbreadthfirst = new azure.desktopvirtualization.HostPool("pooledbreadthfirst", {
 *     name: "pooledbreadthfirst",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     type: "Pooled",
 *     loadBalancerType: "BreadthFirst",
 * });
 * const personalautomatic = new azure.desktopvirtualization.HostPool("personalautomatic", {
 *     name: "personalautomatic",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     type: "Personal",
 *     personalDesktopAssignmentType: "Automatic",
 *     loadBalancerType: "BreadthFirst",
 * });
 * const remoteapp = new azure.desktopvirtualization.ApplicationGroup("remoteapp", {
 *     name: "acctag",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     type: "RemoteApp",
 *     hostPoolId: pooledbreadthfirst.id,
 *     friendlyName: "TestAppGroup",
 *     description: "Acceptance Test: An application group",
 * });
 * const desktopapp = new azure.desktopvirtualization.ApplicationGroup("desktopapp", {
 *     name: "appgroupdesktop",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     type: "Desktop",
 *     hostPoolId: personalautomatic.id,
 *     friendlyName: "TestAppGroup",
 *     description: "Acceptance Test: An application group",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="rg-example-virtualdesktop",
 *     location="West Europe")
 * pooledbreadthfirst = azure.desktopvirtualization.HostPool("pooledbreadthfirst",
 *     name="pooledbreadthfirst",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     type="Pooled",
 *     load_balancer_type="BreadthFirst")
 * personalautomatic = azure.desktopvirtualization.HostPool("personalautomatic",
 *     name="personalautomatic",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     type="Personal",
 *     personal_desktop_assignment_type="Automatic",
 *     load_balancer_type="BreadthFirst")
 * remoteapp = azure.desktopvirtualization.ApplicationGroup("remoteapp",
 *     name="acctag",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     type="RemoteApp",
 *     host_pool_id=pooledbreadthfirst.id,
 *     friendly_name="TestAppGroup",
 *     description="Acceptance Test: An application group")
 * desktopapp = azure.desktopvirtualization.ApplicationGroup("desktopapp",
 *     name="appgroupdesktop",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     type="Desktop",
 *     host_pool_id=personalautomatic.id,
 *     friendly_name="TestAppGroup",
 *     description="Acceptance Test: An application group")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "rg-example-virtualdesktop",
 *         Location = "West Europe",
 *     });
 *     var pooledbreadthfirst = new Azure.DesktopVirtualization.HostPool("pooledbreadthfirst", new()
 *     {
 *         Name = "pooledbreadthfirst",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Type = "Pooled",
 *         LoadBalancerType = "BreadthFirst",
 *     });
 *     var personalautomatic = new Azure.DesktopVirtualization.HostPool("personalautomatic", new()
 *     {
 *         Name = "personalautomatic",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Type = "Personal",
 *         PersonalDesktopAssignmentType = "Automatic",
 *         LoadBalancerType = "BreadthFirst",
 *     });
 *     var remoteapp = new Azure.DesktopVirtualization.ApplicationGroup("remoteapp", new()
 *     {
 *         Name = "acctag",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Type = "RemoteApp",
 *         HostPoolId = pooledbreadthfirst.Id,
 *         FriendlyName = "TestAppGroup",
 *         Description = "Acceptance Test: An application group",
 *     });
 *     var desktopapp = new Azure.DesktopVirtualization.ApplicationGroup("desktopapp", new()
 *     {
 *         Name = "appgroupdesktop",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Type = "Desktop",
 *         HostPoolId = personalautomatic.Id,
 *         FriendlyName = "TestAppGroup",
 *         Description = "Acceptance Test: An application group",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/desktopvirtualization"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("rg-example-virtualdesktop"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		pooledbreadthfirst, err := desktopvirtualization.NewHostPool(ctx, "pooledbreadthfirst", &desktopvirtualization.HostPoolArgs{
 * 			Name:              pulumi.String("pooledbreadthfirst"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Type:              pulumi.String("Pooled"),
 * 			LoadBalancerType:  pulumi.String("BreadthFirst"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		personalautomatic, err := desktopvirtualization.NewHostPool(ctx, "personalautomatic", &desktopvirtualization.HostPoolArgs{
 * 			Name:                          pulumi.String("personalautomatic"),
 * 			Location:                      example.Location,
 * 			ResourceGroupName:             example.Name,
 * 			Type:                          pulumi.String("Personal"),
 * 			PersonalDesktopAssignmentType: pulumi.String("Automatic"),
 * 			LoadBalancerType:              pulumi.String("BreadthFirst"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = desktopvirtualization.NewApplicationGroup(ctx, "remoteapp", &desktopvirtualization.ApplicationGroupArgs{
 * 			Name:              pulumi.String("acctag"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Type:              pulumi.String("RemoteApp"),
 * 			HostPoolId:        pooledbreadthfirst.ID(),
 * 			FriendlyName:      pulumi.String("TestAppGroup"),
 * 			Description:       pulumi.String("Acceptance Test: An application group"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = desktopvirtualization.NewApplicationGroup(ctx, "desktopapp", &desktopvirtualization.ApplicationGroupArgs{
 * 			Name:              pulumi.String("appgroupdesktop"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Type:              pulumi.String("Desktop"),
 * 			HostPoolId:        personalautomatic.ID(),
 * 			FriendlyName:      pulumi.String("TestAppGroup"),
 * 			Description:       pulumi.String("Acceptance Test: An application group"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: rg-example-virtualdesktop
 *       location: West Europe
 *   pooledbreadthfirst:
 *     type: azure:desktopvirtualization:HostPool
 *     properties:
 *       name: pooledbreadthfirst
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       type: Pooled
 *       loadBalancerType: BreadthFirst
 *   personalautomatic:
 *     type: azure:desktopvirtualization:HostPool
 *     properties:
 *       name: personalautomatic
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       type: Personal
 *       personalDesktopAssignmentType: Automatic
 *       loadBalancerType: BreadthFirst
 *   remoteapp:
 *     type: azure:desktopvirtualization:ApplicationGroup
 *     properties:
 *       name: acctag
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       type: RemoteApp
 *       hostPoolId: ${pooledbreadthfirst.id}
 *       friendlyName: TestAppGroup
 *       description: 'Acceptance Test: An application group'
 *   desktopapp:
 *     type: azure:desktopvirtualization:ApplicationGroup
 *     properties:
 *       name: appgroupdesktop
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       type: Desktop
 *       hostPoolId: ${personalautomatic.id}
 *       friendlyName: TestAppGroup
 *       description: 'Acceptance Test: An application group'
 * ```
 * 
 * ## 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
 * ```
 * @property defaultDesktopDisplayName Option to set the display name for the default sessionDesktop desktop when `type` is set to `Desktop`.
 * @property description Option to set a description for the Virtual Desktop Application Group.
 * @property friendlyName Option to set a friendly name for the Virtual Desktop Application Group.
 * @property hostPoolId 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.
 * @property location The location/region where the Virtual Desktop Application Group is located. Changing this forces a new resource to be created.
 * @property name The name of the Virtual Desktop Application Group. Changing the name forces a new resource to be created.
 * @property resourceGroupName The name of the resource group in which to create the Virtual Desktop Application Group. Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the resource.
 * @property type Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created.
 */
public data class ApplicationGroupArgs(
    public val defaultDesktopDisplayName: Output? = null,
    public val description: Output? = null,
    public val friendlyName: Output? = null,
    public val hostPoolId: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.desktopvirtualization.ApplicationGroupArgs =
        com.pulumi.azure.desktopvirtualization.ApplicationGroupArgs.builder()
            .defaultDesktopDisplayName(defaultDesktopDisplayName?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .friendlyName(friendlyName?.applyValue({ args0 -> args0 }))
            .hostPoolId(hostPoolId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationGroupArgs].
 */
@PulumiTagMarker
public class ApplicationGroupArgsBuilder internal constructor() {
    private var defaultDesktopDisplayName: Output? = null

    private var description: Output? = null

    private var friendlyName: Output? = null

    private var hostPoolId: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value Option to set the display name for the default sessionDesktop desktop when `type` is set to `Desktop`.
     */
    @JvmName("ffisouhtkbiwonxt")
    public suspend fun defaultDesktopDisplayName(`value`: Output) {
        this.defaultDesktopDisplayName = value
    }

    /**
     * @param value Option to set a description for the Virtual Desktop Application Group.
     */
    @JvmName("jjroxcvcloxmapel")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Option to set a friendly name for the Virtual Desktop Application Group.
     */
    @JvmName("kworekwoerinftep")
    public suspend fun friendlyName(`value`: Output) {
        this.friendlyName = value
    }

    /**
     * @param value 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.
     */
    @JvmName("bxhmjupknouqclsw")
    public suspend fun hostPoolId(`value`: Output) {
        this.hostPoolId = value
    }

    /**
     * @param value The location/region where the Virtual Desktop Application Group is located. Changing this forces a new resource to be created.
     */
    @JvmName("vibrmntuwqrvdtyv")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the Virtual Desktop Application Group. Changing the name forces a new resource to be created.
     */
    @JvmName("hrqnlnrihwxdeasv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the resource group in which to create the Virtual Desktop Application Group. Changing this forces a new resource to be created.
     */
    @JvmName("jtdciqnqxgupacax")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("itnhgdqgibkasprh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created.
     */
    @JvmName("jjbldfsmbjcothkv")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Option to set the display name for the default sessionDesktop desktop when `type` is set to `Desktop`.
     */
    @JvmName("cvnhssbxjhxcxohs")
    public suspend fun defaultDesktopDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultDesktopDisplayName = mapped
    }

    /**
     * @param value Option to set a description for the Virtual Desktop Application Group.
     */
    @JvmName("tnsbaiykmnqreghj")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Option to set a friendly name for the Virtual Desktop Application Group.
     */
    @JvmName("usjyoxntowcjcoao")
    public suspend fun friendlyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.friendlyName = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("qelxlnqonafwijrj")
    public suspend fun hostPoolId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostPoolId = mapped
    }

    /**
     * @param value The location/region where the Virtual Desktop Application Group is located. Changing this forces a new resource to be created.
     */
    @JvmName("saldkxwhsrnluycy")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the Virtual Desktop Application Group. Changing the name forces a new resource to be created.
     */
    @JvmName("jkixflmxpunknrts")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the resource group in which to create the Virtual Desktop Application Group. Changing this forces a new resource to be created.
     */
    @JvmName("rjstwttfoadtitaf")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("mnrxotlrvimhkkol")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("mngfvsufvtbbnbks")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created.
     */
    @JvmName("spwqenjisrbfblpt")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ApplicationGroupArgs = ApplicationGroupArgs(
        defaultDesktopDisplayName = defaultDesktopDisplayName,
        description = description,
        friendlyName = friendlyName,
        hostPoolId = hostPoolId,
        location = location,
        name = name,
        resourceGroupName = resourceGroupName,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy