Skip to content
v2.277.0

IoTJobAbortConfigProperty Struct ​

Contains a list of criteria that define when and how to cancel a configuration deployment.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrassv2 as greengrassv2 } from 'aws-cdk-lib';
const ioTJobAbortConfigProperty: greengrassv2.CfnDeployment.IoTJobAbortConfigProperty = {
  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_greengrassv2 as greengrassv2

io_t_job_abort_config_property = greengrassv2.CfnDeployment.IoTJobAbortConfigProperty(
    criteria_list=[greengrassv2.CfnDeployment.IoTJobAbortCriteriaProperty(
        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.greengrassv2.*;

IoTJobAbortConfigProperty ioTJobAbortConfigProperty = IoTJobAbortConfigProperty.builder()
        .criteriaList(List.of(IoTJobAbortCriteriaProperty.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.GreengrassV2;

var ioTJobAbortConfigProperty = new IoTJobAbortConfigProperty {
    CriteriaList = new [] { new IoTJobAbortCriteriaProperty {
        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"

ioTJobAbortConfigProperty := &IoTJobAbortConfigProperty{
	CriteriaList: []interface{}{
		&IoTJobAbortCriteriaProperty{
			Action: jsii.String("action"),
			FailureType: jsii.String("failureType"),
			MinNumberOfExecutedThings: jsii.Number(123),
			ThresholdPercentage: jsii.Number(123),
		},
	},
}

Properties ​

criteriaListIResolvable | IResolvable | CfnDeployment.IoTJobAbortCriteriaProperty[]criteria_listtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IoTJobAbortCriteriaProperty]]]criteriaListIResolvableCriteriaListIResolvableCriteriaListinterface{}required#
The list of criteria that define when and how to cancel the configuration deployment.