
com.pulumi.awsnative.acmpca.kotlin.outputs.CertificateKeyUsage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.acmpca.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
/**
* Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
* @property crlSign Key can be used to sign CRLs.
* @property dataEncipherment Key can be used to decipher data.
* @property decipherOnly Key can be used only to decipher data.
* @property digitalSignature Key can be used for digital signing.
* @property encipherOnly Key can be used only to encipher data.
* @property keyAgreement Key can be used in a key-agreement protocol.
* @property keyCertSign Key can be used to sign certificates.
* @property keyEncipherment Key can be used to encipher data.
* @property nonRepudiation Key can be used for non-repudiation.
*/
public data class CertificateKeyUsage(
public val crlSign: Boolean? = null,
public val dataEncipherment: Boolean? = null,
public val decipherOnly: Boolean? = null,
public val digitalSignature: Boolean? = null,
public val encipherOnly: Boolean? = null,
public val keyAgreement: Boolean? = null,
public val keyCertSign: Boolean? = null,
public val keyEncipherment: Boolean? = null,
public val nonRepudiation: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.acmpca.outputs.CertificateKeyUsage): CertificateKeyUsage = CertificateKeyUsage(
crlSign = javaType.crlSign().map({ args0 -> args0 }).orElse(null),
dataEncipherment = javaType.dataEncipherment().map({ args0 -> args0 }).orElse(null),
decipherOnly = javaType.decipherOnly().map({ args0 -> args0 }).orElse(null),
digitalSignature = javaType.digitalSignature().map({ args0 -> args0 }).orElse(null),
encipherOnly = javaType.encipherOnly().map({ args0 -> args0 }).orElse(null),
keyAgreement = javaType.keyAgreement().map({ args0 -> args0 }).orElse(null),
keyCertSign = javaType.keyCertSign().map({ args0 -> args0 }).orElse(null),
keyEncipherment = javaType.keyEncipherment().map({ args0 -> args0 }).orElse(null),
nonRepudiation = javaType.nonRepudiation().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy