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

com.pulumi.awsnative.elasticbeanstalk.kotlin.inputs.ApplicationMaxCountRuleArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.elasticbeanstalk.kotlin.inputs

import com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationMaxCountRuleArgs.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 maxCount Specify the maximum number of application versions to retain.
 */
public data class ApplicationMaxCountRuleArgs(
    public val deleteSourceFromS3: Output? = null,
    public val enabled: Output? = null,
    public val maxCount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationMaxCountRuleArgs =
        com.pulumi.awsnative.elasticbeanstalk.inputs.ApplicationMaxCountRuleArgs.builder()
            .deleteSourceFromS3(deleteSourceFromS3?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .maxCount(maxCount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationMaxCountRuleArgs].
 */
@PulumiTagMarker
public class ApplicationMaxCountRuleArgsBuilder internal constructor() {
    private var deleteSourceFromS3: Output? = null

    private var enabled: Output? = null

    private var maxCount: 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("wrlfvwygdufunslf")
    public suspend fun deleteSourceFromS3(`value`: Output) {
        this.deleteSourceFromS3 = value
    }

    /**
     * @param value Specify true to apply the rule, or false to disable it.
     */
    @JvmName("yhdcwhdejqcmeueh")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Specify the maximum number of application versions to retain.
     */
    @JvmName("qawyrmqkcjaflmqj")
    public suspend fun maxCount(`value`: Output) {
        this.maxCount = value
    }

    /**
     * @param value Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
     */
    @JvmName("obtwjfskwikmjvyg")
    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("alhdmiklrtnhkcpw")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Specify the maximum number of application versions to retain.
     */
    @JvmName("eqqkdbogbnauhweq")
    public suspend fun maxCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxCount = mapped
    }

    internal fun build(): ApplicationMaxCountRuleArgs = ApplicationMaxCountRuleArgs(
        deleteSourceFromS3 = deleteSourceFromS3,
        enabled = enabled,
        maxCount = maxCount,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy