![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.keyvault.kotlin.inputs.LifetimeActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.keyvault.kotlin.inputs
import com.pulumi.azurenative.keyvault.inputs.LifetimeActionArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property action The action of key rotation policy lifetimeAction.
* @property trigger The trigger of key rotation policy lifetimeAction.
*/
public data class LifetimeActionArgs(
public val action: Output? = null,
public val trigger: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.keyvault.inputs.LifetimeActionArgs =
com.pulumi.azurenative.keyvault.inputs.LifetimeActionArgs.builder()
.action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.trigger(trigger?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [LifetimeActionArgs].
*/
@PulumiTagMarker
public class LifetimeActionArgsBuilder internal constructor() {
private var action: Output? = null
private var trigger: Output? = null
/**
* @param value The action of key rotation policy lifetimeAction.
*/
@JvmName("rjxeepskabkpqvgu")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The trigger of key rotation policy lifetimeAction.
*/
@JvmName("ojjmepqpwolcpyhj")
public suspend fun trigger(`value`: Output) {
this.trigger = value
}
/**
* @param value The action of key rotation policy lifetimeAction.
*/
@JvmName("kwmribkoypmojopt")
public suspend fun action(`value`: ActionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param argument The action of key rotation policy lifetimeAction.
*/
@JvmName("yisimlinlanfxmhl")
public suspend fun action(argument: suspend ActionArgsBuilder.() -> Unit) {
val toBeMapped = ActionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.action = mapped
}
/**
* @param value The trigger of key rotation policy lifetimeAction.
*/
@JvmName("jljbhaajiymqplfn")
public suspend fun trigger(`value`: TriggerArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.trigger = mapped
}
/**
* @param argument The trigger of key rotation policy lifetimeAction.
*/
@JvmName("rewvabtjqsladaeo")
public suspend fun trigger(argument: suspend TriggerArgsBuilder.() -> Unit) {
val toBeMapped = TriggerArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.trigger = mapped
}
internal fun build(): LifetimeActionArgs = LifetimeActionArgs(
action = action,
trigger = trigger,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy