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

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

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

import com.pulumi.awsnative.acmpca.inputs.CertificateSubjectArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * 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.
 * @property commonName For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
 *  Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
 * @property country Two-digit code that specifies the country in which the certificate subject located.
 * @property customAttributes Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
 *   Custom attributes cannot be used in combination with standard attributes.
 * @property distinguishedNameQualifier Disambiguating information for the certificate subject.
 * @property generationQualifier Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
 * @property givenName First name.
 * @property initials Concatenation that typically contains the first letter of the *GivenName*, the first letter of the middle name if one exists, and the first letter of the *Surname*.
 * @property locality The locality (such as a city or town) in which the certificate subject is located.
 * @property organization Legal name of the organization with which the certificate subject is affiliated.
 * @property organizationalUnit A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
 * @property pseudonym Typically a shortened version of a longer *GivenName*. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
 * @property serialNumber The certificate serial number.
 * @property state State in which the subject of the certificate is located.
 * @property surname Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
 * @property title A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
 */
public data class CertificateSubjectArgs(
    public val commonName: Output? = null,
    public val country: Output? = null,
    public val customAttributes: Output>? = null,
    public val distinguishedNameQualifier: Output? = null,
    public val generationQualifier: Output? = null,
    public val givenName: Output? = null,
    public val initials: Output? = null,
    public val locality: Output? = null,
    public val organization: Output? = null,
    public val organizationalUnit: Output? = null,
    public val pseudonym: Output? = null,
    public val serialNumber: Output? = null,
    public val state: Output? = null,
    public val surname: Output? = null,
    public val title: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.acmpca.inputs.CertificateSubjectArgs =
        com.pulumi.awsnative.acmpca.inputs.CertificateSubjectArgs.builder()
            .commonName(commonName?.applyValue({ args0 -> args0 }))
            .country(country?.applyValue({ args0 -> args0 }))
            .customAttributes(
                customAttributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .distinguishedNameQualifier(distinguishedNameQualifier?.applyValue({ args0 -> args0 }))
            .generationQualifier(generationQualifier?.applyValue({ args0 -> args0 }))
            .givenName(givenName?.applyValue({ args0 -> args0 }))
            .initials(initials?.applyValue({ args0 -> args0 }))
            .locality(locality?.applyValue({ args0 -> args0 }))
            .organization(organization?.applyValue({ args0 -> args0 }))
            .organizationalUnit(organizationalUnit?.applyValue({ args0 -> args0 }))
            .pseudonym(pseudonym?.applyValue({ args0 -> args0 }))
            .serialNumber(serialNumber?.applyValue({ args0 -> args0 }))
            .state(state?.applyValue({ args0 -> args0 }))
            .surname(surname?.applyValue({ args0 -> args0 }))
            .title(title?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateSubjectArgs].
 */
@PulumiTagMarker
public class CertificateSubjectArgsBuilder internal constructor() {
    private var commonName: Output? = null

    private var country: Output? = null

    private var customAttributes: Output>? = null

    private var distinguishedNameQualifier: Output? = null

    private var generationQualifier: Output? = null

    private var givenName: Output? = null

    private var initials: Output? = null

    private var locality: Output? = null

    private var organization: Output? = null

    private var organizationalUnit: Output? = null

    private var pseudonym: Output? = null

    private var serialNumber: Output? = null

    private var state: Output? = null

    private var surname: Output? = null

    private var title: Output? = null

    /**
     * @param value For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
     *  Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
     */
    @JvmName("hystgakfsqagscex")
    public suspend fun commonName(`value`: Output) {
        this.commonName = value
    }

    /**
     * @param value Two-digit code that specifies the country in which the certificate subject located.
     */
    @JvmName("ybpbgykrecqcsxmn")
    public suspend fun country(`value`: Output) {
        this.country = value
    }

    /**
     * @param value Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
     *   Custom attributes cannot be used in combination with standard attributes.
     */
    @JvmName("tajkeetxdhjhtlgc")
    public suspend fun customAttributes(`value`: Output>) {
        this.customAttributes = value
    }

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

    /**
     * @param values Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
     *   Custom attributes cannot be used in combination with standard attributes.
     */
    @JvmName("mbndjeavqjrdgvdp")
    public suspend fun customAttributes(values: List>) {
        this.customAttributes = Output.all(values)
    }

    /**
     * @param value Disambiguating information for the certificate subject.
     */
    @JvmName("jorirghfuiebtrly")
    public suspend fun distinguishedNameQualifier(`value`: Output) {
        this.distinguishedNameQualifier = value
    }

    /**
     * @param value Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
     */
    @JvmName("cdkiycrdiycqmfpu")
    public suspend fun generationQualifier(`value`: Output) {
        this.generationQualifier = value
    }

    /**
     * @param value First name.
     */
    @JvmName("fjvgsdwpfrnocfwn")
    public suspend fun givenName(`value`: Output) {
        this.givenName = value
    }

    /**
     * @param value Concatenation that typically contains the first letter of the *GivenName*, the first letter of the middle name if one exists, and the first letter of the *Surname*.
     */
    @JvmName("tubwmmlrataskjld")
    public suspend fun initials(`value`: Output) {
        this.initials = value
    }

    /**
     * @param value The locality (such as a city or town) in which the certificate subject is located.
     */
    @JvmName("jikpswvijuctcyoc")
    public suspend fun locality(`value`: Output) {
        this.locality = value
    }

    /**
     * @param value Legal name of the organization with which the certificate subject is affiliated.
     */
    @JvmName("bmstlagmbfklddhi")
    public suspend fun organization(`value`: Output) {
        this.organization = value
    }

    /**
     * @param value A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
     */
    @JvmName("gsgucvbgvlrdfmko")
    public suspend fun organizationalUnit(`value`: Output) {
        this.organizationalUnit = value
    }

    /**
     * @param value Typically a shortened version of a longer *GivenName*. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
     */
    @JvmName("gfallxqumhhkkllk")
    public suspend fun pseudonym(`value`: Output) {
        this.pseudonym = value
    }

    /**
     * @param value The certificate serial number.
     */
    @JvmName("dkjdqcvmcjhmtxmb")
    public suspend fun serialNumber(`value`: Output) {
        this.serialNumber = value
    }

    /**
     * @param value State in which the subject of the certificate is located.
     */
    @JvmName("gyqmtcpvvistxndb")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
     */
    @JvmName("ljluhbktnpwtojlv")
    public suspend fun surname(`value`: Output) {
        this.surname = value
    }

    /**
     * @param value A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
     */
    @JvmName("jswgmbidqhbaknii")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
     *  Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
     */
    @JvmName("auojjxxdkfteibra")
    public suspend fun commonName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commonName = mapped
    }

    /**
     * @param value Two-digit code that specifies the country in which the certificate subject located.
     */
    @JvmName("byqylybcpnhflaja")
    public suspend fun country(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.country = mapped
    }

    /**
     * @param value Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
     *   Custom attributes cannot be used in combination with standard attributes.
     */
    @JvmName("gyjvtcohbbsyeomc")
    public suspend fun customAttributes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customAttributes = mapped
    }

    /**
     * @param argument Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
     *   Custom attributes cannot be used in combination with standard attributes.
     */
    @JvmName("mhjidkxwdmiwbhru")
    public suspend fun customAttributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateCustomAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customAttributes = mapped
    }

    /**
     * @param argument Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
     *   Custom attributes cannot be used in combination with standard attributes.
     */
    @JvmName("udtoiskckliujltk")
    public suspend fun customAttributes(vararg argument: suspend CertificateCustomAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateCustomAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customAttributes = mapped
    }

    /**
     * @param argument Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
     *   Custom attributes cannot be used in combination with standard attributes.
     */
    @JvmName("orvpcocwfxyokrij")
    public suspend fun customAttributes(argument: suspend CertificateCustomAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertificateCustomAttributeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.customAttributes = mapped
    }

    /**
     * @param values Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).
     *   Custom attributes cannot be used in combination with standard attributes.
     */
    @JvmName("javexbjgcsrecrfv")
    public suspend fun customAttributes(vararg values: CertificateCustomAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customAttributes = mapped
    }

    /**
     * @param value Disambiguating information for the certificate subject.
     */
    @JvmName("xqfckcfpolkdwbvu")
    public suspend fun distinguishedNameQualifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.distinguishedNameQualifier = mapped
    }

    /**
     * @param value Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
     */
    @JvmName("ukqgrglxtgogyeaq")
    public suspend fun generationQualifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.generationQualifier = mapped
    }

    /**
     * @param value First name.
     */
    @JvmName("ubtqtlfbcosdtpmk")
    public suspend fun givenName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.givenName = mapped
    }

    /**
     * @param value Concatenation that typically contains the first letter of the *GivenName*, the first letter of the middle name if one exists, and the first letter of the *Surname*.
     */
    @JvmName("kjbpscjepqhmwtnv")
    public suspend fun initials(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.initials = mapped
    }

    /**
     * @param value The locality (such as a city or town) in which the certificate subject is located.
     */
    @JvmName("iwsqunbvqehytsgt")
    public suspend fun locality(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locality = mapped
    }

    /**
     * @param value Legal name of the organization with which the certificate subject is affiliated.
     */
    @JvmName("gfddtcajdajjbcqg")
    public suspend fun organization(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organization = mapped
    }

    /**
     * @param value A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
     */
    @JvmName("wdyrxoaluysclelg")
    public suspend fun organizationalUnit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationalUnit = mapped
    }

    /**
     * @param value Typically a shortened version of a longer *GivenName*. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
     */
    @JvmName("whurdpvmwrrefxxb")
    public suspend fun pseudonym(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pseudonym = mapped
    }

    /**
     * @param value The certificate serial number.
     */
    @JvmName("ghspptsonaplmtqc")
    public suspend fun serialNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serialNumber = mapped
    }

    /**
     * @param value State in which the subject of the certificate is located.
     */
    @JvmName("aumiplvwlcasfpow")
    public suspend fun state(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    /**
     * @param value Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
     */
    @JvmName("oylligabiyprykss")
    public suspend fun surname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.surname = mapped
    }

    /**
     * @param value A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
     */
    @JvmName("chvdqfbguucjtdgc")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    internal fun build(): CertificateSubjectArgs = CertificateSubjectArgs(
        commonName = commonName,
        country = country,
        customAttributes = customAttributes,
        distinguishedNameQualifier = distinguishedNameQualifier,
        generationQualifier = generationQualifier,
        givenName = givenName,
        initials = initials,
        locality = locality,
        organization = organization,
        organizationalUnit = organizationalUnit,
        pseudonym = pseudonym,
        serialNumber = serialNumber,
        state = state,
        surname = surname,
        title = title,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy