def _raise_invalid_access_key(self, _): if self._service == "ec2": raise AuthFailureError() else: raise InvalidClientTokenIdError()
def _raise_signature_does_not_match(self): if self._service == "ec2": raise AuthFailureError() else: raise SignatureDoesNotMatchError()