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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateConfigX509ConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.certificateauthority.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.certificateauthority.inputs.CertificateConfigX509ConfigArgs.builder
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 additionalExtensions (Output)
 * Describes custom X.509 extensions.
 * Structure is documented below.
 * @property aiaOcspServers (Output)
 * Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the
 * "Authority Information Access" extension in the certificate.
 * @property caOptions (Output)
 * Describes values that are relevant in a CA certificate.
 * Structure is documented below.
 * @property keyUsage (Output)
 * Indicates the intended use for keys that correspond to a certificate.
 * Structure is documented below.
 * @property nameConstraints (Output)
 * Describes the X.509 name constraints extension.
 * Structure is documented below.
 * @property policyIds (Output)
 * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
 * Structure is documented below.
 */
public data class CertificateConfigX509ConfigArgs(
    public val additionalExtensions: Output>? =
        null,
    public val aiaOcspServers: Output>? = null,
    public val caOptions: Output? = null,
    public val keyUsage: Output,
    public val nameConstraints: Output? = null,
    public val policyIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateConfigX509ConfigArgs = com.pulumi.gcp.certificateauthority.inputs.CertificateConfigX509ConfigArgs.builder()
        .additionalExtensions(
            additionalExtensions?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        )
        .aiaOcspServers(aiaOcspServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .caOptions(caOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .keyUsage(keyUsage.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .nameConstraints(nameConstraints?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .policyIds(
            policyIds?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    private var aiaOcspServers: Output>? = null

    private var caOptions: Output? = null

    private var keyUsage: Output? = null

    private var nameConstraints: Output? = null

    private var policyIds: Output>? = null

    /**
     * @param value (Output)
     * Describes custom X.509 extensions.
     * Structure is documented below.
     */
    @JvmName("txcrrtuwxfgqcjtp")
    public suspend fun additionalExtensions(`value`: Output>) {
        this.additionalExtensions = value
    }

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

    /**
     * @param values (Output)
     * Describes custom X.509 extensions.
     * Structure is documented below.
     */
    @JvmName("mbdxyihegwksaojg")
    public suspend fun additionalExtensions(values: List>) {
        this.additionalExtensions = Output.all(values)
    }

    /**
     * @param value (Output)
     * Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the
     * "Authority Information Access" extension in the certificate.
     */
    @JvmName("salokciiovrpjwbm")
    public suspend fun aiaOcspServers(`value`: Output>) {
        this.aiaOcspServers = value
    }

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

    /**
     * @param values (Output)
     * Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the
     * "Authority Information Access" extension in the certificate.
     */
    @JvmName("elvgxrwajgvqygex")
    public suspend fun aiaOcspServers(values: List>) {
        this.aiaOcspServers = Output.all(values)
    }

    /**
     * @param value (Output)
     * Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     */
    @JvmName("rewvmcnxnfcnppky")
    public suspend fun caOptions(`value`: Output) {
        this.caOptions = value
    }

    /**
     * @param value (Output)
     * Indicates the intended use for keys that correspond to a certificate.
     * Structure is documented below.
     */
    @JvmName("btccntxejloroomr")
    public suspend fun keyUsage(`value`: Output) {
        this.keyUsage = value
    }

    /**
     * @param value (Output)
     * Describes the X.509 name constraints extension.
     * Structure is documented below.
     */
    @JvmName("tgninbhapqtkoltc")
    public suspend fun nameConstraints(`value`: Output) {
        this.nameConstraints = value
    }

    /**
     * @param value (Output)
     * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * Structure is documented below.
     */
    @JvmName("iayhkrswrsityvhn")
    public suspend fun policyIds(`value`: Output>) {
        this.policyIds = value
    }

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

    /**
     * @param values (Output)
     * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * Structure is documented below.
     */
    @JvmName("yejuopwcqawritwt")
    public suspend fun policyIds(values: List>) {
        this.policyIds = Output.all(values)
    }

    /**
     * @param value (Output)
     * Describes custom X.509 extensions.
     * Structure is documented below.
     */
    @JvmName("embhmliewayhiorm")
    public suspend fun additionalExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

    /**
     * @param argument (Output)
     * Describes custom X.509 extensions.
     * Structure is documented below.
     */
    @JvmName("ilrvoatvwrxkhpxa")
    public suspend fun additionalExtensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateConfigX509ConfigAdditionalExtensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument (Output)
     * Describes custom X.509 extensions.
     * Structure is documented below.
     */
    @JvmName("qhuvfhddeiemjynh")
    public suspend fun additionalExtensions(vararg argument: suspend CertificateConfigX509ConfigAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateConfigX509ConfigAdditionalExtensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument (Output)
     * Describes custom X.509 extensions.
     * Structure is documented below.
     */
    @JvmName("imfbltorvfypsdfi")
    public suspend fun additionalExtensions(argument: suspend CertificateConfigX509ConfigAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertificateConfigX509ConfigAdditionalExtensionArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param values (Output)
     * Describes custom X.509 extensions.
     * Structure is documented below.
     */
    @JvmName("foeyyvexmhibdcfp")
    public suspend fun additionalExtensions(vararg values: CertificateConfigX509ConfigAdditionalExtensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

    /**
     * @param value (Output)
     * Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the
     * "Authority Information Access" extension in the certificate.
     */
    @JvmName("xafgqhrwtexqatxt")
    public suspend fun aiaOcspServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aiaOcspServers = mapped
    }

    /**
     * @param values (Output)
     * Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the
     * "Authority Information Access" extension in the certificate.
     */
    @JvmName("dhnondoyduagdqsi")
    public suspend fun aiaOcspServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.aiaOcspServers = mapped
    }

    /**
     * @param value (Output)
     * Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     */
    @JvmName("bdgrfskvbymnhayb")
    public suspend fun caOptions(`value`: CertificateConfigX509ConfigCaOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caOptions = mapped
    }

    /**
     * @param argument (Output)
     * Describes values that are relevant in a CA certificate.
     * Structure is documented below.
     */
    @JvmName("frmnuxpvayqenusn")
    public suspend fun caOptions(argument: suspend CertificateConfigX509ConfigCaOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateConfigX509ConfigCaOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.caOptions = mapped
    }

    /**
     * @param value (Output)
     * Indicates the intended use for keys that correspond to a certificate.
     * Structure is documented below.
     */
    @JvmName("hhkyhifequeomscr")
    public suspend fun keyUsage(`value`: CertificateConfigX509ConfigKeyUsageArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyUsage = mapped
    }

    /**
     * @param argument (Output)
     * Indicates the intended use for keys that correspond to a certificate.
     * Structure is documented below.
     */
    @JvmName("rswdbpjapodyapkl")
    public suspend fun keyUsage(argument: suspend CertificateConfigX509ConfigKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateConfigX509ConfigKeyUsageArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.keyUsage = mapped
    }

    /**
     * @param value (Output)
     * Describes the X.509 name constraints extension.
     * Structure is documented below.
     */
    @JvmName("hlairrvoidmiodhe")
    public suspend fun nameConstraints(`value`: CertificateConfigX509ConfigNameConstraintsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nameConstraints = mapped
    }

    /**
     * @param argument (Output)
     * Describes the X.509 name constraints extension.
     * Structure is documented below.
     */
    @JvmName("ldmbvuypehgevbbq")
    public suspend fun nameConstraints(argument: suspend CertificateConfigX509ConfigNameConstraintsArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateConfigX509ConfigNameConstraintsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.nameConstraints = mapped
    }

    /**
     * @param value (Output)
     * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * Structure is documented below.
     */
    @JvmName("eophwohkktbojxsh")
    public suspend fun policyIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyIds = mapped
    }

    /**
     * @param argument (Output)
     * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * Structure is documented below.
     */
    @JvmName("xkphtootwskhidbv")
    public suspend fun policyIds(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateConfigX509ConfigPolicyIdArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param argument (Output)
     * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * Structure is documented below.
     */
    @JvmName("dblvvhjnxqlcuhgw")
    public suspend fun policyIds(vararg argument: suspend CertificateConfigX509ConfigPolicyIdArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateConfigX509ConfigPolicyIdArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param argument (Output)
     * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * Structure is documented below.
     */
    @JvmName("oyfldojeixxvwgyy")
    public suspend fun policyIds(argument: suspend CertificateConfigX509ConfigPolicyIdArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertificateConfigX509ConfigPolicyIdArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param values (Output)
     * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
     * Structure is documented below.
     */
    @JvmName("eappquxyfhxyjsos")
    public suspend fun policyIds(vararg values: CertificateConfigX509ConfigPolicyIdArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyIds = mapped
    }

    internal fun build(): CertificateConfigX509ConfigArgs = CertificateConfigX509ConfigArgs(
        additionalExtensions = additionalExtensions,
        aiaOcspServers = aiaOcspServers,
        caOptions = caOptions,
        keyUsage = keyUsage ?: throw PulumiNullFieldException("keyUsage"),
        nameConstraints = nameConstraints,
        policyIds = policyIds,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy