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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CaPoolIssuancePolicyBaselineValuesArgs.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.12.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.CaPoolIssuancePolicyBaselineValuesArgs.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 Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
 * Structure is documented below.
 * @property aiaOcspServers Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the
 * "Authority Information Access" extension in the certificate.
 * @property caOptions Describes values that are relevant in a CA certificate.
 * Structure is documented below.
 * @property keyUsage Indicates the intended use for keys that correspond to a certificate.
 * Structure is documented below.
 * @property nameConstraints Describes the X.509 name constraints extension.
 * Structure is documented below.
 * @property policyIds 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 CaPoolIssuancePolicyBaselineValuesArgs(
    public val additionalExtensions: Output>? = null,
    public val aiaOcspServers: Output>? = null,
    public val caOptions: Output,
    public val keyUsage: Output,
    public val nameConstraints: Output? = null,
    public val policyIds: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesArgs =
        com.pulumi.gcp.certificateauthority.inputs.CaPoolIssuancePolicyBaselineValuesArgs.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 [CaPoolIssuancePolicyBaselineValuesArgs].
 */
@PulumiTagMarker
public class CaPoolIssuancePolicyBaselineValuesArgsBuilder 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 Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
     * Structure is documented below.
     */
    @JvmName("qfcdgtfaiskaajpa")
    public suspend fun additionalExtensions(`value`: Output>) {
        this.additionalExtensions = value
    }

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

    /**
     * @param values Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
     * Structure is documented below.
     */
    @JvmName("hthnksefpqurtgkf")
    public suspend fun additionalExtensions(values: List>) {
        this.additionalExtensions = Output.all(values)
    }

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

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

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

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

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

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

    /**
     * @param value 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("qtnehjhyrpohevwl")
    public suspend fun policyIds(`value`: Output>) {
        this.policyIds = value
    }

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

    /**
     * @param values 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("tkibceuonrweqdiw")
    public suspend fun policyIds(values: List>) {
        this.policyIds = Output.all(values)
    }

    /**
     * @param value Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
     * Structure is documented below.
     */
    @JvmName("jyvjfnhfhalfcnif")
    public suspend fun additionalExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
     * Structure is documented below.
     */
    @JvmName("owgotykfwsfoiidx")
    public suspend fun additionalExtensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
     * Structure is documented below.
     */
    @JvmName("ifvdthmwahbqtntj")
    public suspend fun additionalExtensions(vararg argument: suspend CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param argument Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
     * Structure is documented below.
     */
    @JvmName("nkhkvxpdjvdwopia")
    public suspend fun additionalExtensions(argument: suspend CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.additionalExtensions = mapped
    }

    /**
     * @param values Specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
     * Structure is documented below.
     */
    @JvmName("xpvbthvlyaqitssk")
    public suspend fun additionalExtensions(vararg values: CaPoolIssuancePolicyBaselineValuesAdditionalExtensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalExtensions = mapped
    }

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

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

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

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

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

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

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

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

    /**
     * @param value 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("juowcbhqbxwvapxx")
    public suspend fun policyIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyIds = mapped
    }

    /**
     * @param argument 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("wuaojwjhltlblwxy")
    public suspend fun policyIds(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CaPoolIssuancePolicyBaselineValuesPolicyIdArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param argument 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("gtjpyhiiyrwlijph")
    public suspend fun policyIds(vararg argument: suspend CaPoolIssuancePolicyBaselineValuesPolicyIdArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CaPoolIssuancePolicyBaselineValuesPolicyIdArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param argument 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("edceafeabvqsglky")
    public suspend fun policyIds(argument: suspend CaPoolIssuancePolicyBaselineValuesPolicyIdArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CaPoolIssuancePolicyBaselineValuesPolicyIdArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.policyIds = mapped
    }

    /**
     * @param values 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("mliupmynkscttkno")
    public suspend fun policyIds(vararg values: CaPoolIssuancePolicyBaselineValuesPolicyIdArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyIds = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy