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

Method _build_call_parameters

awscli/clidriver.py:979–992  ·  view source on GitHub ↗
(self, args, arg_table)

Source from the content-addressed store, hash-verified

977 parser.add_argument('help', nargs='?')
978
979 def _build_call_parameters(self, args, arg_table):
980 # We need to convert the args specified on the command
981 # line as valid **kwargs we can hand to botocore.
982 service_params = {}
983 # args is an argparse.Namespace object so we're using vars()
984 # so we can iterate over the parsed key/values.
985 parsed_args = vars(args)
986 for arg_object in arg_table.values():
987 py_name = arg_object.py_name
988 if py_name in parsed_args:
989 value = parsed_args[py_name]
990 value = self._unpack_arg(arg_object, value)
991 arg_object.add_to_params(service_params, value)
992 return service_params
993
994 def _unpack_arg(self, cli_argument, value):
995 # Unpacks a commandline argument into a Python value by firing the

Callers 1

__call__Method · 0.95

Calls 2

_unpack_argMethod · 0.95
add_to_paramsMethod · 0.45

Tested by

no test coverage detected