ThresholdConfigurationProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const thresholdConfigurationProperty: ecs.CfnService.ThresholdConfigurationProperty = {
type: 'type',
value: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
threshold_configuration_property = ecs.CfnService.ThresholdConfigurationProperty(
type="type",
value=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
ThresholdConfigurationProperty thresholdConfigurationProperty = ThresholdConfigurationProperty.builder()
.type("type")
.value(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var thresholdConfigurationProperty = new ThresholdConfigurationProperty {
Type = "type",
Value = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
thresholdConfigurationProperty := &ThresholdConfigurationProperty{
Type: jsii.String("type"),
Value: jsii.Number(123),
}
Properties
Determines how Amazon ECS uses ``value`` to calculate the failure threshold.
notes
For the percentage types (BOUNDED_PERCENT and UNBOUNDED_PERCENT), Amazon ECS multiplies value by the latest service desired count. For COUNT, Amazon ECS uses value directly as the threshold. The default is BOUNDED_PERCENT.
Specifies the integer that Amazon ECS uses to calculate the failure threshold.
When type is COUNT, this value is the failure threshold itself. When type is a percentage type, Amazon ECS multiplies this value by the latest service desired count to produce the failure threshold. The default is 50.