"ThrottlingException": {},
"RequestLimitExceeded": {},
"RequestThrottled": {},
- "LimitExceededException": {}, // Deleting 10+ DynamoDb tables at once
"TooManyRequestsException": {}, // Lambda functions
"PriorRequestNotComplete": {}, // Route53
}
ErrCodeRead: struct{}{},
}
+type temporaryError interface {
+ Temporary() bool
+}
+
func isNestedErrorRetryable(parentErr awserr.Error) bool {
if parentErr == nil {
return false
return isCodeRetryable(aerr.Code())
}
+ if t, ok := err.(temporaryError); ok {
+ return t.Temporary()
+ }
+
return isErrConnectionReset(err)
}