Use the below command to retrieve information about an IAM managed policy where ‘arn:aws:iam::123456789123:policy/POLICYNAME’ is the arn of the policy.
aws iam get-policy --policy-arn arn:aws:iam::123456789123:policy/POLICYNAME
Use the below command to retrieve information about an IAM managed policy where ‘arn:aws:iam::123456789123:policy/POLICYNAME’ is the arn of the policy.
aws iam get-policy --policy-arn arn:aws:iam::123456789123:policy/POLICYNAME