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

com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowFailoverConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediaconnect.kotlin.outputs

import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowFailoverConfigFailoverMode
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowFailoverConfigState
import kotlin.Int
import kotlin.Suppress

/**
 * The settings for source failover
 * @property failoverMode The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.
 * @property recoveryWindow Search window time to look for dash-7 packets
 * @property sourcePriority The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams.
 * @property state The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.
 */
public data class FlowFailoverConfig(
    public val failoverMode: FlowFailoverConfigFailoverMode? = null,
    public val recoveryWindow: Int? = null,
    public val sourcePriority: FlowFailoverConfigSourcePriorityProperties? = null,
    public val state: FlowFailoverConfigState? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.mediaconnect.outputs.FlowFailoverConfig): FlowFailoverConfig = FlowFailoverConfig(
            failoverMode = javaType.failoverMode().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowFailoverConfigFailoverMode.Companion.toKotlin(args0)
                })
            }).orElse(null),
            recoveryWindow = javaType.recoveryWindow().map({ args0 -> args0 }).orElse(null),
            sourcePriority = javaType.sourcePriority().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowFailoverConfigSourcePriorityProperties.Companion.toKotlin(args0)
                })
            }).orElse(null),
            state = javaType.state().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowFailoverConfigState.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy