(self)
Returns ``True`` if an IAM role exists.
Returns ``True`` if an IAM role exists.
Returns True if an IAM role exists .
def iam_role_exists(self):
        """
        Returns ``True`` if an IAM role exists.
        """
        try:
            self.iam.meta.client.get_role(
                RoleName=self.role_name)
            return True
        except ClientError:
            return None
def iam_role_exists ( self ) : try : self . iam . meta . client . get_role ( RoleName = self . role_name ) return True except ClientError : return None