Use the below command to view all the information of an IAM role where ROLENAME is the name of the role.
aws iam get-role --role-name ROLENAME
Use the below command to view all the information of an IAM role where ROLENAME is the name of the role.
aws iam get-role --role-name ROLENAME