
com.pulumi.awsnative.elasticbeanstalk.kotlin.inputs.ApplicationVersionLifecycleConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.elasticbeanstalk.kotlin.inputs
import com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationVersionLifecycleConfigArgs.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 maxAgeRule Specify a max age rule to restrict the length of time that application versions are retained for an application.
* @property maxCountRule Specify a max count rule to restrict the number of application versions that are retained for an application.
*/
public data class ApplicationVersionLifecycleConfigArgs(
public val maxAgeRule: Output? = null,
public val maxCountRule: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationVersionLifecycleConfigArgs =
com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationVersionLifecycleConfigArgs.builder()
.maxAgeRule(maxAgeRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxCountRule(maxCountRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ApplicationVersionLifecycleConfigArgs].
*/
@PulumiTagMarker
public class ApplicationVersionLifecycleConfigArgsBuilder internal constructor() {
private var maxAgeRule: Output? = null
private var maxCountRule: Output? = null
/**
* @param value Specify a max age rule to restrict the length of time that application versions are retained for an application.
*/
@JvmName("helltlbbycuwniel")
public suspend fun maxAgeRule(`value`: Output) {
this.maxAgeRule = value
}
/**
* @param value Specify a max count rule to restrict the number of application versions that are retained for an application.
*/
@JvmName("ytengqkuiubsudcn")
public suspend fun maxCountRule(`value`: Output) {
this.maxCountRule = value
}
/**
* @param value Specify a max age rule to restrict the length of time that application versions are retained for an application.
*/
@JvmName("pddswieyasgnblsm")
public suspend fun maxAgeRule(`value`: ApplicationMaxAgeRuleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxAgeRule = mapped
}
/**
* @param argument Specify a max age rule to restrict the length of time that application versions are retained for an application.
*/
@JvmName("aitvkhkfguoyvhpo")
public suspend fun maxAgeRule(argument: suspend ApplicationMaxAgeRuleArgsBuilder.() -> Unit) {
val toBeMapped = ApplicationMaxAgeRuleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.maxAgeRule = mapped
}
/**
* @param value Specify a max count rule to restrict the number of application versions that are retained for an application.
*/
@JvmName("qtqhpjinmelidmmf")
public suspend fun maxCountRule(`value`: ApplicationMaxCountRuleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxCountRule = mapped
}
/**
* @param argument Specify a max count rule to restrict the number of application versions that are retained for an application.
*/
@JvmName("xxfjfsapaulimpir")
public suspend fun maxCountRule(argument: suspend ApplicationMaxCountRuleArgsBuilder.() -> Unit) {
val toBeMapped = ApplicationMaxCountRuleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.maxCountRule = mapped
}
internal fun build(): ApplicationVersionLifecycleConfigArgs =
ApplicationVersionLifecycleConfigArgs(
maxAgeRule = maxAgeRule,
maxCountRule = maxCountRule,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy