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

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

/**
 * Structure that contains CSR pass though extensions information.
 * @property keyUsage Indicates the purpose of the certificate and of the key contained in the certificate.
 * @property subjectInformationAccess For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
 */
public data class CertificateAuthorityCsrExtensionsArgs(
    public val keyUsage: Output? = null,
    public val subjectInformationAccess: Output>? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.acmpca.inputs.CertificateAuthorityCsrExtensionsArgs =
        com.pulumi.awsnative.acmpca.inputs.CertificateAuthorityCsrExtensionsArgs.builder()
            .keyUsage(keyUsage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subjectInformationAccess(
                subjectInformationAccess?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [CertificateAuthorityCsrExtensionsArgs].
 */
@PulumiTagMarker
public class CertificateAuthorityCsrExtensionsArgsBuilder internal constructor() {
    private var keyUsage: Output? = null

    private var subjectInformationAccess: Output>? =
        null

    /**
     * @param value Indicates the purpose of the certificate and of the key contained in the certificate.
     */
    @JvmName("rqpjwyxrsivrsdli")
    public suspend fun keyUsage(`value`: Output) {
        this.keyUsage = value
    }

    /**
     * @param value For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
     */
    @JvmName("wuswbkxbmxjakkss")
    public suspend fun subjectInformationAccess(`value`: Output>) {
        this.subjectInformationAccess = value
    }

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

    /**
     * @param values For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
     */
    @JvmName("xtkqufcyrdmjbgss")
    public suspend fun subjectInformationAccess(values: List>) {
        this.subjectInformationAccess = Output.all(values)
    }

    /**
     * @param value Indicates the purpose of the certificate and of the key contained in the certificate.
     */
    @JvmName("dcmkbhwsfkahadvf")
    public suspend fun keyUsage(`value`: CertificateAuthorityKeyUsageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyUsage = mapped
    }

    /**
     * @param argument Indicates the purpose of the certificate and of the key contained in the certificate.
     */
    @JvmName("whssltwoqgisfybe")
    public suspend fun keyUsage(argument: suspend CertificateAuthorityKeyUsageArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateAuthorityKeyUsageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.keyUsage = mapped
    }

    /**
     * @param value For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
     */
    @JvmName("qaojcowlkifwwnji")
    public suspend fun subjectInformationAccess(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subjectInformationAccess = mapped
    }

    /**
     * @param argument For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
     */
    @JvmName("xpaikmcesfpumbvp")
    public suspend fun subjectInformationAccess(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateAuthorityAccessDescriptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.subjectInformationAccess = mapped
    }

    /**
     * @param argument For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
     */
    @JvmName("godkluipaosjhfdp")
    public suspend fun subjectInformationAccess(vararg argument: suspend CertificateAuthorityAccessDescriptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateAuthorityAccessDescriptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.subjectInformationAccess = mapped
    }

    /**
     * @param argument For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
     */
    @JvmName("epwpyvxsdlleuaap")
    public suspend fun subjectInformationAccess(argument: suspend CertificateAuthorityAccessDescriptionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertificateAuthorityAccessDescriptionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.subjectInformationAccess = mapped
    }

    /**
     * @param values For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy. For more information, see [Subject Information Access](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2) in RFC 5280.
     */
    @JvmName("lsjhfgoahlwblajt")
    public suspend fun subjectInformationAccess(vararg values: CertificateAuthorityAccessDescriptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subjectInformationAccess = mapped
    }

    internal fun build(): CertificateAuthorityCsrExtensionsArgs =
        CertificateAuthorityCsrExtensionsArgs(
            keyUsage = keyUsage,
            subjectInformationAccess = subjectInformationAccess,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy