com.pulumi.aws.autoscaling.kotlin.inputs.GroupInstanceMaintenancePolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.autoscaling.kotlin.inputs
import com.pulumi.aws.autoscaling.inputs.GroupInstanceMaintenancePolicyArgs.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.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxHealthyPercentage Specifies the upper limit on the number of instances that are in the InService or Pending state with a healthy status during an instance replacement activity.
* @property minHealthyPercentage Specifies the lower limit on the number of instances that must be in the InService state with a healthy status during an instance replacement activity.
*/
public data class GroupInstanceMaintenancePolicyArgs(
public val maxHealthyPercentage: Output,
public val minHealthyPercentage: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.autoscaling.inputs.GroupInstanceMaintenancePolicyArgs =
com.pulumi.aws.autoscaling.inputs.GroupInstanceMaintenancePolicyArgs.builder()
.maxHealthyPercentage(maxHealthyPercentage.applyValue({ args0 -> args0 }))
.minHealthyPercentage(minHealthyPercentage.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GroupInstanceMaintenancePolicyArgs].
*/
@PulumiTagMarker
public class GroupInstanceMaintenancePolicyArgsBuilder internal constructor() {
private var maxHealthyPercentage: Output? = null
private var minHealthyPercentage: Output? = null
/**
* @param value Specifies the upper limit on the number of instances that are in the InService or Pending state with a healthy status during an instance replacement activity.
*/
@JvmName("xvrfvjgrgggnxscs")
public suspend fun maxHealthyPercentage(`value`: Output) {
this.maxHealthyPercentage = value
}
/**
* @param value Specifies the lower limit on the number of instances that must be in the InService state with a healthy status during an instance replacement activity.
*/
@JvmName("ahcjeidngjiqmhsj")
public suspend fun minHealthyPercentage(`value`: Output) {
this.minHealthyPercentage = value
}
/**
* @param value Specifies the upper limit on the number of instances that are in the InService or Pending state with a healthy status during an instance replacement activity.
*/
@JvmName("ubwnqvgkldkqijnh")
public suspend fun maxHealthyPercentage(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxHealthyPercentage = mapped
}
/**
* @param value Specifies the lower limit on the number of instances that must be in the InService state with a healthy status during an instance replacement activity.
*/
@JvmName("osvqgakhbapdgifs")
public suspend fun minHealthyPercentage(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minHealthyPercentage = mapped
}
internal fun build(): GroupInstanceMaintenancePolicyArgs = GroupInstanceMaintenancePolicyArgs(
maxHealthyPercentage = maxHealthyPercentage ?: throw
PulumiNullFieldException("maxHealthyPercentage"),
minHealthyPercentage = minHealthyPercentage ?: throw
PulumiNullFieldException("minHealthyPercentage"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy