
com.pulumi.aws.imagebuilder.kotlin.inputs.LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.imagebuilder.kotlin.inputs
import com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property unit Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years. Valid values: `DAYS`, `WEEKS`, `MONTHS` or `YEARS`.
* @property value The integer number of units for the time period. For example 6 (months).
*/
public data class LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs(
public val unit: Output,
public val `value`: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs =
com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs.builder()
.unit(unit.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs].
*/
@PulumiTagMarker
public class LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgsBuilder internal constructor() {
private var unit: Output? = null
private var `value`: Output? = null
/**
* @param value Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years. Valid values: `DAYS`, `WEEKS`, `MONTHS` or `YEARS`.
*/
@JvmName("graqlsoisgafjpir")
public suspend fun unit(`value`: Output) {
this.unit = value
}
/**
* @param value The integer number of units for the time period. For example 6 (months).
*/
@JvmName("ijhfyckvmcfbbvrt")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years. Valid values: `DAYS`, `WEEKS`, `MONTHS` or `YEARS`.
*/
@JvmName("gfxiljwajabmyapj")
public suspend fun unit(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.unit = mapped
}
/**
* @param value The integer number of units for the time period. For example 6 (months).
*/
@JvmName("byhxmsekoanmpojo")
public suspend fun `value`(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs =
LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs(
unit = unit ?: throw PulumiNullFieldException("unit"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy