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

com.pulumi.azure.keyvault.kotlin.outputs.KeyRotationPolicy.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: 6.14.0.0
Show newest version
@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