All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.hdinsight.kotlin.ClusterPoolArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.hdinsight.kotlin
import com.pulumi.azurenative.hdinsight.ClusterPoolArgs.builder
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgsBuilder
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesComputeProfileArgs
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesComputeProfileArgsBuilder
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesLogAnalyticsProfileArgs
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesLogAnalyticsProfileArgsBuilder
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesNetworkProfileArgs
import com.pulumi.azurenative.hdinsight.kotlin.inputs.ClusterPoolResourcePropertiesNetworkProfileArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Cluster pool.
* Azure REST API version: 2023-06-01-preview.
* Other available API versions: 2023-11-01-preview, 2024-05-01-preview.
* ## Example Usage
* ### ClusterPoolPut
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var clusterPool = new AzureNative.HDInsight.ClusterPool("clusterPool", new()
* {
* ClusterPoolName = "clusterpool1",
* ClusterPoolProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs
* {
* ClusterPoolVersion = "1.2",
* },
* ComputeProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesComputeProfileArgs
* {
* VmSize = "Standard_D3_v2",
* },
* Location = "West US 2",
* ResourceGroupName = "hiloResourcegroup",
* });
* });
* ```
* ```go
* package main
* import (
* hdinsight "github.com/pulumi/pulumi-azure-native-sdk/hdinsight/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := hdinsight.NewClusterPool(ctx, "clusterPool", &hdinsight.ClusterPoolArgs{
* ClusterPoolName: pulumi.String("clusterpool1"),
* ClusterPoolProfile: &hdinsight.ClusterPoolResourcePropertiesClusterPoolProfileArgs{
* ClusterPoolVersion: pulumi.String("1.2"),
* },
* ComputeProfile: &hdinsight.ClusterPoolResourcePropertiesComputeProfileArgs{
* VmSize: pulumi.String("Standard_D3_v2"),
* },
* Location: pulumi.String("West US 2"),
* ResourceGroupName: pulumi.String("hiloResourcegroup"),
* })
* 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.hdinsight.ClusterPool;
* import com.pulumi.azurenative.hdinsight.ClusterPoolArgs;
* import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs;
* import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesComputeProfileArgs;
* 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 clusterPool = new ClusterPool("clusterPool", ClusterPoolArgs.builder()
* .clusterPoolName("clusterpool1")
* .clusterPoolProfile(ClusterPoolResourcePropertiesClusterPoolProfileArgs.builder()
* .clusterPoolVersion("1.2")
* .build())
* .computeProfile(ClusterPoolResourcePropertiesComputeProfileArgs.builder()
* .vmSize("Standard_D3_v2")
* .build())
* .location("West US 2")
* .resourceGroupName("hiloResourcegroup")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:hdinsight:ClusterPool clusterpool1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}
* ```
* @property clusterPoolName The name of the cluster pool.
* @property clusterPoolProfile CLuster pool profile.
* @property computeProfile CLuster pool compute profile.
* @property location The geo-location where the resource lives
* @property logAnalyticsProfile Cluster pool log analytics profile to enable OMS agent for AKS cluster.
* @property managedResourceGroupName A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction.
* @property networkProfile Cluster pool network profile.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class ClusterPoolArgs(
public val clusterPoolName: Output? = null,
public val clusterPoolProfile: Output? =
null,
public val computeProfile: Output? = null,
public val location: Output? = null,
public val logAnalyticsProfile: Output? =
null,
public val managedResourceGroupName: Output? = null,
public val networkProfile: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.hdinsight.ClusterPoolArgs =
com.pulumi.azurenative.hdinsight.ClusterPoolArgs.builder()
.clusterPoolName(clusterPoolName?.applyValue({ args0 -> args0 }))
.clusterPoolProfile(
clusterPoolProfile?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.computeProfile(computeProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.logAnalyticsProfile(
logAnalyticsProfile?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.managedResourceGroupName(managedResourceGroupName?.applyValue({ args0 -> args0 }))
.networkProfile(networkProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ClusterPoolArgs].
*/
@PulumiTagMarker
public class ClusterPoolArgsBuilder internal constructor() {
private var clusterPoolName: Output? = null
private var clusterPoolProfile: Output? =
null
private var computeProfile: Output? = null
private var location: Output? = null
private var logAnalyticsProfile: Output? =
null
private var managedResourceGroupName: Output? = null
private var networkProfile: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value The name of the cluster pool.
*/
@JvmName("fptgdgjshtcjadbg")
public suspend fun clusterPoolName(`value`: Output) {
this.clusterPoolName = value
}
/**
* @param value CLuster pool profile.
*/
@JvmName("uiucjbevfqoaykcf")
public suspend fun clusterPoolProfile(`value`: Output) {
this.clusterPoolProfile = value
}
/**
* @param value CLuster pool compute profile.
*/
@JvmName("ujllshksrktuthtt")
public suspend fun computeProfile(`value`: Output) {
this.computeProfile = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("drxcbdtdgihllmda")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Cluster pool log analytics profile to enable OMS agent for AKS cluster.
*/
@JvmName("xxsefisueeaupplj")
public suspend fun logAnalyticsProfile(`value`: Output) {
this.logAnalyticsProfile = value
}
/**
* @param value A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction.
*/
@JvmName("ueflihicchbpcuko")
public suspend fun managedResourceGroupName(`value`: Output) {
this.managedResourceGroupName = value
}
/**
* @param value Cluster pool network profile.
*/
@JvmName("tswiqamyswfgxrtb")
public suspend fun networkProfile(`value`: Output) {
this.networkProfile = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("kghglmgkbdldhgxf")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("ukexskkjxjhbfitl")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name of the cluster pool.
*/
@JvmName("kueqstdtyiwdtckd")
public suspend fun clusterPoolName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterPoolName = mapped
}
/**
* @param value CLuster pool profile.
*/
@JvmName("sjqtoxnahmapyhet")
public suspend fun clusterPoolProfile(`value`: ClusterPoolResourcePropertiesClusterPoolProfileArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterPoolProfile = mapped
}
/**
* @param argument CLuster pool profile.
*/
@JvmName("qsrlxukppppxphyu")
public suspend fun clusterPoolProfile(argument: suspend ClusterPoolResourcePropertiesClusterPoolProfileArgsBuilder.() -> Unit) {
val toBeMapped = ClusterPoolResourcePropertiesClusterPoolProfileArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.clusterPoolProfile = mapped
}
/**
* @param value CLuster pool compute profile.
*/
@JvmName("xyvknrnegtvibvpy")
public suspend fun computeProfile(`value`: ClusterPoolResourcePropertiesComputeProfileArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.computeProfile = mapped
}
/**
* @param argument CLuster pool compute profile.
*/
@JvmName("kcxagbtvmeluhudt")
public suspend fun computeProfile(argument: suspend ClusterPoolResourcePropertiesComputeProfileArgsBuilder.() -> Unit) {
val toBeMapped = ClusterPoolResourcePropertiesComputeProfileArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.computeProfile = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("rsqwtmjyemymqcrt")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Cluster pool log analytics profile to enable OMS agent for AKS cluster.
*/
@JvmName("yjygxftlmbqmnvvc")
public suspend fun logAnalyticsProfile(`value`: ClusterPoolResourcePropertiesLogAnalyticsProfileArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logAnalyticsProfile = mapped
}
/**
* @param argument Cluster pool log analytics profile to enable OMS agent for AKS cluster.
*/
@JvmName("snpfmqvvmxbipyxw")
public suspend fun logAnalyticsProfile(argument: suspend ClusterPoolResourcePropertiesLogAnalyticsProfileArgsBuilder.() -> Unit) {
val toBeMapped = ClusterPoolResourcePropertiesLogAnalyticsProfileArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.logAnalyticsProfile = mapped
}
/**
* @param value A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction.
*/
@JvmName("slupwmoexwjsojsp")
public suspend fun managedResourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managedResourceGroupName = mapped
}
/**
* @param value Cluster pool network profile.
*/
@JvmName("hxannossxyxshrhd")
public suspend fun networkProfile(`value`: ClusterPoolResourcePropertiesNetworkProfileArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkProfile = mapped
}
/**
* @param argument Cluster pool network profile.
*/
@JvmName("dudhuaejcwkmmqfd")
public suspend fun networkProfile(argument: suspend ClusterPoolResourcePropertiesNetworkProfileArgsBuilder.() -> Unit) {
val toBeMapped = ClusterPoolResourcePropertiesNetworkProfileArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.networkProfile = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("lpgtobnhghdospdc")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("wbwydsrehnfvdaom")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("lhtgbcyvtybqdpps")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ClusterPoolArgs = ClusterPoolArgs(
clusterPoolName = clusterPoolName,
clusterPoolProfile = clusterPoolProfile,
computeProfile = computeProfile,
location = location,
logAnalyticsProfile = logAnalyticsProfile,
managedResourceGroupName = managedResourceGroupName,
networkProfile = networkProfile,
resourceGroupName = resourceGroupName,
tags = tags,
)
}