aws iam get-role-policy
Retrieves the specified inline policy document that is embedded with the specified IAM role. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--policy-nameThe name of the policy document to get.--role-nameThe name of the role associated with the policy.