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

com.pulumi.gcp.certificateauthority.kotlin.inputs.CertificateTemplateIdentityConstraintsArgs.kt Maven / Gradle / Ivy

@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.CertificateTemplateIdentityConstraintsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property allowSubjectAltNamesPassthrough Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.
 * @property allowSubjectPassthrough Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.
 * @property celExpression Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
 * Structure is documented below.
 */
public data class CertificateTemplateIdentityConstraintsArgs(
    public val allowSubjectAltNamesPassthrough: Output,
    public val allowSubjectPassthrough: Output,
    public val celExpression: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificateauthority.inputs.CertificateTemplateIdentityConstraintsArgs =
        com.pulumi.gcp.certificateauthority.inputs.CertificateTemplateIdentityConstraintsArgs.builder()
            .allowSubjectAltNamesPassthrough(allowSubjectAltNamesPassthrough.applyValue({ args0 -> args0 }))
            .allowSubjectPassthrough(allowSubjectPassthrough.applyValue({ args0 -> args0 }))
            .celExpression(celExpression?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [CertificateTemplateIdentityConstraintsArgs].
 */
@PulumiTagMarker
public class CertificateTemplateIdentityConstraintsArgsBuilder internal constructor() {
    private var allowSubjectAltNamesPassthrough: Output? = null

    private var allowSubjectPassthrough: Output? = null

    private var celExpression: Output? = null

    /**
     * @param value Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.
     */
    @JvmName("isjxxwuruklpipfb")
    public suspend fun allowSubjectAltNamesPassthrough(`value`: Output) {
        this.allowSubjectAltNamesPassthrough = value
    }

    /**
     * @param value Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.
     */
    @JvmName("ebqqrhdribcaxqdo")
    public suspend fun allowSubjectPassthrough(`value`: Output) {
        this.allowSubjectPassthrough = value
    }

    /**
     * @param value Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
     * Structure is documented below.
     */
    @JvmName("vmxcomkfewapfbnn")
    public suspend fun celExpression(`value`: Output) {
        this.celExpression = value
    }

    /**
     * @param value Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.
     */
    @JvmName("jtgdoxqndlrlrnnt")
    public suspend fun allowSubjectAltNamesPassthrough(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowSubjectAltNamesPassthrough = mapped
    }

    /**
     * @param value Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.
     */
    @JvmName("nfdvrwvpdulpxuym")
    public suspend fun allowSubjectPassthrough(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowSubjectPassthrough = mapped
    }

    /**
     * @param value Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
     * Structure is documented below.
     */
    @JvmName("oofbscowtolnyqbj")
    public suspend fun celExpression(`value`: CertificateTemplateIdentityConstraintsCelExpressionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.celExpression = mapped
    }

    /**
     * @param argument Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
     * Structure is documented below.
     */
    @JvmName("sldwqnxaquelpife")
    public suspend fun celExpression(argument: suspend CertificateTemplateIdentityConstraintsCelExpressionArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateTemplateIdentityConstraintsCelExpressionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.celExpression = mapped
    }

    internal fun build(): CertificateTemplateIdentityConstraintsArgs =
        CertificateTemplateIdentityConstraintsArgs(
            allowSubjectAltNamesPassthrough = allowSubjectAltNamesPassthrough ?: throw
                PulumiNullFieldException("allowSubjectAltNamesPassthrough"),
            allowSubjectPassthrough = allowSubjectPassthrough ?: throw
                PulumiNullFieldException("allowSubjectPassthrough"),
            celExpression = celExpression,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy