com.pulumi.gcp.compute.kotlin.outputs.InterconnectMacsecPreSharedKey.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @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 name A name for this pre-shared key. The name must be 1-63 characters long, and
* comply with RFC1035. Specifically, the name must be 1-63 characters long and match
* the regular expression `a-z?` which means the first character
* must be a lowercase letter, and all following characters must be a dash, lowercase
* letter, or digit, except the last character, which cannot be a dash.
* @property startTime A RFC3339 timestamp on or after which the key is valid. startTime can be in the
* future. If the keychain has a single key, startTime can be omitted. If the keychain
* has multiple keys, startTime is mandatory for each key. The start times of keys must
* be in increasing order. The start times of two consecutive keys must be at least 6
* hours apart.
*/
public data class InterconnectMacsecPreSharedKey(
public val failOpen: Boolean? = null,
public val name: String,
public val startTime: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.InterconnectMacsecPreSharedKey): InterconnectMacsecPreSharedKey = InterconnectMacsecPreSharedKey(
failOpen = javaType.failOpen().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
startTime = javaType.startTime().map({ args0 -> args0 }).orElse(null),
)
}
}