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

com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateApiPassthroughArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.acmpca.kotlin.inputs

import com.pulumi.awsnative.acmpca.inputs.CertificateApiPassthroughArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Contains X.509 certificate information to be placed in an issued certificate. An ``APIPassthrough`` or ``APICSRPassthrough`` template variant must be selected, or else this parameter is ignored.
 *  If conflicting or duplicate certificate information is supplied from other sources, AWS Private CA applies [order of operation rules](https://docs.aws.amazon.com/privateca/latest/userguide/UsingTemplates.html#template-order-of-operations) to determine what information is used.
 * @property extensions Specifies X.509 extension information for a certificate.
 * @property subject Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.
 */
public data class CertificateApiPassthroughArgs(
    public val extensions: Output? = null,
    public val subject: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.acmpca.inputs.CertificateApiPassthroughArgs =
        com.pulumi.awsnative.acmpca.inputs.CertificateApiPassthroughArgs.builder()
            .extensions(extensions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subject(subject?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [CertificateApiPassthroughArgs].
 */
@PulumiTagMarker
public class CertificateApiPassthroughArgsBuilder internal constructor() {
    private var extensions: Output? = null

    private var subject: Output? = null

    /**
     * @param value Specifies X.509 extension information for a certificate.
     */
    @JvmName("qmbmdltbbqmjawve")
    public suspend fun extensions(`value`: Output) {
        this.extensions = value
    }

    /**
     * @param value Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.
     */
    @JvmName("fncoenrctxufnjiq")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value Specifies X.509 extension information for a certificate.
     */
    @JvmName("weuxrhddfkiimjlo")
    public suspend fun extensions(`value`: CertificateExtensionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extensions = mapped
    }

    /**
     * @param argument Specifies X.509 extension information for a certificate.
     */
    @JvmName("vekhhropmpuqumou")
    public suspend fun extensions(argument: suspend CertificateExtensionsArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateExtensionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extensions = mapped
    }

    /**
     * @param value Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.
     */
    @JvmName("eepwqohuqrfbyahj")
    public suspend fun subject(`value`: CertificateSubjectArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param argument Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.
     */
    @JvmName("cpwsfrrcevudofgo")
    public suspend fun subject(argument: suspend CertificateSubjectArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateSubjectArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.subject = mapped
    }

    internal fun build(): CertificateApiPassthroughArgs = CertificateApiPassthroughArgs(
        extensions = extensions,
        subject = subject,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy