com.pulumi.gcp.compute.kotlin.outputs.GetRouterBgp.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property advertiseMode User-specified flag to indicate which mode to use for advertisement. Default value: "DEFAULT" Possible values: ["DEFAULT", "CUSTOM"]
* @property advertisedGroups User-specified list of prefix groups to advertise in custom mode.
* This field can only be populated if advertiseMode is CUSTOM and
* is advertised to all peers of the router. These groups will be
* advertised in addition to any specified prefixes. Leave this field
* blank to advertise no custom groups.
* This enum field has the one valid value: ALL_SUBNETS
* @property advertisedIpRanges User-specified list of individual IP ranges to advertise in
* custom mode. This field can only be populated if advertiseMode
* is CUSTOM and is advertised to all peers of the router. These IP
* ranges will be advertised in addition to any specified groups.
* Leave this field blank to advertise no custom IP ranges.
* @property asn Local BGP Autonomous System Number (ASN). Must be an RFC6996
* private ASN, either 16-bit or 32-bit. The value will be fixed for
* this router resource. All VPN tunnels that link to this router
* will have the same local ASN.
* @property identifierRange Explicitly specifies a range of valid BGP Identifiers for this Router.
* It is provided as a link-local IPv4 range (from 169.254.0.0/16), of
* size at least /30, even if the BGP sessions are over IPv6. It must
* not overlap with any IPv4 BGP session ranges. Other vendors commonly
* call this router ID.
* @property keepaliveInterval The interval in seconds between BGP keepalive messages that are sent
* to the peer. Hold time is three times the interval at which keepalive
* messages are sent, and the hold time is the maximum number of seconds
* allowed to elapse between successive keepalive messages that BGP
* receives from a peer.
* BGP will use the smaller of either the local hold time value or the
* peer's hold time value as the hold time for the BGP connection
* between the two peers. If set, this value must be between 20 and 60.
* The default is 20.
*/
public data class GetRouterBgp(
public val advertiseMode: String,
public val advertisedGroups: List,
public val advertisedIpRanges: List,
public val asn: Int,
public val identifierRange: String,
public val keepaliveInterval: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetRouterBgp): GetRouterBgp =
GetRouterBgp(
advertiseMode = javaType.advertiseMode(),
advertisedGroups = javaType.advertisedGroups().map({ args0 -> args0 }),
advertisedIpRanges = javaType.advertisedIpRanges().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRouterBgpAdvertisedIpRange.Companion.toKotlin(args0)
})
}),
asn = javaType.asn(),
identifierRange = javaType.identifierRange(),
keepaliveInterval = javaType.keepaliveInterval(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy