![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ecs.kotlin.inputs.ServiceDeploymentAlarmsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecs.kotlin.inputs
import com.pulumi.awsnative.ecs.inputs.ServiceDeploymentAlarmsArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* One of the methods which provide a way for you to quickly identify when a deployment has failed, and then to optionally roll back the failure to the last working deployment.
* When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback parameter to have Amazon ECS to roll back your service to the last completed deployment after a failure.
* You can only use the ``DeploymentAlarms`` method to detect failures when the ``DeploymentController`` is set to ``ECS`` (rolling update).
* For more information, see [Rolling update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) in the *Amazon Elastic Container Service Developer Guide*.
* @property alarmNames One or more CloudWatch alarm names. Use a "," to separate the alarms.
* @property enable Determines whether to use the CloudWatch alarm option in the service deployment process.
* @property rollback Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
*/
public data class ServiceDeploymentAlarmsArgs(
public val alarmNames: Output>,
public val enable: Output,
public val rollback: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ecs.inputs.ServiceDeploymentAlarmsArgs =
com.pulumi.awsnative.ecs.inputs.ServiceDeploymentAlarmsArgs.builder()
.alarmNames(alarmNames.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.enable(enable.applyValue({ args0 -> args0 }))
.rollback(rollback.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceDeploymentAlarmsArgs].
*/
@PulumiTagMarker
public class ServiceDeploymentAlarmsArgsBuilder internal constructor() {
private var alarmNames: Output>? = null
private var enable: Output? = null
private var rollback: Output? = null
/**
* @param value One or more CloudWatch alarm names. Use a "," to separate the alarms.
*/
@JvmName("kbsilwubxucycpbh")
public suspend fun alarmNames(`value`: Output>) {
this.alarmNames = value
}
@JvmName("nompahyheixtehvp")
public suspend fun alarmNames(vararg values: Output) {
this.alarmNames = Output.all(values.asList())
}
/**
* @param values One or more CloudWatch alarm names. Use a "," to separate the alarms.
*/
@JvmName("gafgwycjlixfwrnh")
public suspend fun alarmNames(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy