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

com.pulumi.azure.keyvault.kotlin.inputs.KeyRotationPolicyArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin.inputs

import com.pulumi.azure.keyvault.inputs.KeyRotationPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @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 KeyRotationPolicyArgs(
    public val automatic: Output? = null,
    public val expireAfter: Output? = null,
    public val notifyBeforeExpiry: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.KeyRotationPolicyArgs =
        com.pulumi.azure.keyvault.inputs.KeyRotationPolicyArgs.builder()
            .automatic(automatic?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .expireAfter(expireAfter?.applyValue({ args0 -> args0 }))
            .notifyBeforeExpiry(notifyBeforeExpiry?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KeyRotationPolicyArgs].
 */
@PulumiTagMarker
public class KeyRotationPolicyArgsBuilder internal constructor() {
    private var automatic: Output? = null

    private var expireAfter: Output? = null

    private var notifyBeforeExpiry: Output? = null

    /**
     * @param value An `automatic` block as defined below.
     */
    @JvmName("bydqqsskbeehllcc")
    public suspend fun automatic(`value`: Output) {
        this.automatic = value
    }

    /**
     * @param value Expire a Key Vault Key after given duration as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     */
    @JvmName("udcrjumxhoyfcrhu")
    public suspend fun expireAfter(`value`: Output) {
        this.expireAfter = value
    }

    /**
     * @param value Notify at a given duration before expiry as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     */
    @JvmName("egpaecpjfxbvvfvy")
    public suspend fun notifyBeforeExpiry(`value`: Output) {
        this.notifyBeforeExpiry = value
    }

    /**
     * @param value An `automatic` block as defined below.
     */
    @JvmName("uvpeatmypsbfxxwc")
    public suspend fun automatic(`value`: KeyRotationPolicyAutomaticArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automatic = mapped
    }

    /**
     * @param argument An `automatic` block as defined below.
     */
    @JvmName("wwvmilkjsenptjuc")
    public suspend fun automatic(argument: suspend KeyRotationPolicyAutomaticArgsBuilder.() -> Unit) {
        val toBeMapped = KeyRotationPolicyAutomaticArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.automatic = mapped
    }

    /**
     * @param value Expire a Key Vault Key after given duration as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     */
    @JvmName("xwbecherorefalou")
    public suspend fun expireAfter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expireAfter = mapped
    }

    /**
     * @param value Notify at a given duration before expiry as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     */
    @JvmName("shssbclvubobwxhi")
    public suspend fun notifyBeforeExpiry(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notifyBeforeExpiry = mapped
    }

    internal fun build(): KeyRotationPolicyArgs = KeyRotationPolicyArgs(
        automatic = automatic,
        expireAfter = expireAfter,
        notifyBeforeExpiry = notifyBeforeExpiry,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy