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

com.pulumi.awsnative.iot.kotlin.outputs.GetCertificateResult.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.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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy