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

com.pulumi.azure.keyvault.kotlin.inputs.CertificateCertificatePolicyLifetimeActionTriggerArgs.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.CertificateCertificatePolicyLifetimeActionTriggerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property daysBeforeExpiry The number of days before the Certificate expires that the action associated with this Trigger should run. Conflicts with `lifetime_percentage`.
 * @property lifetimePercentage The percentage at which during the Certificates Lifetime the action associated with this Trigger should run. Conflicts with `days_before_expiry`.
 */
public data class CertificateCertificatePolicyLifetimeActionTriggerArgs(
    public val daysBeforeExpiry: Output? = null,
    public val lifetimePercentage: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyLifetimeActionTriggerArgs =
        com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyLifetimeActionTriggerArgs.builder()
            .daysBeforeExpiry(daysBeforeExpiry?.applyValue({ args0 -> args0 }))
            .lifetimePercentage(lifetimePercentage?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateCertificatePolicyLifetimeActionTriggerArgs].
 */
@PulumiTagMarker
public class CertificateCertificatePolicyLifetimeActionTriggerArgsBuilder internal constructor() {
    private var daysBeforeExpiry: Output? = null

    private var lifetimePercentage: Output? = null

    /**
     * @param value The number of days before the Certificate expires that the action associated with this Trigger should run. Conflicts with `lifetime_percentage`.
     */
    @JvmName("rvfplftwbepydmek")
    public suspend fun daysBeforeExpiry(`value`: Output) {
        this.daysBeforeExpiry = value
    }

    /**
     * @param value The percentage at which during the Certificates Lifetime the action associated with this Trigger should run. Conflicts with `days_before_expiry`.
     */
    @JvmName("ecdbuaffxkopwwah")
    public suspend fun lifetimePercentage(`value`: Output) {
        this.lifetimePercentage = value
    }

    /**
     * @param value The number of days before the Certificate expires that the action associated with this Trigger should run. Conflicts with `lifetime_percentage`.
     */
    @JvmName("ncddhyntqhlblcvd")
    public suspend fun daysBeforeExpiry(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.daysBeforeExpiry = mapped
    }

    /**
     * @param value The percentage at which during the Certificates Lifetime the action associated with this Trigger should run. Conflicts with `days_before_expiry`.
     */
    @JvmName("nbalsppvpocytbbe")
    public suspend fun lifetimePercentage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lifetimePercentage = mapped
    }

    internal fun build(): CertificateCertificatePolicyLifetimeActionTriggerArgs =
        CertificateCertificatePolicyLifetimeActionTriggerArgs(
            daysBeforeExpiry = daysBeforeExpiry,
            lifetimePercentage = lifetimePercentage,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy