Skip to content
v2.277.0

RetryCriteriaProperty Struct ​

The criteria that determines how many retries are allowed for each failure type for a job.

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 retryCriteriaProperty: iot.CfnJobTemplate.RetryCriteriaProperty = {
  failureType: 'failureType',
  numberOfRetries: 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

retry_criteria_property = iot.CfnJobTemplate.RetryCriteriaProperty(
    failure_type="failureType",
    number_of_retries=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.*;

RetryCriteriaProperty retryCriteriaProperty = RetryCriteriaProperty.builder()
        .failureType("failureType")
        .numberOfRetries(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.IoT;

var retryCriteriaProperty = new RetryCriteriaProperty {
    FailureType = "failureType",
    NumberOfRetries = 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"

retryCriteriaProperty := &RetryCriteriaProperty{
	FailureType: jsii.String("failureType"),
	NumberOfRetries: jsii.Number(123),
}

Properties ​

failureTypeoptionalstringfailure_typeoptionalstrfailureTypeoptionalStringFailureTypeoptionalstringFailureTypeoptional*string#
The type of job execution failures that can initiate a job retry.
numberOfRetriesoptionalnumbernumber_of_retriesoptionalint | floatnumberOfRetriesoptionalNumberNumberOfRetriesoptionaldoubleNumberOfRetriesoptional*float64#
The number of retries allowed for a failure type for the job.