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

com.pulumi.gcp.compute.kotlin.inputs.InterconnectMacsecPreSharedKeyArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.InterconnectMacsecPreSharedKeyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 InterconnectMacsecPreSharedKeyArgs(
    public val failOpen: Output? = null,
    public val name: Output,
    public val startTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InterconnectMacsecPreSharedKeyArgs =
        com.pulumi.gcp.compute.inputs.InterconnectMacsecPreSharedKeyArgs.builder()
            .failOpen(failOpen?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .startTime(startTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InterconnectMacsecPreSharedKeyArgs].
 */
@PulumiTagMarker
public class InterconnectMacsecPreSharedKeyArgsBuilder internal constructor() {
    private var failOpen: Output? = null

    private var name: Output? = null

    private var startTime: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("asggknbqdhtryioj")
    public suspend fun failOpen(`value`: Output) {
        this.failOpen = value
    }

    /**
     * @param value 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.
     */
    @JvmName("bswfgraranclrkif")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value 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.
     */
    @JvmName("yhlkyxlmdsgaevhy")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value 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.
     */
    @JvmName("trxaouopictyckem")
    public suspend fun failOpen(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failOpen = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("bpchpdwciexfyvhh")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("qxseiottrlporyeb")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    internal fun build(): InterconnectMacsecPreSharedKeyArgs = InterconnectMacsecPreSharedKeyArgs(
        failOpen = failOpen,
        name = name ?: throw PulumiNullFieldException("name"),
        startTime = startTime,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy