com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfig.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.Suppress
/**
*
* @property publicKey A PublicKey describes a public key.
* Structure is documented below.
* The `x509_config` block supports:
* @property subjectConfig Specifies some of the values in a certificate that are related to the subject.
* Structure is documented below.
* @property subjectKeyId When specified this provides a custom SKI to be used in the certificate. This should only be used to maintain a SKI of an existing CA originally created outside CA service, which was not generated using method (1) described in RFC 5280 section 4.2.1.2..
* Structure is documented below.
* @property x509Config Describes how some of the technical X.509 fields in a certificate should be populated.
* Structure is documented below.
*/
public data class CertificateConfig(
public val publicKey: CertificateConfigPublicKey,
public val subjectConfig: CertificateConfigSubjectConfig,
public val subjectKeyId: CertificateConfigSubjectKeyId? = null,
public val x509Config: CertificateConfigX509Config,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.certificateauthority.outputs.CertificateConfig): CertificateConfig = CertificateConfig(
publicKey = javaType.publicKey().let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigPublicKey.Companion.toKotlin(args0)
}),
subjectConfig = javaType.subjectConfig().let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigSubjectConfig.Companion.toKotlin(args0)
}),
subjectKeyId = javaType.subjectKeyId().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigSubjectKeyId.Companion.toKotlin(args0)
})
}).orElse(null),
x509Config = javaType.x509Config().let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigX509Config.Companion.toKotlin(args0)
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy