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

com.pulumi.gcp.certificatemanager.kotlin.inputs.CertificateSelfManagedArgs.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.certificatemanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.certificatemanager.inputs.CertificateSelfManagedArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property certificatePem (Optional, Deprecated)
 * The certificate chain in PEM-encoded form.
 * Leaf certificate comes first, followed by intermediate ones if any.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * > **Warning:** `certificate_pem` is deprecated and will be removed in a future major release. Use `pem_certificate` instead.
 * @property pemCertificate The certificate chain in PEM-encoded form.
 * Leaf certificate comes first, followed by intermediate ones if any.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property pemPrivateKey The private key of the leaf certificate in PEM-encoded form.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property privateKeyPem (Optional, Deprecated)
 * The private key of the leaf certificate in PEM-encoded form.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * > **Warning:** `private_key_pem` is deprecated and will be removed in a future major release. Use `pem_private_key` instead.
 */
public data class CertificateSelfManagedArgs(
    @Deprecated(
        message = """
  `certificate_pem` is deprecated and will be removed in a future major release. Use
      `pem_certificate` instead.
  """,
    )
    public val certificatePem: Output? = null,
    public val pemCertificate: Output? = null,
    public val pemPrivateKey: Output? = null,
    @Deprecated(
        message = """
  `private_key_pem` is deprecated and will be removed in a future major release. Use
      `pem_private_key` instead.
  """,
    )
    public val privateKeyPem: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificatemanager.inputs.CertificateSelfManagedArgs =
        com.pulumi.gcp.certificatemanager.inputs.CertificateSelfManagedArgs.builder()
            .certificatePem(certificatePem?.applyValue({ args0 -> args0 }))
            .pemCertificate(pemCertificate?.applyValue({ args0 -> args0 }))
            .pemPrivateKey(pemPrivateKey?.applyValue({ args0 -> args0 }))
            .privateKeyPem(privateKeyPem?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateSelfManagedArgs].
 */
@PulumiTagMarker
public class CertificateSelfManagedArgsBuilder internal constructor() {
    private var certificatePem: Output? = null

    private var pemCertificate: Output? = null

    private var pemPrivateKey: Output? = null

    private var privateKeyPem: Output? = null

    /**
     * @param value (Optional, Deprecated)
     * The certificate chain in PEM-encoded form.
     * Leaf certificate comes first, followed by intermediate ones if any.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     * > **Warning:** `certificate_pem` is deprecated and will be removed in a future major release. Use `pem_certificate` instead.
     */
    @Deprecated(
        message = """
  `certificate_pem` is deprecated and will be removed in a future major release. Use
      `pem_certificate` instead.
  """,
    )
    @JvmName("psodrbwmlqkyffew")
    public suspend fun certificatePem(`value`: Output) {
        this.certificatePem = value
    }

    /**
     * @param value The certificate chain in PEM-encoded form.
     * Leaf certificate comes first, followed by intermediate ones if any.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("itkreepewdmhdmmq")
    public suspend fun pemCertificate(`value`: Output) {
        this.pemCertificate = value
    }

    /**
     * @param value The private key of the leaf certificate in PEM-encoded form.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("jfyxlwskyfhrsmxi")
    public suspend fun pemPrivateKey(`value`: Output) {
        this.pemPrivateKey = value
    }

    /**
     * @param value (Optional, Deprecated)
     * The private key of the leaf certificate in PEM-encoded form.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     * > **Warning:** `private_key_pem` is deprecated and will be removed in a future major release. Use `pem_private_key` instead.
     */
    @Deprecated(
        message = """
  `private_key_pem` is deprecated and will be removed in a future major release. Use
      `pem_private_key` instead.
  """,
    )
    @JvmName("dvkpdjirehafaodb")
    public suspend fun privateKeyPem(`value`: Output) {
        this.privateKeyPem = value
    }

    /**
     * @param value (Optional, Deprecated)
     * The certificate chain in PEM-encoded form.
     * Leaf certificate comes first, followed by intermediate ones if any.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     * > **Warning:** `certificate_pem` is deprecated and will be removed in a future major release. Use `pem_certificate` instead.
     */
    @Deprecated(
        message = """
  `certificate_pem` is deprecated and will be removed in a future major release. Use
      `pem_certificate` instead.
  """,
    )
    @JvmName("nnaeshtptfyoqrtw")
    public suspend fun certificatePem(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificatePem = mapped
    }

    /**
     * @param value The certificate chain in PEM-encoded form.
     * Leaf certificate comes first, followed by intermediate ones if any.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("kihnfnqvamulymmh")
    public suspend fun pemCertificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pemCertificate = mapped
    }

    /**
     * @param value The private key of the leaf certificate in PEM-encoded form.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("nrcaucrmyiscypgi")
    public suspend fun pemPrivateKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pemPrivateKey = mapped
    }

    /**
     * @param value (Optional, Deprecated)
     * The private key of the leaf certificate in PEM-encoded form.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     * > **Warning:** `private_key_pem` is deprecated and will be removed in a future major release. Use `pem_private_key` instead.
     */
    @Deprecated(
        message = """
  `private_key_pem` is deprecated and will be removed in a future major release. Use
      `pem_private_key` instead.
  """,
    )
    @JvmName("jqtoefjhagcjyowu")
    public suspend fun privateKeyPem(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateKeyPem = mapped
    }

    internal fun build(): CertificateSelfManagedArgs = CertificateSelfManagedArgs(
        certificatePem = certificatePem,
        pemCertificate = pemCertificate,
        pemPrivateKey = pemPrivateKey,
        privateKeyPem = privateKeyPem,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy