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

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

import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyArgs.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 CertificateCertificatePolicyArgs(
    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.CertificateCertificatePolicyArgs =
        com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyArgs.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 [CertificateCertificatePolicyArgs].
 */
@PulumiTagMarker
public class CertificateCertificatePolicyArgsBuilder 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("qlsamnngktiusbre")
    public suspend fun issuerParameters(`value`: Output) {
        this.issuerParameters = value
    }

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

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

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

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

    /**
     * @param value A `secret_properties` block as defined below.
     */
    @JvmName("bihbygcunqhfvaqy")
    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("fbwtkckikuwttxor")
    public suspend fun x509CertificateProperties(`value`: Output) {
        this.x509CertificateProperties = value
    }

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

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

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

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

    /**
     * @param value A `lifetime_action` block as defined below.
     */
    @JvmName("nyskaclmgghdbkbt")
    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("cbqhixixgiqrrjfx")
    public suspend fun lifetimeActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateCertificatePolicyLifetimeActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.lifetimeActions = mapped
    }

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

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

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

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

    /**
     * @param argument A `secret_properties` block as defined below.
     */
    @JvmName("mtvpguxdijrbtyxx")
    public suspend fun secretProperties(argument: suspend CertificateCertificatePolicySecretPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateCertificatePolicySecretPropertiesArgsBuilder().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("nacdbgmnxxdxxvva")
    public suspend fun x509CertificateProperties(`value`: CertificateCertificatePolicyX509CertificatePropertiesArgs?) {
        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("kxuasxtponqsplpu")
    public suspend fun x509CertificateProperties(argument: suspend CertificateCertificatePolicyX509CertificatePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped =
            CertificateCertificatePolicyX509CertificatePropertiesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.x509CertificateProperties = mapped
    }

    internal fun build(): CertificateCertificatePolicyArgs = CertificateCertificatePolicyArgs(
        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