com.pulumi.azure.keyvault.kotlin.outputs.KeyRotationPolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.keyvault.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property automatic An `automatic` block as defined below.
* @property expireAfter Expire a Key Vault Key after given duration as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
* @property notifyBeforeExpiry Notify at a given duration before expiry as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
*/
public data class KeyRotationPolicy(
public val automatic: KeyRotationPolicyAutomatic? = null,
public val expireAfter: String? = null,
public val notifyBeforeExpiry: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.keyvault.outputs.KeyRotationPolicy):
KeyRotationPolicy = KeyRotationPolicy(
automatic = javaType.automatic().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.keyvault.kotlin.outputs.KeyRotationPolicyAutomatic.Companion.toKotlin(args0)
})
}).orElse(null),
expireAfter = javaType.expireAfter().map({ args0 -> args0 }).orElse(null),
notifyBeforeExpiry = javaType.notifyBeforeExpiry().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy