com.pulumi.awsnative.iot.kotlin.CaCertificateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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