MCPcopy Create free account
hub / github.com/aws/aws-cli / _api_call

Method _api_call

awscli/botocore/client.py:433–442  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

431 self, py_operation_name, operation_name, service_model
432 ):
433 def _api_call(self, *args, **kwargs):
434 # We're accepting *args so that we can give a more helpful
435 # error message than TypeError: _api_call takes exactly
436 # 1 argument.
437 if args:
438 raise TypeError(
439 f"{py_operation_name}() only accepts keyword arguments."
440 )
441 # The "self" in this scope is referring to the BaseClient.
442 return self._make_api_call(operation_name, kwargs)
443
444 _api_call.__name__ = str(py_operation_name)
445

Callers

nothing calls this directly

Calls 1

_make_api_callMethod · 0.45

Tested by

no test coverage detected