All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.cloudwatch.kotlin.inputs.EventEndpointRoutingConfigFailoverConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.cloudwatch.kotlin.inputs

import com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigFailoverConfigArgs.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 Parameters used for the primary Region. Documented below.
 * @property secondary Parameters used for the secondary Region, the Region that events are routed to when failover is triggered or event replication is enabled. Documented below.
 */
public data class EventEndpointRoutingConfigFailoverConfigArgs(
    public val primary: Output,
    public val secondary: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigFailoverConfigArgs =
        com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigFailoverConfigArgs.builder()
            .primary(primary.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .secondary(secondary.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EventEndpointRoutingConfigFailoverConfigArgs].
 */
@PulumiTagMarker
public class EventEndpointRoutingConfigFailoverConfigArgsBuilder internal constructor() {
    private var primary: Output? = null

    private var secondary: Output? = null

    /**
     * @param value Parameters used for the primary Region. Documented below.
     */
    @JvmName("gysrrwahohkalfuo")
    public suspend fun primary(`value`: Output) {
        this.primary = value
    }

    /**
     * @param value Parameters used for the secondary Region, the Region that events are routed to when failover is triggered or event replication is enabled. Documented below.
     */
    @JvmName("aywaxggbiecwntli")
    public suspend fun secondary(`value`: Output) {
        this.secondary = value
    }

    /**
     * @param value Parameters used for the primary Region. Documented below.
     */
    @JvmName("acuvcetrdouxvqov")
    public suspend fun primary(`value`: EventEndpointRoutingConfigFailoverConfigPrimaryArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.primary = mapped
    }

    /**
     * @param argument Parameters used for the primary Region. Documented below.
     */
    @JvmName("mtvopxnplwarniem")
    public suspend fun primary(argument: suspend EventEndpointRoutingConfigFailoverConfigPrimaryArgsBuilder.() -> Unit) {
        val toBeMapped = EventEndpointRoutingConfigFailoverConfigPrimaryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.primary = mapped
    }

    /**
     * @param value Parameters used for the secondary Region, the Region that events are routed to when failover is triggered or event replication is enabled. Documented below.
     */
    @JvmName("jowisynurugeqdhf")
    public suspend fun secondary(`value`: EventEndpointRoutingConfigFailoverConfigSecondaryArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secondary = mapped
    }

    /**
     * @param argument Parameters used for the secondary Region, the Region that events are routed to when failover is triggered or event replication is enabled. Documented below.
     */
    @JvmName("oisbvnkcqjgalovm")
    public suspend fun secondary(argument: suspend EventEndpointRoutingConfigFailoverConfigSecondaryArgsBuilder.() -> Unit) {
        val toBeMapped = EventEndpointRoutingConfigFailoverConfigSecondaryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.secondary = mapped
    }

    internal fun build(): EventEndpointRoutingConfigFailoverConfigArgs =
        EventEndpointRoutingConfigFailoverConfigArgs(
            primary = primary ?: throw PulumiNullFieldException("primary"),
            secondary = secondary ?: throw PulumiNullFieldException("secondary"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy