Command option Sample:aws iam list-policy-versions

Search command sample in the internet.It is the result.

Lists information about the versions of the specified managed policy,including the version that is currently set as the policy's defaultversion.Show details from next link. https://docs.aws.amazon.com/ja_jp/cli/latest/reference/iam/list-policy-versions.html

aws iam list-policy-versions --policy-arn arn:aws:iam::123456789012:policy/MySamplePolicy
    list-role-policies — AWS CLI 1.16.7 Command Reference : http://docs.aws.amazon.com/cli/latest/reference/iam/list-policy-versions.html
aws iam list-policy-versions --no-paginate --policy-arn
     February 2017 : http://www.aaronmedacco.com/blog/2017/02/default

aws のオプション一覧