in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CallbackContext.java [29:39]
public void throwIfRetryLimitExceeded(int retryCount, String retryKey, ResourceModel model) {
if (!Objects.equals(this.retryKey, retryKey)) {
this.retryKey = retryKey;
remainingRetryCount = retryCount;
}
--remainingRetryCount;
if (remainingRetryCount == 0) {
throw new CfnNotStabilizedException(ResourceModel.TYPE_NAME, model.getName());
}
}