You can certainly define traffic shaping policies based on any IP traffic that you can define in an access-list.
Please see the following URL for configuration information
as well as platforms supported.
http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121newft/121t/121t2/clsbsshp.htm