com.pulumi.aws.cloudwatch.kotlin.inputs.EventEndpointRoutingConfigArgs.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.cloudwatch.kotlin.inputs
import com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property failoverConfig Parameters used for failover. This includes what triggers failover and what happens when it's triggered. Documented below.
*/
public data class EventEndpointRoutingConfigArgs(
public val failoverConfig: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigArgs =
com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigArgs.builder()
.failoverConfig(
failoverConfig.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [EventEndpointRoutingConfigArgs].
*/
@PulumiTagMarker
public class EventEndpointRoutingConfigArgsBuilder internal constructor() {
private var failoverConfig: Output? = null
/**
* @param value Parameters used for failover. This includes what triggers failover and what happens when it's triggered. Documented below.
*/
@JvmName("xbmqmpddoaedrwow")
public suspend fun failoverConfig(`value`: Output) {
this.failoverConfig = value
}
/**
* @param value Parameters used for failover. This includes what triggers failover and what happens when it's triggered. Documented below.
*/
@JvmName("qpkskhtdjvdbdtpt")
public suspend fun failoverConfig(`value`: EventEndpointRoutingConfigFailoverConfigArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.failoverConfig = mapped
}
/**
* @param argument Parameters used for failover. This includes what triggers failover and what happens when it's triggered. Documented below.
*/
@JvmName("kvxyjdwjclssncni")
public suspend fun failoverConfig(argument: suspend EventEndpointRoutingConfigFailoverConfigArgsBuilder.() -> Unit) {
val toBeMapped = EventEndpointRoutingConfigFailoverConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.failoverConfig = mapped
}
internal fun build(): EventEndpointRoutingConfigArgs = EventEndpointRoutingConfigArgs(
failoverConfig = failoverConfig ?: throw PulumiNullFieldException("failoverConfig"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy