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

com.pulumi.gcp.kms.kotlin.inputs.EkmConnectionServiceResolverServerCertificateArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.kms.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.kms.inputs.EkmConnectionServiceResolverServerCertificateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property issuer (Output)
 * Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
 * @property notAfterTime (Output)
 * Output only. The certificate is not valid after this time. Only present if parsed is true.
 * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
 * @property notBeforeTime (Output)
 * Output only. The certificate is not valid before this time. Only present if parsed is true.
 * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
 * @property parsed (Output)
 * Output only. True if the certificate was parsed successfully.
 * @property rawDer Required. The raw certificate bytes in DER format. A base64-encoded string.
 * @property serialNumber (Output)
 * Output only. The certificate serial number as a hex string. Only present if parsed is true.
 * @property sha256Fingerprint (Output)
 * Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
 * @property subject (Output)
 * Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
 * @property subjectAlternativeDnsNames (Output)
 * Output only. The subject Alternative DNS names. Only present if parsed is true.
 * - - -
 */
public data class EkmConnectionServiceResolverServerCertificateArgs(
    public val issuer: Output? = null,
    public val notAfterTime: Output? = null,
    public val notBeforeTime: Output? = null,
    public val parsed: Output? = null,
    public val rawDer: Output,
    public val serialNumber: Output? = null,
    public val sha256Fingerprint: Output? = null,
    public val subject: Output? = null,
    public val subjectAlternativeDnsNames: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.EkmConnectionServiceResolverServerCertificateArgs = com.pulumi.gcp.kms.inputs.EkmConnectionServiceResolverServerCertificateArgs.builder()
        .issuer(issuer?.applyValue({ args0 -> args0 }))
        .notAfterTime(notAfterTime?.applyValue({ args0 -> args0 }))
        .notBeforeTime(notBeforeTime?.applyValue({ args0 -> args0 }))
        .parsed(parsed?.applyValue({ args0 -> args0 }))
        .rawDer(rawDer.applyValue({ args0 -> args0 }))
        .serialNumber(serialNumber?.applyValue({ args0 -> args0 }))
        .sha256Fingerprint(sha256Fingerprint?.applyValue({ args0 -> args0 }))
        .subject(subject?.applyValue({ args0 -> args0 }))
        .subjectAlternativeDnsNames(
            subjectAlternativeDnsNames?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }),
        ).build()
}

/**
 * Builder for [EkmConnectionServiceResolverServerCertificateArgs].
 */
@PulumiTagMarker
public class EkmConnectionServiceResolverServerCertificateArgsBuilder internal constructor() {
    private var issuer: Output? = null

    private var notAfterTime: Output? = null

    private var notBeforeTime: Output? = null

    private var parsed: Output? = null

    private var rawDer: Output? = null

    private var serialNumber: Output? = null

    private var sha256Fingerprint: Output? = null

    private var subject: Output? = null

    private var subjectAlternativeDnsNames: Output>? = null

    /**
     * @param value (Output)
     * Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
     */
    @JvmName("wuhshrqrjujsihhm")
    public suspend fun issuer(`value`: Output) {
        this.issuer = value
    }

    /**
     * @param value (Output)
     * Output only. The certificate is not valid after this time. Only present if parsed is true.
     * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("nbigmwrlebdokvuu")
    public suspend fun notAfterTime(`value`: Output) {
        this.notAfterTime = value
    }

    /**
     * @param value (Output)
     * Output only. The certificate is not valid before this time. Only present if parsed is true.
     * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("ttodetwquaxfwbqi")
    public suspend fun notBeforeTime(`value`: Output) {
        this.notBeforeTime = value
    }

    /**
     * @param value (Output)
     * Output only. True if the certificate was parsed successfully.
     */
    @JvmName("haonmmhflxarnasn")
    public suspend fun parsed(`value`: Output) {
        this.parsed = value
    }

    /**
     * @param value Required. The raw certificate bytes in DER format. A base64-encoded string.
     */
    @JvmName("mwxsqcpwhosfyyei")
    public suspend fun rawDer(`value`: Output) {
        this.rawDer = value
    }

    /**
     * @param value (Output)
     * Output only. The certificate serial number as a hex string. Only present if parsed is true.
     */
    @JvmName("pwqbdtlocavibyjv")
    public suspend fun serialNumber(`value`: Output) {
        this.serialNumber = value
    }

    /**
     * @param value (Output)
     * Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
     */
    @JvmName("utoldmjoplrcmxmg")
    public suspend fun sha256Fingerprint(`value`: Output) {
        this.sha256Fingerprint = value
    }

    /**
     * @param value (Output)
     * Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
     */
    @JvmName("tqhinnqkkelycwpp")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value (Output)
     * Output only. The subject Alternative DNS names. Only present if parsed is true.
     * - - -
     */
    @JvmName("xjjwwcmkiwtlqbom")
    public suspend fun subjectAlternativeDnsNames(`value`: Output>) {
        this.subjectAlternativeDnsNames = value
    }

    @JvmName("dwumtjeytksugsqb")
    public suspend fun subjectAlternativeDnsNames(vararg values: Output) {
        this.subjectAlternativeDnsNames = Output.all(values.asList())
    }

    /**
     * @param values (Output)
     * Output only. The subject Alternative DNS names. Only present if parsed is true.
     * - - -
     */
    @JvmName("saswftgsfsdtgohr")
    public suspend fun subjectAlternativeDnsNames(values: List>) {
        this.subjectAlternativeDnsNames = Output.all(values)
    }

    /**
     * @param value (Output)
     * Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
     */
    @JvmName("qqoksrgamyhvinpg")
    public suspend fun issuer(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issuer = mapped
    }

    /**
     * @param value (Output)
     * Output only. The certificate is not valid after this time. Only present if parsed is true.
     * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("kmrgtvflrsoqlcnw")
    public suspend fun notAfterTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notAfterTime = mapped
    }

    /**
     * @param value (Output)
     * Output only. The certificate is not valid before this time. Only present if parsed is true.
     * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("ijlxfdwgbgxykfjt")
    public suspend fun notBeforeTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notBeforeTime = mapped
    }

    /**
     * @param value (Output)
     * Output only. True if the certificate was parsed successfully.
     */
    @JvmName("eijogkuiiktevejg")
    public suspend fun parsed(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parsed = mapped
    }

    /**
     * @param value Required. The raw certificate bytes in DER format. A base64-encoded string.
     */
    @JvmName("ojgrcmgfsuflylbn")
    public suspend fun rawDer(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rawDer = mapped
    }

    /**
     * @param value (Output)
     * Output only. The certificate serial number as a hex string. Only present if parsed is true.
     */
    @JvmName("tjcbrfgxlshinpbu")
    public suspend fun serialNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serialNumber = mapped
    }

    /**
     * @param value (Output)
     * Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
     */
    @JvmName("fxlkecximcrqnouu")
    public suspend fun sha256Fingerprint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sha256Fingerprint = mapped
    }

    /**
     * @param value (Output)
     * Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
     */
    @JvmName("blqqsphlbtplfoxs")
    public suspend fun subject(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param value (Output)
     * Output only. The subject Alternative DNS names. Only present if parsed is true.
     * - - -
     */
    @JvmName("ecddpgmgibumjyhk")
    public suspend fun subjectAlternativeDnsNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subjectAlternativeDnsNames = mapped
    }

    /**
     * @param values (Output)
     * Output only. The subject Alternative DNS names. Only present if parsed is true.
     * - - -
     */
    @JvmName("eoosxpiktclgjugb")
    public suspend fun subjectAlternativeDnsNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subjectAlternativeDnsNames = mapped
    }

    internal fun build(): EkmConnectionServiceResolverServerCertificateArgs =
        EkmConnectionServiceResolverServerCertificateArgs(
            issuer = issuer,
            notAfterTime = notAfterTime,
            notBeforeTime = notBeforeTime,
            parsed = parsed,
            rawDer = rawDer ?: throw PulumiNullFieldException("rawDer"),
            serialNumber = serialNumber,
            sha256Fingerprint = sha256Fingerprint,
            subject = subject,
            subjectAlternativeDnsNames = subjectAlternativeDnsNames,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy