In V1 SDK, we can use EC2MetadataUtils.getIAMSecurityCredentials(); to get the temporary security credentials associated with the IAM roles on the instance.
Map<String, EC2MetadataUtils.IAMSecurityCredential> credMap = EC2MetadataUtils.getIAMSecurityCredentials();
What's the equivalent in the V2 SDK?
I can't find anything in the dev guides or on Stack Overflow.
