aws iam update-assume-role-policy
Updates the policy that grants an IAM entity permission to assume a role. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--policy-documentThe policy that grants an entity permission to assume the role.--role-nameThe name of the role to update with the new policy.