AwsJobAbortConfigProperty Struct
| 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 awsJobAbortConfigProperty: iot.CfnOTAUpdate.AwsJobAbortConfigProperty = {
abortCriteriaList: [{
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
aws_job_abort_config_property = iot.CfnOTAUpdate.AwsJobAbortConfigProperty(
abort_criteria_list=[iot.CfnOTAUpdate.AwsJobAbortCriteriaProperty(
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.*;
AwsJobAbortConfigProperty awsJobAbortConfigProperty = AwsJobAbortConfigProperty.builder()
.abortCriteriaList(List.of(AwsJobAbortCriteriaProperty.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 awsJobAbortConfigProperty = new AwsJobAbortConfigProperty {
AbortCriteriaList = new [] { new AwsJobAbortCriteriaProperty {
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"
awsJobAbortConfigProperty := &AwsJobAbortConfigProperty{
AbortCriteriaList: []interface{}{
&AwsJobAbortCriteriaProperty{
Action: jsii.String("action"),
FailureType: jsii.String("failureType"),
MinNumberOfExecutedThings: jsii.Number(123),
ThresholdPercentage: jsii.Number(123),
},
},
}
Properties
abortCriteriaListIResolvable | IResolvable | CfnOTAUpdate.abort_criteria_listtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AwsJobAbortCriteriaProperty]]]abortCriteriaListIResolvableAbortCriteriaListIResolvableAbortCriteriaListinterface{} required #The list of criteria that determine when and how to abort the job.