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

com.pulumi.gcp.compute.kotlin.outputs.RouterBgp.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.12.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
import kotlin.collections.List

/**
 *
 * @property advertiseMode User-specified flag to indicate which mode to use for advertisement.
 * Default value is `DEFAULT`.
 * Possible values are: `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.
 * Structure is documented below.
 * @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 RouterBgp(
    public val advertiseMode: String? = null,
    public val advertisedGroups: List? = null,
    public val advertisedIpRanges: List? = null,
    public val asn: Int,
    public val identifierRange: String? = null,
    public val keepaliveInterval: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RouterBgp): RouterBgp = RouterBgp(
            advertiseMode = javaType.advertiseMode().map({ args0 -> args0 }).orElse(null),
            advertisedGroups = javaType.advertisedGroups().map({ args0 -> args0 }),
            advertisedIpRanges = javaType.advertisedIpRanges().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RouterBgpAdvertisedIpRange.Companion.toKotlin(args0)
                })
            }),
            asn = javaType.asn(),
            identifierRange = javaType.identifierRange().map({ args0 -> args0 }).orElse(null),
            keepaliveInterval = javaType.keepaliveInterval().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy