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

com.pulumi.awsnative.ecs.kotlin.outputs.ServiceDeploymentAlarms.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ecs.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * 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 ServiceDeploymentAlarms(
    public val alarmNames: List,
    public val enable: Boolean,
    public val rollback: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.ServiceDeploymentAlarms): ServiceDeploymentAlarms = ServiceDeploymentAlarms(
            alarmNames = javaType.alarmNames().map({ args0 -> args0 }),
            enable = javaType.enable(),
            rollback = javaType.rollback(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy