-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice if there were a way to create a canonical arn String from an Arn instance #2416
Comments
Hi @youngm, thank you for reaching out. The nulls in Changing the current |
…637ac8675 Pull request: release <- staging/f326f82a-b566-4ebc-8a30-608637ac8675
@debora-ito Is there any plan to fix this? |
This issue is now closed. Comments on closed issues are hard for our team to see. |
I love the software.amazon.awssdk.arns.Arn class that exists and use it heavily. with
fromString()
. However, thetoString()
method does not create an arn that can then be consumed withfromString()
and be equal to eachother if fields are missing.Produces the output:
which when parsed again produces null values for region and such.
Describe the Feature
It would be nice if there were a method (perhaps toString()?) that could produce a properly formatted arn string taking into account null values.
I'd like to have some guidance though. Should I just modify toString() or make another method?
My Arn syntax knowledge isn't great. Can I just put an empty value between the
:
for all the non-required fields?The text was updated successfully, but these errors were encountered: