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

com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateTemplateIdentityConstraints.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.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 *
 * @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 CertificateTemplateIdentityConstraints(
    public val allowSubjectAltNamesPassthrough: Boolean,
    public val allowSubjectPassthrough: Boolean,
    public val celExpression: CertificateTemplateIdentityConstraintsCelExpression? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.certificateauthority.outputs.CertificateTemplateIdentityConstraints): CertificateTemplateIdentityConstraints = CertificateTemplateIdentityConstraints(
            allowSubjectAltNamesPassthrough = javaType.allowSubjectAltNamesPassthrough(),
            allowSubjectPassthrough = javaType.allowSubjectPassthrough(),
            celExpression = javaType.celExpression().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateTemplateIdentityConstraintsCelExpression.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy