
com.pulumi.gcp.compute.kotlin.inputs.RouterPeerBfdArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RouterPeerBfdArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 RouterPeerBfdArgs(
public val minReceiveInterval: Output? = null,
public val minTransmitInterval: Output? = null,
public val multiplier: Output? = null,
public val sessionInitializationMode: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RouterPeerBfdArgs =
com.pulumi.gcp.compute.inputs.RouterPeerBfdArgs.builder()
.minReceiveInterval(minReceiveInterval?.applyValue({ args0 -> args0 }))
.minTransmitInterval(minTransmitInterval?.applyValue({ args0 -> args0 }))
.multiplier(multiplier?.applyValue({ args0 -> args0 }))
.sessionInitializationMode(sessionInitializationMode.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RouterPeerBfdArgs].
*/
@PulumiTagMarker
public class RouterPeerBfdArgsBuilder internal constructor() {
private var minReceiveInterval: Output? = null
private var minTransmitInterval: Output? = null
private var multiplier: Output? = null
private var sessionInitializationMode: Output? = null
/**
* @param value 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.
*/
@JvmName("lbefeupqfryfcgui")
public suspend fun minReceiveInterval(`value`: Output) {
this.minReceiveInterval = value
}
/**
* @param value 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.
*/
@JvmName("pamlbkyghjbwccou")
public suspend fun minTransmitInterval(`value`: Output) {
this.minTransmitInterval = value
}
/**
* @param value 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:
*/
@JvmName("tptbvmscydbodmvr")
public suspend fun multiplier(`value`: Output) {
this.multiplier = value
}
/**
* @param value 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`.
*/
@JvmName("frxxfeflbmphyjgb")
public suspend fun sessionInitializationMode(`value`: Output) {
this.sessionInitializationMode = value
}
/**
* @param value 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.
*/
@JvmName("wqmfeqknqptsrdqm")
public suspend fun minReceiveInterval(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minReceiveInterval = mapped
}
/**
* @param value 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.
*/
@JvmName("hhxfeugjvwvwaump")
public suspend fun minTransmitInterval(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minTransmitInterval = mapped
}
/**
* @param value 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:
*/
@JvmName("yhyhhwqdclhleumm")
public suspend fun multiplier(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.multiplier = mapped
}
/**
* @param value 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`.
*/
@JvmName("xofjpvyfhxrktams")
public suspend fun sessionInitializationMode(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sessionInitializationMode = mapped
}
internal fun build(): RouterPeerBfdArgs = RouterPeerBfdArgs(
minReceiveInterval = minReceiveInterval,
minTransmitInterval = minTransmitInterval,
multiplier = multiplier,
sessionInitializationMode = sessionInitializationMode ?: throw
PulumiNullFieldException("sessionInitializationMode"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy