com.pulumi.alicloud.cs.kotlin.inputs.ServerlessKubernetesAddonArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-kotlin Show documentation
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.alicloud.cs.kotlin.inputs
import com.pulumi.alicloud.cs.inputs.ServerlessKubernetesAddonArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property config The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
* @property disabled Disables the automatic installation of a component. Default is `false`.
* The following example is the definition of addons block, The type of this field is list:
* ```
* # install nginx ingress, conflict with ALB ingress
* addons {
* name = "nginx-ingress-controller"
* # use internet
* config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}"
* # if use intranet, detail below.
* # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}"
* }
* # install ALB ingress, conflict with nginx ingress
* addons {
* name = "alb-ingress-controller"
* }
* # install metric server
* addons {
* name = "metrics-server"
* }
* # install knative
* addons {
* name = "knative"
* }
* # install prometheus
* addons {
* name = "arms-prometheus"
* }
* ```
* @property name Name of the ACK add-on. The name must match one of the names returned by [DescribeAddons](https://help.aliyun.com/document_detail/171524.html).
* @property version It specifies the version of the component.
*/
public data class ServerlessKubernetesAddonArgs(
public val config: Output? = null,
public val disabled: Output? = null,
public val name: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.cs.inputs.ServerlessKubernetesAddonArgs =
com.pulumi.alicloud.cs.inputs.ServerlessKubernetesAddonArgs.builder()
.config(config?.applyValue({ args0 -> args0 }))
.disabled(disabled?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServerlessKubernetesAddonArgs].
*/
@PulumiTagMarker
public class ServerlessKubernetesAddonArgsBuilder internal constructor() {
private var config: Output? = null
private var disabled: Output? = null
private var name: Output? = null
private var version: Output? = null
/**
* @param value The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
*/
@JvmName("lxcxieevmhxflbmq")
public suspend fun config(`value`: Output) {
this.config = value
}
/**
* @param value Disables the automatic installation of a component. Default is `false`.
* The following example is the definition of addons block, The type of this field is list:
* ```
* # install nginx ingress, conflict with ALB ingress
* addons {
* name = "nginx-ingress-controller"
* # use internet
* config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}"
* # if use intranet, detail below.
* # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}"
* }
* # install ALB ingress, conflict with nginx ingress
* addons {
* name = "alb-ingress-controller"
* }
* # install metric server
* addons {
* name = "metrics-server"
* }
* # install knative
* addons {
* name = "knative"
* }
* # install prometheus
* addons {
* name = "arms-prometheus"
* }
* ```
*/
@JvmName("fisjjetookyxamgw")
public suspend fun disabled(`value`: Output) {
this.disabled = value
}
/**
* @param value Name of the ACK add-on. The name must match one of the names returned by [DescribeAddons](https://help.aliyun.com/document_detail/171524.html).
*/
@JvmName("djlskqfyuyfbempm")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value It specifies the version of the component.
*/
@JvmName("abigsewhlaancuet")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value The ACK add-on configurations. For more config information, see cs_kubernetes_addon_metadata.
*/
@JvmName("clwnkgbpmkvqakcl")
public suspend fun config(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.config = mapped
}
/**
* @param value Disables the automatic installation of a component. Default is `false`.
* The following example is the definition of addons block, The type of this field is list:
* ```
* # install nginx ingress, conflict with ALB ingress
* addons {
* name = "nginx-ingress-controller"
* # use internet
* config = "{\"IngressSlbNetworkType\":\"internet",\"IngressSlbSpec\":\"slb.s2.small\"}"
* # if use intranet, detail below.
* # config = "{\"IngressSlbNetworkType\":\"intranet",\"IngressSlbSpec\":\"slb.s2.small\"}"
* }
* # install ALB ingress, conflict with nginx ingress
* addons {
* name = "alb-ingress-controller"
* }
* # install metric server
* addons {
* name = "metrics-server"
* }
* # install knative
* addons {
* name = "knative"
* }
* # install prometheus
* addons {
* name = "arms-prometheus"
* }
* ```
*/
@JvmName("beprjkwegoekorud")
public suspend fun disabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disabled = mapped
}
/**
* @param value Name of the ACK add-on. The name must match one of the names returned by [DescribeAddons](https://help.aliyun.com/document_detail/171524.html).
*/
@JvmName("iarsmoiykdiknexo")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value It specifies the version of the component.
*/
@JvmName("plboukoktfuuoxpd")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): ServerlessKubernetesAddonArgs = ServerlessKubernetesAddonArgs(
config = config,
disabled = disabled,
name = name,
version = version,
)
}