interface ThresholdConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ECS.CfnServicePropsMixin.ThresholdConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsecs#CfnServicePropsMixin_ThresholdConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.ThresholdConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_ecs.CfnServicePropsMixin.ThresholdConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ecs » CfnServicePropsMixin » ThresholdConfigurationProperty |
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 { aws_ecs as ecs } from '@aws-cdk/cfn-property-mixins';
const thresholdConfigurationProperty: ecs.CfnServicePropsMixin.ThresholdConfigurationProperty = {
type: 'type',
value: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| type? | string | Determines how Amazon ECS uses value to calculate the failure threshold. |
| value? | number | Specifies the integer that Amazon ECS uses to calculate the failure threshold. |
type?
Type:
string
(optional)
Determines how Amazon ECS uses value to calculate the failure threshold.
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.
value?
Type:
number
(optional)
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.

.NET
Go
Java
Python
TypeScript