com.pulumi.awsnative.iot.kotlin.outputs.GetCertificateResult.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.outputs
import com.pulumi.awsnative.iot.kotlin.enums.CertificateStatus
import kotlin.String
import kotlin.Suppress
/**
*
* @property arn Returns the Amazon Resource Name (ARN) for the certificate. For example:
* `{ "Fn::GetAtt": ["MyCertificate", "Arn"] }`
* A value similar to the following is returned:
* `arn:aws:iot:ap-southeast-2:123456789012:cert/a1234567b89c012d3e4fg567hij8k9l01mno1p23q45678901rs234567890t1u2`
* @property id The certificate ID.
* @property status The status of the certificate.
* Valid values are ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER, and PENDING_ACTIVATION.
* The status value REGISTER_INACTIVE is deprecated and should not be used.
*/
public data class GetCertificateResult(
public val arn: String? = null,
public val id: String? = null,
public val status: CertificateStatus? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.GetCertificateResult): GetCertificateResult = GetCertificateResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.enums.CertificateStatus.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}