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

com.pulumi.gcp.certificateauthority.kotlin.outputs.CaPoolIssuancePolicyIdentityConstraints.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 If this is set, the SubjectAltNames extension may be copied from a certificate request into the signed certificate.
 * Otherwise, the requested SubjectAltNames will be discarded.
 * @property allowSubjectPassthrough If this is set, the Subject field may be copied from a certificate request into the signed certificate.
 * Otherwise, the requested Subject will be discarded.
 * @property celExpression 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/cel-guide
 * Structure is documented below.
 */
public data class CaPoolIssuancePolicyIdentityConstraints(
    public val allowSubjectAltNamesPassthrough: Boolean,
    public val allowSubjectPassthrough: Boolean,
    public val celExpression: CaPoolIssuancePolicyIdentityConstraintsCelExpression? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.certificateauthority.outputs.CaPoolIssuancePolicyIdentityConstraints): CaPoolIssuancePolicyIdentityConstraints = CaPoolIssuancePolicyIdentityConstraints(
            allowSubjectAltNamesPassthrough = javaType.allowSubjectAltNamesPassthrough(),
            allowSubjectPassthrough = javaType.allowSubjectPassthrough(),
            celExpression = javaType.celExpression().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.certificateauthority.kotlin.outputs.CaPoolIssuancePolicyIdentityConstraintsCelExpression.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy