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

com.pulumi.azure.keyvault.kotlin.inputs.CertifiateCertificatePolicyArgs.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.keyvault.kotlin.inputs

import com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property issuerParameters A `issuer_parameters` block as defined below.
 * @property keyProperties A `key_properties` block as defined below.
 * @property lifetimeActions A `lifetime_action` block as defined below.
 * @property secretProperties A `secret_properties` block as defined below.
 * @property x509CertificateProperties A `x509_certificate_properties` block as defined below. Required when `certificate` block is not specified.
 */
public data class CertifiateCertificatePolicyArgs(
    public val issuerParameters: Output,
    public val keyProperties: Output,
    public val lifetimeActions: Output>? = null,
    public val secretProperties: Output,
    public val x509CertificateProperties:
    Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyArgs =
        com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyArgs.builder()
            .issuerParameters(issuerParameters.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyProperties(keyProperties.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .lifetimeActions(
                lifetimeActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .secretProperties(secretProperties.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .x509CertificateProperties(
                x509CertificateProperties?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [CertifiateCertificatePolicyArgs].
 */
@PulumiTagMarker
public class CertifiateCertificatePolicyArgsBuilder internal constructor() {
    private var issuerParameters: Output? = null

    private var keyProperties: Output? = null

    private var lifetimeActions: Output>? = null

    private var secretProperties: Output? = null

    private var x509CertificateProperties:
        Output? = null

    /**
     * @param value A `issuer_parameters` block as defined below.
     */
    @JvmName("wbitmpjxqwlrxmmt")
    public suspend
    fun issuerParameters(`value`: Output) {
        this.issuerParameters = value
    }

    /**
     * @param value A `key_properties` block as defined below.
     */
    @JvmName("jhfoaoabvqxgkxpp")
    public suspend fun keyProperties(`value`: Output) {
        this.keyProperties = value
    }

    /**
     * @param value A `lifetime_action` block as defined below.
     */
    @JvmName("hmiclwvabhvphgqg")
    public suspend
    fun lifetimeActions(`value`: Output>) {
        this.lifetimeActions = value
    }

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

    /**
     * @param values A `lifetime_action` block as defined below.
     */
    @JvmName("vwaxfrxhydrrevnq")
    public suspend
    fun lifetimeActions(values: List>) {
        this.lifetimeActions = Output.all(values)
    }

    /**
     * @param value A `secret_properties` block as defined below.
     */
    @JvmName("iriklvpuqnbrwxyj")
    public suspend
    fun secretProperties(`value`: Output) {
        this.secretProperties = value
    }

    /**
     * @param value A `x509_certificate_properties` block as defined below. Required when `certificate` block is not specified.
     */
    @JvmName("onojtrwgmhsysplh")
    public suspend
    fun x509CertificateProperties(`value`: Output) {
        this.x509CertificateProperties = value
    }

    /**
     * @param value A `issuer_parameters` block as defined below.
     */
    @JvmName("posqyjmjmhknvbye")
    public suspend fun issuerParameters(`value`: CertifiateCertificatePolicyIssuerParametersArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.issuerParameters = mapped
    }

    /**
     * @param argument A `issuer_parameters` block as defined below.
     */
    @JvmName("cxswayajgcigptdr")
    public suspend
    fun issuerParameters(argument: suspend CertifiateCertificatePolicyIssuerParametersArgsBuilder.() -> Unit) {
        val toBeMapped = CertifiateCertificatePolicyIssuerParametersArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.issuerParameters = mapped
    }

    /**
     * @param value A `key_properties` block as defined below.
     */
    @JvmName("ksknfbjtohmvbbvm")
    public suspend fun keyProperties(`value`: CertifiateCertificatePolicyKeyPropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyProperties = mapped
    }

    /**
     * @param argument A `key_properties` block as defined below.
     */
    @JvmName("djhnvqqenlqucruo")
    public suspend
    fun keyProperties(argument: suspend CertifiateCertificatePolicyKeyPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = CertifiateCertificatePolicyKeyPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.keyProperties = mapped
    }

    /**
     * @param value A `lifetime_action` block as defined below.
     */
    @JvmName("jbnqteaqqubgenfw")
    public suspend
    fun lifetimeActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lifetimeActions = mapped
    }

    /**
     * @param argument A `lifetime_action` block as defined below.
     */
    @JvmName("ftpcdyqivlsdrndf")
    public suspend
    fun lifetimeActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertifiateCertificatePolicyLifetimeActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.lifetimeActions = mapped
    }

    /**
     * @param argument A `lifetime_action` block as defined below.
     */
    @JvmName("qmidfkwakmbumqyq")
    public suspend fun lifetimeActions(
        vararg
        argument: suspend CertifiateCertificatePolicyLifetimeActionArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            CertifiateCertificatePolicyLifetimeActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.lifetimeActions = mapped
    }

    /**
     * @param argument A `lifetime_action` block as defined below.
     */
    @JvmName("ronevskfjwyyvhsc")
    public suspend
    fun lifetimeActions(argument: suspend CertifiateCertificatePolicyLifetimeActionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertifiateCertificatePolicyLifetimeActionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.lifetimeActions = mapped
    }

    /**
     * @param values A `lifetime_action` block as defined below.
     */
    @JvmName("gkgxixegdrnlkoyh")
    public suspend fun lifetimeActions(vararg values: CertifiateCertificatePolicyLifetimeActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lifetimeActions = mapped
    }

    /**
     * @param value A `secret_properties` block as defined below.
     */
    @JvmName("nhrqdpmppygvsqiv")
    public suspend fun secretProperties(`value`: CertifiateCertificatePolicySecretPropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretProperties = mapped
    }

    /**
     * @param argument A `secret_properties` block as defined below.
     */
    @JvmName("hhjexehymxxldonn")
    public suspend
    fun secretProperties(argument: suspend CertifiateCertificatePolicySecretPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = CertifiateCertificatePolicySecretPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.secretProperties = mapped
    }

    /**
     * @param value A `x509_certificate_properties` block as defined below. Required when `certificate` block is not specified.
     */
    @JvmName("rgubstkyvrctuoux")
    public suspend
    fun x509CertificateProperties(`value`: CertifiateCertificatePolicyX509CertificatePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.x509CertificateProperties = mapped
    }

    /**
     * @param argument A `x509_certificate_properties` block as defined below. Required when `certificate` block is not specified.
     */
    @JvmName("oprexhpvahyjsdto")
    public suspend
    fun x509CertificateProperties(argument: suspend CertifiateCertificatePolicyX509CertificatePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = CertifiateCertificatePolicyX509CertificatePropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.x509CertificateProperties = mapped
    }

    internal fun build(): CertifiateCertificatePolicyArgs = CertifiateCertificatePolicyArgs(
        issuerParameters = issuerParameters ?: throw PulumiNullFieldException("issuerParameters"),
        keyProperties = keyProperties ?: throw PulumiNullFieldException("keyProperties"),
        lifetimeActions = lifetimeActions,
        secretProperties = secretProperties ?: throw PulumiNullFieldException("secretProperties"),
        x509CertificateProperties = x509CertificateProperties,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy