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

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

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

import com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretArgs.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 certificates One or more `certificate` blocks as defined below.
 * @property keyVaultId The ID of the Key Vault from which all Secrets should be sourced.
 */
public data class OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretArgs(
    public val certificates: Output>,
    public val keyVaultId: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretArgs =
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretArgs.builder()
            .certificates(
                certificates.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .keyVaultId(keyVaultId.applyValue({ args0 -> args0 })).build()
}

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

    private var keyVaultId: Output? = null

    /**
     * @param value One or more `certificate` blocks as defined below.
     */
    @JvmName("iopfeysfuumsxwba")
    public suspend fun certificates(`value`: Output>) {
        this.certificates = value
    }

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

    /**
     * @param values One or more `certificate` blocks as defined below.
     */
    @JvmName("myyfrlohxtyyrxfy")
    public suspend fun certificates(values: List>) {
        this.certificates = Output.all(values)
    }

    /**
     * @param value The ID of the Key Vault from which all Secrets should be sourced.
     */
    @JvmName("ttcklpmsflamvcub")
    public suspend fun keyVaultId(`value`: Output) {
        this.keyVaultId = value
    }

    /**
     * @param value One or more `certificate` blocks as defined below.
     */
    @JvmName("cotxusuujylhjhos")
    public suspend fun certificates(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificates = mapped
    }

    /**
     * @param argument One or more `certificate` blocks as defined below.
     */
    @JvmName("vsvwnjvysdundvou")
    public suspend fun certificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretCertificateArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.certificates = mapped
    }

    /**
     * @param argument One or more `certificate` blocks as defined below.
     */
    @JvmName("npoxfbdxrmarlblx")
    public suspend fun certificates(vararg argument: suspend OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretCertificateArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.certificates = mapped
    }

    /**
     * @param argument One or more `certificate` blocks as defined below.
     */
    @JvmName("ekoscecksqxeuyub")
    public suspend fun certificates(argument: suspend OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretCertificateArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretCertificateArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.certificates = mapped
    }

    /**
     * @param values One or more `certificate` blocks as defined below.
     */
    @JvmName("jnlfudtsfqlgocdk")
    public suspend fun certificates(vararg values: OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretCertificateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificates = mapped
    }

    /**
     * @param value The ID of the Key Vault from which all Secrets should be sourced.
     */
    @JvmName("ywxpcsnokwskgdoi")
    public suspend fun keyVaultId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyVaultId = mapped
    }

    internal fun build(): OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretArgs =
        OrchestratedVirtualMachineScaleSetOsProfileWindowsConfigurationSecretArgs(
            certificates = certificates ?: throw PulumiNullFieldException("certificates"),
            keyVaultId = keyVaultId ?: throw PulumiNullFieldException("keyVaultId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy