  def DetachPolicyFromRole(self, policy_arn: str, role_name :str) -> None:
    """Detach a policy from a role.

    Args:
      policy_arn (str): The Arn of the policy to remove.
      role_name (str): The name of the role.
    """
    logger.info('Detaching policy {0:s} from role {1:s}'
      .format(policy_arn, role_name))
    try:
      self.client.detach_role_policy(
        RoleName=role_name, PolicyArn=policy_arn)
    except self.client.exceptions.NoSuchEntityException:
      pass
Detach a policy from a role.

Args:
policy_arn (str): The Arn of the policy to remove.
role_name (str): The name of the role.
libcloudforensics/providers/aws/internal/iam.py