
com.pulumi.aws.codedeploy.kotlin.inputs.DeploymentGroupAutoRollbackConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.codedeploy.kotlin.inputs
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupAutoRollbackConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property enabled Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.
* @property events The event type or types that trigger a rollback. Supported types are `DEPLOYMENT_FAILURE`, `DEPLOYMENT_STOP_ON_ALARM` and `DEPLOYMENT_STOP_ON_REQUEST`.
* _Only one `auto_rollback_configuration` is allowed_.
*/
public data class DeploymentGroupAutoRollbackConfigurationArgs(
public val enabled: Output? = null,
public val events: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.codedeploy.inputs.DeploymentGroupAutoRollbackConfigurationArgs =
com.pulumi.aws.codedeploy.inputs.DeploymentGroupAutoRollbackConfigurationArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.events(events?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [DeploymentGroupAutoRollbackConfigurationArgs].
*/
@PulumiTagMarker
public class DeploymentGroupAutoRollbackConfigurationArgsBuilder internal constructor() {
private var enabled: Output? = null
private var events: Output>? = null
/**
* @param value Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.
*/
@JvmName("ayjtaivlwcrhimcx")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The event type or types that trigger a rollback. Supported types are `DEPLOYMENT_FAILURE`, `DEPLOYMENT_STOP_ON_ALARM` and `DEPLOYMENT_STOP_ON_REQUEST`.
* _Only one `auto_rollback_configuration` is allowed_.
*/
@JvmName("tnfbqeyomsghalnd")
public suspend fun events(`value`: Output>) {
this.events = value
}
@JvmName("tjrvuqlsfcstnwfg")
public suspend fun events(vararg values: Output) {
this.events = Output.all(values.asList())
}
/**
* @param values The event type or types that trigger a rollback. Supported types are `DEPLOYMENT_FAILURE`, `DEPLOYMENT_STOP_ON_ALARM` and `DEPLOYMENT_STOP_ON_REQUEST`.
* _Only one `auto_rollback_configuration` is allowed_.
*/
@JvmName("kscpfuqhrqjmyran")
public suspend fun events(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy