
com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateTemplateIdentityConstraints.kt Maven / Gradle / Ivy
@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
* Structure is documented below.
*/
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 - 2025 Weber Informatics LLC | Privacy Policy