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

com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificatePolicyX509CertificateProperties.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property extendedKeyUsages A list of Extended/Enhanced Key Usages.
 * @property keyUsages A list of uses associated with this Key. Possible values include `cRLSign`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `encipherOnly`, `keyAgreement`, `keyCertSign`, `keyEncipherment` and `nonRepudiation` and are case-sensitive.
 * @property subject The Certificate's Subject.
 * @property subjectAlternativeNames A `subject_alternative_names` block as defined below.
 * @property validityInMonths The Certificates Validity Period in Months.
 */
public data class CertifiateCertificatePolicyX509CertificateProperties(
    public val extendedKeyUsages: List? = null,
    public val keyUsages: List,
    public val subject: String,
    public val subjectAlternativeNames:
    CertifiateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNames? = null,
    public val validityInMonths: Int,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.keyvault.outputs.CertifiateCertificatePolicyX509CertificateProperties):
            CertifiateCertificatePolicyX509CertificateProperties =
            CertifiateCertificatePolicyX509CertificateProperties(
                extendedKeyUsages = javaType.extendedKeyUsages().map({ args0 -> args0 }),
                keyUsages = javaType.keyUsages().map({ args0 -> args0 }),
                subject = javaType.subject(),
                subjectAlternativeNames = javaType.subjectAlternativeNames().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNames.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                validityInMonths = javaType.validityInMonths(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy