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

com.pulumi.gcp.compute.kotlin.outputs.RouterPeerBfd.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property minReceiveInterval The minimum interval, in milliseconds, between BFD control packets
 * received from the peer router. The actual value is negotiated
 * between the two routers and is equal to the greater of this value
 * and the transmit interval of the other router. If set, this value
 * must be between 1000 and 30000.
 * @property minTransmitInterval The minimum interval, in milliseconds, between BFD control packets
 * transmitted to the peer router. The actual value is negotiated
 * between the two routers and is equal to the greater of this value
 * and the corresponding receive interval of the other router. If set,
 * this value must be between 1000 and 30000.
 * @property multiplier The number of consecutive BFD packets that must be missed before
 * BFD declares that a peer is unavailable. If set, the value must
 * be a value between 5 and 16.
 * The `md5_authentication_key` block supports:
 * @property sessionInitializationMode The BFD session initialization mode for this BGP peer.
 * If set to `ACTIVE`, the Cloud Router will initiate the BFD session
 * for this BGP peer. If set to `PASSIVE`, the Cloud Router will wait
 * for the peer router to initiate the BFD session for this BGP peer.
 * If set to `DISABLED`, BFD is disabled for this BGP peer.
 * Possible values are: `ACTIVE`, `DISABLED`, `PASSIVE`.
 */
public data class RouterPeerBfd(
    public val minReceiveInterval: Int? = null,
    public val minTransmitInterval: Int? = null,
    public val multiplier: Int? = null,
    public val sessionInitializationMode: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RouterPeerBfd): RouterPeerBfd =
            RouterPeerBfd(
                minReceiveInterval = javaType.minReceiveInterval().map({ args0 -> args0 }).orElse(null),
                minTransmitInterval = javaType.minTransmitInterval().map({ args0 -> args0 }).orElse(null),
                multiplier = javaType.multiplier().map({ args0 -> args0 }).orElse(null),
                sessionInitializationMode = javaType.sessionInitializationMode(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy