Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.servicefabric.kotlin.ManagedClusterArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.servicefabric.kotlin
import com.pulumi.azure.servicefabric.ManagedClusterArgs.builder
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterAuthenticationArgs
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterAuthenticationArgsBuilder
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterCustomFabricSettingArgs
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterCustomFabricSettingArgsBuilder
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterLbRuleArgs
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterLbRuleArgsBuilder
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterNodeTypeArgs
import com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterNodeTypeArgsBuilder
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.Int
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 a Resource Group.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.servicefabric.ManagedCluster("example", {
* name: "example",
* resourceGroupName: "example",
* location: "West Europe",
* httpGatewayPort: 4567,
* lbRules: [{
* backendPort: 38080,
* frontendPort: 80,
* probeProtocol: "http",
* probeRequestPath: "/test",
* protocol: "tcp",
* }],
* clientConnectionPort: 12345,
* nodeTypes: [{
* dataDiskSizeGb: 130,
* name: "test1",
* primary: true,
* applicationPortRange: "30000-49000",
* ephemeralPortRange: "10000-20000",
* vmSize: "Standard_DS1_v2",
* vmImagePublisher: "MicrosoftWindowsServer",
* vmImageSku: "2019-Datacenter-with-Containers",
* vmImageOffer: "WindowsServer",
* vmImageVersion: "latest",
* vmInstanceCount: 5,
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.servicefabric.ManagedCluster("example",
* name="example",
* resource_group_name="example",
* location="West Europe",
* http_gateway_port=4567,
* lb_rules=[azure.servicefabric.ManagedClusterLbRuleArgs(
* backend_port=38080,
* frontend_port=80,
* probe_protocol="http",
* probe_request_path="/test",
* protocol="tcp",
* )],
* client_connection_port=12345,
* node_types=[azure.servicefabric.ManagedClusterNodeTypeArgs(
* data_disk_size_gb=130,
* name="test1",
* primary=True,
* application_port_range="30000-49000",
* ephemeral_port_range="10000-20000",
* vm_size="Standard_DS1_v2",
* vm_image_publisher="MicrosoftWindowsServer",
* vm_image_sku="2019-Datacenter-with-Containers",
* vm_image_offer="WindowsServer",
* vm_image_version="latest",
* vm_instance_count=5,
* )])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.ServiceFabric.ManagedCluster("example", new()
* {
* Name = "example",
* ResourceGroupName = "example",
* Location = "West Europe",
* HttpGatewayPort = 4567,
* LbRules = new[]
* {
* new Azure.ServiceFabric.Inputs.ManagedClusterLbRuleArgs
* {
* BackendPort = 38080,
* FrontendPort = 80,
* ProbeProtocol = "http",
* ProbeRequestPath = "/test",
* Protocol = "tcp",
* },
* },
* ClientConnectionPort = 12345,
* NodeTypes = new[]
* {
* new Azure.ServiceFabric.Inputs.ManagedClusterNodeTypeArgs
* {
* DataDiskSizeGb = 130,
* Name = "test1",
* Primary = true,
* ApplicationPortRange = "30000-49000",
* EphemeralPortRange = "10000-20000",
* VmSize = "Standard_DS1_v2",
* VmImagePublisher = "MicrosoftWindowsServer",
* VmImageSku = "2019-Datacenter-with-Containers",
* VmImageOffer = "WindowsServer",
* VmImageVersion = "latest",
* VmInstanceCount = 5,
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/servicefabric"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := servicefabric.NewManagedCluster(ctx, "example", &servicefabric.ManagedClusterArgs{
* Name: pulumi.String("example"),
* ResourceGroupName: pulumi.String("example"),
* Location: pulumi.String("West Europe"),
* HttpGatewayPort: pulumi.Int(4567),
* LbRules: servicefabric.ManagedClusterLbRuleArray{
* &servicefabric.ManagedClusterLbRuleArgs{
* BackendPort: pulumi.Int(38080),
* FrontendPort: pulumi.Int(80),
* ProbeProtocol: pulumi.String("http"),
* ProbeRequestPath: pulumi.String("/test"),
* Protocol: pulumi.String("tcp"),
* },
* },
* ClientConnectionPort: pulumi.Int(12345),
* NodeTypes: servicefabric.ManagedClusterNodeTypeArray{
* &servicefabric.ManagedClusterNodeTypeArgs{
* DataDiskSizeGb: pulumi.Int(130),
* Name: pulumi.String("test1"),
* Primary: pulumi.Bool(true),
* ApplicationPortRange: pulumi.String("30000-49000"),
* EphemeralPortRange: pulumi.String("10000-20000"),
* VmSize: pulumi.String("Standard_DS1_v2"),
* VmImagePublisher: pulumi.String("MicrosoftWindowsServer"),
* VmImageSku: pulumi.String("2019-Datacenter-with-Containers"),
* VmImageOffer: pulumi.String("WindowsServer"),
* VmImageVersion: pulumi.String("latest"),
* VmInstanceCount: pulumi.Int(5),
* },
* },
* })
* 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.servicefabric.ManagedCluster;
* import com.pulumi.azure.servicefabric.ManagedClusterArgs;
* import com.pulumi.azure.servicefabric.inputs.ManagedClusterLbRuleArgs;
* import com.pulumi.azure.servicefabric.inputs.ManagedClusterNodeTypeArgs;
* 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 ManagedCluster("example", ManagedClusterArgs.builder()
* .name("example")
* .resourceGroupName("example")
* .location("West Europe")
* .httpGatewayPort(4567)
* .lbRules(ManagedClusterLbRuleArgs.builder()
* .backendPort(38080)
* .frontendPort(80)
* .probeProtocol("http")
* .probeRequestPath("/test")
* .protocol("tcp")
* .build())
* .clientConnectionPort(12345)
* .nodeTypes(ManagedClusterNodeTypeArgs.builder()
* .dataDiskSizeGb(130)
* .name("test1")
* .primary(true)
* .applicationPortRange("30000-49000")
* .ephemeralPortRange("10000-20000")
* .vmSize("Standard_DS1_v2")
* .vmImagePublisher("MicrosoftWindowsServer")
* .vmImageSku("2019-Datacenter-with-Containers")
* .vmImageOffer("WindowsServer")
* .vmImageVersion("latest")
* .vmInstanceCount(5)
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:servicefabric:ManagedCluster
* properties:
* name: example
* resourceGroupName: example
* location: West Europe
* httpGatewayPort: 4567
* lbRules:
* - backendPort: 38080
* frontendPort: 80
* probeProtocol: http
* probeRequestPath: /test
* protocol: tcp
* clientConnectionPort: 12345
* nodeTypes:
* - dataDiskSizeGb: 130
* name: test1
* primary: true
* applicationPortRange: 30000-49000
* ephemeralPortRange: 10000-20000
* vmSize: Standard_DS1_v2
* vmImagePublisher: MicrosoftWindowsServer
* vmImageSku: 2019-Datacenter-with-Containers
* vmImageOffer: WindowsServer
* vmImageVersion: latest
* vmInstanceCount: 5
* ```
*
* ## Import
* Resource Groups can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:servicefabric/managedCluster:ManagedCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ServiceFabric/managedClusters/clusterName1
* ```
* @property authentication Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
* @property backupServiceEnabled If true, backup service is enabled.
* @property clientConnectionPort Port to use when connecting to the cluster.
* @property customFabricSettings One or more `custom_fabric_setting` blocks as defined below.
* @property dnsName Hostname for the cluster. If unset the cluster's name will be used..
* @property dnsServiceEnabled If true, DNS service is enabled.
* @property httpGatewayPort Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
* @property lbRules One or more `lb_rule` blocks as defined below.
* @property location The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.
* @property name The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.
* @property nodeTypes One or more `node_type` blocks as defined below.
* @property password Administrator password for the VMs that will be created as part of this cluster.
* @property resourceGroupName The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
* @property sku SKU for this cluster. Changing this forces a new resource to be created. Default is `Basic`, allowed values are either `Basic` or `Standard`.
* @property tags A mapping of tags which should be assigned to the Resource Group.
* @property upgradeWave Upgrade wave for the fabric runtime. Default is `Wave0`, allowed value must be one of `Wave0`, `Wave1`, or `Wave2`.
* @property username Administrator password for the VMs that will be created as part of this cluster.
*/
public data class ManagedClusterArgs(
public val authentication: Output? = null,
public val backupServiceEnabled: Output? = null,
public val clientConnectionPort: Output? = null,
public val customFabricSettings: Output>? = null,
public val dnsName: Output? = null,
public val dnsServiceEnabled: Output? = null,
public val httpGatewayPort: Output? = null,
public val lbRules: Output>? = null,
public val location: Output? = null,
public val name: Output? = null,
public val nodeTypes: Output>? = null,
public val password: Output? = null,
public val resourceGroupName: Output? = null,
public val sku: Output? = null,
public val tags: Output>? = null,
public val upgradeWave: Output? = null,
public val username: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.servicefabric.ManagedClusterArgs =
com.pulumi.azure.servicefabric.ManagedClusterArgs.builder()
.authentication(authentication?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.backupServiceEnabled(backupServiceEnabled?.applyValue({ args0 -> args0 }))
.clientConnectionPort(clientConnectionPort?.applyValue({ args0 -> args0 }))
.customFabricSettings(
customFabricSettings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.dnsName(dnsName?.applyValue({ args0 -> args0 }))
.dnsServiceEnabled(dnsServiceEnabled?.applyValue({ args0 -> args0 }))
.httpGatewayPort(httpGatewayPort?.applyValue({ args0 -> args0 }))
.lbRules(
lbRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.nodeTypes(
nodeTypes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.password(password?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.sku(sku?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.upgradeWave(upgradeWave?.applyValue({ args0 -> args0 }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ManagedClusterArgs].
*/
@PulumiTagMarker
public class ManagedClusterArgsBuilder internal constructor() {
private var authentication: Output? = null
private var backupServiceEnabled: Output? = null
private var clientConnectionPort: Output? = null
private var customFabricSettings: Output>? = null
private var dnsName: Output? = null
private var dnsServiceEnabled: Output? = null
private var httpGatewayPort: Output? = null
private var lbRules: Output>? = null
private var location: Output? = null
private var name: Output? = null
private var nodeTypes: Output>? = null
private var password: Output? = null
private var resourceGroupName: Output? = null
private var sku: Output? = null
private var tags: Output>? = null
private var upgradeWave: Output? = null
private var username: Output? = null
/**
* @param value Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
*/
@JvmName("owikcptxgiwuggdp")
public suspend fun authentication(`value`: Output) {
this.authentication = value
}
/**
* @param value If true, backup service is enabled.
*/
@JvmName("nsnlhvluyusplcuu")
public suspend fun backupServiceEnabled(`value`: Output) {
this.backupServiceEnabled = value
}
/**
* @param value Port to use when connecting to the cluster.
*/
@JvmName("nuourhibfqwvnscl")
public suspend fun clientConnectionPort(`value`: Output) {
this.clientConnectionPort = value
}
/**
* @param value One or more `custom_fabric_setting` blocks as defined below.
*/
@JvmName("boanssgehmpracnw")
public suspend
fun customFabricSettings(`value`: Output>) {
this.customFabricSettings = value
}
@JvmName("nmiiryooaootwmyo")
public suspend fun customFabricSettings(
vararg
values: Output,
) {
this.customFabricSettings = Output.all(values.asList())
}
/**
* @param values One or more `custom_fabric_setting` blocks as defined below.
*/
@JvmName("rppvdnyyrqaytghr")
public suspend
fun customFabricSettings(values: List>) {
this.customFabricSettings = Output.all(values)
}
/**
* @param value Hostname for the cluster. If unset the cluster's name will be used..
*/
@JvmName("diucwyxrwbdcbbxe")
public suspend fun dnsName(`value`: Output) {
this.dnsName = value
}
/**
* @param value If true, DNS service is enabled.
*/
@JvmName("dlgbgdipgeybvyiy")
public suspend fun dnsServiceEnabled(`value`: Output) {
this.dnsServiceEnabled = value
}
/**
* @param value Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
*/
@JvmName("lnqdjdrenbvxxwkd")
public suspend fun httpGatewayPort(`value`: Output) {
this.httpGatewayPort = value
}
/**
* @param value One or more `lb_rule` blocks as defined below.
*/
@JvmName("achmqfkegbkdhcbm")
public suspend fun lbRules(`value`: Output>) {
this.lbRules = value
}
@JvmName("jhhybktaqfmblgki")
public suspend fun lbRules(vararg values: Output) {
this.lbRules = Output.all(values.asList())
}
/**
* @param values One or more `lb_rule` blocks as defined below.
*/
@JvmName("cxweorkdjapnellu")
public suspend fun lbRules(values: List>) {
this.lbRules = Output.all(values)
}
/**
* @param value The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.
*/
@JvmName("xelgweseirderdve")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.
*/
@JvmName("yheyugrbgmumkqdq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value One or more `node_type` blocks as defined below.
*/
@JvmName("funahefcehuyexwj")
public suspend fun nodeTypes(`value`: Output>) {
this.nodeTypes = value
}
@JvmName("sbcvpfimugekuavu")
public suspend fun nodeTypes(vararg values: Output) {
this.nodeTypes = Output.all(values.asList())
}
/**
* @param values One or more `node_type` blocks as defined below.
*/
@JvmName("jfwpcaixavmothyq")
public suspend fun nodeTypes(values: List>) {
this.nodeTypes = Output.all(values)
}
/**
* @param value Administrator password for the VMs that will be created as part of this cluster.
*/
@JvmName("ebmurwvomuhbeyek")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
*/
@JvmName("xthvxwyyvmtwcifm")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value SKU for this cluster. Changing this forces a new resource to be created. Default is `Basic`, allowed values are either `Basic` or `Standard`.
*/
@JvmName("gaehgkjmjeiohmyk")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value A mapping of tags which should be assigned to the Resource Group.
*/
@JvmName("bkqrokpaqnrylgft")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Upgrade wave for the fabric runtime. Default is `Wave0`, allowed value must be one of `Wave0`, `Wave1`, or `Wave2`.
*/
@JvmName("kaftpvhddtgnnwwo")
public suspend fun upgradeWave(`value`: Output) {
this.upgradeWave = value
}
/**
* @param value Administrator password for the VMs that will be created as part of this cluster.
*/
@JvmName("xfuojxdtphkfgnjv")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
*/
@JvmName("yuqrqdljopvjencj")
public suspend fun authentication(`value`: ManagedClusterAuthenticationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authentication = mapped
}
/**
* @param argument Controls how connections to the cluster are authenticated. A `authentication` block as defined below.
*/
@JvmName("nvbcrdnktuayelbd")
public suspend
fun authentication(argument: suspend ManagedClusterAuthenticationArgsBuilder.() -> Unit) {
val toBeMapped = ManagedClusterAuthenticationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.authentication = mapped
}
/**
* @param value If true, backup service is enabled.
*/
@JvmName("nxwyyhwbexhxgouh")
public suspend fun backupServiceEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupServiceEnabled = mapped
}
/**
* @param value Port to use when connecting to the cluster.
*/
@JvmName("qxtqpgatnmbugxrn")
public suspend fun clientConnectionPort(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientConnectionPort = mapped
}
/**
* @param value One or more `custom_fabric_setting` blocks as defined below.
*/
@JvmName("tbbgkhvakqyoidjk")
public suspend fun customFabricSettings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customFabricSettings = mapped
}
/**
* @param argument One or more `custom_fabric_setting` blocks as defined below.
*/
@JvmName("qbvdqjbnxcikxdhn")
public suspend
fun customFabricSettings(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ManagedClusterCustomFabricSettingArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.customFabricSettings = mapped
}
/**
* @param argument One or more `custom_fabric_setting` blocks as defined below.
*/
@JvmName("ivxpsihmwypvmrjs")
public suspend fun customFabricSettings(
vararg
argument: suspend ManagedClusterCustomFabricSettingArgsBuilder.() -> Unit,
) {
val toBeMapped = argument.toList().map {
ManagedClusterCustomFabricSettingArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.customFabricSettings = mapped
}
/**
* @param argument One or more `custom_fabric_setting` blocks as defined below.
*/
@JvmName("giyresxitxykthac")
public suspend
fun customFabricSettings(argument: suspend ManagedClusterCustomFabricSettingArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
ManagedClusterCustomFabricSettingArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.customFabricSettings = mapped
}
/**
* @param values One or more `custom_fabric_setting` blocks as defined below.
*/
@JvmName("pwxhdumyjcwqqvlm")
public suspend fun customFabricSettings(vararg values: ManagedClusterCustomFabricSettingArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.customFabricSettings = mapped
}
/**
* @param value Hostname for the cluster. If unset the cluster's name will be used..
*/
@JvmName("mcfuedaqdilfpmxe")
public suspend fun dnsName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dnsName = mapped
}
/**
* @param value If true, DNS service is enabled.
*/
@JvmName("xmajgstnbwgyyvkp")
public suspend fun dnsServiceEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dnsServiceEnabled = mapped
}
/**
* @param value Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
*/
@JvmName("oxlyggaswmeiqaue")
public suspend fun httpGatewayPort(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpGatewayPort = mapped
}
/**
* @param value One or more `lb_rule` blocks as defined below.
*/
@JvmName("qjtxxsxqraotoqwe")
public suspend fun lbRules(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.lbRules = mapped
}
/**
* @param argument One or more `lb_rule` blocks as defined below.
*/
@JvmName("mvhxqnykoarhgwpw")
public suspend fun lbRules(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ManagedClusterLbRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.lbRules = mapped
}
/**
* @param argument One or more `lb_rule` blocks as defined below.
*/
@JvmName("isdytmolwauirokk")
public suspend fun lbRules(vararg argument: suspend ManagedClusterLbRuleArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ManagedClusterLbRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.lbRules = mapped
}
/**
* @param argument One or more `lb_rule` blocks as defined below.
*/
@JvmName("tnqhdotigfeooehw")
public suspend fun lbRules(argument: suspend ManagedClusterLbRuleArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ManagedClusterLbRuleArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.lbRules = mapped
}
/**
* @param values One or more `lb_rule` blocks as defined below.
*/
@JvmName("cuykjpjomabdecku")
public suspend fun lbRules(vararg values: ManagedClusterLbRuleArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lbRules = mapped
}
/**
* @param value The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.
*/
@JvmName("looixnmwfefwmkln")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.
*/
@JvmName("kdldgllvhlqbwfxu")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value One or more `node_type` blocks as defined below.
*/
@JvmName("rsrbeljjsebebkve")
public suspend fun nodeTypes(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nodeTypes = mapped
}
/**
* @param argument One or more `node_type` blocks as defined below.
*/
@JvmName("rktxujlqjufixste")
public suspend
fun nodeTypes(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ManagedClusterNodeTypeArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.nodeTypes = mapped
}
/**
* @param argument One or more `node_type` blocks as defined below.
*/
@JvmName("fejohxwtkjqsavhp")
public suspend fun nodeTypes(
vararg
argument: suspend ManagedClusterNodeTypeArgsBuilder.() -> Unit,
) {
val toBeMapped = argument.toList().map {
ManagedClusterNodeTypeArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.nodeTypes = mapped
}
/**
* @param argument One or more `node_type` blocks as defined below.
*/
@JvmName("dogbosvgcsqhoxes")
public suspend fun nodeTypes(argument: suspend ManagedClusterNodeTypeArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ManagedClusterNodeTypeArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.nodeTypes = mapped
}
/**
* @param values One or more `node_type` blocks as defined below.
*/
@JvmName("wvdeoobindhlmvnk")
public suspend fun nodeTypes(vararg values: ManagedClusterNodeTypeArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.nodeTypes = mapped
}
/**
* @param value Administrator password for the VMs that will be created as part of this cluster.
*/
@JvmName("oniuqeefvetmenkb")
public suspend fun password(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
*/
@JvmName("rhffvgawftmlkmur")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value SKU for this cluster. Changing this forces a new resource to be created. Default is `Basic`, allowed values are either `Basic` or `Standard`.
*/
@JvmName("loytytxriarcwneo")
public suspend fun sku(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value A mapping of tags which should be assigned to the Resource Group.
*/
@JvmName("iyacsdeyntuvrngk")
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 which should be assigned to the Resource Group.
*/
@JvmName("urwnlpedmddkpfwf")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Upgrade wave for the fabric runtime. Default is `Wave0`, allowed value must be one of `Wave0`, `Wave1`, or `Wave2`.
*/
@JvmName("frokaseboyuomejm")
public suspend fun upgradeWave(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upgradeWave = mapped
}
/**
* @param value Administrator password for the VMs that will be created as part of this cluster.
*/
@JvmName("apkqtexvkenqrfmd")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): ManagedClusterArgs = ManagedClusterArgs(
authentication = authentication,
backupServiceEnabled = backupServiceEnabled,
clientConnectionPort = clientConnectionPort,
customFabricSettings = customFabricSettings,
dnsName = dnsName,
dnsServiceEnabled = dnsServiceEnabled,
httpGatewayPort = httpGatewayPort,
lbRules = lbRules,
location = location,
name = name,
nodeTypes = nodeTypes,
password = password,
resourceGroupName = resourceGroupName,
sku = sku,
tags = tags,
upgradeWave = upgradeWave,
username = username,
)
}