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

com.pulumi.googlenative.compute.beta.kotlin.outputs.InterconnectAttachmentConfigurationConstraintsResponse.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.beta.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property bgpMd5 Whether the attachment's BGP session requires/allows/disallows BGP MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP MD5 authentication has the interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if MD5 is requested.
 * @property bgpPeerAsnRanges List of ASN ranges that the remote location is known to support. Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the range 64512-65534. This field is only advisory. Although the API accepts other ranges, these are the ranges that we recommend.
 */
public data class InterconnectAttachmentConfigurationConstraintsResponse(
    public val bgpMd5: String,
    public val bgpPeerAsnRanges: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.beta.outputs.InterconnectAttachmentConfigurationConstraintsResponse): InterconnectAttachmentConfigurationConstraintsResponse =
            InterconnectAttachmentConfigurationConstraintsResponse(
                bgpMd5 = javaType.bgpMd5(),
                bgpPeerAsnRanges = javaType.bgpPeerAsnRanges().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.googlenative.compute.beta.kotlin.outputs.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRangeResponse.Companion.toKotlin(args0)
                    })
                }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy