Is it possible to set up the trusted_networks by Hostname?

I use the Amazon echo to control different switches. (according to Amazon Alexa Smart Home Skill integration).

I always get the notification: Login attempt or request with invalid authentication from 34.227.112.142. IP is varied.

When I check those IP, I found they’re from Amazon AWS (Hostname: ec2-34-227-112-142.compute-1.amazonaws.com). The start of the hostname can be different according to IP but it always end with amazonaws.com

Are there any possibilities to set up the trusted_networks by Hostname e.g. *.amazonaws.com?

Or are there any solutions to prevent notifications for those IPs?

I use Alexa a lot using that skill and have never had any login attempts from amazon servers.