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.azurenative.kusto.kotlin.ClusterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.kusto.kotlin
import com.pulumi.azurenative.kusto.ClusterArgs.builder
import com.pulumi.azurenative.kusto.kotlin.enums.ClusterNetworkAccessFlag
import com.pulumi.azurenative.kusto.kotlin.enums.EngineType
import com.pulumi.azurenative.kusto.kotlin.enums.PublicIPType
import com.pulumi.azurenative.kusto.kotlin.enums.PublicNetworkAccess
import com.pulumi.azurenative.kusto.kotlin.inputs.AcceptedAudiencesArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.AcceptedAudiencesArgsBuilder
import com.pulumi.azurenative.kusto.kotlin.inputs.AzureSkuArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.AzureSkuArgsBuilder
import com.pulumi.azurenative.kusto.kotlin.inputs.IdentityArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.IdentityArgsBuilder
import com.pulumi.azurenative.kusto.kotlin.inputs.KeyVaultPropertiesArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.KeyVaultPropertiesArgsBuilder
import com.pulumi.azurenative.kusto.kotlin.inputs.LanguageExtensionsListArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.LanguageExtensionsListArgsBuilder
import com.pulumi.azurenative.kusto.kotlin.inputs.OptimizedAutoscaleArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.OptimizedAutoscaleArgsBuilder
import com.pulumi.azurenative.kusto.kotlin.inputs.TrustedExternalTenantArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.TrustedExternalTenantArgsBuilder
import com.pulumi.azurenative.kusto.kotlin.inputs.VirtualNetworkConfigurationArgs
import com.pulumi.azurenative.kusto.kotlin.inputs.VirtualNetworkConfigurationArgsBuilder
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.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
/**
* Class representing a Kusto cluster.
* Azure REST API version: 2022-12-29. Prior API version in Azure Native 1.x: 2021-01-01.
* Other available API versions: 2022-07-07, 2023-05-02, 2023-08-15.
* ## Example Usage
* ### KustoClustersCreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var cluster = new AzureNative.Kusto.Cluster("cluster", new()
* {
* AllowedIpRangeList = new[]
* {
* "0.0.0.0/0",
* },
* ClusterName = "kustoCluster",
* EnableAutoStop = true,
* EnableDoubleEncryption = false,
* EnablePurge = true,
* EnableStreamingIngest = true,
* Identity = new AzureNative.Kusto.Inputs.IdentityArgs
* {
* Type = AzureNative.Kusto.IdentityType.SystemAssigned,
* },
* LanguageExtensions = new AzureNative.Kusto.Inputs.LanguageExtensionsListArgs
* {
* Value = new[]
* {
* new AzureNative.Kusto.Inputs.LanguageExtensionArgs
* {
* LanguageExtensionImageName = AzureNative.Kusto.LanguageExtensionImageName.Python3_10_8,
* LanguageExtensionName = AzureNative.Kusto.LanguageExtensionName.PYTHON,
* },
* new AzureNative.Kusto.Inputs.LanguageExtensionArgs
* {
* LanguageExtensionImageName = AzureNative.Kusto.LanguageExtensionImageName.R,
* LanguageExtensionName = AzureNative.Kusto.LanguageExtensionName.R,
* },
* },
* },
* Location = "westus",
* PublicIPType = AzureNative.Kusto.PublicIPType.DualStack,
* PublicNetworkAccess = AzureNative.Kusto.PublicNetworkAccess.Enabled,
* ResourceGroupName = "kustorptest",
* Sku = new AzureNative.Kusto.Inputs.AzureSkuArgs
* {
* Capacity = 2,
* Name = AzureNative.Kusto.AzureSkuName.Standard_L16as_v3,
* Tier = AzureNative.Kusto.AzureSkuTier.Standard,
* },
* });
* });
* ```
* ```go
* package main
* import (
* kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := kusto.NewCluster(ctx, "cluster", &kusto.ClusterArgs{
* AllowedIpRangeList: pulumi.StringArray{
* pulumi.String("0.0.0.0/0"),
* },
* ClusterName: pulumi.String("kustoCluster"),
* EnableAutoStop: pulumi.Bool(true),
* EnableDoubleEncryption: pulumi.Bool(false),
* EnablePurge: pulumi.Bool(true),
* EnableStreamingIngest: pulumi.Bool(true),
* Identity: &kusto.IdentityArgs{
* Type: pulumi.String(kusto.IdentityTypeSystemAssigned),
* },
* LanguageExtensions: &kusto.LanguageExtensionsListArgs{
* Value: kusto.LanguageExtensionArray{
* &kusto.LanguageExtensionArgs{
* LanguageExtensionImageName: pulumi.String(kusto.LanguageExtensionImageName_Python3_10_8),
* LanguageExtensionName: pulumi.String(kusto.LanguageExtensionNamePYTHON),
* },
* &kusto.LanguageExtensionArgs{
* LanguageExtensionImageName: pulumi.String(kusto.LanguageExtensionImageNameR),
* LanguageExtensionName: pulumi.String(kusto.LanguageExtensionNameR),
* },
* },
* },
* Location: pulumi.String("westus"),
* PublicIPType: pulumi.String(kusto.PublicIPTypeDualStack),
* PublicNetworkAccess: pulumi.String(kusto.PublicNetworkAccessEnabled),
* ResourceGroupName: pulumi.String("kustorptest"),
* Sku: &kusto.AzureSkuArgs{
* Capacity: pulumi.Int(2),
* Name: pulumi.String(kusto.AzureSkuName_Standard_L16as_v3),
* Tier: pulumi.String(kusto.AzureSkuTierStandard),
* },
* })
* 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.kusto.Cluster;
* import com.pulumi.azurenative.kusto.ClusterArgs;
* import com.pulumi.azurenative.kusto.inputs.IdentityArgs;
* import com.pulumi.azurenative.kusto.inputs.LanguageExtensionsListArgs;
* import com.pulumi.azurenative.kusto.inputs.AzureSkuArgs;
* 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 cluster = new Cluster("cluster", ClusterArgs.builder()
* .allowedIpRangeList("0.0.0.0/0")
* .clusterName("kustoCluster")
* .enableAutoStop(true)
* .enableDoubleEncryption(false)
* .enablePurge(true)
* .enableStreamingIngest(true)
* .identity(IdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .languageExtensions(LanguageExtensionsListArgs.builder()
* .value(
* LanguageExtensionArgs.builder()
* .languageExtensionImageName("Python3_10_8")
* .languageExtensionName("PYTHON")
* .build(),
* LanguageExtensionArgs.builder()
* .languageExtensionImageName("R")
* .languageExtensionName("R")
* .build())
* .build())
* .location("westus")
* .publicIPType("DualStack")
* .publicNetworkAccess("Enabled")
* .resourceGroupName("kustorptest")
* .sku(AzureSkuArgs.builder()
* .capacity(2)
* .name("Standard_L16as_v3")
* .tier("Standard")
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:kusto:Cluster kustoCluster /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}
* ```
* @property acceptedAudiences The cluster's accepted audiences.
* @property allowedFqdnList List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
* @property allowedIpRangeList The list of ips in the format of CIDR allowed to connect to the cluster.
* @property clusterName The name of the Kusto cluster.
* @property enableAutoStop A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days).
* @property enableDiskEncryption A boolean value that indicates if the cluster's disks are encrypted.
* @property enableDoubleEncryption A boolean value that indicates if double encryption is enabled.
* @property enablePurge A boolean value that indicates if the purge operations are enabled.
* @property enableStreamingIngest A boolean value that indicates if the streaming ingest is enabled.
* @property engineType The engine type
* @property identity The identity of the cluster, if configured.
* @property keyVaultProperties KeyVault properties for the cluster encryption.
* @property languageExtensions List of the cluster's language extensions.
* @property location The geo-location where the resource lives
* @property optimizedAutoscale Optimized auto scale definition.
* @property publicIPType Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6)
* @property publicNetworkAccess Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed
* @property resourceGroupName The name of the resource group containing the Kusto cluster.
* @property restrictOutboundNetworkAccess Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
* @property sku The SKU of the cluster.
* @property tags Resource tags.
* @property trustedExternalTenants The cluster's external tenants.
* @property virtualClusterGraduationProperties Virtual Cluster graduation properties
* @property virtualNetworkConfiguration Virtual network definition.
* @property zones The availability zones of the cluster.
*/
public data class ClusterArgs(
public val acceptedAudiences: Output>? = null,
public val allowedFqdnList: Output>? = null,
public val allowedIpRangeList: Output>? = null,
public val clusterName: Output? = null,
public val enableAutoStop: Output? = null,
public val enableDiskEncryption: Output? = null,
public val enableDoubleEncryption: Output? = null,
public val enablePurge: Output? = null,
public val enableStreamingIngest: Output? = null,
public val engineType: Output>? = null,
public val identity: Output? = null,
public val keyVaultProperties: Output? = null,
public val languageExtensions: Output? = null,
public val location: Output? = null,
public val optimizedAutoscale: Output? = null,
public val publicIPType: Output>? = null,
public val publicNetworkAccess: Output>? = null,
public val resourceGroupName: Output? = null,
public val restrictOutboundNetworkAccess: Output>? =
null,
public val sku: Output? = null,
public val tags: Output>? = null,
public val trustedExternalTenants: Output>? = null,
public val virtualClusterGraduationProperties: Output? = null,
public val virtualNetworkConfiguration: Output? = null,
public val zones: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.kusto.ClusterArgs =
com.pulumi.azurenative.kusto.ClusterArgs.builder()
.acceptedAudiences(
acceptedAudiences?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.allowedFqdnList(allowedFqdnList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.allowedIpRangeList(allowedIpRangeList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.clusterName(clusterName?.applyValue({ args0 -> args0 }))
.enableAutoStop(enableAutoStop?.applyValue({ args0 -> args0 }))
.enableDiskEncryption(enableDiskEncryption?.applyValue({ args0 -> args0 }))
.enableDoubleEncryption(enableDoubleEncryption?.applyValue({ args0 -> args0 }))
.enablePurge(enablePurge?.applyValue({ args0 -> args0 }))
.enableStreamingIngest(enableStreamingIngest?.applyValue({ args0 -> args0 }))
.engineType(
engineType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.keyVaultProperties(
keyVaultProperties?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.languageExtensions(
languageExtensions?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.location(location?.applyValue({ args0 -> args0 }))
.optimizedAutoscale(
optimizedAutoscale?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.publicIPType(
publicIPType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.publicNetworkAccess(
publicNetworkAccess?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.restrictOutboundNetworkAccess(
restrictOutboundNetworkAccess?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.trustedExternalTenants(
trustedExternalTenants?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.virtualClusterGraduationProperties(
virtualClusterGraduationProperties?.applyValue({ args0 ->
args0
}),
)
.virtualNetworkConfiguration(
virtualNetworkConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [ClusterArgs].
*/
@PulumiTagMarker
public class ClusterArgsBuilder internal constructor() {
private var acceptedAudiences: Output>? = null
private var allowedFqdnList: Output>? = null
private var allowedIpRangeList: Output>? = null
private var clusterName: Output? = null
private var enableAutoStop: Output? = null
private var enableDiskEncryption: Output? = null
private var enableDoubleEncryption: Output? = null
private var enablePurge: Output? = null
private var enableStreamingIngest: Output? = null
private var engineType: Output>? = null
private var identity: Output? = null
private var keyVaultProperties: Output? = null
private var languageExtensions: Output? = null
private var location: Output? = null
private var optimizedAutoscale: Output? = null
private var publicIPType: Output>? = null
private var publicNetworkAccess: Output>? = null
private var resourceGroupName: Output? = null
private var restrictOutboundNetworkAccess: Output>? =
null
private var sku: Output? = null
private var tags: Output>? = null
private var trustedExternalTenants: Output>? = null
private var virtualClusterGraduationProperties: Output? = null
private var virtualNetworkConfiguration: Output? = null
private var zones: Output>? = null
/**
* @param value The cluster's accepted audiences.
*/
@JvmName("ewqilaonsyifvaqg")
public suspend fun acceptedAudiences(`value`: Output>) {
this.acceptedAudiences = value
}
@JvmName("uvxnfnarptioeufi")
public suspend fun acceptedAudiences(vararg values: Output) {
this.acceptedAudiences = Output.all(values.asList())
}
/**
* @param values The cluster's accepted audiences.
*/
@JvmName("qnwwtnjwevqvtldx")
public suspend fun acceptedAudiences(values: List>) {
this.acceptedAudiences = Output.all(values)
}
/**
* @param value List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
*/
@JvmName("lcgsexadahvkqowx")
public suspend fun allowedFqdnList(`value`: Output>) {
this.allowedFqdnList = value
}
@JvmName("inbxbcliatdhfupv")
public suspend fun allowedFqdnList(vararg values: Output) {
this.allowedFqdnList = Output.all(values.asList())
}
/**
* @param values List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
*/
@JvmName("hxfyjwbwiembhpqm")
public suspend fun allowedFqdnList(values: List>) {
this.allowedFqdnList = Output.all(values)
}
/**
* @param value The list of ips in the format of CIDR allowed to connect to the cluster.
*/
@JvmName("aoeaxnhhqvmsxvfw")
public suspend fun allowedIpRangeList(`value`: Output>) {
this.allowedIpRangeList = value
}
@JvmName("nekuergxitbcefkd")
public suspend fun allowedIpRangeList(vararg values: Output) {
this.allowedIpRangeList = Output.all(values.asList())
}
/**
* @param values The list of ips in the format of CIDR allowed to connect to the cluster.
*/
@JvmName("ijsuuikrlyidkkby")
public suspend fun allowedIpRangeList(values: List>) {
this.allowedIpRangeList = Output.all(values)
}
/**
* @param value The name of the Kusto cluster.
*/
@JvmName("jphfbttvdrswcuxk")
public suspend fun clusterName(`value`: Output) {
this.clusterName = value
}
/**
* @param value A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days).
*/
@JvmName("rpyswkgpekukould")
public suspend fun enableAutoStop(`value`: Output) {
this.enableAutoStop = value
}
/**
* @param value A boolean value that indicates if the cluster's disks are encrypted.
*/
@JvmName("jwsrvegsfgjegjrx")
public suspend fun enableDiskEncryption(`value`: Output) {
this.enableDiskEncryption = value
}
/**
* @param value A boolean value that indicates if double encryption is enabled.
*/
@JvmName("abdnwkchpskbvaqr")
public suspend fun enableDoubleEncryption(`value`: Output) {
this.enableDoubleEncryption = value
}
/**
* @param value A boolean value that indicates if the purge operations are enabled.
*/
@JvmName("mymbdmuogoxgwgqh")
public suspend fun enablePurge(`value`: Output) {
this.enablePurge = value
}
/**
* @param value A boolean value that indicates if the streaming ingest is enabled.
*/
@JvmName("hydynmslxifetxrf")
public suspend fun enableStreamingIngest(`value`: Output) {
this.enableStreamingIngest = value
}
/**
* @param value The engine type
*/
@JvmName("kfdgttxwcpsuftsx")
public suspend fun engineType(`value`: Output>) {
this.engineType = value
}
/**
* @param value The identity of the cluster, if configured.
*/
@JvmName("pjpdmvhblhbilehd")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value KeyVault properties for the cluster encryption.
*/
@JvmName("atatshvaxuotalxg")
public suspend fun keyVaultProperties(`value`: Output) {
this.keyVaultProperties = value
}
/**
* @param value List of the cluster's language extensions.
*/
@JvmName("qwifrunnavudxcau")
public suspend fun languageExtensions(`value`: Output) {
this.languageExtensions = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("xnvqfjsldsrlbygs")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Optimized auto scale definition.
*/
@JvmName("scquwhuirndbnjfk")
public suspend fun optimizedAutoscale(`value`: Output) {
this.optimizedAutoscale = value
}
/**
* @param value Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6)
*/
@JvmName("vykkpscjnkergybw")
public suspend fun publicIPType(`value`: Output>) {
this.publicIPType = value
}
/**
* @param value Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed
*/
@JvmName("twbexyxrhoteoojj")
public suspend fun publicNetworkAccess(`value`: Output>) {
this.publicNetworkAccess = value
}
/**
* @param value The name of the resource group containing the Kusto cluster.
*/
@JvmName("nyhutxqyrwguaiiv")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*/
@JvmName("qpbkpoiswtpgmvqc")
public suspend fun restrictOutboundNetworkAccess(`value`: Output>) {
this.restrictOutboundNetworkAccess = value
}
/**
* @param value The SKU of the cluster.
*/
@JvmName("bhtwmwdtidevlhmu")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value Resource tags.
*/
@JvmName("erqjibfkpeqkxbwy")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The cluster's external tenants.
*/
@JvmName("vdiqsedwulsxguvn")
public suspend fun trustedExternalTenants(`value`: Output>) {
this.trustedExternalTenants = value
}
@JvmName("vpepejleuibabxly")
public suspend fun trustedExternalTenants(vararg values: Output) {
this.trustedExternalTenants = Output.all(values.asList())
}
/**
* @param values The cluster's external tenants.
*/
@JvmName("nhdfmdqsdmippkgx")
public suspend fun trustedExternalTenants(values: List>) {
this.trustedExternalTenants = Output.all(values)
}
/**
* @param value Virtual Cluster graduation properties
*/
@JvmName("wrveqyakvboohamk")
public suspend fun virtualClusterGraduationProperties(`value`: Output) {
this.virtualClusterGraduationProperties = value
}
/**
* @param value Virtual network definition.
*/
@JvmName("dklxwaxakfahvfbq")
public suspend fun virtualNetworkConfiguration(`value`: Output) {
this.virtualNetworkConfiguration = value
}
/**
* @param value The availability zones of the cluster.
*/
@JvmName("gqssdixuhcwluyfp")
public suspend fun zones(`value`: Output>) {
this.zones = value
}
@JvmName("nabbofswxcliaenh")
public suspend fun zones(vararg values: Output) {
this.zones = Output.all(values.asList())
}
/**
* @param values The availability zones of the cluster.
*/
@JvmName("ualygtvkhkidsyup")
public suspend fun zones(values: List>) {
this.zones = Output.all(values)
}
/**
* @param value The cluster's accepted audiences.
*/
@JvmName("rxlamcyxrwenwybl")
public suspend fun acceptedAudiences(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.acceptedAudiences = mapped
}
/**
* @param argument The cluster's accepted audiences.
*/
@JvmName("icgfkvbvsyjxlbgp")
public suspend fun acceptedAudiences(argument: List Unit>) {
val toBeMapped = argument.toList().map {
AcceptedAudiencesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.acceptedAudiences = mapped
}
/**
* @param argument The cluster's accepted audiences.
*/
@JvmName("gtgwmyaplkxorqyj")
public suspend fun acceptedAudiences(vararg argument: suspend AcceptedAudiencesArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
AcceptedAudiencesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.acceptedAudiences = mapped
}
/**
* @param argument The cluster's accepted audiences.
*/
@JvmName("ndsgkgtdokegnfib")
public suspend fun acceptedAudiences(argument: suspend AcceptedAudiencesArgsBuilder.() -> Unit) {
val toBeMapped = listOf(AcceptedAudiencesArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.acceptedAudiences = mapped
}
/**
* @param values The cluster's accepted audiences.
*/
@JvmName("fwofjsjxihrulnno")
public suspend fun acceptedAudiences(vararg values: AcceptedAudiencesArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.acceptedAudiences = mapped
}
/**
* @param value List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
*/
@JvmName("lbdvdnltfuektgfs")
public suspend fun allowedFqdnList(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowedFqdnList = mapped
}
/**
* @param values List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
*/
@JvmName("kcsjnpdfiiuteyha")
public suspend fun allowedFqdnList(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowedFqdnList = mapped
}
/**
* @param value The list of ips in the format of CIDR allowed to connect to the cluster.
*/
@JvmName("vsculantsgcbwffg")
public suspend fun allowedIpRangeList(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowedIpRangeList = mapped
}
/**
* @param values The list of ips in the format of CIDR allowed to connect to the cluster.
*/
@JvmName("gcddolsvitartksb")
public suspend fun allowedIpRangeList(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowedIpRangeList = mapped
}
/**
* @param value The name of the Kusto cluster.
*/
@JvmName("ehxduxqetpokayfw")
public suspend fun clusterName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterName = mapped
}
/**
* @param value A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days).
*/
@JvmName("jxtvddijegimkajg")
public suspend fun enableAutoStop(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableAutoStop = mapped
}
/**
* @param value A boolean value that indicates if the cluster's disks are encrypted.
*/
@JvmName("gwnmwgjbdnqfhgua")
public suspend fun enableDiskEncryption(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableDiskEncryption = mapped
}
/**
* @param value A boolean value that indicates if double encryption is enabled.
*/
@JvmName("kfmdwaohyvhvowsj")
public suspend fun enableDoubleEncryption(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableDoubleEncryption = mapped
}
/**
* @param value A boolean value that indicates if the purge operations are enabled.
*/
@JvmName("vjehluaikorteogh")
public suspend fun enablePurge(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enablePurge = mapped
}
/**
* @param value A boolean value that indicates if the streaming ingest is enabled.
*/
@JvmName("milndjinadsxmhvm")
public suspend fun enableStreamingIngest(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableStreamingIngest = mapped
}
/**
* @param value The engine type
*/
@JvmName("fpvhytmbtkdynens")
public suspend fun engineType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.engineType = mapped
}
/**
* @param value The engine type
*/
@JvmName("vrueghpfxbsjqwob")
public fun engineType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.engineType = mapped
}
/**
* @param value The engine type
*/
@JvmName("xjuddowiqmmirhke")
public fun engineType(`value`: EngineType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.engineType = mapped
}
/**
* @param value The identity of the cluster, if configured.
*/
@JvmName("lhwhsdghbfjemlwc")
public suspend fun identity(`value`: IdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The identity of the cluster, if configured.
*/
@JvmName("eqmtgkuyeftswjgi")
public suspend fun identity(argument: suspend IdentityArgsBuilder.() -> Unit) {
val toBeMapped = IdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value KeyVault properties for the cluster encryption.
*/
@JvmName("adafbbdqiixohlkx")
public suspend fun keyVaultProperties(`value`: KeyVaultPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyVaultProperties = mapped
}
/**
* @param argument KeyVault properties for the cluster encryption.
*/
@JvmName("eofjmljbokrkxvvj")
public suspend fun keyVaultProperties(argument: suspend KeyVaultPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = KeyVaultPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.keyVaultProperties = mapped
}
/**
* @param value List of the cluster's language extensions.
*/
@JvmName("wmgqsepytbdpukck")
public suspend fun languageExtensions(`value`: LanguageExtensionsListArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.languageExtensions = mapped
}
/**
* @param argument List of the cluster's language extensions.
*/
@JvmName("xmrnfidbeyqgjkkn")
public suspend fun languageExtensions(argument: suspend LanguageExtensionsListArgsBuilder.() -> Unit) {
val toBeMapped = LanguageExtensionsListArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.languageExtensions = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("omclxnmtekgylgnm")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Optimized auto scale definition.
*/
@JvmName("kvjvhftffgcpgeuo")
public suspend fun optimizedAutoscale(`value`: OptimizedAutoscaleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.optimizedAutoscale = mapped
}
/**
* @param argument Optimized auto scale definition.
*/
@JvmName("efmfptrxhmybcuaj")
public suspend fun optimizedAutoscale(argument: suspend OptimizedAutoscaleArgsBuilder.() -> Unit) {
val toBeMapped = OptimizedAutoscaleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.optimizedAutoscale = mapped
}
/**
* @param value Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6)
*/
@JvmName("jsgpumpcjctawmyq")
public suspend fun publicIPType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publicIPType = mapped
}
/**
* @param value Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6)
*/
@JvmName("pmuojlaylkqvaahs")
public fun publicIPType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicIPType = mapped
}
/**
* @param value Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6)
*/
@JvmName("yjqrnywlneaamhxh")
public fun publicIPType(`value`: PublicIPType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicIPType = mapped
}
/**
* @param value Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed
*/
@JvmName("jdwexunutqdfhkax")
public suspend fun publicNetworkAccess(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed
*/
@JvmName("bohmxpwybmqojhwj")
public fun publicNetworkAccess(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed
*/
@JvmName("osblgdcdmarsxadk")
public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value The name of the resource group containing the Kusto cluster.
*/
@JvmName("gpqvejbkopujrevv")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*/
@JvmName("sekgbnngkxnsigij")
public suspend fun restrictOutboundNetworkAccess(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.restrictOutboundNetworkAccess = mapped
}
/**
* @param value Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*/
@JvmName("gtidjyvvgjntnkol")
public fun restrictOutboundNetworkAccess(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.restrictOutboundNetworkAccess = mapped
}
/**
* @param value Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*/
@JvmName("rswfgywnrrrktqxp")
public fun restrictOutboundNetworkAccess(`value`: ClusterNetworkAccessFlag) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.restrictOutboundNetworkAccess = mapped
}
/**
* @param value The SKU of the cluster.
*/
@JvmName("vwdakqyajbgmnhxe")
public suspend fun sku(`value`: AzureSkuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param argument The SKU of the cluster.
*/
@JvmName("kaikcjjhahlbcrow")
public suspend fun sku(argument: suspend AzureSkuArgsBuilder.() -> Unit) {
val toBeMapped = AzureSkuArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sku = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("pdnpiscdnbjegiqe")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("nfsjbtvikolsibxw")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value The cluster's external tenants.
*/
@JvmName("fsemxtmtdyubgeat")
public suspend fun trustedExternalTenants(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.trustedExternalTenants = mapped
}
/**
* @param argument The cluster's external tenants.
*/
@JvmName("matrmnqjdvocnbgt")
public suspend fun trustedExternalTenants(argument: List Unit>) {
val toBeMapped = argument.toList().map {
TrustedExternalTenantArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.trustedExternalTenants = mapped
}
/**
* @param argument The cluster's external tenants.
*/
@JvmName("isflryloavxhgasa")
public suspend fun trustedExternalTenants(vararg argument: suspend TrustedExternalTenantArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
TrustedExternalTenantArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.trustedExternalTenants = mapped
}
/**
* @param argument The cluster's external tenants.
*/
@JvmName("oeyugshumogrduwc")
public suspend fun trustedExternalTenants(argument: suspend TrustedExternalTenantArgsBuilder.() -> Unit) {
val toBeMapped = listOf(TrustedExternalTenantArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.trustedExternalTenants = mapped
}
/**
* @param values The cluster's external tenants.
*/
@JvmName("vgvngmhcxowuidnf")
public suspend fun trustedExternalTenants(vararg values: TrustedExternalTenantArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.trustedExternalTenants = mapped
}
/**
* @param value Virtual Cluster graduation properties
*/
@JvmName("elsxjdjcgucoescr")
public suspend fun virtualClusterGraduationProperties(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualClusterGraduationProperties = mapped
}
/**
* @param value Virtual network definition.
*/
@JvmName("uhhtqxsfobhjyshe")
public suspend fun virtualNetworkConfiguration(`value`: VirtualNetworkConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualNetworkConfiguration = mapped
}
/**
* @param argument Virtual network definition.
*/
@JvmName("ihvrvfwstjviqacc")
public suspend fun virtualNetworkConfiguration(argument: suspend VirtualNetworkConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = VirtualNetworkConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.virtualNetworkConfiguration = mapped
}
/**
* @param value The availability zones of the cluster.
*/
@JvmName("qpfhdomelenyvsgy")
public suspend fun zones(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zones = mapped
}
/**
* @param values The availability zones of the cluster.
*/
@JvmName("pgugdbtqcugiepgk")
public suspend fun zones(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.zones = mapped
}
internal fun build(): ClusterArgs = ClusterArgs(
acceptedAudiences = acceptedAudiences,
allowedFqdnList = allowedFqdnList,
allowedIpRangeList = allowedIpRangeList,
clusterName = clusterName,
enableAutoStop = enableAutoStop,
enableDiskEncryption = enableDiskEncryption,
enableDoubleEncryption = enableDoubleEncryption,
enablePurge = enablePurge,
enableStreamingIngest = enableStreamingIngest,
engineType = engineType,
identity = identity,
keyVaultProperties = keyVaultProperties,
languageExtensions = languageExtensions,
location = location,
optimizedAutoscale = optimizedAutoscale,
publicIPType = publicIPType,
publicNetworkAccess = publicNetworkAccess,
resourceGroupName = resourceGroupName,
restrictOutboundNetworkAccess = restrictOutboundNetworkAccess,
sku = sku,
tags = tags,
trustedExternalTenants = trustedExternalTenants,
virtualClusterGraduationProperties = virtualClusterGraduationProperties,
virtualNetworkConfiguration = virtualNetworkConfiguration,
zones = zones,
)
}