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

com.pulumi.awsnative.acmpca.kotlin.outputs.CertificateAuthorityKeyUsage.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.acmpca.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 * Structure that contains X.509 KeyUsage information.
 * @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 CertificateAuthorityKeyUsage(
    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.CertificateAuthorityKeyUsage): CertificateAuthorityKeyUsage = CertificateAuthorityKeyUsage(
            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