aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin

Auto map Amazon exception into CFN exception to reduce handler exception mapping

オープン
#353 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Java
スター
30
フォーク
48
PR マージ指標
30日以内にマージされた PR はありません

説明

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);
}
..................
}

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。