
com.pulumi.awsnative.ecs.kotlin.outputs.ServiceDeploymentCircuitBreaker.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.ecs.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
/**
* The deployment circuit breaker can only be used for services using the rolling update (``ECS``) deployment type.
* The *deployment circuit breaker* determines whether a service deployment will fail if the service can't reach a steady state. If it is turned on, a service deployment will transition to a failed state and stop launching new tasks. You can also configure Amazon ECS to roll back your service to the last completed deployment after a failure. 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*.
* For more information about API failure reasons, see [API failure reasons](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html) in the *Amazon Elastic Container Service Developer Guide*.
* @property enable Determines whether to use the deployment circuit breaker logic for the service.
* @property rollback Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
*/
public data class ServiceDeploymentCircuitBreaker(
public val enable: Boolean,
public val rollback: Boolean,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.ServiceDeploymentCircuitBreaker): ServiceDeploymentCircuitBreaker = ServiceDeploymentCircuitBreaker(
enable = javaType.enable(),
rollback = javaType.rollback(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy