aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin
Auto map Amazon exception into CFN exception to reduce handler exception mapping
- Ngôn ngữ chính
- Java
- Star
- 30
- Fork
- 48
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Cloudformation will do retry for retriable exception, such as throttling exception. However, it requires each handler to map the exception into CFN throttling error.
We should be able to auto map the exception to reduce the effort for all resource to map it. For example:
```java
...................
} catch (AmazonServiceException ex) {
if (RetryUtils.isThrottlingException(ex)) {
logger.log(String.format("%s [%s] Create call throttled by downstream service", ResourceModel.TYPE_NAME, model.getAlarmName()));
return ProgressEvent.defaultFailureHandler(ex, HandlerErrorCode.Throttling);
}
..................
}
```
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.