Closed foresmac closed 6 years ago
What use case(s) did you have in mind?
TBH, I don't really have one off the top of my head. I just know that a lot of AWS APIs use those ARNs, and I was thinking there's probably a time when you need to go the other way to do something useful. E.g., parse the ARN, change one of the properties, rebuild that ARN to fix something?
OTOH, I imagine boto probably handles that internally in a way you don't need to think about it, though.
I agree, it might come in useful in the future. I'll wait for a concrete use case before going ahead with this. Thanks for the suggestion!
Seems like it would be useful for the
Arn
class to have a method to generate a valid ARN—i.e.,arnparse
in reverse, likegeturl()
inurlparse
.