in aws-logs-destination/src/main/java/software/amazon/logs/destination/Translator.java [95:107]
static void translateException(AwsServiceException exception) {
if (exception instanceof InvalidParameterException) {
throw new CfnInvalidRequestException(ResourceModel.TYPE_NAME, exception);
} else if (exception instanceof ServiceUnavailableException) {
throw new CfnServiceInternalErrorException(ResourceModel.TYPE_NAME, exception);
} else if (exception instanceof OperationAbortedException) {
throw new CfnResourceConflictException(exception);
} else if (exception instanceof ResourceNotFoundException) {
throw new CfnNotFoundException(exception);
} else if (exception instanceof CloudWatchLogsException) {
throw new CfnGeneralServiceException(exception);
}
}