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

com.pulumi.awsnative.acmpca.kotlin.CertificateAuthorityArgs.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

import com.pulumi.awsnative.acmpca.CertificateAuthorityArgs.builder
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityCsrExtensionsArgs
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityCsrExtensionsArgsBuilder
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityRevocationConfigurationArgs
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityRevocationConfigurationArgsBuilder
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthoritySubjectArgs
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthoritySubjectArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * Private certificate authority.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property csrExtensions Structure that contains CSR pass through extension information used by the CreateCertificateAuthority action.
 * @property keyAlgorithm Public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.
 * @property keyStorageSecurityStandard KeyStorageSecurityStadard defines a cryptographic key management compliance standard used for handling CA keys.
 * @property revocationConfiguration Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.
 * @property signingAlgorithm Algorithm your CA uses to sign certificate requests.
 * @property subject Structure that contains X.500 distinguished name information for your CA.
 * @property tags Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
 * @property type The type of the certificate authority.
 * @property usageMode Usage mode of the ceritificate authority.
 */
public data class CertificateAuthorityArgs(
    public val csrExtensions: Output? = null,
    public val keyAlgorithm: Output? = null,
    public val keyStorageSecurityStandard: Output? = null,
    public val revocationConfiguration: Output? =
        null,
    public val signingAlgorithm: Output? = null,
    public val subject: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
    public val usageMode: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.acmpca.CertificateAuthorityArgs =
        com.pulumi.awsnative.acmpca.CertificateAuthorityArgs.builder()
            .csrExtensions(csrExtensions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyAlgorithm(keyAlgorithm?.applyValue({ args0 -> args0 }))
            .keyStorageSecurityStandard(keyStorageSecurityStandard?.applyValue({ args0 -> args0 }))
            .revocationConfiguration(
                revocationConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .signingAlgorithm(signingAlgorithm?.applyValue({ args0 -> args0 }))
            .subject(subject?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0 }))
            .usageMode(usageMode?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateAuthorityArgs].
 */
@PulumiTagMarker
public class CertificateAuthorityArgsBuilder internal constructor() {
    private var csrExtensions: Output? = null

    private var keyAlgorithm: Output? = null

    private var keyStorageSecurityStandard: Output? = null

    private var revocationConfiguration: Output? =
        null

    private var signingAlgorithm: Output? = null

    private var subject: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    private var usageMode: Output? = null

    /**
     * @param value Structure that contains CSR pass through extension information used by the CreateCertificateAuthority action.
     */
    @JvmName("qdugxageqxyihaxq")
    public suspend fun csrExtensions(`value`: Output) {
        this.csrExtensions = value
    }

    /**
     * @param value Public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.
     */
    @JvmName("ekmwrwaddpeknmka")
    public suspend fun keyAlgorithm(`value`: Output) {
        this.keyAlgorithm = value
    }

    /**
     * @param value KeyStorageSecurityStadard defines a cryptographic key management compliance standard used for handling CA keys.
     */
    @JvmName("wosahkjnhofleeov")
    public suspend fun keyStorageSecurityStandard(`value`: Output) {
        this.keyStorageSecurityStandard = value
    }

    /**
     * @param value Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.
     */
    @JvmName("iybwucigiwdvknjm")
    public suspend fun revocationConfiguration(`value`: Output) {
        this.revocationConfiguration = value
    }

    /**
     * @param value Algorithm your CA uses to sign certificate requests.
     */
    @JvmName("nxvlbqhivplwifni")
    public suspend fun signingAlgorithm(`value`: Output) {
        this.signingAlgorithm = value
    }

    /**
     * @param value Structure that contains X.500 distinguished name information for your CA.
     */
    @JvmName("iujjmpdfwrhrergt")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
     */
    @JvmName("unvihakwtrbygamd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
     */
    @JvmName("llcymwkfobmgginh")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of the certificate authority.
     */
    @JvmName("shcpgvrsuthmxgre")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Usage mode of the ceritificate authority.
     */
    @JvmName("rulwvomluteienke")
    public suspend fun usageMode(`value`: Output) {
        this.usageMode = value
    }

    /**
     * @param value Structure that contains CSR pass through extension information used by the CreateCertificateAuthority action.
     */
    @JvmName("nnbdiirsfiptvlvu")
    public suspend fun csrExtensions(`value`: CertificateAuthorityCsrExtensionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.csrExtensions = mapped
    }

    /**
     * @param argument Structure that contains CSR pass through extension information used by the CreateCertificateAuthority action.
     */
    @JvmName("puhknlwwkfuvobvs")
    public suspend fun csrExtensions(argument: suspend CertificateAuthorityCsrExtensionsArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateAuthorityCsrExtensionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.csrExtensions = mapped
    }

    /**
     * @param value Public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.
     */
    @JvmName("vsawgpivsiuqoakv")
    public suspend fun keyAlgorithm(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyAlgorithm = mapped
    }

    /**
     * @param value KeyStorageSecurityStadard defines a cryptographic key management compliance standard used for handling CA keys.
     */
    @JvmName("komxakmtmucaeyje")
    public suspend fun keyStorageSecurityStandard(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyStorageSecurityStandard = mapped
    }

    /**
     * @param value Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.
     */
    @JvmName("duxsemkvmgphlvcw")
    public suspend fun revocationConfiguration(`value`: CertificateAuthorityRevocationConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.revocationConfiguration = mapped
    }

    /**
     * @param argument Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.
     */
    @JvmName("myuntdmgrvulajlx")
    public suspend fun revocationConfiguration(argument: suspend CertificateAuthorityRevocationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateAuthorityRevocationConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.revocationConfiguration = mapped
    }

    /**
     * @param value Algorithm your CA uses to sign certificate requests.
     */
    @JvmName("avkihlchbrdoxfiy")
    public suspend fun signingAlgorithm(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.signingAlgorithm = mapped
    }

    /**
     * @param value Structure that contains X.500 distinguished name information for your CA.
     */
    @JvmName("ofxltqtcyithuamr")
    public suspend fun subject(`value`: CertificateAuthoritySubjectArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param argument Structure that contains X.500 distinguished name information for your CA.
     */
    @JvmName("nlylisxvyyujlkbp")
    public suspend fun subject(argument: suspend CertificateAuthoritySubjectArgsBuilder.() -> Unit) {
        val toBeMapped = CertificateAuthoritySubjectArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.subject = mapped
    }

    /**
     * @param value Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
     */
    @JvmName("xwtrouxtxjskbjmk")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
     */
    @JvmName("qeenoqgygtihsvvt")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
     */
    @JvmName("etqinlxdvrvutwsn")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
     */
    @JvmName("pwodcthqsmjiqvqe")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
     */
    @JvmName("vkqejfxapurgurxs")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of the certificate authority.
     */
    @JvmName("yvidkowosbgbbwyn")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Usage mode of the ceritificate authority.
     */
    @JvmName("robfcpfcwrevjlfp")
    public suspend fun usageMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usageMode = mapped
    }

    internal fun build(): CertificateAuthorityArgs = CertificateAuthorityArgs(
        csrExtensions = csrExtensions,
        keyAlgorithm = keyAlgorithm,
        keyStorageSecurityStandard = keyStorageSecurityStandard,
        revocationConfiguration = revocationConfiguration,
        signingAlgorithm = signingAlgorithm,
        subject = subject,
        tags = tags,
        type = type,
        usageMode = usageMode,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy