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

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.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
 */
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("fiwgjhgoiqcpkulq")
    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("usuuhpcfupeqadse")
    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
     */
    @JvmName("bpaqqliauwhyusux")
    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("wfoxelnlgrobbywj")
    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("pkwjkyoojreohlfl")
    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
     */
    @JvmName("mrqrefbmnlfsnmjg")
    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
     */
    @JvmName("thskwuqfvauctcyg")
    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