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

com.pulumi.azure.appplatform.kotlin.SpringCloudServiceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.appplatform.kotlin

import com.pulumi.azure.appplatform.SpringCloudServiceArgs.builder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceConfigServerGitSettingArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceConfigServerGitSettingArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceContainerRegistryArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceContainerRegistryArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceDefaultBuildServiceArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceDefaultBuildServiceArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceMarketplaceArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceMarketplaceArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceNetworkArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceNetworkArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceTraceArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceTraceArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Azure Spring Cloud Service.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleInsights = new azure.appinsights.Insights("example", {
 *     name: "tf-test-appinsights",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     applicationType: "web",
 * });
 * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
 *     name: "example-springcloud",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     skuName: "S0",
 *     configServerGitSetting: {
 *         uri: "https://github.com/Azure-Samples/piggymetrics",
 *         label: "config",
 *         searchPaths: [
 *             "dir1",
 *             "dir2",
 *         ],
 *     },
 *     trace: {
 *         connectionString: exampleInsights.connectionString,
 *         sampleRate: 10,
 *     },
 *     tags: {
 *         Env: "staging",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_insights = azure.appinsights.Insights("example",
 *     name="tf-test-appinsights",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     application_type="web")
 * example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
 *     name="example-springcloud",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     sku_name="S0",
 *     config_server_git_setting=azure.appplatform.SpringCloudServiceConfigServerGitSettingArgs(
 *         uri="https://github.com/Azure-Samples/piggymetrics",
 *         label="config",
 *         search_paths=[
 *             "dir1",
 *             "dir2",
 *         ],
 *     ),
 *     trace=azure.appplatform.SpringCloudServiceTraceArgs(
 *         connection_string=example_insights.connection_string,
 *         sample_rate=10,
 *     ),
 *     tags={
 *         "Env": "staging",
 *     })
 * ```
 * ```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 = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleInsights = new Azure.AppInsights.Insights("example", new()
 *     {
 *         Name = "tf-test-appinsights",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         ApplicationType = "web",
 *     });
 *     var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
 *     {
 *         Name = "example-springcloud",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         SkuName = "S0",
 *         ConfigServerGitSetting = new Azure.AppPlatform.Inputs.SpringCloudServiceConfigServerGitSettingArgs
 *         {
 *             Uri = "https://github.com/Azure-Samples/piggymetrics",
 *             Label = "config",
 *             SearchPaths = new[]
 *             {
 *                 "dir1",
 *                 "dir2",
 *             },
 *         },
 *         Trace = new Azure.AppPlatform.Inputs.SpringCloudServiceTraceArgs
 *         {
 *             ConnectionString = exampleInsights.ConnectionString,
 *             SampleRate = 10,
 *         },
 *         Tags =
 *         {
 *             { "Env", "staging" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appplatform"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"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("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
 * 			Name:              pulumi.String("tf-test-appinsights"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			ApplicationType:   pulumi.String("web"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
 * 			Name:              pulumi.String("example-springcloud"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			SkuName:           pulumi.String("S0"),
 * 			ConfigServerGitSetting: &appplatform.SpringCloudServiceConfigServerGitSettingArgs{
 * 				Uri:   pulumi.String("https://github.com/Azure-Samples/piggymetrics"),
 * 				Label: pulumi.String("config"),
 * 				SearchPaths: pulumi.StringArray{
 * 					pulumi.String("dir1"),
 * 					pulumi.String("dir2"),
 * 				},
 * 			},
 * 			Trace: &appplatform.SpringCloudServiceTraceArgs{
 * 				ConnectionString: exampleInsights.ConnectionString,
 * 				SampleRate:       pulumi.Float64(10),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"Env": pulumi.String("staging"),
 * 			},
 * 		})
 * 		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.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * import com.pulumi.azure.appplatform.SpringCloudService;
 * import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
 * import com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingArgs;
 * import com.pulumi.azure.appplatform.inputs.SpringCloudServiceTraceArgs;
 * 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("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("tf-test-appinsights")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 *         var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
 *             .name("example-springcloud")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .skuName("S0")
 *             .configServerGitSetting(SpringCloudServiceConfigServerGitSettingArgs.builder()
 *                 .uri("https://github.com/Azure-Samples/piggymetrics")
 *                 .label("config")
 *                 .searchPaths(
 *                     "dir1",
 *                     "dir2")
 *                 .build())
 *             .trace(SpringCloudServiceTraceArgs.builder()
 *                 .connectionString(exampleInsights.connectionString())
 *                 .sampleRate(10)
 *                 .build())
 *             .tags(Map.of("Env", "staging"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleInsights:
 *     type: azure:appinsights:Insights
 *     name: example
 *     properties:
 *       name: tf-test-appinsights
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       applicationType: web
 *   exampleSpringCloudService:
 *     type: azure:appplatform:SpringCloudService
 *     name: example
 *     properties:
 *       name: example-springcloud
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       skuName: S0
 *       configServerGitSetting:
 *         uri: https://github.com/Azure-Samples/piggymetrics
 *         label: config
 *         searchPaths:
 *           - dir1
 *           - dir2
 *       trace:
 *         connectionString: ${exampleInsights.connectionString}
 *         sampleRate: 10
 *       tags:
 *         Env: staging
 * ```
 * 
 * ## Import
 * Spring Cloud services can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:appplatform/springCloudService:SpringCloudService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AppPlatform/spring/spring1
 * ```
 * @property buildAgentPoolSize Specifies the size for this Spring Cloud Service's default build agent pool. Possible values are `S1`, `S2`, `S3`, `S4` and `S5`. This field is applicable only for Spring Cloud Service with enterprise tier.
 * @property configServerGitSetting A `config_server_git_setting` block as defined below. This field is applicable only for Spring Cloud Service with basic and standard tier.
 * @property containerRegistries One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
 * @property defaultBuildService A `default_build_service` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property logStreamPublicEndpointEnabled Should the log stream in vnet injection instance could be accessed from Internet?
 * @property managedEnvironmentId The resource Id of the Managed Environment that the Spring Apps instance builds on. Can only be specified when `sku_tier` is set to `StandardGen2`.
 * @property marketplace A `marketplace` block as defined below. Can only be specified when `sku` is set to `E0`.
 * @property name Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
 * @property network A `network` block as defined below. Changing this forces a new resource to be created.
 * @property resourceGroupName Specifies The name of the resource group in which to create the Spring Cloud Service. Changing this forces a new resource to be created.
 * @property serviceRegistryEnabled Whether enable the default Service Registry. This field is applicable only for Spring Cloud Service with enterprise tier.
 * @property skuName Specifies the SKU Name for this Spring Cloud Service. Possible values are `B0`, `S0` and `E0`. Defaults to `S0`. Changing this forces a new resource to be created.
 * @property skuTier Specifies the SKU Tier for this Spring Cloud Service. Possible values are `Basic`, `Enterprise`, `Standard` and `StandardGen2`. The attribute is automatically computed from API response except when `managed_environment_id` is defined. Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the resource.
 * @property trace A `trace` block as defined below.
 * @property zoneRedundant Whether zone redundancy is enabled for this Spring Cloud Service. Defaults to `false`.
 */
public data class SpringCloudServiceArgs(
    public val buildAgentPoolSize: Output? = null,
    public val configServerGitSetting: Output? = null,
    public val containerRegistries: Output>? = null,
    public val defaultBuildService: Output? = null,
    public val location: Output? = null,
    public val logStreamPublicEndpointEnabled: Output? = null,
    public val managedEnvironmentId: Output? = null,
    public val marketplace: Output? = null,
    public val name: Output? = null,
    public val network: Output? = null,
    public val resourceGroupName: Output? = null,
    public val serviceRegistryEnabled: Output? = null,
    public val skuName: Output? = null,
    public val skuTier: Output? = null,
    public val tags: Output>? = null,
    public val trace: Output? = null,
    public val zoneRedundant: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appplatform.SpringCloudServiceArgs =
        com.pulumi.azure.appplatform.SpringCloudServiceArgs.builder()
            .buildAgentPoolSize(buildAgentPoolSize?.applyValue({ args0 -> args0 }))
            .configServerGitSetting(
                configServerGitSetting?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .containerRegistries(
                containerRegistries?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .defaultBuildService(
                defaultBuildService?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .logStreamPublicEndpointEnabled(logStreamPublicEndpointEnabled?.applyValue({ args0 -> args0 }))
            .managedEnvironmentId(managedEnvironmentId?.applyValue({ args0 -> args0 }))
            .marketplace(marketplace?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .serviceRegistryEnabled(serviceRegistryEnabled?.applyValue({ args0 -> args0 }))
            .skuName(skuName?.applyValue({ args0 -> args0 }))
            .skuTier(skuTier?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .trace(trace?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .zoneRedundant(zoneRedundant?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SpringCloudServiceArgs].
 */
@PulumiTagMarker
public class SpringCloudServiceArgsBuilder internal constructor() {
    private var buildAgentPoolSize: Output? = null

    private var configServerGitSetting: Output? = null

    private var containerRegistries: Output>? = null

    private var defaultBuildService: Output? = null

    private var location: Output? = null

    private var logStreamPublicEndpointEnabled: Output? = null

    private var managedEnvironmentId: Output? = null

    private var marketplace: Output? = null

    private var name: Output? = null

    private var network: Output? = null

    private var resourceGroupName: Output? = null

    private var serviceRegistryEnabled: Output? = null

    private var skuName: Output? = null

    private var skuTier: Output? = null

    private var tags: Output>? = null

    private var trace: Output? = null

    private var zoneRedundant: Output? = null

    /**
     * @param value Specifies the size for this Spring Cloud Service's default build agent pool. Possible values are `S1`, `S2`, `S3`, `S4` and `S5`. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("kpaunnvyooxsnfsu")
    public suspend fun buildAgentPoolSize(`value`: Output) {
        this.buildAgentPoolSize = value
    }

    /**
     * @param value A `config_server_git_setting` block as defined below. This field is applicable only for Spring Cloud Service with basic and standard tier.
     */
    @JvmName("kgtbjogtgnqcpwhf")
    public suspend
    fun configServerGitSetting(`value`: Output) {
        this.configServerGitSetting = value
    }

    /**
     * @param value One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("uwxelocqqwdyospf")
    public suspend
    fun containerRegistries(`value`: Output>) {
        this.containerRegistries = value
    }

    @JvmName("faitxvhafhbkpsno")
    public suspend fun containerRegistries(
        vararg
        values: Output,
    ) {
        this.containerRegistries = Output.all(values.asList())
    }

    /**
     * @param values One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("werucwgdesrgddke")
    public suspend
    fun containerRegistries(values: List>) {
        this.containerRegistries = Output.all(values)
    }

    /**
     * @param value A `default_build_service` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("ngxhiepoxlfnnnev")
    public suspend
    fun defaultBuildService(`value`: Output) {
        this.defaultBuildService = value
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("tauklvgmbpurhyle")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Should the log stream in vnet injection instance could be accessed from Internet?
     */
    @JvmName("wucivubphwwkgjah")
    public suspend fun logStreamPublicEndpointEnabled(`value`: Output) {
        this.logStreamPublicEndpointEnabled = value
    }

    /**
     * @param value The resource Id of the Managed Environment that the Spring Apps instance builds on. Can only be specified when `sku_tier` is set to `StandardGen2`.
     */
    @JvmName("gpsboacdenngxqwc")
    public suspend fun managedEnvironmentId(`value`: Output) {
        this.managedEnvironmentId = value
    }

    /**
     * @param value A `marketplace` block as defined below. Can only be specified when `sku` is set to `E0`.
     */
    @JvmName("keirmnqbiktaridm")
    public suspend fun marketplace(`value`: Output) {
        this.marketplace = value
    }

    /**
     * @param value Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
     */
    @JvmName("jphdvmsveutdqtjg")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `network` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("uwhxhvklnppopnyw")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value Specifies The name of the resource group in which to create the Spring Cloud Service. Changing this forces a new resource to be created.
     */
    @JvmName("elmghbbqcuedafqn")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Whether enable the default Service Registry. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("egopqkhpbandvats")
    public suspend fun serviceRegistryEnabled(`value`: Output) {
        this.serviceRegistryEnabled = value
    }

    /**
     * @param value Specifies the SKU Name for this Spring Cloud Service. Possible values are `B0`, `S0` and `E0`. Defaults to `S0`. Changing this forces a new resource to be created.
     */
    @JvmName("hjywuryttaatlhkm")
    public suspend fun skuName(`value`: Output) {
        this.skuName = value
    }

    /**
     * @param value Specifies the SKU Tier for this Spring Cloud Service. Possible values are `Basic`, `Enterprise`, `Standard` and `StandardGen2`. The attribute is automatically computed from API response except when `managed_environment_id` is defined. Changing this forces a new resource to be created.
     */
    @JvmName("ywimvomcsjtbbnwk")
    public suspend fun skuTier(`value`: Output) {
        this.skuTier = value
    }

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

    /**
     * @param value A `trace` block as defined below.
     */
    @JvmName("godpkhjnevyhubys")
    public suspend fun trace(`value`: Output) {
        this.trace = value
    }

    /**
     * @param value Whether zone redundancy is enabled for this Spring Cloud Service. Defaults to `false`.
     */
    @JvmName("lafbudvjvclwpeqv")
    public suspend fun zoneRedundant(`value`: Output) {
        this.zoneRedundant = value
    }

    /**
     * @param value Specifies the size for this Spring Cloud Service's default build agent pool. Possible values are `S1`, `S2`, `S3`, `S4` and `S5`. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("vtuqrtpwdncmddmu")
    public suspend fun buildAgentPoolSize(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.buildAgentPoolSize = mapped
    }

    /**
     * @param value A `config_server_git_setting` block as defined below. This field is applicable only for Spring Cloud Service with basic and standard tier.
     */
    @JvmName("jjijetguoxojhmvj")
    public suspend
    fun configServerGitSetting(`value`: SpringCloudServiceConfigServerGitSettingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configServerGitSetting = mapped
    }

    /**
     * @param argument A `config_server_git_setting` block as defined below. This field is applicable only for Spring Cloud Service with basic and standard tier.
     */
    @JvmName("lopexkwtcgmuflxg")
    public suspend
    fun configServerGitSetting(argument: suspend SpringCloudServiceConfigServerGitSettingArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudServiceConfigServerGitSettingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.configServerGitSetting = mapped
    }

    /**
     * @param value One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("aheikfpcjpxhlkml")
    public suspend fun containerRegistries(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerRegistries = mapped
    }

    /**
     * @param argument One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("muphhdpfjpgncsbx")
    public suspend
    fun containerRegistries(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpringCloudServiceContainerRegistryArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.containerRegistries = mapped
    }

    /**
     * @param argument One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("xabxqwaiyqaqaisy")
    public suspend fun containerRegistries(
        vararg
        argument: suspend SpringCloudServiceContainerRegistryArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            SpringCloudServiceContainerRegistryArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.containerRegistries = mapped
    }

    /**
     * @param argument One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("kelnjynxilgvfavq")
    public suspend
    fun containerRegistries(argument: suspend SpringCloudServiceContainerRegistryArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SpringCloudServiceContainerRegistryArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.containerRegistries = mapped
    }

    /**
     * @param values One or more `container_registry` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("rdqugbsxdwyacmur")
    public suspend fun containerRegistries(vararg values: SpringCloudServiceContainerRegistryArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerRegistries = mapped
    }

    /**
     * @param value A `default_build_service` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("mbhdudpchmcvvmax")
    public suspend fun defaultBuildService(`value`: SpringCloudServiceDefaultBuildServiceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultBuildService = mapped
    }

    /**
     * @param argument A `default_build_service` block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("pwifabnhuotkenca")
    public suspend
    fun defaultBuildService(argument: suspend SpringCloudServiceDefaultBuildServiceArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudServiceDefaultBuildServiceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.defaultBuildService = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("fsangfnncpgwhady")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Should the log stream in vnet injection instance could be accessed from Internet?
     */
    @JvmName("tjtepstmmndmtsdg")
    public suspend fun logStreamPublicEndpointEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logStreamPublicEndpointEnabled = mapped
    }

    /**
     * @param value The resource Id of the Managed Environment that the Spring Apps instance builds on. Can only be specified when `sku_tier` is set to `StandardGen2`.
     */
    @JvmName("lovrdafvfgbrtwod")
    public suspend fun managedEnvironmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedEnvironmentId = mapped
    }

    /**
     * @param value A `marketplace` block as defined below. Can only be specified when `sku` is set to `E0`.
     */
    @JvmName("dkgsafutnklouqpm")
    public suspend fun marketplace(`value`: SpringCloudServiceMarketplaceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.marketplace = mapped
    }

    /**
     * @param argument A `marketplace` block as defined below. Can only be specified when `sku` is set to `E0`.
     */
    @JvmName("lnwmsuqfgrqtgadq")
    public suspend
    fun marketplace(argument: suspend SpringCloudServiceMarketplaceArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudServiceMarketplaceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.marketplace = mapped
    }

    /**
     * @param value Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
     */
    @JvmName("fyorhfhqvxckpjoq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A `network` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("eysralrsgfqjfphj")
    public suspend fun network(`value`: SpringCloudServiceNetworkArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param argument A `network` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("jlvajduycmlxlvhf")
    public suspend fun network(argument: suspend SpringCloudServiceNetworkArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudServiceNetworkArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.network = mapped
    }

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

    /**
     * @param value Whether enable the default Service Registry. This field is applicable only for Spring Cloud Service with enterprise tier.
     */
    @JvmName("pjdaavxjrprnplhp")
    public suspend fun serviceRegistryEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceRegistryEnabled = mapped
    }

    /**
     * @param value Specifies the SKU Name for this Spring Cloud Service. Possible values are `B0`, `S0` and `E0`. Defaults to `S0`. Changing this forces a new resource to be created.
     */
    @JvmName("yxgmkjmcmiklynua")
    public suspend fun skuName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skuName = mapped
    }

    /**
     * @param value Specifies the SKU Tier for this Spring Cloud Service. Possible values are `Basic`, `Enterprise`, `Standard` and `StandardGen2`. The attribute is automatically computed from API response except when `managed_environment_id` is defined. Changing this forces a new resource to be created.
     */
    @JvmName("heihufmiqhqgwtsk")
    public suspend fun skuTier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skuTier = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("fqablxowsybqiiks")
    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("wxqtxgqixbwceoat")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A `trace` block as defined below.
     */
    @JvmName("rsbybbklfpckhonb")
    public suspend fun trace(`value`: SpringCloudServiceTraceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trace = mapped
    }

    /**
     * @param argument A `trace` block as defined below.
     */
    @JvmName("yidfxsuxjjamevxc")
    public suspend fun trace(argument: suspend SpringCloudServiceTraceArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudServiceTraceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.trace = mapped
    }

    /**
     * @param value Whether zone redundancy is enabled for this Spring Cloud Service. Defaults to `false`.
     */
    @JvmName("vaqmqmiiaqenvuns")
    public suspend fun zoneRedundant(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneRedundant = mapped
    }

    internal fun build(): SpringCloudServiceArgs = SpringCloudServiceArgs(
        buildAgentPoolSize = buildAgentPoolSize,
        configServerGitSetting = configServerGitSetting,
        containerRegistries = containerRegistries,
        defaultBuildService = defaultBuildService,
        location = location,
        logStreamPublicEndpointEnabled = logStreamPublicEndpointEnabled,
        managedEnvironmentId = managedEnvironmentId,
        marketplace = marketplace,
        name = name,
        network = network,
        resourceGroupName = resourceGroupName,
        serviceRegistryEnabled = serviceRegistryEnabled,
        skuName = skuName,
        skuTier = skuTier,
        tags = tags,
        trace = trace,
        zoneRedundant = zoneRedundant,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy