AbortConfigProperty Struct
The criteria that determine when and how a job abort takes place.
| 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_iot as iot } from 'aws-cdk-lib';
const abortConfigProperty: iot.CfnJobTemplate.AbortConfigProperty = {
criteriaList: [{
action: 'action',
failureType: 'failureType',
minNumberOfExecutedThings: 123,
thresholdPercentage: 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_iot as iot
abort_config_property = iot.CfnJobTemplate.AbortConfigProperty(
criteria_list=[iot.CfnJobTemplate.AbortCriteriaProperty(
action="action",
failure_type="failureType",
min_number_of_executed_things=123,
threshold_percentage=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.iot.*;
AbortConfigProperty abortConfigProperty = AbortConfigProperty.builder()
.criteriaList(List.of(AbortCriteriaProperty.builder()
.action("action")
.failureType("failureType")
.minNumberOfExecutedThings(123)
.thresholdPercentage(123)
.build()))
.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.IoT;
var abortConfigProperty = new AbortConfigProperty {
CriteriaList = new [] { new AbortCriteriaProperty {
Action = "action",
FailureType = "failureType",
MinNumberOfExecutedThings = 123,
ThresholdPercentage = 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"
abortConfigProperty := &AbortConfigProperty{
CriteriaList: []interface{}{
&AbortCriteriaProperty{
Action: jsii.String("action"),
FailureType: jsii.String("failureType"),
MinNumberOfExecutedThings: jsii.Number(123),
ThresholdPercentage: jsii.Number(123),
},
},
}
Properties
criteriaListIResolvable | IResolvable | CfnJobTemplate.criteria_listtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AbortCriteriaProperty]]]criteriaListIResolvableCriteriaListIResolvableCriteriaListinterface{} required #The list of criteria that determine when and how to abort the job.