com.pulumi.gcp.kms.kotlin.outputs.GetKMSCryptoKeyResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.kms.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getKMSCryptoKey.
* @property cryptoKeyBackend
* @property destroyScheduledDuration
* @property effectiveLabels
* @property id The provider-assigned unique ID for this managed resource.
* @property importOnly
* @property keyRing
* @property labels
* @property name
* @property primaries
* @property pulumiLabels
* @property purpose Defines the cryptographic capabilities of the key.
* @property rotationPeriod Every time this period passes, generate a new CryptoKeyVersion and set it as
* the primary. The first rotation will take place after the specified period. The rotation period has the format
* of a decimal number with up to 9 fractional digits, followed by the letter s (seconds).
* @property skipInitialVersionCreation
* @property versionTemplates
*/
public data class GetKMSCryptoKeyResult(
public val cryptoKeyBackend: String,
public val destroyScheduledDuration: String,
public val effectiveLabels: Map,
public val id: String,
public val importOnly: Boolean,
public val keyRing: String,
public val labels: Map,
public val name: String,
public val primaries: List,
public val pulumiLabels: Map,
public val purpose: String,
public val rotationPeriod: String,
public val skipInitialVersionCreation: Boolean,
public val versionTemplates: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.kms.outputs.GetKMSCryptoKeyResult): GetKMSCryptoKeyResult = GetKMSCryptoKeyResult(
cryptoKeyBackend = javaType.cryptoKeyBackend(),
destroyScheduledDuration = javaType.destroyScheduledDuration(),
effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
id = javaType.id(),
importOnly = javaType.importOnly(),
keyRing = javaType.keyRing(),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
name = javaType.name(),
primaries = javaType.primaries().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.kms.kotlin.outputs.GetKMSCryptoKeyPrimary.Companion.toKotlin(args0)
})
}),
pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
purpose = javaType.purpose(),
rotationPeriod = javaType.rotationPeriod(),
skipInitialVersionCreation = javaType.skipInitialVersionCreation(),
versionTemplates = javaType.versionTemplates().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.kms.kotlin.outputs.GetKMSCryptoKeyVersionTemplate.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy