com.pulumi.awsnative.eks.kotlin.inputs.LoggingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.eks.kotlin.inputs
import com.pulumi.awsnative.eks.inputs.LoggingArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Enable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs based on log types. By default, cluster control plane logs aren't exported to CloudWatch Logs.
* @property clusterLogging The cluster control plane logging configuration for your cluster.
*/
public data class LoggingArgs(
public val clusterLogging: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.eks.inputs.LoggingArgs =
com.pulumi.awsnative.eks.inputs.LoggingArgs.builder()
.clusterLogging(
clusterLogging?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [LoggingArgs].
*/
@PulumiTagMarker
public class LoggingArgsBuilder internal constructor() {
private var clusterLogging: Output? = null
/**
* @param value The cluster control plane logging configuration for your cluster.
*/
@JvmName("snoopicfxtilkhrd")
public suspend fun clusterLogging(`value`: Output) {
this.clusterLogging = value
}
/**
* @param value The cluster control plane logging configuration for your cluster.
*/
@JvmName("tivucjfcaibxsmbt")
public suspend fun clusterLogging(`value`: ClusterLoggingEnabledTypesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterLogging = mapped
}
/**
* @param argument The cluster control plane logging configuration for your cluster.
*/
@JvmName("ktupeplfnuctwclt")
public suspend fun clusterLogging(argument: suspend ClusterLoggingEnabledTypesArgsBuilder.() -> Unit) {
val toBeMapped = ClusterLoggingEnabledTypesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.clusterLogging = mapped
}
internal fun build(): LoggingArgs = LoggingArgs(
clusterLogging = clusterLogging,
)
}