Interface CfnServicePropsMixin.ThresholdConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServicePropsMixin.ThresholdConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnServicePropsMixin
@Stability(Stable)
public static interface CfnServicePropsMixin.ThresholdConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Defines the failure threshold that the deployment circuit breaker uses to monitor a deployment.
The type and value together determine the number of task failures that are tolerated before the circuit breaker triggers.
By default, the threshold configuration uses a type of BOUNDED_PERCENT with a value of 50.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ecs.*;
ThresholdConfigurationProperty thresholdConfigurationProperty = ThresholdConfigurationProperty.builder()
.type("type")
.value(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServicePropsMixin.ThresholdConfigurationPropertystatic final classAn implementation forCfnServicePropsMixin.ThresholdConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
Determines how Amazon ECS usesvalueto calculate the failure threshold.For the percentage types (
BOUNDED_PERCENTandUNBOUNDED_PERCENT), Amazon ECS multipliesvalueby the latest service desired count. ForCOUNT, Amazon ECS usesvaluedirectly as the threshold. The default isBOUNDED_PERCENT.- See Also:
-
getValue
Specifies the integer that Amazon ECS uses to calculate the failure threshold.When
typeisCOUNT, this value is the failure threshold itself. Whentypeis a percentage type, Amazon ECS multiplies this value by the latest service desired count to produce the failure threshold. The default is50.- See Also:
-
builder
-