aws iam get-context-keys-for-principal-policy
Gets a list of all of the context keys referenced in all the IAM policies that are attached to the specified IAM entity. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--policy-input-listAn optional list of additional policies for which you want the list of context keys that are referenced.--policy-source-arnThe ARN of a user, group, or role whose policies contain the context keys that you want listed.