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

com.pulumi.azure.keyvault.kotlin.inputs.CertifiateCertificatePolicyKeyPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin.inputs

import com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyKeyPropertiesArgs.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 kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property curve Specifies the curve to use when creating an `EC` key. Possible values are `P-256`, `P-256K`, `P-384`, and `P-521`. This field will be required in a future release if `key_type` is `EC` or `EC-HSM`.
 * @property exportable Is this certificate exportable?
 * @property keySize The size of the key used in the certificate. Possible values include `2048`, `3072`, and `4096` for `RSA` keys, or `256`, `384`, and `521` for `EC` keys. This property is required when using RSA keys.
 * @property keyType Specifies the type of key. Possible values are `EC`, `EC-HSM`, `RSA`, `RSA-HSM` and `oct`.
 * @property reuseKey Is the key reusable?
 */
public data class CertifiateCertificatePolicyKeyPropertiesArgs(
    public val curve: Output? = null,
    public val exportable: Output,
    public val keySize: Output? = null,
    public val keyType: Output,
    public val reuseKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyKeyPropertiesArgs =
        com.pulumi.azure.keyvault.inputs.CertifiateCertificatePolicyKeyPropertiesArgs.builder()
            .curve(curve?.applyValue({ args0 -> args0 }))
            .exportable(exportable.applyValue({ args0 -> args0 }))
            .keySize(keySize?.applyValue({ args0 -> args0 }))
            .keyType(keyType.applyValue({ args0 -> args0 }))
            .reuseKey(reuseKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertifiateCertificatePolicyKeyPropertiesArgs].
 */
@PulumiTagMarker
public class CertifiateCertificatePolicyKeyPropertiesArgsBuilder internal constructor() {
    private var curve: Output? = null

    private var exportable: Output? = null

    private var keySize: Output? = null

    private var keyType: Output? = null

    private var reuseKey: Output? = null

    /**
     * @param value Specifies the curve to use when creating an `EC` key. Possible values are `P-256`, `P-256K`, `P-384`, and `P-521`. This field will be required in a future release if `key_type` is `EC` or `EC-HSM`.
     */
    @JvmName("avlxepgpogqgdrki")
    public suspend fun curve(`value`: Output) {
        this.curve = value
    }

    /**
     * @param value Is this certificate exportable?
     */
    @JvmName("rtuxfgoiveswbfwb")
    public suspend fun exportable(`value`: Output) {
        this.exportable = value
    }

    /**
     * @param value The size of the key used in the certificate. Possible values include `2048`, `3072`, and `4096` for `RSA` keys, or `256`, `384`, and `521` for `EC` keys. This property is required when using RSA keys.
     */
    @JvmName("epwwjspvmfaaixfu")
    public suspend fun keySize(`value`: Output) {
        this.keySize = value
    }

    /**
     * @param value Specifies the type of key. Possible values are `EC`, `EC-HSM`, `RSA`, `RSA-HSM` and `oct`.
     */
    @JvmName("irrisoseupaoprea")
    public suspend fun keyType(`value`: Output) {
        this.keyType = value
    }

    /**
     * @param value Is the key reusable?
     */
    @JvmName("hqhkowumybudtdos")
    public suspend fun reuseKey(`value`: Output) {
        this.reuseKey = value
    }

    /**
     * @param value Specifies the curve to use when creating an `EC` key. Possible values are `P-256`, `P-256K`, `P-384`, and `P-521`. This field will be required in a future release if `key_type` is `EC` or `EC-HSM`.
     */
    @JvmName("sflajotysoilnwxh")
    public suspend fun curve(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.curve = mapped
    }

    /**
     * @param value Is this certificate exportable?
     */
    @JvmName("igbxbditkvkrklps")
    public suspend fun exportable(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exportable = mapped
    }

    /**
     * @param value The size of the key used in the certificate. Possible values include `2048`, `3072`, and `4096` for `RSA` keys, or `256`, `384`, and `521` for `EC` keys. This property is required when using RSA keys.
     */
    @JvmName("lksnhdjsrfspdhwh")
    public suspend fun keySize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keySize = mapped
    }

    /**
     * @param value Specifies the type of key. Possible values are `EC`, `EC-HSM`, `RSA`, `RSA-HSM` and `oct`.
     */
    @JvmName("qdujbqvnvjepyrnb")
    public suspend fun keyType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyType = mapped
    }

    /**
     * @param value Is the key reusable?
     */
    @JvmName("auvwysxcaiumcgkd")
    public suspend fun reuseKey(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.reuseKey = mapped
    }

    internal fun build(): CertifiateCertificatePolicyKeyPropertiesArgs =
        CertifiateCertificatePolicyKeyPropertiesArgs(
            curve = curve,
            exportable = exportable ?: throw PulumiNullFieldException("exportable"),
            keySize = keySize,
            keyType = keyType ?: throw PulumiNullFieldException("keyType"),
            reuseKey = reuseKey ?: throw PulumiNullFieldException("reuseKey"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy