com.pulumi.aws.cloudtrail.kotlin.inputs.TrailInsightSelectorArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.cloudtrail.kotlin.inputs
import com.pulumi.aws.cloudtrail.inputs.TrailInsightSelectorArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property insightType Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`.
*/
public data class TrailInsightSelectorArgs(
public val insightType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudtrail.inputs.TrailInsightSelectorArgs =
com.pulumi.aws.cloudtrail.inputs.TrailInsightSelectorArgs.builder()
.insightType(insightType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TrailInsightSelectorArgs].
*/
@PulumiTagMarker
public class TrailInsightSelectorArgsBuilder internal constructor() {
private var insightType: Output? = null
/**
* @param value Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`.
*/
@JvmName("axrhvwpfwtxiestp")
public suspend fun insightType(`value`: Output) {
this.insightType = value
}
/**
* @param value Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`.
*/
@JvmName("rgderqgvexekryad")
public suspend fun insightType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.insightType = mapped
}
internal fun build(): TrailInsightSelectorArgs = TrailInsightSelectorArgs(
insightType = insightType ?: throw PulumiNullFieldException("insightType"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy