
com.pulumi.awsnative.elasticbeanstalk.kotlin.inputs.ApplicationMaxAgeRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.awsnative.elasticbeanstalk.kotlin.inputs
import com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationMaxAgeRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property deleteSourceFromS3 Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
* @property enabled Specify true to apply the rule, or false to disable it.
* @property maxAgeInDays Specify the number of days to retain an application versions.
*/
public data class ApplicationMaxAgeRuleArgs(
public val deleteSourceFromS3: Output? = null,
public val enabled: Output? = null,
public val maxAgeInDays: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationMaxAgeRuleArgs =
com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationMaxAgeRuleArgs.builder()
.deleteSourceFromS3(deleteSourceFromS3?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.maxAgeInDays(maxAgeInDays?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationMaxAgeRuleArgs].
*/
@PulumiTagMarker
public class ApplicationMaxAgeRuleArgsBuilder internal constructor() {
private var deleteSourceFromS3: Output? = null
private var enabled: Output? = null
private var maxAgeInDays: Output? = null
/**
* @param value Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
*/
@JvmName("mitkmixdpkjgltpb")
public suspend fun deleteSourceFromS3(`value`: Output) {
this.deleteSourceFromS3 = value
}
/**
* @param value Specify true to apply the rule, or false to disable it.
*/
@JvmName("nrgiorgfnlwnjpxj")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Specify the number of days to retain an application versions.
*/
@JvmName("rqdsmpxhxcdetsyt")
public suspend fun maxAgeInDays(`value`: Output) {
this.maxAgeInDays = value
}
/**
* @param value Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
*/
@JvmName("gqafvdntpsolbpxq")
public suspend fun deleteSourceFromS3(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteSourceFromS3 = mapped
}
/**
* @param value Specify true to apply the rule, or false to disable it.
*/
@JvmName("iuyygglnspfnfqaf")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Specify the number of days to retain an application versions.
*/
@JvmName("alxeydhdreldfwyq")
public suspend fun maxAgeInDays(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxAgeInDays = mapped
}
internal fun build(): ApplicationMaxAgeRuleArgs = ApplicationMaxAgeRuleArgs(
deleteSourceFromS3 = deleteSourceFromS3,
enabled = enabled,
maxAgeInDays = maxAgeInDays,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy