Exclude traffic by domain

I see that I can exclude traffic by IP address. Is it possible to exclude traffic from a particular domain (i.e. *.amazonaws.com)?

Thanks.