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

com.pulumi.azurenative.app.kotlin.ContainerAppsSessionPoolArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.app.kotlin

import com.pulumi.azurenative.app.ContainerAppsSessionPoolArgs.builder
import com.pulumi.azurenative.app.kotlin.enums.ContainerType
import com.pulumi.azurenative.app.kotlin.enums.PoolManagementType
import com.pulumi.azurenative.app.kotlin.inputs.CustomContainerTemplateArgs
import com.pulumi.azurenative.app.kotlin.inputs.CustomContainerTemplateArgsBuilder
import com.pulumi.azurenative.app.kotlin.inputs.DynamicPoolConfigurationArgs
import com.pulumi.azurenative.app.kotlin.inputs.DynamicPoolConfigurationArgsBuilder
import com.pulumi.azurenative.app.kotlin.inputs.ScaleConfigurationArgs
import com.pulumi.azurenative.app.kotlin.inputs.ScaleConfigurationArgsBuilder
import com.pulumi.azurenative.app.kotlin.inputs.SessionNetworkConfigurationArgs
import com.pulumi.azurenative.app.kotlin.inputs.SessionNetworkConfigurationArgsBuilder
import com.pulumi.azurenative.app.kotlin.inputs.SessionPoolSecretArgs
import com.pulumi.azurenative.app.kotlin.inputs.SessionPoolSecretArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Container App session pool.
 * Azure REST API version: 2024-02-02-preview.
 * ## Example Usage
 * ### Create or Update Session Pool
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var containerAppsSessionPool = new AzureNative.App.ContainerAppsSessionPool("containerAppsSessionPool", new()
 *     {
 *         ContainerType = AzureNative.App.ContainerType.CustomContainer,
 *         CustomContainerTemplate = new AzureNative.App.Inputs.CustomContainerTemplateArgs
 *         {
 *             Containers = new[]
 *             {
 *                 new AzureNative.App.Inputs.SessionContainerArgs
 *                 {
 *                     Args = new[]
 *                     {
 *                         "-c",
 *                         "while true; do echo hello; sleep 10;done",
 *                     },
 *                     Command = new[]
 *                     {
 *                         "/bin/sh",
 *                     },
 *                     Image = "repo/testcontainer:v4",
 *                     Name = "testinitcontainer",
 *                     Resources = new AzureNative.App.Inputs.SessionContainerResourcesArgs
 *                     {
 *                         Cpu = 0.25,
 *                         Memory = "0.5Gi",
 *                     },
 *                 },
 *             },
 *             Ingress = new AzureNative.App.Inputs.SessionIngressArgs
 *             {
 *                 TargetPort = 80,
 *             },
 *         },
 *         DynamicPoolConfiguration = new AzureNative.App.Inputs.DynamicPoolConfigurationArgs
 *         {
 *             CooldownPeriodInSeconds = 600,
 *             ExecutionType = AzureNative.App.ExecutionType.Timed,
 *         },
 *         EnvironmentId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
 *         Location = "East US",
 *         PoolManagementType = AzureNative.App.PoolManagementType.Dynamic,
 *         ResourceGroupName = "rg",
 *         ScaleConfiguration = new AzureNative.App.Inputs.ScaleConfigurationArgs
 *         {
 *             MaxConcurrentSessions = 500,
 *             ReadySessionInstances = 100,
 *         },
 *         SessionNetworkConfiguration = new AzureNative.App.Inputs.SessionNetworkConfigurationArgs
 *         {
 *             Status = AzureNative.App.SessionNetworkStatus.EgressEnabled,
 *         },
 *         SessionPoolName = "testsessionpool",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := app.NewContainerAppsSessionPool(ctx, "containerAppsSessionPool", &app.ContainerAppsSessionPoolArgs{
 * 			ContainerType: pulumi.String(app.ContainerTypeCustomContainer),
 * 			CustomContainerTemplate: &app.CustomContainerTemplateArgs{
 * 				Containers: app.SessionContainerArray{
 * 					&app.SessionContainerArgs{
 * 						Args: pulumi.StringArray{
 * 							pulumi.String("-c"),
 * 							pulumi.String("while true; do echo hello; sleep 10;done"),
 * 						},
 * 						Command: pulumi.StringArray{
 * 							pulumi.String("/bin/sh"),
 * 						},
 * 						Image: pulumi.String("repo/testcontainer:v4"),
 * 						Name:  pulumi.String("testinitcontainer"),
 * 						Resources: &app.SessionContainerResourcesArgs{
 * 							Cpu:    pulumi.Float64(0.25),
 * 							Memory: pulumi.String("0.5Gi"),
 * 						},
 * 					},
 * 				},
 * 				Ingress: &app.SessionIngressArgs{
 * 					TargetPort: pulumi.Int(80),
 * 				},
 * 			},
 * 			DynamicPoolConfiguration: &app.DynamicPoolConfigurationArgs{
 * 				CooldownPeriodInSeconds: pulumi.Int(600),
 * 				ExecutionType:           pulumi.String(app.ExecutionTypeTimed),
 * 			},
 * 			EnvironmentId:      pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube"),
 * 			Location:           pulumi.String("East US"),
 * 			PoolManagementType: pulumi.String(app.PoolManagementTypeDynamic),
 * 			ResourceGroupName:  pulumi.String("rg"),
 * 			ScaleConfiguration: &app.ScaleConfigurationArgs{
 * 				MaxConcurrentSessions: pulumi.Int(500),
 * 				ReadySessionInstances: pulumi.Int(100),
 * 			},
 * 			SessionNetworkConfiguration: &app.SessionNetworkConfigurationArgs{
 * 				Status: pulumi.String(app.SessionNetworkStatusEgressEnabled),
 * 			},
 * 			SessionPoolName: pulumi.String("testsessionpool"),
 * 		})
 * 		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.azurenative.app.ContainerAppsSessionPool;
 * import com.pulumi.azurenative.app.ContainerAppsSessionPoolArgs;
 * import com.pulumi.azurenative.app.inputs.CustomContainerTemplateArgs;
 * import com.pulumi.azurenative.app.inputs.SessionIngressArgs;
 * import com.pulumi.azurenative.app.inputs.DynamicPoolConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.ScaleConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.SessionNetworkConfigurationArgs;
 * 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 containerAppsSessionPool = new ContainerAppsSessionPool("containerAppsSessionPool", ContainerAppsSessionPoolArgs.builder()
 *             .containerType("CustomContainer")
 *             .customContainerTemplate(CustomContainerTemplateArgs.builder()
 *                 .containers(SessionContainerArgs.builder()
 *                     .args(
 *                         "-c",
 *                         "while true; do echo hello; sleep 10;done")
 *                     .command("/bin/sh")
 *                     .image("repo/testcontainer:v4")
 *                     .name("testinitcontainer")
 *                     .resources(SessionContainerResourcesArgs.builder()
 *                         .cpu(0.25)
 *                         .memory("0.5Gi")
 *                         .build())
 *                     .build())
 *                 .ingress(SessionIngressArgs.builder()
 *                     .targetPort(80)
 *                     .build())
 *                 .build())
 *             .dynamicPoolConfiguration(DynamicPoolConfigurationArgs.builder()
 *                 .cooldownPeriodInSeconds(600)
 *                 .executionType("Timed")
 *                 .build())
 *             .environmentId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
 *             .location("East US")
 *             .poolManagementType("Dynamic")
 *             .resourceGroupName("rg")
 *             .scaleConfiguration(ScaleConfigurationArgs.builder()
 *                 .maxConcurrentSessions(500)
 *                 .readySessionInstances(100)
 *                 .build())
 *             .sessionNetworkConfiguration(SessionNetworkConfigurationArgs.builder()
 *                 .status("EgressEnabled")
 *                 .build())
 *             .sessionPoolName("testsessionpool")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:app:ContainerAppsSessionPool testsessionpool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}
 * ```
 * @property containerType The container type of the sessions.
 * @property customContainerTemplate The custom container configuration if the containerType is CustomContainer.
 * @property dynamicPoolConfiguration The pool configuration if the poolManagementType is dynamic.
 * @property environmentId Resource ID of the session pool's environment.
 * @property location The geo-location where the resource lives
 * @property poolManagementType The pool management type of the session pool.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property scaleConfiguration The scale configuration of the session pool.
 * @property secrets The secrets of the session pool.
 * @property sessionNetworkConfiguration The network configuration of the sessions in the session pool.
 * @property sessionPoolName Name of the session pool.
 * @property tags Resource tags.
 */
public data class ContainerAppsSessionPoolArgs(
    public val containerType: Output>? = null,
    public val customContainerTemplate: Output? = null,
    public val dynamicPoolConfiguration: Output? = null,
    public val environmentId: Output? = null,
    public val location: Output? = null,
    public val poolManagementType: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val scaleConfiguration: Output? = null,
    public val secrets: Output>? = null,
    public val sessionNetworkConfiguration: Output? = null,
    public val sessionPoolName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.ContainerAppsSessionPoolArgs =
        com.pulumi.azurenative.app.ContainerAppsSessionPoolArgs.builder()
            .containerType(
                containerType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .customContainerTemplate(
                customContainerTemplate?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .dynamicPoolConfiguration(
                dynamicPoolConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .environmentId(environmentId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .poolManagementType(
                poolManagementType?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .scaleConfiguration(
                scaleConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .secrets(
                secrets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sessionNetworkConfiguration(
                sessionNetworkConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sessionPoolName(sessionPoolName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ContainerAppsSessionPoolArgs].
 */
@PulumiTagMarker
public class ContainerAppsSessionPoolArgsBuilder internal constructor() {
    private var containerType: Output>? = null

    private var customContainerTemplate: Output? = null

    private var dynamicPoolConfiguration: Output? = null

    private var environmentId: Output? = null

    private var location: Output? = null

    private var poolManagementType: Output>? = null

    private var resourceGroupName: Output? = null

    private var scaleConfiguration: Output? = null

    private var secrets: Output>? = null

    private var sessionNetworkConfiguration: Output? = null

    private var sessionPoolName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The container type of the sessions.
     */
    @JvmName("mundevfbdoxtmccx")
    public suspend fun containerType(`value`: Output>) {
        this.containerType = value
    }

    /**
     * @param value The custom container configuration if the containerType is CustomContainer.
     */
    @JvmName("typdcyswjbmgirfy")
    public suspend fun customContainerTemplate(`value`: Output) {
        this.customContainerTemplate = value
    }

    /**
     * @param value The pool configuration if the poolManagementType is dynamic.
     */
    @JvmName("bytmfakesuuxvoao")
    public suspend fun dynamicPoolConfiguration(`value`: Output) {
        this.dynamicPoolConfiguration = value
    }

    /**
     * @param value Resource ID of the session pool's environment.
     */
    @JvmName("kcshvkwbshjoawng")
    public suspend fun environmentId(`value`: Output) {
        this.environmentId = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("xyyvhewykvfaxxly")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The pool management type of the session pool.
     */
    @JvmName("rigyftcbgkdevqfc")
    public suspend fun poolManagementType(`value`: Output>) {
        this.poolManagementType = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("ppmgbupbljebgxcj")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The scale configuration of the session pool.
     */
    @JvmName("hrhgkvqwvkqqobmf")
    public suspend fun scaleConfiguration(`value`: Output) {
        this.scaleConfiguration = value
    }

    /**
     * @param value The secrets of the session pool.
     */
    @JvmName("hiyeggudoswnuxgp")
    public suspend fun secrets(`value`: Output>) {
        this.secrets = value
    }

    @JvmName("rdqflvjykeqadmcx")
    public suspend fun secrets(vararg values: Output) {
        this.secrets = Output.all(values.asList())
    }

    /**
     * @param values The secrets of the session pool.
     */
    @JvmName("uodbescxxrukkgrd")
    public suspend fun secrets(values: List>) {
        this.secrets = Output.all(values)
    }

    /**
     * @param value The network configuration of the sessions in the session pool.
     */
    @JvmName("nqodmjsdnboduhhr")
    public suspend fun sessionNetworkConfiguration(`value`: Output) {
        this.sessionNetworkConfiguration = value
    }

    /**
     * @param value Name of the session pool.
     */
    @JvmName("wuxirhipnysxghbg")
    public suspend fun sessionPoolName(`value`: Output) {
        this.sessionPoolName = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("pcsrnvocpaoqnrpr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The container type of the sessions.
     */
    @JvmName("kykcaxvgounmnlmj")
    public suspend fun containerType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerType = mapped
    }

    /**
     * @param value The container type of the sessions.
     */
    @JvmName("dsghodhcyvxtyneu")
    public fun containerType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerType = mapped
    }

    /**
     * @param value The container type of the sessions.
     */
    @JvmName("agnqtxgqtaaqmhci")
    public fun containerType(`value`: ContainerType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerType = mapped
    }

    /**
     * @param value The custom container configuration if the containerType is CustomContainer.
     */
    @JvmName("uqvlptcivnrpdmmg")
    public suspend fun customContainerTemplate(`value`: CustomContainerTemplateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customContainerTemplate = mapped
    }

    /**
     * @param argument The custom container configuration if the containerType is CustomContainer.
     */
    @JvmName("nkyspjjcfwrpyvux")
    public suspend fun customContainerTemplate(argument: suspend CustomContainerTemplateArgsBuilder.() -> Unit) {
        val toBeMapped = CustomContainerTemplateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customContainerTemplate = mapped
    }

    /**
     * @param value The pool configuration if the poolManagementType is dynamic.
     */
    @JvmName("mjbwqnvhedapdiap")
    public suspend fun dynamicPoolConfiguration(`value`: DynamicPoolConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dynamicPoolConfiguration = mapped
    }

    /**
     * @param argument The pool configuration if the poolManagementType is dynamic.
     */
    @JvmName("mchhffjhxfqmegxt")
    public suspend fun dynamicPoolConfiguration(argument: suspend DynamicPoolConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DynamicPoolConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dynamicPoolConfiguration = mapped
    }

    /**
     * @param value Resource ID of the session pool's environment.
     */
    @JvmName("qqmkdhgmdujjnxkg")
    public suspend fun environmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentId = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("xaaixjiaovfwemoe")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The pool management type of the session pool.
     */
    @JvmName("qdsjjbhwjgrsfjqi")
    public suspend fun poolManagementType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.poolManagementType = mapped
    }

    /**
     * @param value The pool management type of the session pool.
     */
    @JvmName("rggeglbpwaxvbxhq")
    public fun poolManagementType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.poolManagementType = mapped
    }

    /**
     * @param value The pool management type of the session pool.
     */
    @JvmName("ervwcvkfjkklgioo")
    public fun poolManagementType(`value`: PoolManagementType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.poolManagementType = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("lyampqjpljcovsxt")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The scale configuration of the session pool.
     */
    @JvmName("uwysnrowrwxyuhcd")
    public suspend fun scaleConfiguration(`value`: ScaleConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scaleConfiguration = mapped
    }

    /**
     * @param argument The scale configuration of the session pool.
     */
    @JvmName("mwlibpgydeoijbku")
    public suspend fun scaleConfiguration(argument: suspend ScaleConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ScaleConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.scaleConfiguration = mapped
    }

    /**
     * @param value The secrets of the session pool.
     */
    @JvmName("adkqbsnpuqrnsydf")
    public suspend fun secrets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secrets = mapped
    }

    /**
     * @param argument The secrets of the session pool.
     */
    @JvmName("cbklcqjymppatxme")
    public suspend fun secrets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SessionPoolSecretArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param argument The secrets of the session pool.
     */
    @JvmName("gbqjxgtdkpovurgc")
    public suspend fun secrets(vararg argument: suspend SessionPoolSecretArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SessionPoolSecretArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param argument The secrets of the session pool.
     */
    @JvmName("vsbtvuxciukwpywi")
    public suspend fun secrets(argument: suspend SessionPoolSecretArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SessionPoolSecretArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param values The secrets of the session pool.
     */
    @JvmName("rumsdbnssqobrvso")
    public suspend fun secrets(vararg values: SessionPoolSecretArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secrets = mapped
    }

    /**
     * @param value The network configuration of the sessions in the session pool.
     */
    @JvmName("nmisiodunumdgjww")
    public suspend fun sessionNetworkConfiguration(`value`: SessionNetworkConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sessionNetworkConfiguration = mapped
    }

    /**
     * @param argument The network configuration of the sessions in the session pool.
     */
    @JvmName("dtnvpggkobroscwd")
    public suspend fun sessionNetworkConfiguration(argument: suspend SessionNetworkConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = SessionNetworkConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sessionNetworkConfiguration = mapped
    }

    /**
     * @param value Name of the session pool.
     */
    @JvmName("owbbqaxngodbakyy")
    public suspend fun sessionPoolName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sessionPoolName = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("gmxeqiexcwrbjdwi")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("qinudwftpjvcbmtg")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ContainerAppsSessionPoolArgs = ContainerAppsSessionPoolArgs(
        containerType = containerType,
        customContainerTemplate = customContainerTemplate,
        dynamicPoolConfiguration = dynamicPoolConfiguration,
        environmentId = environmentId,
        location = location,
        poolManagementType = poolManagementType,
        resourceGroupName = resourceGroupName,
        scaleConfiguration = scaleConfiguration,
        secrets = secrets,
        sessionNetworkConfiguration = sessionNetworkConfiguration,
        sessionPoolName = sessionPoolName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy