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

com.pulumi.gcp.compute.kotlin.inputs.InterconnectMacsecArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.InterconnectMacsecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @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 InterconnectMacsecArgs(
    public val preSharedKeys: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InterconnectMacsecArgs =
        com.pulumi.gcp.compute.inputs.InterconnectMacsecArgs.builder()
            .preSharedKeys(
                preSharedKeys.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [InterconnectMacsecArgs].
 */
@PulumiTagMarker
public class InterconnectMacsecArgsBuilder internal constructor() {
    private var preSharedKeys: Output>? = null

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

    @JvmName("vibcjgsmsbllcfar")
    public suspend fun preSharedKeys(vararg values: Output) {
        this.preSharedKeys = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("yfxylrcwaolmfirn")
    public suspend fun preSharedKeys(values: List>) {
        this.preSharedKeys = Output.all(values)
    }

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

    /**
     * @param argument 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.
     */
    @JvmName("okotlmqggoljgloy")
    public suspend fun preSharedKeys(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InterconnectMacsecPreSharedKeyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.preSharedKeys = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("koxgxberxnijrkcc")
    public suspend fun preSharedKeys(vararg argument: suspend InterconnectMacsecPreSharedKeyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InterconnectMacsecPreSharedKeyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.preSharedKeys = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("gecdvotjxlfsnrmx")
    public suspend fun preSharedKeys(argument: suspend InterconnectMacsecPreSharedKeyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            InterconnectMacsecPreSharedKeyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.preSharedKeys = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("iubelswodhwokjfn")
    public suspend fun preSharedKeys(vararg values: InterconnectMacsecPreSharedKeyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.preSharedKeys = mapped
    }

    internal fun build(): InterconnectMacsecArgs = InterconnectMacsecArgs(
        preSharedKeys = preSharedKeys ?: throw PulumiNullFieldException("preSharedKeys"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy