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

com.pulumi.awsnative.iot.kotlin.CaCertificateArgs.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.iot.kotlin

import com.pulumi.awsnative.iot.CaCertificateArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.CaCertificateAutoRegistrationStatus
import com.pulumi.awsnative.iot.kotlin.enums.CaCertificateCertificateMode
import com.pulumi.awsnative.iot.kotlin.enums.CaCertificateStatus
import com.pulumi.awsnative.iot.kotlin.inputs.CaCertificateRegistrationConfigArgs
import com.pulumi.awsnative.iot.kotlin.inputs.CaCertificateRegistrationConfigArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Registers a CA Certificate in IoT.
 * @property autoRegistrationStatus Whether the CA certificate is configured for auto registration of device certificates. Valid values are "ENABLE" and "DISABLE".
 * @property caCertificatePem The certificate data in PEM format.
 * @property certificateMode The mode of the CA.
 * All the device certificates that are registered using this CA will be registered in the same mode as the CA. For more information about certificate mode for device certificates, see [certificate mode](https://docs.aws.amazon.com//iot/latest/apireference/API_CertificateDescription.html#iot-Type-CertificateDescription-certificateMode) .
 * Valid values are "DEFAULT" and "SNI_ONLY".
 * @property registrationConfig Information about the registration configuration.
 * @property removeAutoRegistration If true, removes auto registration.
 * @property status The status of the CA certificate.
 * Valid values are "ACTIVE" and "INACTIVE".
 * @property tags An array of key-value pairs to apply to this resource.
 * @property verificationCertificatePem The private key verification certificate.
 */
public data class CaCertificateArgs(
    public val autoRegistrationStatus: Output? = null,
    public val caCertificatePem: Output? = null,
    public val certificateMode: Output? = null,
    public val registrationConfig: Output? = null,
    public val removeAutoRegistration: Output? = null,
    public val status: Output? = null,
    public val tags: Output>? = null,
    public val verificationCertificatePem: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.CaCertificateArgs =
        com.pulumi.awsnative.iot.CaCertificateArgs.builder()
            .autoRegistrationStatus(
                autoRegistrationStatus?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .caCertificatePem(caCertificatePem?.applyValue({ args0 -> args0 }))
            .certificateMode(certificateMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .registrationConfig(
                registrationConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .removeAutoRegistration(removeAutoRegistration?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .verificationCertificatePem(verificationCertificatePem?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CaCertificateArgs].
 */
@PulumiTagMarker
public class CaCertificateArgsBuilder internal constructor() {
    private var autoRegistrationStatus: Output? = null

    private var caCertificatePem: Output? = null

    private var certificateMode: Output? = null

    private var registrationConfig: Output? = null

    private var removeAutoRegistration: Output? = null

    private var status: Output? = null

    private var tags: Output>? = null

    private var verificationCertificatePem: Output? = null

    /**
     * @param value Whether the CA certificate is configured for auto registration of device certificates. Valid values are "ENABLE" and "DISABLE".
     */
    @JvmName("vjexspyesoqrlgrp")
    public suspend fun autoRegistrationStatus(`value`: Output) {
        this.autoRegistrationStatus = value
    }

    /**
     * @param value The certificate data in PEM format.
     */
    @JvmName("pfjfrtlbueywomhu")
    public suspend fun caCertificatePem(`value`: Output) {
        this.caCertificatePem = value
    }

    /**
     * @param value The mode of the CA.
     * All the device certificates that are registered using this CA will be registered in the same mode as the CA. For more information about certificate mode for device certificates, see [certificate mode](https://docs.aws.amazon.com//iot/latest/apireference/API_CertificateDescription.html#iot-Type-CertificateDescription-certificateMode) .
     * Valid values are "DEFAULT" and "SNI_ONLY".
     */
    @JvmName("qsywqwcpmaperyvm")
    public suspend fun certificateMode(`value`: Output) {
        this.certificateMode = value
    }

    /**
     * @param value Information about the registration configuration.
     */
    @JvmName("htttxmxvpsfoxkvg")
    public suspend fun registrationConfig(`value`: Output) {
        this.registrationConfig = value
    }

    /**
     * @param value If true, removes auto registration.
     */
    @JvmName("ccrwsicrxgshhdhw")
    public suspend fun removeAutoRegistration(`value`: Output) {
        this.removeAutoRegistration = value
    }

    /**
     * @param value The status of the CA certificate.
     * Valid values are "ACTIVE" and "INACTIVE".
     */
    @JvmName("ftcwxgvylmjilxqg")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("tnwsngglifymitnl")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("hdkwrnmjajnqkopg")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The private key verification certificate.
     */
    @JvmName("qclpwwgudtnglrsd")
    public suspend fun verificationCertificatePem(`value`: Output) {
        this.verificationCertificatePem = value
    }

    /**
     * @param value Whether the CA certificate is configured for auto registration of device certificates. Valid values are "ENABLE" and "DISABLE".
     */
    @JvmName("wwedgfjseyqnjgsr")
    public suspend fun autoRegistrationStatus(`value`: CaCertificateAutoRegistrationStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRegistrationStatus = mapped
    }

    /**
     * @param value The certificate data in PEM format.
     */
    @JvmName("qkujjoidovegwlrt")
    public suspend fun caCertificatePem(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caCertificatePem = mapped
    }

    /**
     * @param value The mode of the CA.
     * All the device certificates that are registered using this CA will be registered in the same mode as the CA. For more information about certificate mode for device certificates, see [certificate mode](https://docs.aws.amazon.com//iot/latest/apireference/API_CertificateDescription.html#iot-Type-CertificateDescription-certificateMode) .
     * Valid values are "DEFAULT" and "SNI_ONLY".
     */
    @JvmName("efujetfaotfyrtbl")
    public suspend fun certificateMode(`value`: CaCertificateCertificateMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateMode = mapped
    }

    /**
     * @param value Information about the registration configuration.
     */
    @JvmName("tkwmaeuywqeadrbt")
    public suspend fun registrationConfig(`value`: CaCertificateRegistrationConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.registrationConfig = mapped
    }

    /**
     * @param argument Information about the registration configuration.
     */
    @JvmName("scpntddukwffguvn")
    public suspend fun registrationConfig(argument: suspend CaCertificateRegistrationConfigArgsBuilder.() -> Unit) {
        val toBeMapped = CaCertificateRegistrationConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.registrationConfig = mapped
    }

    /**
     * @param value If true, removes auto registration.
     */
    @JvmName("hvufxbfyoylxdgad")
    public suspend fun removeAutoRegistration(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.removeAutoRegistration = mapped
    }

    /**
     * @param value The status of the CA certificate.
     * Valid values are "ACTIVE" and "INACTIVE".
     */
    @JvmName("wguguxxqtyipmrfb")
    public suspend fun status(`value`: CaCertificateStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ksnalwjkyfstrwla")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("vgcrbihnplgoeahd")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("dqfvogtpkryhjrgv")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("mygvkqqdsafntjmr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("ilgcttsyjrexcjuv")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The private key verification certificate.
     */
    @JvmName("xqvapmwhxwyhvgrs")
    public suspend fun verificationCertificatePem(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verificationCertificatePem = mapped
    }

    internal fun build(): CaCertificateArgs = CaCertificateArgs(
        autoRegistrationStatus = autoRegistrationStatus,
        caCertificatePem = caCertificatePem,
        certificateMode = certificateMode,
        registrationConfig = registrationConfig,
        removeAutoRegistration = removeAutoRegistration,
        status = status,
        tags = tags,
        verificationCertificatePem = verificationCertificatePem,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy