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

com.pulumi.azurenative.iotoperations.kotlin.outputs.AutomaticCertMethodResponse.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.iotoperations.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Automatic TLS server certificate management with cert-manager
 * @property duration Lifetime of certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
 * @property issuerRef cert-manager issuerRef.
 * @property privateKey Type of certificate private key.
 * @property renewBefore When to begin renewing certificate. Must be specified using a Go time.Duration format (h|m|s). E.g. 240h for 240 hours and 45m for 45 minutes.
 * @property san Additional Subject Alternative Names (SANs) to include in the certificate.
 * @property secretRef Secret for storing server certificate. Any existing data will be overwritten. This is a reference to the secret through an identifying name, not the secret itself.
 */
public data class AutomaticCertMethodResponse(
    public val duration: String? = null,
    public val issuerRef: CertManagerIssuerRefResponse,
    public val privateKey: CertManagerPrivateKeyResponse? = null,
    public val renewBefore: String? = null,
    public val san: SanForCertResponse? = null,
    public val secretRef: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.iotoperations.outputs.AutomaticCertMethodResponse): AutomaticCertMethodResponse = AutomaticCertMethodResponse(
            duration = javaType.duration().map({ args0 -> args0 }).orElse(null),
            issuerRef = javaType.issuerRef().let({ args0 ->
                com.pulumi.azurenative.iotoperations.kotlin.outputs.CertManagerIssuerRefResponse.Companion.toKotlin(args0)
            }),
            privateKey = javaType.privateKey().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.iotoperations.kotlin.outputs.CertManagerPrivateKeyResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            renewBefore = javaType.renewBefore().map({ args0 -> args0 }).orElse(null),
            san = javaType.san().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.iotoperations.kotlin.outputs.SanForCertResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            secretRef = javaType.secretRef().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy