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

com.pulumi.gcp.kms.kotlin.outputs.GetKMSCryptoKeyVersionResult.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.kms.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getKMSCryptoKeyVersion.
 * @property algorithm The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.
 * @property cryptoKey
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name The resource name for this CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`
 * @property protectionLevel The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion. See the [protection_level reference](https://cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel) for possible outputs.
 * @property publicKeys If the enclosing CryptoKey has purpose `ASYMMETRIC_SIGN` or `ASYMMETRIC_DECRYPT`, this block contains details about the public key associated to this CryptoKeyVersion. Structure is documented below.
 * @property state The current state of the CryptoKeyVersion. See the [state reference](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion.CryptoKeyVersionState) for possible outputs.
 * @property version
 * */*/*/*/*/
 */
public data class GetKMSCryptoKeyVersionResult(
    public val algorithm: String,
    public val cryptoKey: String,
    public val id: String,
    public val name: String,
    public val protectionLevel: String,
    public val publicKeys: List,
    public val state: String,
    public val version: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.kms.outputs.GetKMSCryptoKeyVersionResult): GetKMSCryptoKeyVersionResult = GetKMSCryptoKeyVersionResult(
            algorithm = javaType.algorithm(),
            cryptoKey = javaType.cryptoKey(),
            id = javaType.id(),
            name = javaType.name(),
            protectionLevel = javaType.protectionLevel(),
            publicKeys = javaType.publicKeys().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.kms.kotlin.outputs.GetKMSCryptoKeyVersionPublicKey.Companion.toKotlin(args0)
                })
            }),
            state = javaType.state(),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy