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

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

package com.pulumi.azure.compute.kotlin.inputs

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

/**
 *
 * @property sourceVaultId Specifies the key vault to use.
 * @property vaultCertificates (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
 */
public data class ScaleSetOsProfileSecretArgs(
    public val sourceVaultId: Output,
    public val vaultCertificates: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.ScaleSetOsProfileSecretArgs =
        com.pulumi.azure.compute.inputs.ScaleSetOsProfileSecretArgs.builder()
            .sourceVaultId(sourceVaultId.applyValue({ args0 -> args0 }))
            .vaultCertificates(
                vaultCertificates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ScaleSetOsProfileSecretArgs].
 */
@PulumiTagMarker
public class ScaleSetOsProfileSecretArgsBuilder internal constructor() {
    private var sourceVaultId: Output? = null

    private var vaultCertificates: Output>? = null

    /**
     * @param value Specifies the key vault to use.
     */
    @JvmName("asvdjyhrovarqtde")
    public suspend fun sourceVaultId(`value`: Output) {
        this.sourceVaultId = value
    }

    /**
     * @param value (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     */
    @JvmName("onxibypthxslfgsu")
    public suspend
    fun vaultCertificates(`value`: Output>) {
        this.vaultCertificates = value
    }

    @JvmName("vkalmcwpvimegewd")
    public suspend fun vaultCertificates(
        vararg
        values: Output,
    ) {
        this.vaultCertificates = Output.all(values.asList())
    }

    /**
     * @param values (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     */
    @JvmName("vachdriyuawdldfu")
    public suspend
    fun vaultCertificates(values: List>) {
        this.vaultCertificates = Output.all(values)
    }

    /**
     * @param value Specifies the key vault to use.
     */
    @JvmName("koplrdwsshrsxrao")
    public suspend fun sourceVaultId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceVaultId = mapped
    }

    /**
     * @param value (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     */
    @JvmName("unaueiosvxbxrbsa")
    public suspend
    fun vaultCertificates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vaultCertificates = mapped
    }

    /**
     * @param argument (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     */
    @JvmName("kngcytkaloxwnxsj")
    public suspend
    fun vaultCertificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ScaleSetOsProfileSecretVaultCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vaultCertificates = mapped
    }

    /**
     * @param argument (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     */
    @JvmName("dubmhtfmtdorwqgk")
    public suspend fun vaultCertificates(
        vararg
        argument: suspend ScaleSetOsProfileSecretVaultCertificateArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ScaleSetOsProfileSecretVaultCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vaultCertificates = mapped
    }

    /**
     * @param argument (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     */
    @JvmName("lxigvtifndrtpusu")
    public suspend
    fun vaultCertificates(argument: suspend ScaleSetOsProfileSecretVaultCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ScaleSetOsProfileSecretVaultCertificateArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.vaultCertificates = mapped
    }

    /**
     * @param values (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     */
    @JvmName("umcugnxlussavxab")
    public suspend fun vaultCertificates(vararg values: ScaleSetOsProfileSecretVaultCertificateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vaultCertificates = mapped
    }

    internal fun build(): ScaleSetOsProfileSecretArgs = ScaleSetOsProfileSecretArgs(
        sourceVaultId = sourceVaultId ?: throw PulumiNullFieldException("sourceVaultId"),
        vaultCertificates = vaultCertificates,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy