com.pulumi.gcp.certificateauthority.kotlin.outputs.CaPoolIssuancePolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.certificateauthority.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property allowedIssuanceModes IssuanceModes specifies the allowed ways in which Certificates may be requested from this CaPool.
* Structure is documented below.
* @property allowedKeyTypes If any AllowedKeyType is specified, then the certificate request's public key must match one of the key types listed here.
* Otherwise, any key may be used.
* Structure is documented below.
* @property baselineValues A set of X.509 values that will be applied to all certificates issued through this CaPool. If a certificate request
* includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate
* request uses a CertificateTemplate that defines conflicting predefinedValues for the same properties, the certificate
* issuance request will fail.
* Structure is documented below.
* @property identityConstraints Describes constraints on identities that may appear in Certificates issued through this CaPool.
* If this is omitted, then this CaPool will not add restrictions on a certificate's identity.
* Structure is documented below.
* @property maximumLifetime The maximum lifetime allowed for issued Certificates. Note that if the issuing CertificateAuthority
* expires before a Certificate's requested maximumLifetime, the effective lifetime will be explicitly truncated to match it.
*/
public data class CaPoolIssuancePolicy(
public val allowedIssuanceModes: CaPoolIssuancePolicyAllowedIssuanceModes? = null,
public val allowedKeyTypes: List? = null,
public val baselineValues: CaPoolIssuancePolicyBaselineValues? = null,
public val identityConstraints: CaPoolIssuancePolicyIdentityConstraints? = null,
public val maximumLifetime: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.certificateauthority.outputs.CaPoolIssuancePolicy): CaPoolIssuancePolicy = CaPoolIssuancePolicy(
allowedIssuanceModes = javaType.allowedIssuanceModes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CaPoolIssuancePolicyAllowedIssuanceModes.Companion.toKotlin(args0)
})
}).orElse(null),
allowedKeyTypes = javaType.allowedKeyTypes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CaPoolIssuancePolicyAllowedKeyType.Companion.toKotlin(args0)
})
}),
baselineValues = javaType.baselineValues().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CaPoolIssuancePolicyBaselineValues.Companion.toKotlin(args0)
})
}).orElse(null),
identityConstraints = javaType.identityConstraints().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CaPoolIssuancePolicyIdentityConstraints.Companion.toKotlin(args0)
})
}).orElse(null),
maximumLifetime = javaType.maximumLifetime().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy