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

com.pulumi.gcp.compute.kotlin.outputs.InterconnectMacsec.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property failOpen If set to true, the Interconnect connection is configured with a should-secure
 * MACsec security policy, that allows the Google router to fallback to cleartext
 * traffic if the MKA session cannot be established. By default, the Interconnect
 * connection is configured with a must-secure security policy that drops all traffic
 * if the MKA session cannot be established with your router.
 * @property preSharedKeys A keychain placeholder describing a set of named key objects along with their
 * start times. A MACsec CKN/CAK is generated for each key in the key chain.
 * Google router automatically picks the key with the most recent startTime when establishing
 * or re-establishing a MACsec secure link.
 * Structure is documented below.
 */
public data class InterconnectMacsec(
    public val failOpen: Boolean? = null,
    public val preSharedKeys: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.InterconnectMacsec): InterconnectMacsec = InterconnectMacsec(
            failOpen = javaType.failOpen().map({ args0 -> args0 }).orElse(null),
            preSharedKeys = javaType.preSharedKeys().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.InterconnectMacsecPreSharedKey.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy