
com.pulumi.awsnative.events.kotlin.inputs.EndpointFailoverConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.events.kotlin.inputs
import com.pulumi.awsnative.events.inputs.EndpointFailoverConfigArgs.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 primary The main Region of the endpoint.
* @property secondary The Region that events are routed to when failover is triggered or event replication is enabled.
*/
public data class EndpointFailoverConfigArgs(
public val primary: Output,
public val secondary: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.events.inputs.EndpointFailoverConfigArgs =
com.pulumi.awsnative.events.inputs.EndpointFailoverConfigArgs.builder()
.primary(primary.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.secondary(secondary.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [EndpointFailoverConfigArgs].
*/
@PulumiTagMarker
public class EndpointFailoverConfigArgsBuilder internal constructor() {
private var primary: Output? = null
private var secondary: Output? = null
/**
* @param value The main Region of the endpoint.
*/
@JvmName("jecrimquinxlsfsw")
public suspend fun primary(`value`: Output) {
this.primary = value
}
/**
* @param value The Region that events are routed to when failover is triggered or event replication is enabled.
*/
@JvmName("owkhmgaoklbeuthw")
public suspend fun secondary(`value`: Output) {
this.secondary = value
}
/**
* @param value The main Region of the endpoint.
*/
@JvmName("tnlqmolrnhgioiti")
public suspend fun primary(`value`: EndpointPrimaryArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.primary = mapped
}
/**
* @param argument The main Region of the endpoint.
*/
@JvmName("yedkvursefnexfrt")
public suspend fun primary(argument: suspend EndpointPrimaryArgsBuilder.() -> Unit) {
val toBeMapped = EndpointPrimaryArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.primary = mapped
}
/**
* @param value The Region that events are routed to when failover is triggered or event replication is enabled.
*/
@JvmName("mgccprwonrntkofm")
public suspend fun secondary(`value`: EndpointSecondaryArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.secondary = mapped
}
/**
* @param argument The Region that events are routed to when failover is triggered or event replication is enabled.
*/
@JvmName("wsddrcvuleivmfnj")
public suspend fun secondary(argument: suspend EndpointSecondaryArgsBuilder.() -> Unit) {
val toBeMapped = EndpointSecondaryArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.secondary = mapped
}
internal fun build(): EndpointFailoverConfigArgs = EndpointFailoverConfigArgs(
primary = primary ?: throw PulumiNullFieldException("primary"),
secondary = secondary ?: throw PulumiNullFieldException("secondary"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy