As others have pointed out, this is not something you can just get out of an AWS API endpoint.
So to fill this gap, I've built a general module for dealing with this issue.
I hope this helps for a variety of use cases:
https://gist.github.com/mrsiesta/0e4fac21c0eb0e8977e1de7b5277e63b