com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateCertificateDescriptionSubjectDescription.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 hexSerialNumber (Output)
* The serial number encoded in lowercase hexadecimal.
* @property lifetime The desired lifetime of the CA certificate. Used to create the "notBeforeTime" and
* "notAfterTime" fields inside an X.509 certificate. A duration in seconds with up to nine
* fractional digits, terminated by 's'. Example: "3.5s".
* @property notAfterTime (Output)
* The time at which the certificate expires.
* @property notBeforeTime (Output)
* The time at which the certificate becomes valid.
* @property subjectAltNames (Output)
* The subject alternative name fields.
* Structure is documented below.
* @property subjects (Output)
* Contains distinguished name fields such as the location and organization.
* Structure is documented below.
*/
public data class CertificateCertificateDescriptionSubjectDescription(
public val hexSerialNumber: String? = null,
public val lifetime: String? = null,
public val notAfterTime: String? = null,
public val notBeforeTime: String? = null,
public val subjectAltNames: List? = null,
public val subjects: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.certificateauthority.outputs.CertificateCertificateDescriptionSubjectDescription): CertificateCertificateDescriptionSubjectDescription =
CertificateCertificateDescriptionSubjectDescription(
hexSerialNumber = javaType.hexSerialNumber().map({ args0 -> args0 }).orElse(null),
lifetime = javaType.lifetime().map({ args0 -> args0 }).orElse(null),
notAfterTime = javaType.notAfterTime().map({ args0 -> args0 }).orElse(null),
notBeforeTime = javaType.notBeforeTime().map({ args0 -> args0 }).orElse(null),
subjectAltNames = javaType.subjectAltNames().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateCertificateDescriptionSubjectDescriptionSubjectAltName.Companion.toKotlin(args0)
})
}),
subjects = javaType.subjects().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateCertificateDescriptionSubjectDescriptionSubject.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy